首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >转换pbm -> tiff -> tiffcp -> tiff2pdf。获取5 5mm页面

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

Stack Overflow用户
提问于 2012-03-25 06:37:12
回答 1查看 1.7K关注 0票数 2

我通常扫描多页文件,并且我使用一种简单的方法。

代码语言:javascript
复制
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的输出

(每页相似)

代码语言:javascript
复制
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

我试着在所有步骤上使用密度设置,但都没有帮助。

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2012-08-21 04:55:19

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

代码语言:javascript
复制
 tiff2pdf  -p A4  -F  -o o.pdf  o.tiff

  • -p A4:强制使用A4页面大小(您也可以使用letterlegal)。
  • -F:强制TIFF完全填满页面。
票数 2
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/9856262

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档