PDPageLabels with Junks in Particular Pdf
-----------------------------------------
Key: PDFBOX-1047
URL: https://issues.apache.org/jira/browse/PDFBOX-1047
Project: PDFBox
Issue Type: Bug
Components: PDModel
Affects Versions: 1.5.0
Reporter: karthick
Fix For: 1.6.0
Attachments: pagelabelwithjunk.pdf
Hi all.
While extracting Page number with particular PDF, the last page number was with
Junk values which is also extracted.
Here by I attaching the particular PDF and kindly guide me in that particular
issue.
Here by I show my snippet of code which is working fine in all PDF but adding
junk values with the particular PDF.
CODE:
PDDocumentCatalog cat = pd.getDocumentCatalog();
String[] labels = cat.getPageLabels().getLabelsByPageIndices();
System.out.println("Hi"+labels[0] +"Hi");
System.out.println("Hi" +labels[labels.length - 1] + "Hi");
OUTPUT
Hi1Hi Correct Output for First Page
Hi3 Orginal output for Last Page(bug)
Hi3Hi Expected output for Last Page
Kindly guide me in this issue .i attach the sample PDF with this file.
Thank you
Regards
Karthick.g
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira