Welcome Guest Search | Active Topics | Sign In | Register

HTML to PDF - style sheets? Options
john.cleve
Posted: Thursday, January 31, 2013 3:29:16 PM
Rank: Newbie
Groups: Member

Joined: 1/31/2013
Posts: 3
Can I define styles directly before converting to PDF or do they have to be inline styles in the HTML?
eo_support
Posted: Thursday, January 31, 2013 3:36:12 PM
Rank: Administration
Groups: Administration

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

You can reference external styles with <style> tag or use inline style. If you use ConvertHtml and use <style> tag, make sure you set HtmlToPdf.Options.BaseUrl, otherwise the converter wouldn't know where to find the style files. If you use ConvertUrl, then you do not need to do anything special.

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.