pdfbox-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF subversion and git services (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (PDFBOX-4233) Flatten does not work properly on field with type 0 font
Date Fri, 08 Feb 2019 13:26:00 GMT

    [ https://issues.apache.org/jira/browse/PDFBOX-4233?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16763588#comment-16763588
] 

ASF subversion and git services commented on PDFBOX-4233:
---------------------------------------------------------

Commit 1853214 from Tilman Hausherr in branch 'pdfbox/branches/2.0'
[ https://svn.apache.org/r1853214 ]

PDFBOX-4233: add warning that visual field appearances may not have been set when /NeedAppearances
is set and what to do

> Flatten does not work properly on field with type 0 font
> --------------------------------------------------------
>
>                 Key: PDFBOX-4233
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-4233
>             Project: PDFBox
>          Issue Type: Bug
>          Components: AcroForm
>    Affects Versions: 2.0.10
>         Environment: win10, JDK 1.8
>            Reporter: rumburak
>            Priority: Major
>         Attachments: sampleform_filled.pdf, sampleform_filled_flattened.pdf, sampleform_filled_in_acrobat_reader.png
>
>
> Pdf form *sampleform_filled.pdf* contains one field called "txtField" with this content:
"ěščřžýáíéúůóďťĚŠČŘŽÝÁÍÉÚŮÓĎŤ".  The font used in this field
is "/F5"
> when you run this code:
>  
> {code:java}
> try {
>  PDDocument sourcePdfForm = PDDocument.load(new File("sampleform_filled.pdf"));
>  PDAcroForm acroForm = sourcePdfForm.getDocumentCatalog()
>  .getAcroForm();
>  acroForm.flatten();
>  sourcePdfForm.save("sampleform_filled_flattened.pdf");
> } catch (IOException e) {
>  e.printStackTrace();
> }{code}
>  
>  
> You will get *sampleform_filled_flattened.pdf* with empty or not visible content of the
field.
>  
>  



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@pdfbox.apache.org
For additional commands, e-mail: dev-help@pdfbox.apache.org


Mime
View raw message