[ 
https://issues.apache.org/jira/browse/PDFBOX-911?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12966064#action_12966064
 ] 

nielsen commented on PDFBOX-911:
--------------------------------

Hello Adam,
Here a hint which might help you:
I suppose the problem in test.pdf was caused how page 2,3 and 4 were inserted.
Originally the test file was an export from Word (via plugin) with many pages. 
Then all pages except the first page were deleted 
manually via Acrobat 9.
As I wanted to test the deletion of all pages (except the first) with PDFBox I 
inserted 3 pages into the test files manually as follows:
The page was inserted via Acrobat 9 via menu
Document\Insert Pages\From Clipboard (any content from clipboard)

> Method PDDocument.getNumberOfPages() returns wrong number of pages
> ------------------------------------------------------------------
>
>                 Key: PDFBOX-911
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-911
>             Project: PDFBox
>          Issue Type: Bug
>    Affects Versions: 1.3.1
>         Environment: Windows XP, Eclipse 3.5.2 Galileo
>            Reporter: nielsen
>         Attachments: atest.pdf, Martijn Brinkers.jpg, test.pdf, test.unc.pdf
>
>
> Hello,
> I use PDFbox and are very pleased.
> For one PDF file however getNumberOfPages() returns the wrong number of pages 
> (1 instead of 2 pages).
> Test code:
>         File xx = new File("c:\\temp\\test.pdf");
>         PDDocument pdoc = PDDocument.load(xx);    
>         int x = pdoc.getNumberOfPages();
> The PDF file could be provided.
> Thanks in advance.
> Regards

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to