Welcome Guest Search | Active Topics | Sign In | Register

PDF Rendering from HTML has changed between versions 16.1.68 and 16.2.9 Options
LINQ IT
Posted: Friday, September 16, 2016 2:59:42 PM
Rank: Advanced Member
Groups: Member

Joined: 11/8/2015
Posts: 42
I have a document I'm converting from HTML to PDF and the rendering changed from versions 16.1.68 and 16.2.xx

I will email in a sample project.
eo_support
Posted: Friday, September 16, 2016 5:41:35 PM
Rank: Administration
Groups: Administration

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

Please modify your HTML to remove percent height. You have code like this in your HTML:

Code: HTML/ASPX
<div style="width: 100%; height: 33%" ..>


This works well with a regular browser because for a regular browser the window size is fixed first, then the layout is run. This works because whatever overflows the window will be handled by scrollbars on the browser window. For the HTML to PDF converter it works slightly differently because it does not have scrollbars, so it must try to automatically figure out the "proper" window size --- in another word, the window size depends on the content size. If you make the content size depends on the window size in your HTML then it will form a dependency loop and it won't work well.

A few default parameters in this auto size detecting process has been changed between 16.1.18 and 16.2.xx, this caused significantly different result for your case. The best way to avoid such issues is to make sure you do not use percentage size (particular height since paging is involved).

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.