Yesterday I switched to Trisquel from Ubuntu and found out that pdftk is not
available in Trisquel because it depends on some propriatory stuff even
though pdftk itself is free software.
I used to use pdftk to merge two pdf files, the first of which consisted of a
scanned file with correct page order (1, 3, 5, 7 ...) while the second
consisted of a scanned pdf file with wrong (opposite) page order (... 8, 6,
4, 2). These file were the result of scanning a copy with duplicate pages in
two steps (first the uneven, then the even pages) on a scanner/copying
machine.
To merge the two files correctly I did the following:
# Split file with correct page order into single pdf files:
pdftk $1 burst output page_%04da.pdf
# Make the file with wrong (opposite) page order have the correct page
order:
pdftk $2 cat end-1 output fil3.pdf
# Split the resulting file into single pdf files:
pdftk fil3.pdf burst output page_%04db.pdf
# Join all the files into one pdf file based on the file names
pdftk page_*.pdf cat output output.pdf
Any idea of how this can be done with the tools provided in Trisquel?
Best regards
Filologen