Is there a new version of the “Creating HTML Reports in PowerShell” e-book? It seems like the version that is on the website now is incomplete.
The PDF export on Penflip is a little unreliable. Try downloading a different format; it’s really intended to produce ebook formats like EPUB. You can always use Calibre if you personally prefer PDF from that.