5

How to Merge PDF Files

 3 years ago
source link: https://jdhao.github.io/2021/05/31/how_to_merge_pdfs/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

How to Merge PDF Files

2021-05-31164 words 1 min read 17 times read

I have several PDF files that I want to merge to one file. Each page in the PDF is actually an image. Here is what works best for me.

Use pdfunite from poppler-utils package:

Pdfunite provided by package poppler-utils can be used to achieve our goal:

pdfunite a.pdf b.pdf output.pdf

The size of produced PDF file is small (about the sum of size of a.pdf and b.pdf). The image quality is well preserved.

Use convert from imagemagick:

convert a.pdf b.pdf output.pdf

The images in the produced pdf have very poor quality and is blurred to be hardly recognizable. We can use -desnity option to increase the image quality:

convert -density 200 a.pdf b.pdf output.pdf

This time, the image quality improves greatly, but the size of produced file also increases greatly (significantly larger that what is produce by pdfunite).

Overall, using pdfunite is the best choice.

Author jdhao

LastMod 2021-05-31

License CC BY-NC-ND 4.0

Reward
公司应该怎样对待员工?

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK