Thanks a lot Bruno, But how do I get the value for the key /Apag_BoxInfo since the PdfName doesn't have a Field for that key. Is there any way I can put that key in the PdfName?
Thanks, Augustin -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Bruno Lowagie Sent: Thursday, March 08, 2007 11:55 AM To: Post all your questions about iText here Subject: Re: [iText-questions] Not Getting the "art" value using thePdfReader Joshua Augustin wrote: > The issue is that I am able to read the Bleed and Trim values but the > Art value is coming as null even though there is a non-null value. That's not entirely true. If you have a look at the Page Dictionary, you'll see that there is no /ArtBox key in it (that's why iText returns null). However, there's a key /Apag_BoxInfo with a PdfDictionary as value. This dictionary has an /ArtBox entry, but AFAIK it is not in conformance with the PDF Reference. > Is there any way I can get the Art value or am I making any mistake? Use reader.getPageN(1); to get the page dictionary of the first page. Inspect the entries of the dictionary to check what I said above. br, Bruno ------------------------------------------------------------------------ - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDE V _______________________________________________ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://itext.ugent.be/itext-in-action/ ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://itext.ugent.be/itext-in-action/