Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Software
User Name
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.


  Search this Thread
Old 06-25-2008, 03:47 AM   #1
LQ Newbie
Registered: Jan 2005
Posts: 8

Rep: Reputation: 0
Unhappy software for merging pdf files

I would like to merge four pdf files as a 2x2 grid. Is there any software available that can help with such a problem?
Thank you very much,
Old 06-25-2008, 05:10 AM   #2
Senior Member
Registered: May 2004
Location: Leipzig/Germany
Distribution: Arch
Posts: 1,687

Rep: Reputation: 54
Google for "merging pdf files" and possibly add "linux" and you shall find what you are looking for.
Old 06-25-2008, 05:13 AM   #3
Swagata Paul
Registered: Jun 2008
Location: Kolkata, India
Posts: 57

Rep: Reputation: 15
u can try---

pdf2ps file1.pdf
pdf2ps file2.pdf
cat >
ps2pdf file12.pdf

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

[See the man page of convert ]
Old 06-25-2008, 05:38 AM   #4
LQ Guru
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
It's easy to turn 4 pdf pages into a 4x1, but 2x2 is a different matter. swagata paul's convert solution led me to look at the manpage of ImageMagick, which has a montage option and deals with pdfs. Check it out.

edit - montage is actually a program in the ImageMagick suite.

Last edited by billymayday; 06-25-2008 at 05:41 AM.
Old 06-26-2008, 08:14 PM   #5
LQ Newbie
Registered: Jan 2005
Posts: 8

Original Poster
Rep: Reputation: 0

Thank you for your suggestions, but the problem is that with imagemagick I loose resolution, that is why I am looking for software that works directly on pdf or ps files.
Old 06-27-2008, 04:13 PM   #6
LQ Guru
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1287Reputation: 1287Reputation: 1287Reputation: 1287Reputation: 1287Reputation: 1287Reputation: 1287Reputation: 1287Reputation: 1287
I dunno but this might help:


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
Merging ,pdf files satimis Linux - General 6 11-21-2007 08:31 PM
Software to batch convert CBR, CBZ files to PDF format JTAL604622 Linux - Software 1 06-11-2007 06:33 PM
Merging Two Files using C++ ckoniecny Programming 5 09-26-2006 09:00 AM
OpenSource software to edit PDF files satimis Linux - Software 14 02-19-2006 05:19 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:25 PM.

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