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

Need compression in PDF images

edited September 2011 in Devices
Hello there,

I've been working in a complex system where one of the key elements is the
email transmision of pdf with images. Report Builder makes all the work easy
but at the end I found a very big problem.

Report Builder don't compress images in PDF. In my case, the result is an
email with an attached PDF of 5MB (instead 0.5MB with compression)

This get down all my work because I can't send 5MB messages to a large
percent of email accounts.

Please update this as soon as you can.

Thanks,

Francisco Ruiz

Comments

  • edited September 2011
    Can someone at digital metaphors respond me? Thanks
  • edited September 2011
    Hi Francisco,

    I apologize for the delayed response. Yesterday was a holiday in the US :).

    Currently the built-in RB PDF device only supports including bitmap
    images inside an exported PDF file. These bitmaps are then compressed
    using the zlib library. You can try increasing the
    PDFSettings.ComressionLevel property to save more space. Also try
    setting the ScaleImages property to True and see if that helps.

    We will consider researching and possibly adding more image compression
    to the PDF device for a later release (i.e. JPEG compression). Thanks
    for your feedback.

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited September 2011
    Ops..nice holiday!

    Thanks Nico for your response. I'm using compressionLevel to the max and
    ScaleImages don't makes any relevant result. Looking at your code it's looks
    not too dificult to change bitmaps for JPEGs in the renderer of PDF but
    version 12 is the first Report Builder version where I haven't change
    nothing to adapt to the behavior of my software except preview and
    autosearch dialogs and I want to remain this way.

    Please consider updating report builder PDF generation, this is a important
    feature.

    Thank you very much.

    Francis
  • edited September 2011
    Hi Francis,

    You are correct, changing the image from a bitmap to a JPEG is very
    simple in Delphi. It however is not a trivial task to get the JPEG to
    show up correctly in the PDF file. This would likely involve altering
    the PDF file output as well as processing the image stream so it can be
    read by any PDF reader.

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited September 2011
    Thank you for your response Nico. I will wait for future updates in this
    area.

    Best Regards,

    Francis

This discussion has been closed.