When I try to merge two .pdf files using Imagemagick
convert pdf1.pdf pdf2.pdf temp.pdf
the resulting temp.pdf file seems to have very low resolution. How can I keep the resolution same as in the source files?
|
When I try to merge two .pdf files using Imagemagick
the resulting temp.pdf file seems to have very low resolution. How can I keep the resolution same as in the source files? | |||
|
feedback
|
This question came from our site for professional and enthusiast programmers.
|
Barns's right, but if pdftk didn't work try ghostscript.
| |||
feedback
|
|
Imagemagick's convert command is normally used for converting image files from one format to another, and in this case, it is possible that it is actually performing an internal conversion of sorts before outputting the two "images" (PDFs) into a single file. I would suggest you consider using the PDF Toolkit (pdftk) instead http://www.accesspdf.com/pdftk/ From the examples on the website, this should be as simple as:
| |||
feedback
|
|
I'm not sure how you can keep the exact same resolution -- if that is possible with PDF at all...
| |||
feedback
|
|
I couldn't find any way of joining two pdf files together while keeping the resolution good and the text intact, but I figured out a way to convert it into a high resolution png file.
This takes to first two pages of page.pdf and joins them into a side by side high resolution png file. Changing the last line to
will result in a pdf document output as I later figured out after messing around with pngtopnm, pnmtops, ps2pdf. | ||||
feedback
|
|
If running linux you can also try poppler which provides | |||
|
feedback
|