Home General
New Blog Posts: Merging Reports - Part 1 and Part 2

PDF Size with Image is much smaller that the image

Hi
I have images of around 950k. They are Jpeg. If I add to to a TpImage and tick stretch, the resulting PDF is only 135k.
If I untick stretch, the PDF file is 250k. PDA settings compression level is 1, Print scale is false, Scale images is false, however these 2 settings have no effect on the PDF size. I'm using version 21 with Delphi 10.3 Rio. Is there any way to at least keep the image size? It's unreadable at the moment.
Thanks

Comments

  • Hi Andy,

    Setting PDFSettings.ScaleImages to false will export the original image to PDF.

    If you are loading templates, be sure you are setting this property after the template is loaded or it will be overwritten.
    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • Thats great, setting these afetr the template loads, sorts it.

    ppReport1.PDFSettings.ScaleImages := False ;
    ppReport1.PDFSettings.ImageCompressionLevel := 1 ;
Sign In or Register to comment.