Skip to content


Convert Image to DIN A4 PDF

Following commands shows how to convert an image to an A4 pdf using ImageMagick’s convert and GhostScript.

$ convert input.jpg output.ps
$ gs -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -sPAPERSIZE=a4 -sOutputFile=output.pdf output.ps
$ rm output.ps

Posted in info.

Tagged with , , , , .