Hi,

If the pdf is encrypted, you will need the bouncycastle jars 
(bcmail-jdk15-1.44.jar & bcprov-jdk15-1.44.jar) when using loadNonSeq.

/Toël

On 2 sep 2015, at 21:19, RuhongCai (JIRA) <[email protected]> wrote:

> 
>    [ 
> https://issues.apache.org/jira/browse/PDFBOX-2953?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14727877#comment-14727877
>  ] 
> 
> RuhongCai commented on PDFBOX-2953:
> -----------------------------------
> 
> Yes, I used loadNonSeq(new File(...), null); and it worked, could I use 
> loadNonSeq(new File(...), null); for all kind of PDF files? ( isEncrypted or 
> notEncrypted, etc)?
> 
> Thanks!
> 
>> PDFBox shows page count 0
>> -------------------------
>> 
>>                Key: PDFBOX-2953
>>                URL: https://issues.apache.org/jira/browse/PDFBOX-2953
>>            Project: PDFBox
>>         Issue Type: Bug
>>   Affects Versions: 1.8.6
>>           Reporter: RuhongCai
>>        Attachments: ms12_TIM.pdf
>> 
>> 
>> The following code could prove that there is a bug in getting the number of 
>> the pages 
>> PDDocument pdf1 = PDDocument.load("C:\\ms12_TIM.pdf");
>> int count = pdf1.getNumberOfPages();
>> count return “0” , the file has a page.
> 
> 
> 
> --
> This message was sent by Atlassian JIRA
> (v6.3.4#6332)
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to