Creation and Manipulation of PDFs
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:
wkhtmltopdf -s Letter -L 20 -R 20 -T 15 --zoom 1.2 myfile.html myfile.pdf
- -s Letter - paper size
- -L 20 - Left margin 20mm (ditto for R T and B)