The pyhton stuff installed but failed due to missing dependency. I didn't want to pursue that.
The wkhtmltopdf solution works quite well. The perl module around it sucks, as it does not offer any features beyond the program itself. I would have hoped for it to support streaming (piped input, piped output), but all it does is pass the arguments to the system command. I can do that myself.
Pod::Html shows its age. Not well thought through, sadly. Even if one uses local *STDOUT;, there is no way to get its output caught. This module also doe not support piping/streaming.
I ended up with the code below (feel free to use, alter or comment on), where I still note a few drawbacks …
- Page wraps are unclean. On many page breaks the top half of a line is on the end of one page, the bottom half is on the next
- CSS like text-align: justify; doesn't work very well.
Enjoy, Have FUN! H.Merijn
|