>Let me know if I guessed right concerning the object that
>caused the ClassCastException. Could be you need getPdfObject
>in other places too.

The CastException is being caused earlier, at the PdfDictionary labels
= (PdfDictionary)dict.get(PdfName.PAGELABELS); statement. I have been
looking at the ClimbTheTree demo and I do get:

the catalog dictionary
----------------------
<<
/Type /Catalog
/PageLabels 10 0 R
/ViewerPreferences <<
/Direction /L2R
>>
/Pages 2 0 R
/Metadata 3181 0 R
>>

>From the object.txt file. So it sees the /PageLabels object is object
10. If it helps I am opening a PDF created via Adobe InDesign. I can
make a document avalible for you if you are interested.

 I guess I could take the approch of requesting iText to return me
object 10 and parse the object myself. I was just hoping I could get
an array back from iText with the page numbers in it.

Thanks
Dean

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
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/

Reply via email to