I have a customer who tried to upload a PDF to my site. They got an
error from my app stating 'not a valid pdf'. 

 

I ran the following locally with the same PDF my customer tried to
upload.

 

C:\Documents and Settings\nbdvf7d\Desktop\MEE_VRS\perf\sept
15\MerchantExplorer\ WebContent\WEB-INF\lib>java org.pdfbox.ExtractText
c:\2800674852 POD.pdf Exception in thread "main"
java.lang.NullPointerException

        at org.pdfbox.pdmodel.PDPageNode.getAllKids(PDPageNode.java:194)

        at org.pdfbox.pdmodel.PDPageNode.getAllKids(PDPageNode.java:182)

        at
org.pdfbox.pdmodel.PDDocumentCatalog.getAllPages(PDDocumentCatalog.ja

va:226)

        at
org.pdfbox.util.PDFTextStripper.writeText(PDFTextStripper.java:216)

        at org.pdfbox.ExtractText.main(ExtractText.java:244)

 

Jeremy D. Stayton

OFFICER; CNSLT - APPS PROG 

MERCHANT PRODUCTION SUPPORT BASE 
BA Merchant Services, LLC.

 

Reply via email to