Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

A similar replacement seems to be QPDF, which is in the normal repositories and seems in active development. The command line interface is different but mentally easy enough to map (and perhaps more intuitive in the long run).

For instance, I wanted to replace a pdftk cat command and [qpdf --pages](http://qpdf.sourceforge.net/files/qpdf-manual.html#ref.page-selection) seems to do well enough: my command

pdftk input A=A.pdf B=B.pdf C=C.pdf cat A2-5 A8-10 B3-4 B16 B15 B14 B17-18 B25 A7 A6 B19-23 C13 B28 C3-10 C12 C15 C17-22 C24-26 C56 output D.pdf

becomes

qpdf --empty --pages A.pdf 2-5 8-10 B.pdf 3-4 16 15 14 17-18 25 A.pdf 7 A B.pdf 19-23 C.pdf 13 B.pdf 28 C.pdf 3-10 12 15 17-22 24-26 56 -- D.pdf

(Suggestion via HAMS on alt.os.linux.)

A similar replacement seems to be QPDF, which is in the normal repositories and seems in active development. The command line interface is different but mentally easy enough to map (and perhaps more intuitive in the long run).

For instance, I wanted to replace a pdftk cat command and [qpdf --pages](http://qpdf.sourceforge.net/files/qpdf-manual.html#ref.page-selection)qpdf --pages seems to do well enough: my command

pdftk input A=A.pdf B=B.pdf C=C.pdf cat A2-5 A8-10 B3-4 B16 B15 B14 B17-18 B25 A7 A6 B19-23 C13 B28 C3-10 C12 C15 C17-22 C24-26 C56 output D.pdf

becomes

qpdf --empty --pages A.pdf 2-5 8-10 B.pdf 3-4 16 15 14 17-18 25 A.pdf 7 A B.pdf 19-23 C.pdf 13 B.pdf 28 C.pdf 3-10 12 15 17-22 24-26 56 -- D.pdf

(Suggestion via HAMS on alt.os.linux.)

A similar replacement seems to be QPDF, which is in the normal repositories and seems in active development. The command line interface is different but mentally easy enough to map (and perhaps more intuitive in the long run).

For instance, I wanted to replace a pdftk cat command and qpdf --pages seems to do well enough: my command

pdftk input A=A.pdf B=B.pdf C=C.pdf cat A2-5 A8-10 B3-4 B16 B15 B14 B17-18 B25 A7 A6 B19-23 C13 B28 C3-10 C12 C15 C17-22 C24-26 C56 output D.pdf

becomes

qpdf --empty --pages A.pdf 2-5 8-10 2-5,8-10 B.pdf 3-4 16 15 14 17-18 25 3-4,16,15,14,17-18,25 A.pdf 7 A B.pdf 19-23 C.pdf 13 B.pdf 28 C.pdf 3-10 12 15 17-22 24-26 56 3-10,12,15,17-22,24-26,56 -- D.pdf

(Suggestion via HAMS on alt.os.linux.)