Paste HTML code, click print, and choose Save as PDF in the print dialog. Or press Ctrl+P on any webpage to save as PDF.
Inline CSS and images recommended.