Skip to main content

Are there examples of sample CSS for PDF files?


I have been trying to customize the CSS for PDF generation so that I can change the look and feel of the document. I am mainly interested in adding our logo on the cover page. I would also be interested in adding/modifying bits of the headers & footers (not just CSS).

Are there any examples around showing how to change the CSS for PDF generation? I have found this Are there sample XSLT sheets for transforming my guide XML? but it looks as though the information is no longer relevant.

I am struggling to understand the relation between the extra CSS & HTML that we can add for our online guides, and the generated PDF

Any help with this would be appreciated.



Answer this question I have this problem too

Is this a good question?

Score 3
Add a comment

1 Answer

Most Helpful Answer

Hey Fred,

The PDF HTML and the online guide HTML are completely seperate. There isn't a way to change the html of a PDF, but you can modify the CSS through the PDF CSS Appearance setting.

The preview pdf button underneath the textarea where you input the custom PDF css is the best way to view the html structure and test your custom style.

If your guides aren't showing up in the input field of the preview form, make sure that your guides are published because private guides cannot be previewed.

Hopefully that answered your question. Let me know if you have any further questions!

Was this answer helpful?

Score 3
Add a comment

Add your answer

Frederic Nevers will be eternally grateful.