Welcome Guest Search | Active Topics | Sign In | Register

HtmlToPdf.ConvertUrl Style media="print" Options
Harry50
Posted: Thursday, July 21, 2011 5:33:41 AM
Rank: Member
Groups: Member

Joined: 7/21/2011
Posts: 12
Hi,

is it possible to style e.g. a button with the CSS media="screen" so that
the button ist visible in the html page but not in the PDF?

Best regards,
Harry
eo_support
Posted: Thursday, July 21, 2011 7:26:44 AM
Rank: Administration
Groups: Administration

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

No. Html to PDF is not "printing" the HTML file. The goal of the converter is to render the HTML file to a PDF the same way as it would have been rendered on screen. If you wish the output PDF to be different, then your HTML has to be different. For example, one way to do it is to add additional query string argument so that your server side code can hide/show the button based on the argument.

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.