I've seen the same stack trace recently with PDFs created by Adobe Pro 
9/Distiller 9.  However, I have yet to figure out what Adobe 9 is doing that is 
causing the PDF not to be read properly by PDFBox.

-----"Stayton, Jeremy D" <[EMAIL PROTECTED]> wrote: -----


To: [email protected]
From: "Stayton, Jeremy D" <[EMAIL PROTECTED]>
Date: 09/24/2008 12:33PM
Subject: not a valid pdf

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.This electronic message contains information from 
CACI International Inc or subsidiary companies, which may be company sensitive, 
proprietary, privileged or otherwise protected from disclosure. The information 
is intended to be
used solely by the recipient(s) named above. If you are not an intended 
recipient, be aware that any review, disclosure, copying, distribution or use 
of this transmission or its contents is prohibited. If you have received this 
transmission in error,
please notify us immediately at [EMAIL PROTECTED] With the exception of 
messages sent by authorized CACI contracts or purchasing personnel, nothing in 
this message may be interpreted as a digital or electronic signature that can 
be used to: (a)
authenticate either the submission or the acceptance of a proposal or offer to 
contract, or (b) modify an existing contract.

Reply via email to