Hi,

I'm getting some interesting PDF files that have the Xobject image
height stored as an indirect object. This indirect height then seems to
disappear when Itext loads the file and I get one of these:

        at
com.lowagie.text.pdf.PRTokeniser.throwError(PRTokeniser.java:193)
        at
com.lowagie.text.pdf.PRTokeniser.nextValidToken(PRTokeniser.java(Compile
d Code))
        at
com.lowagie.text.pdf.PdfReader.readPRObject(PdfReader.java(Compiled
Code))
        at
com.lowagie.text.pdf.PdfReader.readOneObjStm(PdfReader.java(Compiled
Code))
        at
com.lowagie.text.pdf.PdfReader.readSingleObject(PdfReader.java:1017)
        at
com.lowagie.text.pdf.PdfReader.getPdfObject(PdfReader.java:901)
        at
com.lowagie.text.pdf.PdfReader.getPdfObject(PdfReader.java(Compiled
Code))
        at
com.lowagie.text.pdf.PdfDictionary.getDirectObject(PdfDictionary.java:30
2)
        at
com.lowagie.text.pdf.PdfDictionary.getAsNumber(PdfDictionary.java:348)

When I try and get the Height from the Xobject dictionary... Any
thoughts?

Here is an example of the dictionary in the xobject:

{/Filter=/CCITTFaxDecode, /Type=/XObject, /Length=43168,
/BitsPerComponent=1, /Height=288 0 R, /ColorSpace=/DeviceGray,
/DecodeParms=Dictionary, /Name=/Im0, /Subtype=/Image, /Width=1696}

/Height=288 0 R does not seem to exist in the document at all.

Anyone seen anything like this?

Thanks in advance,

Nathan
--
Nathan Aldridge




-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.1t3xt.com/docs/book.php

Reply via email to