Welcome Guest Search | Active Topics | Sign In | Register

HtmlToPdfSession RenderAsPDF renders US Letter page size and not A5 since 2025.2.64 Options
Mark
Posted: Monday, December 8, 2025 7:51:16 AM
Rank: Newbie
Groups: Member

Joined: 12/8/2025
Posts: 2
Since upgrading to 2025.2.64 the RenderAsPDF is rendering the page in US Letter size. This is despite setting the HtmlToPdfOptions PageSize to the size that we require which is A5 (5.84x8.26). We have isolated the change to the upgrade from 2025.2.36 to 2025.2.64
eo_support
Posted: Monday, December 8, 2025 10:32:10 PM
Rank: Administration
Groups: Administration

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

Version 2025.2.64 will uses the page size specified by the @page CSS directive in the HTML page if one exists and if your conversion mode is set to Integrated. If conversion mode is not Integrated (Classic), then it will only use @page CSS directive if UsePrintMedia is true and PageSizes is not set.

We will change the behavior in Integrated mode to match the behavior in Classic mode in term of PageSizes so that you will always be able to override @page CSS style with PageSizes in both mode. We will reply here again when the new build is available.

Thanks!
Mark
Posted: Tuesday, December 9, 2025 5:39:43 AM
Rank: Newbie
Groups: Member

Joined: 12/8/2025
Posts: 2
Thanks for the quick response. We are using the @page directive going forward but would be useful to have the override in a future release as suggested.


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.