Developer forum

Forum » Templates » pdf=true layout parameters

pdf=true layout parameters

Thomas Schroll
Reply

Hi

Does there exist any documentation about layout of generated pdf files? I have trouble styling the pdf and it would be great to know what css can be used and how. I would also like to know which browser is similar to pdf regarding styling, so that I can see the layout without generating a pdf every time?

Regards Thomas


Replies

 
Morten Bengtson
Reply

I would use a separate (and simple) layout for PDF. To switch the layout template used for rendering a page, you can provide an extra parameter, like this: /SomePage.aspx?LayoutTemplate=Designs/MyDesign/pdf.html&PDF=true

The PDF generator (ABCpdf) uses MSHTML as the layout engine and the rendering depends on what version is installed on the server. You can read more about HTML/CSS rendering in the documentation for ABCpdf.

Preview in IE and keep it simple :)

 
Thomas Schroll
Reply

Thanks :)

 

You must be logged in to post in the forum