Rank: Newbie Groups: Member
Joined: 6/30/2025 Posts: 2
|
Hi all,
We are using EO.Pdf to create PDF reports for the data entered by our users in the forms that we provide for them.
The reports that we create are mostly straight forward PDF's in A4 or letter format and contain, next to standard paragraph text, mostly tables and sometimes quite some images, up to 40 in one pdf.
The images are compressed to approx 150kb each. And other than this, there is no heavy content (in terms of size).
Nevertheless, the pdf's that we create can easily be approx 30-50 mb which seems way more than all the data withing the pdf combine.
Is there a way to reduce the file size of these PDF's? And is this something we can do through EO.pdf or do we need to use an (additional) compression tool to accomplish this?
Thank you
Bart
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,384
|
Hi, Please send the result PDF file to us and we will look into it to see what's taking up space. You can send the file to us through contact us page: https://www.essentialobjects.com/contactThanks!
|
Rank: Newbie Groups: Member
Joined: 6/30/2025 Posts: 2
|
Just shared the pdf through your contact page.
Thank you
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,384
|
Hi,
The large size is mostly caused by the large size of the images in the file. For example, the two images on page 3 under section E.5.1 are each 5712 pixel width and 4284 pixel height, even though the on screen display size is about 328 by 248. This is about 1/20 on each demension. If the images were in screen resolution, the image data size would be about 1/400 of the original size.
However the file does not appear to be generated by our library. If you use our HTML to PDF converter to create the file from HTML file, then you can set HtmlToPdfOptions.JpegQualityLevel to a lower value and it should reduce the file size. Alternatively, you can also replace the images used in your HTML with a lower resolution image.
Hope this helps. Please feel free to let us know if you still have any questions.
Thanks!
|