Welcome Guest Search | Active Topics | Sign In | Register

htmltopdf Options
MrpDude
Posted: Wednesday, January 17, 2024 4:20:57 PM
Rank: Member
Groups: Member

Joined: 9/26/2023
Posts: 10
Does htmltopdf use the @media print styles? When I open my html in Chrome the border is black and when I right-click to print, the border is red. Both as designed. When I convert htmltopdf it is black as if it were not recognizing the @media print. If this is by design, how do I handle page breaks if it is always 'on' even when viewing?
eo_support
Posted: Wednesday, January 17, 2024 4:29:36 PM
Rank: Administration
Groups: Administration

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

By default it uses screen media. You can switch to print media by setting this property to true:

https://www.essentialobjects.com/doc/eo.pdf.htmltopdfoptions.useprintmedia.html

Thanks!
MrpDude
Posted: Wednesday, January 17, 2024 4:48:36 PM
Rank: Member
Groups: Member

Joined: 9/26/2023
Posts: 10
That did not work
MrpDude
Posted: Thursday, January 18, 2024 4:04:20 AM
Rank: Member
Groups: Member

Joined: 9/26/2023
Posts: 10
My bad. works perfect!
eo_support
Posted: Thursday, January 18, 2024 9:59:33 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,088
Great!


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.