Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
HELP - need to concatenate pdf files into one file
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
Moriah
Advocate
Advocate


Joined: 27 Mar 2004
Posts: 2366
Location: Kentucky

PostPosted: Mon Nov 09, 2020 1:47 am    Post subject: HELP - need to concatenate pdf files into one file Reply with quote

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
View user's profile Send private message
figueroa
Advocate
Advocate


Joined: 14 Aug 2005
Posts: 2965
Location: Edge of marsh USA

PostPosted: Mon Nov 09, 2020 3:36 am    Post subject: Reply with quote

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
View user's profile Send private message
Moriah
Advocate
Advocate


Joined: 27 Mar 2004
Posts: 2366
Location: Kentucky

PostPosted: Mon Nov 09, 2020 4:45 am    Post subject: Reply with quote

Thanks my friend. We've been on this forum for many years now, and you've always been very helpful. :mrgreen:

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
View user's profile Send private message
mike155
Advocate
Advocate


Joined: 17 Sep 2010
Posts: 4438
Location: Frankfurt, Germany

PostPosted: Mon Nov 09, 2020 1:12 pm    Post subject: Reply with quote

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
View user's profile Send private message
figueroa
Advocate
Advocate


Joined: 14 Aug 2005
Posts: 2965
Location: Edge of marsh USA

PostPosted: Mon Nov 09, 2020 5:49 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum