pdfbox-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From popoviciu mariana <maryeleon...@yahoo.com>
Subject Converting PNG to PDF
Date Wed, 13 Feb 2013 13:39:32 GMT

I am trying to convert a PNG image into a PDF using pdfbox library.
To have it fitted correctly and to keep the quality I use PDJpeg, but the resulted pdf has
very big size, it's almost ten times bigger than the png file.
I tried to resize the PNG and use PDXObjectImage instead of PDJpeg, but my resize is loosing
the quality of the image.

Can you suggest me a good way to do this: to keep both the quality and size of the image properly?

Thank you!
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message