working on PDF generation. This is not as easy as HTML
pdfWriteln is silly but kinda works
dropped some dead code
pretty much done