LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Which tool for merging PDF-files? (https://www.linuxquestions.org/questions/slackware-14/which-tool-for-merging-pdf-files-4175453632/)

rkelsen 03-11-2013 07:29 PM

I use PDFSAM. The only catch is that it requires a working Java runtime.

It is brilliant though.

Download the zip file from here:

http://www.pdfsam.org/download/

markush 03-12-2013 03:02 AM

Quote:

Originally Posted by allend (Post 4909528)
And just for fun here is a script that combines .pdf files into a single bookmarked file http://www.linuxquestions.org/questi...ml#post4382364

I've just tried it out, it works here texlive-2012 as well (which I expected). Indeed a nice idea :)

Markus

joghi 03-12-2013 08:40 AM

Hm, guess I'm a little bit late, but I've used pdfjam
http://www2.warwick.ac.uk/fac/sci/st...ftware/pdfjam/ quite often (joining pdf-files, inserting balnk pages into pdf-documents etc.) and did not find it in this thread.

markush 03-13-2013 09:13 AM

So my new hobby is merging PDF-files with different tools :D

I've now installed pdfshuffler from slackbuilds.org, it has a gui and is therefore very helpful when dealing with documents.

As for pdfjam I found out that it is already installed because it comes with texlive. It would be nice if someone could provide an information here if it is also included in tetex (which is Slackware's t-series as you know) which I've not installed.

Again thanks very much for all the helpful suggestions.

Markus

allend 03-13-2013 10:21 AM

Quote:

So my new hobby is merging PDF-files with different tools
I feel that a new SlackDocs page could be brewing. :)

No sign of pdfjam on my default setup, although pdfjam looks like it could be really useful. Thanks to joghi for the pointer.

Bindestreck 03-13-2013 11:30 AM

I use "convert".

markush 03-13-2013 01:26 PM

Quote:

Originally Posted by eXpander_ (Post 4910841)
I use "convert".

I tried it, but I did not get the expected result. All on one page instead all of the inputpages consecutively each on one page.

Markus

markush 03-13-2013 01:27 PM

Quote:

Originally Posted by allend (Post 4910809)
I feel that a new SlackDocs page could be brewing. :)

allend, that's a good idea, I'll write an article next weekend.

Quote:

No sign of pdfjam on my default setup, although pdfjam looks like it could be really useful. Thanks to joghi for the pointer.
Thanks for the information. pdfjam is similar to your script (link some postings above). It uses packages from LaTeX.

Markus

Bindestreck 03-13-2013 01:33 PM

Quote:

Originally Posted by markush (Post 4910906)
I tried it, but I did not get the expected result. All on one page instead all of the inputpages consecutively each on one page.

Markus

Did you try "--append" switch? If I remember correctly that switch appends pdf top to down.

markush 03-13-2013 01:39 PM

Quote:

Originally Posted by eXpander_ (Post 4910912)
Did you try "--append" switch? If I remember correctly that switch appends pdf top to down.

I don't remember exactly which options I've used. I've tried several programs.

I'll write a summary for slackdocs, if I find out how it works, then I will explain it.

Markus

markush 03-14-2013 03:20 PM

I've now added a HOWTO at slackdocs. Please edit this page if you have additional information.

Markus

jlinkels 03-14-2013 06:49 PM

After wasting 15 minutes of my time trying to edit that page, I gave up. This is how to use convert:

Code:

convert -adjoin file1.pdf file2.pdf merged.pdf
jlinkels

markush 03-15-2013 06:27 AM

Quote:

Originally Posted by jlinkels (Post 4911791)
After wasting 15 minutes of my time trying to edit that page, I gave up. This is how to use convert:

Code:

convert -adjoin file1.pdf file2.pdf merged.pdf
jlinkels

Thanks, I've put it into the Howto at slackdocs.

Markus

Bindestreck 03-15-2013 09:38 AM

Quote:

Originally Posted by markush (Post 4912150)
Thanks, I've put it into the Howto at slackdocs.

Markus

This gives very poor quality results due to its internal conversion algorithms. To increase the quality of the output, it is better to read the input PDF files with a higher density (in dots per inch (DPI)) and then resize the output density back to common DPI, 96 for example. I usually use a input density of 600 (after many trial and errors), and then resize with 93.75% (if you dont resize you will get a huge output file).

An example:

Code:

convert -density 600 fileinput_1.pdf fileinput2_.pdf -resize 93.75% output.pdf
One doesnt need -append or -adjoin in this case.

/X

markush 03-15-2013 10:17 AM

Quote:

Originally Posted by eXpander_ (Post 4912244)
This gives very poor quality results due to its internal conversion algorithms. To increase the quality of the output, it is better to read the input PDF files with a higher density (in dots per inch (DPI)) and then resize the output density back to common DPI, 96 for example. I usually use a input density of 600 (after many trial and errors), and then resize with 93.75% (if you dont resize you will get a huge output file).

An example:

Code:

convert -density 600 fileinput_1.pdf fileinput2_.pdf -resize 93.75% output.pdf
One doesnt need -append or -adjoin in this case.

/X

Hi eXpander,

I appreciate your posting, it's a very helpful explanation. It would be nice if you register at slackdocs http://docs.slackware.com/start and edit the Howto yourself in order to add this explanation.

Markus


All times are GMT -5. The time now is 04:31 PM.