
























I have several PDF files/images that I want to merge to one file. Each page in the PDF is actually an image. Here is what works best for me.
Pdfunite provided by package poppler-utils can be used to achieve our goal:
pdfunite a.pdf b.pdf output.pdfThe size of produced PDF file is small (about the sum of size of a.pdf and b.pdf). The image quality is well preserved.
convert a.pdf b.pdf output.pdfThe 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.pdfThis 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.
To merge several iamges and produce a PDF file. We can use convert from imagemagick:
convert img1.jpg img2.jpg output.pdfWe can also use img2pdf for this:
img2pdf img1.jpg img2.jpg -o output.pdf此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。