Hello,
I'm currently investigating whether or not iText will help us solve a
business problem for a client of ours. However, I am experiencing a problem
trying to get the generated PDF Document to contain a JPG image. There
seems to be some problem as the Server is located in the Middle East. The
Server is an iSeries box running v6r1. The Job the program run under has the
default CCSID set to 424 and the default file.encoding property is
"ISO8859_8".
The problem is that iText doesn't generate the image correctly. It seems to
add the image just fine, however the generated PDF is blank and the
following error is displayed on the console:
sun.awt.image.ImageFormatException: Bogus marker length
at java.lang.Throwable.<init>(Throwable.java:195)
at java.lang.Exception.<init>(Exception.java:41)
at
sun.awt.image.ImageFormatException.<init>(ImageFormatException.java:12)
at
sun.awt.image.JPEGImageDecoder.produceImage(JPEGImageDecoder.java:144)
at
sun.awt.image.InputStreamImageSource.doFetch(InputStreamImageSource.java:254
)
at
sun.awt.image.ImageFetcher.fetchloop(ImageFetcher.java:172)
at sun.awt.image.ImageFetcher.run(ImageFetcher.java:136)
After reading the image into a byte[], I immediately print it out to a
different file, to see if everything was read in correctly, which seems to
be the case since the file winds up containing a copy of the JPEG.
Does iText have the ability to work in foreign environments?
Thanks,
Timothy Budzinski
CYBRA Corporation
(914)963-6600 Ext 219
<mailto:[email protected]> [email protected]
<http://www.cybra.com/> www.cybra.com
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions
iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples:
http://itextpdf.com/themes/keywords.php