Creation and Manipulation of PDFs
download=http://download.gna.org/wkhtmltopdf/0.12/0.12.3/wkhtmltox-0.12.3_linux-generic-amd64.tar.xz
wget $download -O wkhtmltox.tar.xz
tar xf wkhtmltox.tar.xz
sudo mv wkhtmltox/bin/* /usr/local/bin/
rm -Rf wkhtmltox*
The program pdfposter can turn a single page into a multi-page poster.
After a lot of searching on the interwebs I finally found a simple and reliable way to do this seemingly simple task.
Writeup source files can be used to automatically create pdfs using the very useful tool: wkhtmltopdf
This can be installed in a Debian-based system (such as Ubuntu) with:
sudo apt-get install wkhtmltopdf
It is now possible to convert a writeup file to a pdf in two automated steps:
writeup myfile
wkhtmltopdf -s Letter -L 20 -R 20 -T 15 --zoom 1.2 myfile.html myfile.pdf
Options:
- -s Letter - paper size
- -L 20 - Left margin 20mm (ditto for R T and B)