Rank: Newbie Groups: Member
Joined: 4/10/2012 Posts: 1
|
Hi, I'm evaluating your product and it works great with a simple html file I have (25KB).
The only problem I see is the final size of the converted pdf file (125KB). Is there any way to minimize this size (by enabling compression or other feature)?
Thanks.
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,218
|
Hi,
Compression is always automatically enabled. Two things contribute most to the PDF file size: embedded font and images.
All fonts used are automatically embedded in the PDF file by default. This way the file can be viewed on a system without the original font installed. You can set PdfDocument.EmbedFont to false to turn this off thus reducing the final file size. Note that even if you set this property to false, it will still only skip most commonly used fonts.
If your file contains image, then images will be embedded in the PDF files as well. To reduce file sizes, you can lower HtmlToPdfOptions.JpegQualityLevel to reduce the image quality, thus reducing the file size. The default value is about 80 for that property.
Hope this helps.
Thanks!
|