Hi Andre,
the problem is a unsupported character in the postscript file. The postscript parser might have to be modified.
Can you show us line 19 (column 137) in your eps file?
Best regards,
Carsten

[EMAIL PROTECTED] schrieb:
Hello!

I use iText 1.3.6 and want to add an Image into my PDF. With GIF or other 
graphic-formats, everything works fine.

But when I want to add an EPS-Image, then I get the following exception:

Code:
Exception in thread "main" java.lang.Error: Invalid escape character at line 19 
column 137.
        at 
com.lowagie.text.pdf.codec.postscript.JavaCharStream.readChar(Unknown Source)
        at 
com.lowagie.text.pdf.codec.postscript.PAParserTokenManager.jjMoveNfa_0(Unknown 
Source)
[many other lines]

The way, I add this images, is:

Code:
Image logo = Image.getInstance(new URL("file:" + getFilename()));



When I watch this EPS with a viewer (like GS), then I can open and see this 
Image without any error...

Who can help?

Thanks in advance!
-André


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=k&kid0944&bid$1720&dat1642



-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to