Welcome Guest Search | Active Topics | Sign In | Register

HtmlToPdf Background Colours Options
Mog0
Posted: Thursday, September 13, 2018 6:34:08 AM
Rank: Newbie
Groups: Member

Joined: 9/13/2018
Posts: 1
I'm evaluating HtmlToPdf and I'm having trouble with background colours. The pages that I'm trying to convert have background colours but when I convert to Pdf using EO.Pdf, it removes the background colour, like printing in the browser does by default.

Is there a way to turn background colours on?
eo_support
Posted: Thursday, September 13, 2018 8:59:10 AM
Rank: Administration
Groups: Administration

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

We do not have any options that explicitly turn on or off background color. So it must be from your CSS style. Another thing you can check is if you have HtmlToPdf.Options.UsePrintMedia set to true, then it will use your print media CSS rules.

If you still can not find what triggered it, you can try to isolate the problem into a separate test project and send the test project to us:

https://www.essentialobjects.com/forum/test_project.aspx

Once we have that we will look into it and should be able to find out the root cause for you.

Thanks!


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.