從 scanimage --batch 掃描的多個影像編譯 pdf 文件

從 scanimage --batch 掃描的多個影像編譯 pdf 文件

假設我正在使用以下內容掃描文件影像:

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

相關內容