Printing a html file to PDF loses HTML formatting
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:

Let us know if this worked for you.