May not be what you are looking for, but I had to do something similar. I run a small retail website
and one of the things I have to do is to convert HTML shipping information into a nicely formated packing slip. What I do is run the HTML through a utility called html2ps and then run the resulting postscript through ps2pdf so that our warehouse guys can open a link to PDF docs and print them and stick them in boxes. Fun fun!
I like chicken.