LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 05-24-2006, 01:19 PM   #1
Randux
Senior Member
 
Registered: Feb 2006
Location: Siberia
Distribution: Slackware & Slamd64. What else is there?
Posts: 1,705

Rep: Reputation: 54
Can you combine multiple PDFs into one?


Are there any freeware tools for combining multiple PDFs into one on Linux?

Thanks,
Rand
 
Old 05-24-2006, 01:25 PM   #2
robbbert
Member
 
Registered: Oct 2005
Location: Hannover, Germany
Distribution: Let there be Ubuntu... :o)
Posts: 573

Rep: Reputation: 32
iText -- it's a library not an application, BTW
 
Old 05-24-2006, 02:08 PM   #3
Randux
Senior Member
 
Registered: Feb 2006
Location: Siberia
Distribution: Slackware & Slamd64. What else is there?
Posts: 1,705

Original Poster
Rep: Reputation: 54
Thanks...but I can't use it since I refuse to run Java I must continue my search
 
Old 05-24-2006, 03:17 PM   #4
Randux
Senior Member
 
Registered: Feb 2006
Location: Siberia
Distribution: Slackware & Slamd64. What else is there?
Posts: 1,705

Original Poster
Rep: Reputation: 54
I found something pretty nice on accesspdf.com. They have a command line tool for many environments. I just combined about 20 pdfs into one document and it seems to work fine.
 
Old 05-24-2006, 03:50 PM   #5
robbbert
Member
 
Registered: Oct 2005
Location: Hannover, Germany
Distribution: Let there be Ubuntu... :o)
Posts: 573

Rep: Reputation: 32
Thanks for letting us know. I've bookmarked that.
 
Old 05-24-2006, 05:50 PM   #6
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 75
You can use ghostscript to merge pdfs. If you search on google for "ghostscript+merge+pdf", you will get many helpful articles.
 
Old 05-25-2006, 11:30 AM   #7
Randux
Senior Member
 
Registered: Feb 2006
Location: Siberia
Distribution: Slackware & Slamd64. What else is there?
Posts: 1,705

Original Poster
Rep: Reputation: 54
Quote:
Originally Posted by reddazz
You can use ghostscript to merge pdfs. If you search on google for "ghostscript+merge+pdf", you will get many helpful articles.
Thanks, man. There's nothing like looking for a tool only to find you already had it installed on day 1

Actually the stuff I got from accesspdf.com really is quite nice. I used it again today to bundle a bunch of book chapters I downloaded from free book sites. You just type:

pdftk *.pdf cat output whatever.pdf

and it takes all the pdfs and makes them into a file named whatever.pdf. It does have a way that you can specify the order of the input but I find it's just easier to name everything so that it's in alpha order the way I want to include it and then I can use the wildcard.

Last edited by Randux; 05-25-2006 at 11:35 AM.
 
Old 05-25-2006, 01:50 PM   #8
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 75
The method you describe is similar to that used by ghostscript. I will take a look at accesspdf.com at some point.
 
Old 11-21-2007, 03:00 PM   #9
frenchn00b
Senior Member
 
Registered: Jun 2007
Location: E.U., Mountains :-)
Distribution: Debian, Etch, the greatest
Posts: 2,546

Rep: Reputation: 57
The first method is by using convert , directly from the ImageMagick toolkit. You probably already have this one installed on your favourite Linux distribution; if not, almost every known Linux distribution has a package for it. Even if you don't need to edit PDF files you should have it, it is a wonderful swiss army knife for command line image processing. The syntax for merging PDF files is simple:

convert file1.pdf file2.pdf file3.pdf out.pdf

(that is, the last file name is the output file name). This usually works quite correctly, but 1)it is slow 2)I found sometimes has issues with image resolution. So I looked for another solution, and I found pdftk. The name stands for "PDF ToolKit", and really it is. It is a free (open source under the GNU GPL), wonderful command line utility that with a bit of magic allows you to manage PDF files from the command line. It works on Linux, Windows and Mac. pdftk can merge PDF documents, split PDF pages into a new document, rotate PDF Pages or Documents, decrypt and encrypt, fill PDF forms, apply a background watermark or a foreground stamp, burst a PDF Document into single pages... whatever.

The syntax for merging with pdftk is almost as simple:


pdftk file1.pdf file2.pdf file3.pdf cat output out.pdf

You just need to add the magic "cat output" between the input pdfs and the output file name. In comparison with convert, it is truly fast and in my experience gives better results. And it may come handy for when I have to work with PDF files in other ways. Also, KDE users may find nice PDF Concat, a Kommander script that acts as a simple pdftk frontend to merge PDFs.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
combine multiple files into one file? baddah Linux - Newbie 10 09-06-2011 12:22 PM
Combine multiple wmv files to one large file drkstr Linux - Software 4 04-26-2006 12:50 PM
Multiple Boxes to Combine CPU-Power wwnexc Linux - Networking 6 01-24-2006 11:36 AM
Combine multiple WAN connections quentusrex Linux - Networking 3 01-07-2006 02:45 AM
PDFs in PHP Spudley Programming 2 07-27-2005 06:12 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:03 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration