You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@pdfbox.apache.org by karthick g <ik...@gmail.com> on 2010/04/28 13:51:02 UTC

Problem while using getNumberOfPages()

Hi ,

* I am Using PDFBox 0.7.3

*While running a particluar PDF file i got the following EXCEPTION

* java.lang.NullPointerException
    at org.pdfbox.pdmodel.PDPageNode.getCount(PDPageNode.java:116)
    at org.pdfbox.pdmodel.PDDocument.getNumberOfPages(PDDocument.java:772)

* I was about to find the exception is due to* Apache XML Core version* if
the core version is 1.1 it is working fine if it is 2.0 it is not working.

* When the same PDF is saved again the* XML core version* is changed and the
PDF is running well

*Is the getNumberOfPages() extraction is based on XMLCoreVersion

*kindly clarifly


let me know if you have any issues

regards

Karthick.G

Re: Problem while using getNumberOfPages()

Posted by Ad...@swmc.com.
If you still have the problem with 1.1.0, try removing any security on the 
document and see if it works.  I'm not suggesting removing security as a 
solution to your problem, but it'll help us determine what's going on.

---- 
Thanks,
Adam





From:
"Erik Scholtz, ArgonSoft GmbH" <es...@argonsoft.de>
To:
users@pdfbox.apache.org
Date:
04/28/2010 08:00
Subject:
Re: Problem while using getNumberOfPages()



Karthick.G,

I would suggest to have a try with PDFBox 1.1.0, which is the latest 
release of pdfbox.

It can be downloaded from: http://pdfbox.apache.org/download.html

Greetings,
Erik
-- 

My blog: http://blog.elitecoderz.net


On 28.04.10 13:51, karthick g wrote:
> Hi ,
>
> * I am Using PDFBox 0.7.3
>
> *While running a particluar PDF file i got the following EXCEPTION
>
> * java.lang.NullPointerException
>      at org.pdfbox.pdmodel.PDPageNode.getCount(PDPageNode.java:116)
>      at 
org.pdfbox.pdmodel.PDDocument.getNumberOfPages(PDDocument.java:772)
>
> * I was about to find the exception is due to* Apache XML Core version* 
if
> the core version is 1.1 it is working fine if it is 2.0 it is not 
working.
>
> * When the same PDF is saved again the* XML core version* is changed and 
the
> PDF is running well
>
> *Is the getNumberOfPages() extraction is based on XMLCoreVersion
>
> *kindly clarifly
>
>
> let me know if you have any issues
>
> regards
>
> Karthick.G
>



?  Click here to submit conditions  

This email and any content within or attached hereto from  Sun West Mortgage Company, Inc.  is confidential and/or legally privileged. The information is intended only for the use of the individual or entity named on this email. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or the taking of any action in reliance on the contents of this email information is strictly prohibited, and that the documents should be returned to this office immediately by email. Receipt by anyone other than the intended recipient is not a waiver of any privilege. Please do not include your social security number, account number, or any other personal or financial information in the content of the email. Should you have any questions, please call  (800) 453 7884.   

Re: Problem while using getNumberOfPages()

Posted by "Erik Scholtz, ArgonSoft GmbH" <es...@argonsoft.de>.
Karthick.G,

I would suggest to have a try with PDFBox 1.1.0, which is the latest 
release of pdfbox.

It can be downloaded from: http://pdfbox.apache.org/download.html

Greetings,
Erik
-- 

My blog: http://blog.elitecoderz.net


On 28.04.10 13:51, karthick g wrote:
> Hi ,
>
> * I am Using PDFBox 0.7.3
>
> *While running a particluar PDF file i got the following EXCEPTION
>
> * java.lang.NullPointerException
>      at org.pdfbox.pdmodel.PDPageNode.getCount(PDPageNode.java:116)
>      at org.pdfbox.pdmodel.PDDocument.getNumberOfPages(PDDocument.java:772)
>
> * I was about to find the exception is due to* Apache XML Core version* if
> the core version is 1.1 it is working fine if it is 2.0 it is not working.
>
> * When the same PDF is saved again the* XML core version* is changed and the
> PDF is running well
>
> *Is the getNumberOfPages() extraction is based on XMLCoreVersion
>
> *kindly clarifly
>
>
> let me know if you have any issues
>
> regards
>
> Karthick.G
>