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);
|
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.htmlInternally 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!
|