Welcome Guest Search | Active Topics | Sign In | Register

Pdf generated from old version of EO is total different than new one Options
ravi
Posted: Friday, August 25, 2017 5:04:14 PM
Rank: Member
Groups: Member

Joined: 8/25/2017
Posts: 10
We currently use EO.Pdf version 6.0.18.2 and trying to use new version 17.2.43.0 . When we generate pdf with same html and code . The output looks totally different plus old EO generates 20 pages , new one generates over 30 pages. Fonts look big . I can send sample project to look . Please let me what settings we can use to make it look similar and let me know if you need additional information.
eo_support
Posted: Friday, August 25, 2017 6:28:49 PM
Rank: Administration
Groups: Administration

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

Please try to set HtmlToPdf.Options.ZoomLevel to a value less than 1 and see if it resolves the issue for you. The new version uses a much newer browser engine and also a default zoom level. Most of the time this would not cause any difference because for most page, the automatically determined zoom level will override the default zoom level. However in certain cases the final zoom level can be different between the two versions. When the font is too big, it is usually because the automatically determined zoom level is not small enough.

There are two ways to force a smaller zoom level:

1. To explicitly set HtmlToPdf.Options.ZoomLevel to a value less than 1, or
2. To explicitly add something in your HTML to enforce a minimum width. For example, if you add "<div style='width:1000px;height:1px'></div>" in your HTML, the HTML to PDF converter will detect that and understand that the page needs to be at least 1000 pixel wide. Since the paper width is fixed, a larger pixel width would result in a smaller zoom level value.

You can find more information about zoom level here:

https://www.essentialobjects.com/doc/pdf/htmltopdf/auto_fit.aspx

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.