Need compression in PDF images
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
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
This discussion has been closed.
Comments
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.
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
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
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.
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
area.
Best Regards,
Francis