• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Ron McLeod
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

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

 
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 25
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi All,

Can any one please look into this and let me know your thoughts on why this is happening like this
 
This guy is skipping without a rope. At least, that's what this tiny ad said:
Clean our rivers and oceans from home
https://www.kickstarter.com/projects/paulwheaton/willow-feeders
reply
    Bookmark Topic Watch Topic
  • New Topic