This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Other Java Products and Servers and the fly likes Insufficient data for an image error when opening a PDF generated by iText Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Products » Other Java Products and Servers
Bookmark "Insufficient data for an image error when opening a PDF generated by iText" Watch "Insufficient data for an image error when opening a PDF generated by iText" New topic
Author

Insufficient data for an image error when opening a PDF generated by iText

venkata vinay bysani
Greenhorn

Joined: Feb 09, 2010
Posts: 25
Hi All,

I am doing JPG to PDF conversion for this i am using iText, for some JPG images its working perfectly but for few JPG images the code is executing with out any errors but while opening the generated PDF, i am getting the error as "Insufficient data for an image" and the page is blank.
Utility i am developing should be converting 100's of JPG to PDF per day, so it will be problem for checking all the generated PDF's for the errored once, so need to have a fool proof conversion to be happened.

The problem is not with the resolution as the utility has converted many images which has larger resolution than this.

If i open the same JPG in paint and do save as to a new file and give that file to the code then its converting to PDF with out any problem.

Is it problem related to the JPG file and do this can be handled at code level

venkata vinay bysani
Greenhorn

Joined: Feb 09, 2010
Posts: 25
Hi All,

Can any one please look into this and let me know your thoughts on why this is happening like this
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Insufficient data for an image error when opening a PDF generated by iText
 
Similar Threads
image clarity for jpeg after converting to pdf using iText
image clarity for jpeg after converting to pdf using iText
How to Scale Images Without loosing readability of images?
iText pdf image conversion
Providing dynamic content from separate web/app servers