From Electron Cloud
(New page: ==Concatenation== * [http://ansuz.sooke.bc.ca/software/pdf-append.php Good discussion of various ways,] and a bash/TeX script too * [http://thierry.schmit.free.fr/dev/mbtPdfAsm/...) |
(→Rearranging pages) |
||
Line 4: | Line 4: | ||
==Rearranging pages== | ==Rearranging pages== | ||
− | If one pdf contains left-side pages of a scanned book, and another contains the right-side pages, here's one way to fix it | + | If one pdf contains left-side pages of a scanned book, and another contains the right-side pages, here's one way to fix it using [http://www.accesspdf.com/pdftk/ PDFTK]: |
<pre> | <pre> | ||
genranges.scm: | genranges.scm: |
Latest revision as of 18:12, 30 August 2009
Concatenation
- Good discussion of various ways, and a bash/TeX script too
- mbtPDFasm - swiss army knife for PDFs with a terrible name :-) So far doesn't seem to work with all PDF's
Rearranging pages
If one pdf contains left-side pages of a scanned book, and another contains the right-side pages, here's one way to fix it using PDFTK:
genranges.scm: (define lastpage 269) (let loop ([i 0]) (when (<= i lastpage) (printf " A~a B~a" i i) (loop (+ 1 i)))) (exit) csi genranges.scm > r vi r (and delete extraneous stuff) pdftk A=left.pdf B=right.pdf cat `cat r` output c.pdf