How to create a script in Ubuntu 14.04 to join several pdf files into one file?

I would like a script that will join several pdf files into one file, using Ubuntu 14.04.  I would need the ability to double click on a file and it would activate the script that would join 4 files on the desktop into one file.  ie 1.pdf, 2.pdf, 3.pdf and 4.pdf into one file called PRS.pdf.
100questionsAsked:
Who is Participating?
 
serialbandConnect With a Mentor Commented:
No, it's a command line tool.  You won't be able to do that without some wrappers.  There are viewers that make use of ghostscript, like evince and gsview, but they only let you view PDFs.

You could try PDF Shuffler if you want a GUI tool. http://sourceforge.net/projects/pdfshuffler/
0
 
gheistCommented:
Ghostscript can do that...
0
 
serialbandCommented:
Install ghostscript in ubuntu
sudo apt-get install ghostscript

Here's an example line on how to combine the files
gs -dNOPAUSE -sDEVICE=pdfwrite -sOUTPUTFILE=PRS.pdf -dBATCH 1.pdf 2.pdf 3.pdf 4.pdf

Open in new window

0
The new generation of project management tools

With monday.com’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

 
100questionsAuthor Commented:
Would I double click a file and this script will run?
0
 
gheistCommented:
You can make shortcut to trippleclick.... No idea though how you pass file name arguments that way...
0
 
ranger1021994Commented:
sudo apt-get install imagemagick

Your script can contain this command
#!/bin/sh
convert *.pdf output.pdf
0
 
100questionsAuthor Commented:
Have not tried this, hopefully it works.
0
All Courses

From novice to tech pro — start learning today.