[
https://issues.apache.org/jira/browse/PDFBOX-707?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Adam Nichols updated PDFBOX-707:
--------------------------------
Attachment: SWMC_WarehouseAgreement-V1.pdf
Using revision 939034: getNumberOfPages() doesn't always work. This document
demonstrates the issue. Code:
doc = PDDocument.load(inputFile);
System.out.println("Number of pages = " + doc.getNumberOfPages());
Result:
java.lang.NullPointerException
at org.apache.pdfbox.pdmodel.PDPageNode.getCount(PDPageNode.java:102)
at
org.apache.pdfbox.pdmodel.PDDocument.getNumberOfPages(PDDocument.java:931)
at com.xldynamics.common.PdfBoxTest.main(PdfBoxTest.java:33)
> Add the current page and the number of pages to the title
> ---------------------------------------------------------
>
> Key: PDFBOX-707
> URL: https://issues.apache.org/jira/browse/PDFBOX-707
> Project: PDFBox
> Issue Type: Improvement
> Components: PDFReader
> Affects Versions: 1.1.0
> Reporter: Andreas Lehmkühler
> Assignee: Andreas Lehmkühler
> Priority: Minor
> Fix For: 1.2.0
>
> Attachments: SWMC_WarehouseAgreement-V1.pdf
>
>
> You can flip through the pages of a pdf document using the PDFReader, but you
> can't see the current page and the total number of pages of the pdf.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.