Hi Andre,
this looks like a binary datastream that might be prefixed by a "image" command. However this datastream should not be feed to the postscript parser. At the moment it is because of the completely missing support of such embedded datastreams (and image operator). If you cant fix it (parts of itext pdf image code can be reused) you might be better at the moment to convert your files to something else e.g. wmf or a bitmap format.
Best regards,
Carsten

[EMAIL PROTECTED] schrieb:
Hi Carsten,

thanks for your answer.

Here is the code of line 19 in my .eps-file:

[code, line 19]
%:HNW1+!n;c$!4r738H`Q(!!*'"!s&?$!<_L>!PnIt!<rO3#QP_CO:2-H!<N6_#WE)[EMAIL 
PROTECTED]@l"oqBuDZFeXD$U+A@/t+&$kH9JFED57B1?TO$peH"@;T-U#65)2'/K\u!-8-O0`sfDG;0)3!-D?D2ukf90E<d,/[EMAIL 
PROTECTED]/Z6S\WA$l;EFEc#6&3WNss!F^%\Ed)P<3#Xb60JG+uE'[EMAIL PROTECTED]/
[/code]

It's rather foggy for me. Can you see something wrong in this line? Strange, 
cause I did not make this file for my own, I got this file from a customer. And 
I have to use it. Unfortunately.

Best regards,
-André

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


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