Discovered a new feature of convert - the linux commandline workhorse!

posted Nov 29, 2016, 1:06 PM by Niels Jensen   [ updated Dec 6, 2016, 11:12 PM ]
For years we have been using pdfsam to manipulate pdf-file, such as merge, rotate, extract etc. Today, I had to manipulate af pdf-file, which would not open in pdfsam. A quick Google search indicated, that convert could be used to extract parts of a pdf-file. The first attempt "convert file.pdf[48-52] newfile.pdf" worked, but the quality of the resulting pdf-file was rather poor. So we decided to use the density parameter in the extraction, and "convert -density 300x300 file.pdf[48-52] newfile.pdf produced an excellent extract. 

Linux commandline utilities, may take some learning, but in many situations the learning pay off. Pdfsam will likely still be our choice if individual pages have to be taken from different pdf-files and merged into a new file with some rotations.