我通常扫描多页文件,而且我使用的是一种简单的方法。
for f in ???\.pbm; do
convert -compress Group4 $f ${f%pbm}tiff;
done;
tiffcp *\.tiff o.tiff;
tiff2pdf o.tiff -o o.pdf
但是这样我可以获得很好的 TIFF 和非常糟糕的 PDF。
以下是identify
的输出:
(每页类似)
Image: o.tiff
Format: TIFF (Tagged Image File Format)
Class: DirectClass
Geometry: 1248x1649+0+0
Resolution: 72x72
Print size: 17.3333x22.9028
Image: o.pdf
Format: PDF (Portable Document Format)
Class: DirectClass
Geometry: 17x23+0+0
Resolution: 72x72
Print size: 0.236111x0.319444
我尝试在所有步骤上使用密度设置,但没有任何帮助。有人知道错误在哪里吗?
最佳答案
在tiff2pdf
步骤中,尝试使用此命令:
tiff2pdf -p A4 -F -o o.pdf o.tiff
-p A4
:强制 PDF 使用 ISO A4 页面尺寸(您也可以使用letter
或legal
)。-F
:强制 TIFF 完全填满页面。
关于pdf - 转换 pbm -> tiff -> tiffcp -> tiff2pdf 。获取 5mm 页面,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9856262/