View previous topic :: View next topic |
Author |
Message |
Moriah Advocate
Joined: 27 Mar 2004 Posts: 2367 Location: Kentucky
|
Posted: Mon Nov 09, 2020 1:47 am Post subject: HELP - need to concatenate pdf files into one file |
|
|
I seem to remember that many years ago, there was a tool called pdfcat, or maybe it was pscat. Anyway, it concatenated pdf (or postscript) files into a single file. I can't seem to find it anywhere. Surely this is a common utility. What is it called, and where can I find it? _________________ The MyWord KJV Bible tool is at http://www.elilabs.com/~myword
Foghorn Leghorn is a Warner Bros. cartoon character. |
|
Back to top |
|
|
figueroa Advocate
Joined: 14 Aug 2005 Posts: 2971 Location: Edge of marsh USA
|
Posted: Mon Nov 09, 2020 3:36 am Post subject: |
|
|
Code: | $ pdfunite
pdfunite version 0.90.1
Copyright 2005-2020 The Poppler Developers - http://poppler.freedesktop.org
Copyright 1996-2011 Glyph & Cog, LLC
Usage: pdfunite [options] <PDF-sourcefile-1>..<PDF-sourcefile-n> <PDF-destfile>
-v : print copyright and version info
-h : print usage information
-help : print usage information
--help : print usage information
-? : print usage information
|
It's part of poppler.
Or, look at all these cool binaries:
Code: | $ ls /usr/bin/pdf*
/usr/bin/pdf2dsc* /usr/bin/pdfimages* /usr/bin/pdftocairo*
/usr/bin/pdf2ps* /usr/bin/pdfinfo* /usr/bin/pdftohtml*
/usr/bin/pdfattach* /usr/bin/pdfmom* /usr/bin/pdftoppm*
/usr/bin/pdfdetach* /usr/bin/pdfroff* /usr/bin/pdftops*
/usr/bin/pdffonts* /usr/bin/pdfseparate* /usr/bin/pdftotext*
/usr/bin/pdfgrep* /usr/bin/pdftexi2dvi* /usr/bin/pdfunite*
|
That's what I do when I can't remember a command, or:
Code: | ls /usr/bin | grep pdf |
_________________ Andy Figueroa
hp pavilion hpe h8-1260t/2AB5; spinning rust x3
i7-2600 @ 3.40GHz; 16 gb; Radeon HD 7570
amd64/23.0/split-usr/desktop (stable), OpenRC, -systemd -pulseaudio -uefi |
|
Back to top |
|
|
Moriah Advocate
Joined: 27 Mar 2004 Posts: 2367 Location: Kentucky
|
Posted: Mon Nov 09, 2020 4:45 am Post subject: |
|
|
Thanks my friend. We've been on this forum for many years now, and you've always been very helpful.
I usually just type pdf and then hit tab for completion, but I wasn't looking for "unite"; I was looking for "cat". Apparently I was thinking of pnmcat and got confused. _________________ The MyWord KJV Bible tool is at http://www.elilabs.com/~myword
Foghorn Leghorn is a Warner Bros. cartoon character. |
|
Back to top |
|
|
mike155 Advocate
Joined: 17 Sep 2010 Posts: 4438 Location: Frankfurt, Germany
|
Posted: Mon Nov 09, 2020 1:12 pm Post subject: |
|
|
A much more powerful tool is app-text/qpdf. But it's difficult to get the command line arguments right...
Example (from the man page):
Code: | If you wanted to take pages 1–5 from file1.pdf and pages 11–15 from file2.pdf in reverse, you would run
qpdf file1.pdf --pages file2.pdf 1-5 . 15-11 -- outfile.pdf |
|
|
Back to top |
|
|
figueroa Advocate
Joined: 14 Aug 2005 Posts: 2971 Location: Edge of marsh USA
|
Posted: Mon Nov 09, 2020 5:49 pm Post subject: |
|
|
qpdf would be lovely to master. Syntax -- ouch. And, it's a dependency of cups-filters. _________________ Andy Figueroa
hp pavilion hpe h8-1260t/2AB5; spinning rust x3
i7-2600 @ 3.40GHz; 16 gb; Radeon HD 7570
amd64/23.0/split-usr/desktop (stable), OpenRC, -systemd -pulseaudio -uefi |
|
Back to top |
|
|
|