You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "Christer Palm (Created) (JIRA)" <ji...@apache.org> on 2012/02/21 23:20:53 UTC

[jira] [Created] (PDFBOX-1234) NPE at org.apache.pdfbox.pdmodel.interactive.form.PDAppearance.calculateFontSize(PDAppearance.java:551)

NPE at org.apache.pdfbox.pdmodel.interactive.form.PDAppearance.calculateFontSize(PDAppearance.java:551)
-------------------------------------------------------------------------------------------------------

                 Key: PDFBOX-1234
                 URL: https://issues.apache.org/jira/browse/PDFBOX-1234
             Project: PDFBox
          Issue Type: Bug
            Reporter: Christer Palm


Using SVN trunk revision 1291094 (2012-02-18)
Getting the following stack trace when trying to call PDField.setValue() on a AcroForm field in the attached document;

java.lang.NullPointerException
	at org.apache.pdfbox.pdmodel.interactive.form.PDAppearance.calculateFontSize(PDAppearance.java:551)
	at org.apache.pdfbox.pdmodel.interactive.form.PDAppearance.insertGeneratedAppearance(PDAppearance.java:371)
	at org.apache.pdfbox.pdmodel.interactive.form.PDAppearance.setAppearanceValue(PDAppearance.java:281)
	at org.apache.pdfbox.pdmodel.interactive.form.PDVariableText.setValue(PDVariableText.java:131)

Reason seems to be that PDApperance.getFontAndUpdateResources() returns null, in turn because the font dictionary for the DA of the field ("/Cour 11 Tf 0 g") is not present in the document.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (PDFBOX-1234) NPE at org.apache.pdfbox.pdmodel.interactive.form.PDAppearance.calculateFontSize(PDAppearance.java:551)

Posted by "Christer Palm (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/PDFBOX-1234?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Christer Palm updated PDFBOX-1234:
----------------------------------

    Attachment: 200221.pdf
    
> NPE at org.apache.pdfbox.pdmodel.interactive.form.PDAppearance.calculateFontSize(PDAppearance.java:551)
> -------------------------------------------------------------------------------------------------------
>
>                 Key: PDFBOX-1234
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-1234
>             Project: PDFBox
>          Issue Type: Bug
>            Reporter: Christer Palm
>         Attachments: 200221.pdf
>
>
> Using SVN trunk revision 1291094 (2012-02-18)
> Getting the following stack trace when trying to call PDField.setValue() on a AcroForm field in the attached document;
> java.lang.NullPointerException
> 	at org.apache.pdfbox.pdmodel.interactive.form.PDAppearance.calculateFontSize(PDAppearance.java:551)
> 	at org.apache.pdfbox.pdmodel.interactive.form.PDAppearance.insertGeneratedAppearance(PDAppearance.java:371)
> 	at org.apache.pdfbox.pdmodel.interactive.form.PDAppearance.setAppearanceValue(PDAppearance.java:281)
> 	at org.apache.pdfbox.pdmodel.interactive.form.PDVariableText.setValue(PDVariableText.java:131)
> Reason seems to be that PDApperance.getFontAndUpdateResources() returns null, in turn because the font dictionary for the DA of the field ("/Cour 11 Tf 0 g") is not present in the document.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira