A5 Blatt scannen und in PDF-Datei wandeln (-dEPSCrop)

10.11.2014 - Lesezeit: ~1 Minute
  • Scannen des A5.Blattes
    scanimage --format=pbm --resolution 300 -x 148 -y 210 > /tmp/scantopdf.pbm
  • Wandeln der Bilddatei in Postscript Datei
    pnmtops -equalpixels -dpi 300 -width 4 -height 8 /tmp/scantopdf.pbm > /tmp/scantopdf.ps
  • Wandeln der Postscript Datei in PDF-Datei (dabei bewirkt der Schalter -dEPSCrop, dass die PDF-Datei die Abmessungen der Postscript-Datei erhält)
    ps2pdf -dEPSCrop /tmp/scantopdf.ps  /tmp/scantopdf_08.pdf
Tags: Linux-Scripte