Dean Krueger wrote:

> The object class name returning is
> "com.lowagie.text.pdf.PRIndirectReference" what is this telling me?

OK, as promised a little update of ExtractPageLabels:

I replaced:
pageLabel = (PdfDictionary) i.next();
with:
pageLabel = (PdfDictionary) PdfReader.getPdfObject((PdfObject)i.next());

If the object returned by i.next() is of type PdfDictionary,
this dictionary is returned. However, if the object is of type
PRIndirectReference, PdfReader will not return the indirect
reference, but use the reference to fetch the actual object
(it should be a Dictionary too according to the PDF Reference).

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

This isn't explained in detail in the book; the 'Climb the tree'
example in Chapter 18, as well as the 'change the URL' and
'extract a file' examples only serve as an introduction to
the use of low level methods such as getPdfObject.

br,
Bruno

-------------------------------------------------------------------------
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