#29658

@don ji wrote:

Before 3.8.5fx2, if set the html width to a big number(5000) , and the html page is 1200 width, it will generate the page render as 1200 width.
After 3.8.5fx2, the page will render in PDF as if it’s 5000px long, the rendered PDF content is very small although there’s no need for scaling.

Looks like the adjustHtmlWidth is broken since 3.8.5fx2 and thereafter.

“adjustHtmlWidth() is needed in situations like the following: you have a wide table, whose width is not constant (depends on the table content). In order to avoid table cut right side, you may define very big htmlWidth value and trigger adjustHtmlWidth(). Lets’s say htmlWidth=1200, actual table width is 980. In the case PD4ML will render the document assuming htmlWidth=1200 and analyze a right edge location of the content. In our case it is 980, so it will auto-reduce htmlWidth to 980.