Hi,
We have tried 16.2.44 with your test project and it actually works fine.
There has indeed been a change since 16.2.37 regarding how to treat margin right. Consider the following HTML:
Code: HTML/ASPX
<body style="margin-right:200px;">
<div style="width:1000px;margin-left:100px;margin-right:100px;">some contents</div>
</body>
The rules are:
1. Margin right on the body element is always ignored since the page margins is already set through HtmlToPdfOptions.PageArea;
2. Before 16.2.37, the right margin on the inner DIV is also ignored, reason being that it only contribute blank space on the right;
3. From 16.2.37, the right margin is NO longer ignored. The reason is the designed intention for the above HTML could be that user wants the DIV to align to the middle (with equal left and right margin), since we must take the left margin (otherwise it will be misaligned with other elements), we decided to take right margin as well;
So you may want to check your right margin settings in your page and clear them if needed.
Thanks!