gpt4 book ai didi

pdf - PDF 中的透明图像

转载 作者:行者123 更新时间:2023-12-04 23:52:13 32 4
gpt4 key购买 nike

This PDF由几个源文件组成。其中五个是包含 alpha channel 的 PNG。一种是没有 alpha channel 的 PNG。最后一 block 是带有透明效果的 Photoshop PDF。这些片段是使用 ABCpdf 9.1 组装的。

在 Acrobat 9、Foxit Reader 和 Chrome 的浏览器内 PDF 查看器上,这些显示正确,Photoshop 背景通过 alpha channel PNG 的透明部分显示,非 alpha PNG 通过 Photoshop 的中心显示图片。

correct display

在 Acrobat X 或 Acrobat XI 上,任何本应成为透明区域的区域都变为纯白色。如果选中 Edit/Preferences/Page Display/Show transparency grid,则纯白色变为灰色棋盘格。但是背景永远不会显示出来。

incorrect display

(是的,这些屏幕截图是不同的 PDF,并且都与上面链接的 PDF 不同。但是透明度问题影响了所有这些。)

有谁知道它为什么会这样做?我们是不是构建错了?

最佳答案

文档中的一页有一个定义页面(透明)组属性的条目:

/Group <<
/I true
/K true
/S /Transparency
/Type /Group
>>

K 条目指定为

K boolean (Optional) A flag specifying whether the transparency group is a knockout group (see “Knockout Groups”). If this flag is false, later objects within the group shall be composited with earlier ones with which they overlap; if true, they shall be composited with the group’s initial backdrop and shall overwrite (“knock out”) any earlier overlapping objects. Default value: false.

由于该值为 true任何较早的重叠对象(包括您希望通过透明度可见的对象)都被剔除,您只能看到白色的页面背景.

使用 /K false 代替呈现所需的图像:

您在 Adob​​e Reader XI 中的原始文档(/K true):

Knockout true

您在 Adob​​e Reader XI 中禁用了删除条目(/K false)的文档:

enter image description here

详情参见PDF 规范 ISO 32000-1

  • 表 30 页面对象中的条目,用于页面字典条目;
  • 第 11.4.7 节页组定义了页组;
  • 第 11.6.6 节 透明组 XObjects 页面组字典的条目。

关于pdf - PDF 中的透明图像,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22155687/

32 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com