Hey hey, me again.
Just added support to create PDFs using
htmldoc. (Why create PDFs? Well, then images and links work.)
Just download and install htmldoc (I suggest using MacPorts) and the new version of the script (0.4), rename the script lit2pdf, and you're off.
Edit to add: Posted 0.5 and 0.6. 0.5 is some slight code cleanup and doesn't really warrant a new version except I wanted to have it to go back to if 0.6 fell flat on its face. 0.6 will increase the image sizes in PDFs.
Edit again: 0.7! 0.7 will copy title and author over to the pdf.
Known problems:
- The script is turning into an ugly mess of spaghetti code.
- Images in PDFs will be tiny. Seems to be htmldoc's doing. I might try and figure out a way to scale the images up before making the PDF.
- Metadata isn't copied over to the PDF. (htmldoc has no way to specify it) Instead, the title for the file will be the title for the HTML file inside the lit, which is usually ugly but usable. No author will be listed (at least, it wasn't in the one I made...).