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?
|
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!
|