How can I split (tile?) one huge PDF onto multiple pages? The result should be one PDF with multiple A4 pages or several A4 PDFs.
I'm not looking for a solution specific to this method of generating the problem: the input PDF has been generated by Graphviz dot
, eg. dot -Tpdf sample.dot > sample.pdf
. When I did not add a size="8,11"; ratio="fill";
to the graph the output PDF is very large. If I add the size/fill-hints dot
only scaled things down for me.
Lets give you one example, if my original PDF was huge like this:
+-------------------+
| |
| O |
| : |
| :..........C |
| : : |
| : : |
| : : |
| : G |
| : : |
| : : |
| : : |
| : : |
| U : |
| B |
| |
+-------------------+
This should be split by a command like
pdftile sample.pdf -x 2 -y 3 > sample-2x3.pdf
into
+---------+---------+
| | |
| O | |
| : | |
| :......|...C |
| : | : |
+---------+---------+
| : | : |
| : | : |
| : | G |
| : | : |
| : | : |
+---------+---------+
| : | : |
| : | : |
| U | : |
| | B |
| | |
+---------+---------+