User:Simon/Trim4/PDF imposition: Difference between revisions
No edit summary |
No edit summary |
||
Line 13: | Line 13: | ||
#burst the source PDF | #burst the source PDF | ||
$ pdftk source.pdf burst output source-%d.pdf | $ pdftk source.pdf burst output source-%d.pdf | ||
#impose the resulting burst single page PDFs | #impose the resulting burst single page PDFs | ||
#impose 2up on a page using imagemagick montage command | #impose 2up on a page using imagemagick montage command | ||
#assemble imposed PDFs into a single file | #assemble imposed PDFs into a single file |
Revision as of 16:12, 24 September 2019
Hackpact 1: PDF imposition
Premise: Trying to write my own script(s) to impose pages from a source PDF:
24.09.19
Working towards having a python script to iterate recursively over pages in a PDF.
First, I'm working out which commands to use from the command line. The process should be as follows:
#burst the source PDF $ pdftk source.pdf burst output source-%d.pdf
#impose the resulting burst single page PDFs
#impose 2up on a page using imagemagick montage command
#assemble imposed PDFs into a single file