PDF Generating Tool Support Forum

HOME   Login   Register    Search




  Subject: Prevent images being scaled
   PostPosted: 02 Jun 2009, 06:09 
My html includes references to images. When producing the PDF from the HTML, the images are scaled for some reason, causing anti-aliasing issues and display problems on the image.

Is there any way to prevent this scaling from happening for images?


  Subject: Re: Prevent images being scaled
   PostPosted: 10 Jun 2009, 20:37 
As a rule images prepared for regular HTML documents have a resolution, which is not sufficient for print or for PDF. It is because print resolution typically ranges from 300dpi up to 1200dpi, while screen resolution is usually only 72dpi to 96dpi.

PD4ML never resamples images, but embeds them "as is" (JPEGs and some species of PNG) or re-compress them non-lossy way to generic PDF image formar (GIFs and the rest of PNGs).

A solution would be to use more detailed source images. For example:

You'll get better results if you add a hi-res image (let's say 1000x1000px) to your doc with an image tag defines smaller dimensions <img src="..." height=100 width=100>. It will be embedded to PDF with the all detailization of the original 1000x1000px image (good zoomable / good printable), but shrinked to 100x100. That would allow you to keep the original HTML layout not broken by the huge 1000x1000 image.

Also we would recommend you to use JPEG image format (probably with the highest image quality settings) for such big images. JPEGs are embedded "as is" and it keeps the resulting PDFs compact. For example, GIF needs to be recompressed, which makes the resulting PDF to grow.


  Subject: Re: Prevent images being scaled
   PostPosted: 13 Jun 2009, 14:56 
Some more info about hi-res image printing:
http://www.alistapart.com/articles/hiresprinting/

Note: PD4ML ignores print CSS media type and respects only stylesheets defined for all, screen and proprietary pdf media types.



[Reply]     [ 3 posts ] 

cron
Copyright ©2004-10 zefer|org. All rights reserved. Bookmark and Share