2

目前,我正在尝试使用 Perl/ImageMagick 和/或 Ghostscript 将存储为 TIFF 的扫描文本文档转换为 8.5″×11″(ANSI A “Letter”大小)的 PDF 文件。

我已经尝试了许多调整大小的 ImageMagick 过滤器,但仍然发现一些以前完全清晰的文件现在变得难以辨认。这些图像通常为 72 dpi,当转换为 8.5″×11″ 时,最终会得到 612×792 像素。原件为1700×2200;如您所见,在重新调整大小时丢失了相当多的像素。

除了调整大小,我还应该使用其他东西吗?会不会像 ImageMagick 报告图像是 72 dpi 而实际上是 200 dpi?将图像重新采样到适合 8.5 英寸×11 英寸区域的最高 dpi 会有帮助吗?

有没有人有任何其他选择来最终创建一个所有页面都是 8.5″×11″ 的 PDF 文件?

4

1 回答 1

2

(Mantra: 'Use the right tool for the job...')

You possibly shouldn't use ImageMagick for the job, but rather LibTIFF's tiff2pdf commandline utility:

tiff2pdf          \
    -z            \
    -o output.pdf \
    -p letter     \
    -F            \
     input.tiff

-z is for (lossless) Zip/Flate compression.
-o defines the output filename.
-p sets the media size.
-F fills the page.

于 2012-08-13T21:29:50.823 回答