Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #26198

    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?

    #27257

    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 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 100×100. That would allow you to keep the original HTML layout not broken by the huge 1000×1000 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.

    #27256

    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.

Viewing 3 posts - 1 through 3 (of 3 total)

The forum ‘Troubleshooting’ is closed to new topics and replies.