Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'A simple way to create PDFs from the command line' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
A simple way to create PDFs from the command line
Authored by: bfr00 on Dec 16, '09 04:50:43PM

The pstopdf method seems interesting but then you have to generate the PS. And groff seems to be the way to do that - but groff is a massively complicated disaster and I can't even figure out how to preserve newlines. So maybe cupsfilter would be better if we can control fonts and maybe also scaling.
Just as an example, how wouid you get a PDF with multilines from this:
ls -1 | groff -Tps | pstopdf -i -o ~/desktop/ls.pdf

Edited on Dec 16, '09 04:52:17PM by bfr00



[ Reply to This | # ]