You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "Andreas Lehmkühler (JIRA)" <ji...@apache.org> on 2016/02/23 19:27:18 UTC

[jira] [Updated] (PDFBOX-3247) Merging fails on certain pdfs with form-fields

     [ https://issues.apache.org/jira/browse/PDFBOX-3247?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Andreas Lehmkühler updated PDFBOX-3247:
---------------------------------------
    Attachment: 20150623_Layout_Rückseite.pdf

> Merging fails on certain pdfs with form-fields
> ----------------------------------------------
>
>                 Key: PDFBOX-3247
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-3247
>             Project: PDFBox
>          Issue Type: Bug
>    Affects Versions: 1.8.11
>            Reporter: Marco Wettstein
>            Priority: Critical
>         Attachments: 20150623_Layout_Rückseite.pdf
>
>
> I have a simple pdf with a form field. When I merge it with another pdf it crashes with a NullPointerException:
> PDFMergerUtility.mergeDocuments()
> then in PDAcroForm on line 303:
> {code}
>  COSString fieldName = (COSString)element.getDictionaryObject( COSName.getPDFName( "T" ) );
> if( fieldName.getString().equals( name ) ||
>      fieldName.getString().equals( nameSubSection[0] ) )
> {code}
> fieldName will be null.
> The file that causes the problem can be found here:
> https://drive.google.com/file/d/0B999M9JdRfxfVUdQeENSZkFCdlk/view?usp=sharing



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

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