Return-Path: X-Original-To: apmail-pdfbox-dev-archive@www.apache.org Delivered-To: apmail-pdfbox-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 9EEC7491C for ; Sun, 3 Jul 2011 18:08:44 +0000 (UTC) Received: (qmail 49090 invoked by uid 500); 3 Jul 2011 18:08:44 -0000 Delivered-To: apmail-pdfbox-dev-archive@pdfbox.apache.org Received: (qmail 49061 invoked by uid 500); 3 Jul 2011 18:08:44 -0000 Mailing-List: contact dev-help@pdfbox.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@pdfbox.apache.org Delivered-To: mailing list dev@pdfbox.apache.org Received: (qmail 49053 invoked by uid 99); 3 Jul 2011 18:08:43 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 03 Jul 2011 18:08:43 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 03 Jul 2011 18:08:42 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id D77994433D3 for ; Sun, 3 Jul 2011 18:08:21 +0000 (UTC) Date: Sun, 3 Jul 2011 18:08:21 +0000 (UTC) From: =?utf-8?Q?Andreas_Lehmk=C3=BChler_=28JIRA=29?= To: dev@pdfbox.apache.org Message-ID: <1777933211.955.1309716501879.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <1004605980.29010.1308738287508.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Resolved] (PDFBOX-1047) PDPageLabels with Junks in Particular Pdf MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/PDFBOX-1047?page=3Dcom.atlassi= an.jira.plugin.system.issuetabpanels:all-tabpanel ] Andreas Lehmk=C3=BChler resolved PDFBOX-1047. ---------------------------------------- Resolution: Fixed I limited the trimming to null bytes in revision 1142470 > 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 > Assignee: Andreas Lehmk=C3=BChler > Labels: PageLabel > Fix For: 1.7.0 > > Attachments: pagelabelwithjunk.pdf > > > Hi all. > While extracting Page number with particular PDF, the last page number wa= s with Junk values which is also extracted. > Here by I attaching the particular PDF and kindly guide me in that partic= ular issue. > Here by I show my snippet of code which is working fine in all PDF but ad= ding junk values with the particular PDF. > CODE: > PDDocumentCatalog cat =3D pd.getDocumentCatalog(); > =20 > String[] labels =3D cat.getPageLabels().getLabelsByPageIndices(); > System.out.println("Hi"+labels[0] +"Hi"); > =20 > 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