Posts

Showing posts with the label pdf

ghostscript

When concatenating PDFs into a single file, I tried imagemagick: convert first.pdf second.pdf third.pdf output.pdf but the resolution suffered. This forum suggests that Imagemagick makes use of ghostscript in this action and provides a command that cuts out the middleman: gs -dBATCH -dNOPAUSE -q -sDEVICE=pdfwrite -sOutputFile=temp.pdf pdf1.pdf pdf2.pdf This worked like a charm, and fast, but I'm not massively happy copypasting commands I'll never remember. 1) record it here for future use 2) alias it, or write a super simple bash script? 3) look into ghostscript and see if I can simplify the command, learn the syntax

ghostscript

When concatenating PDFs into a single file, I tried imagemagick: convert first.pdf second.pdf third.pdf output.pdf but the resolution suffered. This forum suggests that Imagemagick makes use of ghostscript in this action and provides a command that cuts out the middleman: gs -dBATCH -dNOPAUSE -q -sDEVICE=pdfwrite -sOutputFile=temp.pdf pdf1.pdf pdf2.pdf This worked like a charm, and fast, but I'm not massively happy copypasting commands I'll never remember. 1) record it here for future use 2) alias it, or write a super simple bash script? 3) look into ghostscript and see if I can simplify the command, learn the syntax

pdf to png/jpg/etc

Not often I learn something at work that I need to put on here. Anyway, imagemagick: convert -density 600 input_file.pdf output_file.png Gives me a lovely hi-def version of the image. Too hi, probs, but at least it's relatively easy to resize (down) once it's in the appropriate image format.