When programmatically creating a PDF document using iText, I'm able to insert a JPG image into the document's header on my local environment (Windows XP). However, when executing the same code on our test environment (Linux based), iText throws an exception claiming the image file "is not a recognized imageformat", in com.lowagie.text.Image.getInstance(...). I have verified the following:
- The image files on the local and test environment are identical JPG files
- The iText JAR file on both environments is the same (version 1.4.3)
- The JPG really does show up in the created PDF on my local/Windows environment
- The JVM in both environments is 1.5.0_09
Can anybody think of anything else I should try and/or verify? Is there some weird difference between the ways the JPG is loaded between Windows and Linux environments?
Thanks
EDIT: Updated to reflect that the JVM is the same in both environments.