merge pdf files
Join several PDF files into one, and take pages out of one.
Steps
-
pdfunite a.pdf b.pdf c.pdf all.pdfjoin them in that order (poppler-utils)
-
qpdf --empty --pages a.pdf b.pdf -- all.pdfthe same with qpdf
-
qpdf in.pdf --pages . 1-3 -- first.pdfkeep only pages 1 to 3
-
gs -dBATCH -dNOPAUSE -q -sDEVICE=pdfwrite -sOutputFile=all.pdf a.pdf b.pdfwith Ghostscript, which also shrinks them
Commands used
pdfuniteqpdfgs
Each has a page in lore: lore pdfunite opens it.
Related recipes
- add to the end of a fileAdd lines to a file without replacing it, also to a file only root can write.
- argument list too long"Argument list too long" from rm, cp or mv: too many files for one command line. Hand them over in batches.
- change permissions of a folder and everything in itGive a folder, its subfolders and its files the permissions or the owner they need, without making them open to everyone.
- check a file's permissionsSee who may read, write and run a file or a folder, and why a path is refused.