Tif 到 PDF 转换 逆问题
我正在使用 irfanview 将一批 .TIF 图像转换为 .PDF,所有 TIF 都是白色背景,带有黑色文本和线条。
然而,当使用高级批处理模式时,其中一小部分在创建 PDF 的过程中被反转,我不确定为什么。
这是 irfanview 命令。
i_view32 c:\extract\tifs_extract\* /advancedbatch /convert=c:\extract\pdfs\*.pdf
我认为这更有可能与 TIF 文件有关,而不是上面命令中的问题,因为这会生成 95% 的问题。
这些图像看起来与 .TIF 一样好。有没有人遇到过类似的情况,如果有的话你是如何解决的。
I'm using irfanview to convert a batch of .TIF images into .PDFs, all the TIF's are white background with black text and lines.
However when using advanced batch mode a small percentage of these have been inversed in the process of creating the PDF, and I'm not sure why.
Here's the irfanview command.
i_view32 c:\extract\tifs_extract\* /advancedbatch /convert=c:\extract\pdfs\*.pdf
I think it's something more likely to do with the TIF file than an issue in the command above, as that generates 95% of them fine.
The images look fine as .TIF's. Has anyone ever come across something similar and if so how did you fix it.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
检查 TIFF 文件是否包含名为 预测器 (0x013D) 的标记。您可能会在采用 LZW、ZIP 或 PACKBITS 压缩的灰度或彩色(连续色调)TIFF 图像中找到此标志。
某些成像软件使用此标志来提高连续色调 TIFF 图像的压缩比。但是,此标志与嵌入图像的 PDF 规范不兼容,因此在使用 PDF 嵌入之前,如果没有此标志,则需要重新压缩此类图像。
Check if the TIFF file contains a tag called Predictor (0x013D). You may find this flag in grayscale or color (continuous-tone) TIFF images with LZW, ZIP or PACKBITS compression.
This flag is used by some imaging software to improve the compression ratio of continuous-tone TIFF images. However, this flag is incompatible with the PDF specification for embedding images, therefore such images will need to be re-compressed without this flag prior to embedding with PDF.
TIFF 是一种有趣的格式,因为有很多不同的方法可以对任何特定图像进行编码,这些图像应该生成等效的像素。对于 1 位图像,您应该设置一个标签来指示 0 位是黑色还是 0 位是白色,但图像也可能使用颜色表进行编码,该颜色表明确说明了颜色应该是什么。 TIFF 渲染器很容易出错(或生成不正确的 PDF)。
TIFF is a funny format in that there are quite a few different ways to encode any particular image that are supposed to generate equivalent pixels. For 1 bit images, you're supposed to set a tag that indicates whether a 0 bit is black or a 0 bit is white, but the image might also be encoded with a color table that explicitly says what the color is supposed to be. A TIFF renderer could easily get this wrong (or generate incorrect PDF) for it.
某些 PDF 图像具有可反转图像的解码数组,但并非所有 PDF 工具都支持。它可以与其他工具一起使用吗?
Some PDF images have a Decode Array which inverts the image and not all PDF tools support. Does it work with other tools?
该问题可能是由于图像的色彩空间造成的。某些组件在检测 CMYK 图像时存在问题。确保所有图像均采用 RGB 颜色模式而不是 CMYK,以获得完美的输出。
The issue might be due to the colorspace of the images. Some of the components have issues in detecting the CMYK images. Ensure that all your images are in RGB color mode rather than CMYK to get a perfect output.