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.
|
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!
|
Rank: Newbie Groups: Member
Joined: 3/20/2014 Posts: 2
|
Thank You.
|