text file to PDF file converter


History

This is on the hercules section of my site. Hercules has a feature where printer output can be piped to a script for processing rather than just being written to a text file.

I was using that to create seperate text files for each jobs output but then thought it would be nice to provide the output as PDF as well as text. It has a chunk of code in it dedicated to handling random line breaks the hercules printer will pass which you can remove if you only intend to use it as a text to PDF converter.

Documentation

Pretty much none at all. I wrote this to be driven from my print stream processing script rather than manually by anyone. But the syntax is basically
makepdf infile.txt outfile.pdf

Limitations: only text data can be passed to the script, a text PDF document is created, there must be no binary data in it. Also the pages are not built into a multi-tree structure, just hung off one parent, so large documents may be slow to view; although I have used it to create a 300 page PDF without any issues.

Download

As noted above it is part of my printer processing script so is bundled with that in the hercules section; just extract the makepdf script from that.
The ifiles are in the hercules software section, but this is a direct link to the bundled scripts

Support notes

Unsupported. Use if you think it is usefull to you, no enhancements are likely.