Welcome Guest Search | Active Topics | Sign In | Register

Html to PDF image scaling support Options
Andy
Posted: Tuesday, August 15, 2023 5:32:34 PM
Rank: Newbie
Groups: Member

Joined: 8/14/2023
Posts: 2
We need to scale down image sizes in html pages to 96di. we tested a page recently that resulted in a 3.4MB pdf file. Using a competitor's tool this same file resulted in a pdf of 900KB because image scaling is supported by that tool.

Does EO.Pdf support image scaling?

Our code: HtmlToPdfResult r = HtmlToPdf.ConvertUrl(htmlPage, stream);
eo_support
Posted: Sunday, August 20, 2023 2:34:52 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,217
Hi,

Sorry about the delay. We do not directly support image scaling but you can use this property to lower the image quality:

https://www.essentialobjects.com/doc/eo.pdf.htmltopdfoptions.jpegqualitylevel.html

Internally images are compressed in JPEG format. This property controls the JPEG compression quality, the lower the number, the less the data size.

Please let us know if this works for you.

Thanks!


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.