• 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:

iText getDpiX() returns zero and cannot maintain originality in .png

 
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am trying to print a .png file into pdf and I want the same clarity inside the pdf.
I was trying to
png.scalePercent(72f / jpg.getDpiX() * 100);
but getDpiX() returns zero.
Is there any way to keep the images as it is in pdf rather than default dpi.
The images are large in number and I cannot do something like
png.scalePercent(75);

Please provide me a mechanism where I can preserve the originality of any .png image on pdf.
 
Do not set lab on fire. Or this tiny ad:
Clean our rivers and oceans from home
https://www.kickstarter.com/projects/paulwheaton/willow-feeders
reply
    Bookmark Topic Watch Topic
  • New Topic