转换pbm - > tiff - > tiffcp - > tiff2pdf。获得5mm页面

时间:2012-03-24 22:37:12

标签: pdf imagemagick tiff multipage

我经常扫描多页文件,而且我使用的方法很简单。

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

我尝试在所有步骤中使用密度设置,但没有任何帮助。谁知道错误在哪里?

1 个答案:

答案 0 :(得分:2)

tiff2pdf步骤中,尝试使用此命令:

 tiff2pdf  -p A4  -F  -o o.pdf  o.tiff
  • -p A4 :强制PDF使用ISO A4页面大小(您也可以使用letterlegal)。
  • -F :强制TIFF完全填充页面。
相关问题