Welcome Guest Search | Active Topics | Sign In | Register

Force body bgcolor to White Options
LikenIt
Posted: Tuesday, May 22, 2012 2:56:35 PM
Rank: Newbie
Groups: Member

Joined: 5/22/2012
Posts: 2
The body of my web page is set to a color like: <body bgcolor="#ffffcc">
Is there any way for the pdf output to not display this color and to show with just a white background?
eo_support
Posted: Tuesday, May 22, 2012 3:03:35 PM
Rank: Administration
Groups: Administration

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

Whatever you want to do you would do it inside your page, not on the HTML to PDF converter. For example, you can completely remove that attribute; or put JavaScript code in your page to conditionally set your body's background color as soon as you detect that your page is running inside our converter. See here for more information on how to detect the converter in your JavaScript:

http://www.essentialobjects.com/doc/4/htmltopdf/eo_js.aspx

Still, the rule is you do it in your page, not on the HTML to PDF converter. Think the HTML to PDF the same as a browser, the only difference is it renders to a PDF file instead of to the screen.

Thanks!
LikenIt
Posted: Tuesday, May 22, 2012 3:45:19 PM
Rank: Newbie
Groups: Member

Joined: 5/22/2012
Posts: 2
Thank you so much. I did it using javascript


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.