Marco Wettstein created PDFBOX-3247:
---------------------------------------

             Summary: 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


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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to