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

Maruan Sahyoun commented on PDFBOX-3732:
----------------------------------------

I did some more investigation. Adobe Reader creates the default entries on the 
AcroForm level if there are none regardless of the {{/NeedAppearances}} flag 
being set or only when there is a value being entered i.e. opening and saving 
such a form has the new entries. 

Shall we do the same or do that only when the {{AcroForm}} is accessed which is 
more inline with how we currently handle such situations. I'd go for the latter 
option. [~tilman] [~ssteiner1] WDYT?

> IllegalArgumentException when refreshing an appearance and no font resources 
> are defined
> ----------------------------------------------------------------------------------------
>
>                 Key: PDFBOX-3732
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-3732
>             Project: PDFBox
>          Issue Type: Bug
>          Components: AcroForm
>    Affects Versions: 2.0.5
>            Reporter: simon steiner
>             Fix For: 2.0.6, 3.0.0
>
>         Attachments: out.pdf, out-reader.pdf, PDFBOX3732-minimal.pdf, 
> PDFBOX3732-minimal-reader.pdf, refreshAppearances.patch
>
>
>         PDDocument doc = PDDocument.load(new File("out.pdf"));
>         doc.getDocumentCatalog().getAcroForm().setNeedAppearances(false);
>         doc.getDocumentCatalog().getAcroForm().refreshAppearances();
>         doc.save("pdfbox.pdf");
>         doc.close();
> Exception in thread "main" java.lang.IllegalArgumentException: /DR is a 
> required entry
>       at 
> org.apache.pdfbox.pdmodel.interactive.form.PDDefaultAppearanceString.<init>(PDDefaultAppearanceString.java:82)



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to