PDF/A-1a:黑白图像的输出意图

发布于 2024-10-03 17:09:02 字数 210 浏览 1 评论 0原文

我正在尝试创建一个仅包含黑白图像(即 CCITTFaxD)的 PDF/A-1a 兼容文件。

我在“OutputIntents”方面遇到了麻烦。我基本上找不到为 1 位图像制作的输出意图。

有谁知道我应该使用的个人资料?

或者,如何不对黑白图像使用 OutputIntent?

注意:我有这个适用于灰度图像和彩色图像。

阿尔伯特

I'm attempting to create a PDF/A-1a compliant file that only contains a black and white image (i.e. CCITTFaxD).

I'm running into trouble with the "OutputIntents". I basically can't find an outputintent that's made for 1-bit images.

Does anyone know of a profile I'm suppose to use?

Alternatively, how do I not use an OutputIntent for b/w images?

Note: I have this working for grayscaled images and coloured images.

Albert

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

偷得浮生 2024-10-10 17:09:02

A1-a?勇敢的人。 A1-b 已经够烦人的了……我把所有东西都塞进了 RGB 中。不优雅,但有效。

IIRC,当您没有指定其他内容时,输出意图将接管。因此,如果您有 RGB 意图,则您使用的任何 deviceRGB 颜色都将属于该意图。

从严格的逻辑角度来看,我认为黑白图像不需要色彩校正。这是……黑白。那里很难出错。此时,色彩精度并不是一个目标。

OTOH,PDF/A1 规范要求所有颜色都具有正确的输出意图:

“所有颜色均应以与设备无关的方式指定,要么直接通过使用与设备无关的色彩空间,要么间接通过使用OutputIntent。

是否存在设备无关的黑白色彩空间之类的东西?这似乎很可笑。

啊,这听起来很有希望。

  • “6.2.4 图像:...... Intent 键的使用应符合 6.2.9 中给出的规则”
  • “6.2.9 渲染意图 如果指定了渲染意图,则其值应为 6.2.9 中定义的四个值之一PDF 参考相对色度、绝对色度、感知饱和度 注意:默认渲染意图是相对色度

呃,等等。这是渲染意图,而不是输出意图。福伊。

啊,有一种方法可以将图像中的颜色映射到某个特定的颜色空间,对吧?因此只需将其映射到现有的 OutputIntent 即可。是时候切换参考文献了...

啊,图像词典,常规,表 89。色彩空间。名称或数组。 /DeviceGray 应该可以解决问题。

如果这不起作用,您可能必须使用 DeviceGray 或 DeviceRGB 值创建一个 /Indexed 颜色空间,该颜色空间将通过您正在使用的任何验证系统(大概是 Acrobat pro 9 的预检检查,这就是我使用的)。


简短回答:将图像的 ColorSpace 设置为 DeviceGray。如果失败,请使用验证器将接受的颜色空间中定义的值来创建 /Indexed 颜色空间。

A1-a? Brave man. A1-b was annoying enough... where I shoehorned everything into RGB. Inelegant, but effective.

IIRC, output intents take over when you don't have Something Else specified. So if you have an RGB intent, any deviceRGB color you use will fall under that intent.

From a strictly logical standpoint, I wouldn't think a black-n-white image would need color correction. It's... BLACK AND WHITE. Hard to go wrong there. Color precision isn't much of a goal at that point.

OTOH, the PDF/A1 spec requires that all colors have the proper output intent:

"All colours shall be specified in a device-independent manner, either directly by the use of a device-independent colour space, or indirectly by the ouse of an OutputIntent."

Is there such a thing as a device-independant BW color space? It seems ludicrous.

Ah, this sounds promising.

  • "6.2.4 Images: .... Use of the Intent key shall conform to the rules given in 6.2.9"
  • "6.2.9 Rendering intents Where a rendering intent is specified, its value shall be one of the four values defined in PDF Reference RelativeColorimetric, AbsoluteColorimetric, Perceptual or Saturation. NOTE: The default rendering intent is RelativeColorimetric. "

Err, wait. That's a rendering intent, not an output intent. Fooey.

Ah, there's a way to map colors from the image to some specific color space, right? So just map it to your existing OutputIntent. Time to switch references...

Ah, Image Dictionaries, General, table 89. ColorSpace. name or array. /DeviceGray should do the trick.

If that doesn't do the trick, you might have to create an /Indexed color space with DeviceGray or DeviceRGB values that will pass whatever validation system you're using (presumably Acrobat pro 9's preflight check, that's what I used).


Short answer: Set the image's ColorSpace to DeviceGray. Failing that, whip up an /Indexed color space with values defined within a color space that your validator will accept.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文