[ 
https://issues.apache.org/jira/browse/PDFBOX-1626?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Thomas Chojecki closed PDFBOX-1626.
-----------------------------------

    Resolution: Not A Problem

This document is encrypted, so you need to decrypt it first before accessing 
the pages.

PDDocument load = 
PDDocument.load(Test2.class.getResourceAsStream("/Bedienungsanleitung_Standard-Anschluss.pdf"));
if (load.isEncrypted())
{
  load.decrypt("");
}
System.out.println(load.getDocumentCatalog().getAllPages().size());


Output:
24
                
> getNumberOfPages is zero
> ------------------------
>
>                 Key: PDFBOX-1626
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-1626
>             Project: PDFBox
>          Issue Type: Bug
>          Components: PDModel
>    Affects Versions: 1.8.2
>         Environment: Java 7u21, Linux
>            Reporter: Jens Kapitza
>
> getNumberOfPages is zero at this document
> http://www.telekom.de/dlp/eki/downloads/SprachBox/Bedienungsanleitung_Standard-Anschluss.pdf

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to