I have this standalone report in html. CSS styles are all embedded within the html itself.

enter image description here

When I tried to print to a pdf file, the pdf output becomes

enter image description here

I basically lost all the formatting in the html. Both chrome or safari produce the same result.

How can I get a PDF that preserves the format?

1 Answer 1


The default setting for printing webpages is to try not printing extra images and colors to waste ink etc. Theres an option to print everything, see image below:

Printer settings

Let us know if this worked for you.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .