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
Joined: Feb 09, 2010
Can any one please look into this and let me know your thoughts on why this is happening like this