You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "RuhongCai (JIRA)" <ji...@apache.org> on 2015/09/02 21:19:45 UTC
[jira] [Commented] (PDFBOX-2953) PDFBox shows page count 0
[ 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: dev-unsubscribe@pdfbox.apache.org
For additional commands, e-mail: dev-help@pdfbox.apache.org
Re: [jira] [Commented] (PDFBOX-2953) PDFBox shows page count 0
Posted by Hartmann Toël <To...@elanders.com>.
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) <ji...@apache.org> 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: dev-unsubscribe@pdfbox.apache.org
> For additional commands, e-mail: dev-help@pdfbox.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@pdfbox.apache.org
For additional commands, e-mail: dev-help@pdfbox.apache.org