Welcome! Log In Create A New Profile

Advanced

Improve Image Quality in Generated PDFs

Posted by spivurno 
Improve Image Quality in Generated PDFs
January 24, 2012 07:34AM
Hello,

This service is fantastic. I'm using the HTML to PDF API to generate a PDF on form submission. The PDF is generated from an HTML template which includes both background images and regular HTML images. Everything renders very well except there is some slight blurriness to the images.

Are there any tips or suggestions for improving the image quality? It is pretty good as is but I would love if I could get the clarity a bit sharper. :)
Attachments:
open | download - test.pdf (19.6 KB)
open | download - ounce-logo.png (14 KB)
Re: Improve Image Quality in Generated PDFs
January 24, 2012 11:15AM
Hello,

Try the trick described here in the "Provide High Resolution Images" section. It should make the image appear sharper.
Re: Improve Image Quality in Generated PDFs
January 24, 2012 11:50AM
Hey there,

I'm using the latest version of the API so the "pdf_scaling_factor" is already set to 1.0. Additionally, I'm viewing the PDF at 100% and I'm assuming the second tip about providing higher resolution images only applies to making the image sharper when the user zooms in? I tried that last tip of setting the HTML Zoom to 500; however, I was unable to detect any noticeable difference in the images.

Anything else I could try?
Re: Improve Image Quality in Generated PDFs
January 24, 2012 12:18PM
The second tip should actually improve the image appearance even at 100%.

Try to paste the following code to http://pdfcrowd.com/#convert_by_input and check the resulting PDF. The second image is a higher resolution version of the first image.
<html>
 <body>
  <img src="http://dl.dropbox.com/u/9346438/misc/img275x313.png" />
  <img src="http://dl.dropbox.com/u/9346438/misc/img550x626.png" width="275" width="313"/>
 </body>
</html>
Re: Improve Image Quality in Generated PDFs
January 24, 2012 12:34PM
Thank you. I will work with that. :)
Sorry, only registered users may post in this forum.

Click here to login