将pdf转换为相同质量的Tiff [英] Convert pdf to Tiff with same quality

查看:141
本文介绍了将pdf转换为相同质量的Tiff的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们正在使用以下Shell脚本在tiff中转换pdf附件,但质量方面存在一些问题,因此,请检查下面的Shell脚本,让我们知道可以提高质量以及压缩文件大小的任何信息.可能在谈话中.

We are using following shell script to convert pdf attachment in tiff but having some issue with quality, So can you please check below shell script and let us know anything where we can improve quality as well as compress file size too as much as possible while conversation.

shell_exec('/usr/bin/gs -q -sDEVICE=tiffg4 -r204x392 -dBATCH -dPDFFitPage -dNOPAUSE -sOutputFile=america_out7.tif america_test.pdf');

我们尝试了以下命令,但质量似乎更好,但是当我们打算通过自由切换发送传真时

We have tried following command and seems quality is better but when we are going to send fax via Free-switch

gs -q -r1233x1754 -dFitPage -sPAPERSIZE=a4 -dFIXEDMEDIA -dPDFSETTINGS=/ebook -dNOPAUSE -dBATCH -sDEVICE=tiffg4 - -sOutputFile=america_out7.tif america_test.pdf 

我们收到以下错误

"Fax processing not successful - result (11) Far end cannot receive at the resolution of the image. "

因此,在这里我们需要您的帮助来解决此问题,请提供其他任何方式.

So, here we need your help to elude this issue and please provide any other way.

等待对此回应.

推荐答案

传真机仅支持某些分辨率.如果您将第3组或第4组CCITT压缩的TIFF进行读取,则许多传真机都可以读取,提取压缩的图像数据并将其直接发送到兼容的传真机.

Fax machines only support certain resolutions. If you Group 3 or Group 4 CCITT compressed TIFF many fax machines can read that, extract the compressed image data, and send it directly to a compatible fax machine.

标准"为204x98,精细"为204x96,超精细"为400x391.

"Standard" is 204x98, "fine" is 204x96, "superfine" is 400x391.

您选择的分辨率为1233x1754.这比我所支持的任何传真规范高3倍.因此,您的接收传真机当然无法应付.请注意,没有传真标准(除非有新的传真标准似乎不太可能)也支持600x600,尽管特定制造商完全有可能在自己的设备之间支持这种标准.

You've chosen a resolution of 1233x1754. That's 3 times higher than any fax specification I know of supports. So of course your receiving fax machine can't cope with it. Note that there is no fax standard (unless there's been a new one which seems unlikely) supports 600x600 either, though its entirely possible that specific manufacturers may support such a thing between their own equipment.

自然地,分辨率越高,渲染输出的质量就会越好,这就是为什么使用更高的分辨率会带来更好的质量的原因.

Naturally the higher the resolution, the better quality your rendered output will be, which is why using a higher resolution results in better quality.

每个人都希望实现更好的质量和更低的文件大小"这一神奇的目标,但是没有这样的事情.这始终是一个权衡.

Everyone wants the magical goal of "better quality and lower filesize" but there is no such thing. This is always a tradeoff.

您可能会发现,使用超精细分辨率(400x391)会带来更好的质量,但代价是文件尺寸更大..您不能比普通传真更高.

You will probably find that using superfine resolution (400x391) will give you better quality, at the cost of higher file sizes.. You can't go higher than that with ordinary fax.

请注意,PDFSETTINGS开关无效,但pdfwrite设备除外,该设备用于创建 PDF文件,而不读取它们.

Note that the PDFSETTINGS switch has no effect except with the pdfwrite device, which is used to create PDF files, not read them.

这也不是Stack Overflow的主题,因为这不是编程问题.一点也不,而且Stack Overflow并不是一个通用的支持论坛.

This is also off-topic for Stack Overflow, since this is not a programming question. Not even a little bit, and Stack Overflow is not a generalised support forum.

这篇关于将pdf转换为相同质量的Tiff的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆