
次のように文書画像をスキャンするとします。
scanimage --mode Gray --resolution 300 -x 215 -y 280 --format=tiff \
--batch=document-p%d.tiff --batch-prompt
(例では.tiff
フォーマットを使用しましたが、動作するすべてが開いています。)
別の画像ファイルを単一のPDFファイルにコンパイルする最も簡単な方法は何ですか?
答え1
ImageMagickを使用するのはおそらく最も簡単な方法です。
convert document-p*.tiff output.pdf
答え2
この試み。
scanimage -p --resolution 250 --mode Gray -x 210 -y 297 | pnmtops -imageheight 11.7 -imagewidth 8.3 | ps2pdf - output.pdf