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?
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,217
|
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.htmlThanks!
|
Rank: Member Groups: Member
Joined: 9/26/2023 Posts: 10
|
That did not work
|
Rank: Member Groups: Member
Joined: 9/26/2023 Posts: 10
|
My bad. works perfect!
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,217
|
Great!
|