Welcome Guest Search | Active Topics | Sign In | Register

HtmlToPdf Resolution Options
Mark
Posted: Sunday, March 30, 2014 4:09:30 PM
Rank: Newbie
Groups: Member

Joined: 3/20/2014
Posts: 2
Hello. Is there a way to adjust the resolution of the result PDF produced by the function HTMLToPDF()? HTML is string not a URL. Thank you.
eo_support
Posted: Sunday, March 30, 2014 4:27:58 PM
Rank: Administration
Groups: Administration

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

Usually you do not need to adjust the PDF resolution. The text in the result PDF file are already in vector format, so you can zoom in on them infinitely without losing quality. For images in your HTML, we automatically retain your original resolution. So if your original image is 1200 DPI, then the result image in the PDF will be 1200 DPI. As such there is no point to adjust the resolution since there is no way to go higher quality than your original image.

If the result PDF file is too big and you want the resolution to go lower, you can set HtmlToPdf.Options.JpegQualityLevel. Reducing that value to reduce image quality and reduce the final PDF file size.

Thanks!
Mark
Posted: Monday, April 7, 2014 4:07:18 PM
Rank: Newbie
Groups: Member

Joined: 3/20/2014
Posts: 2
Thank You.


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.