pmeerw's blog

24 Mar 2020

Tue, 24 Mar 2020

Working with PDF, on the command line

Using two small tools from poppler-utils package... pdftk or qpdf might work as well.

Splitting a PDF document: pdfseparate in.pdf out%d.pdf, can specify the first and last page using -f and -l

Merging PDF documents: pdfunite in1.pdf in2.pdf out.pdf

It would be nice if pdfseparate supported more format specifiers, not just %d; %0d would be useful working with large documents.

posted at: 11:50 | path: /projects | permanent link

Made with PyBlosxom