我需要做些什么才能使这种透明度起作用 [英] What do I need to do to make this transparency work

查看:89
本文介绍了我需要做些什么才能使这种透明度起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个PDF,我知道它具有透明性,但是Acrobat pro可以使透明部分牢固.如果我用Chrome浏览器查看,它看起来不错.而且,如果我进行输出预览并将显示"选项更改为非DeviceCMYK",它将预览透明度,但这实际上并没有更改PDF,因此我无法弄清楚如何删除CMYK,以便将其删除.将是透明的.

I have a PDF, I know it has transparency but Acrobat pro renders the transparent portion solid. If I view it in chrome it looks right. And if I do an output preview and change the "Show" option to "Not DeviceCMYK" it previews the transparency, but this doesn't actually change the PDF and I can't figure out how to then just remove the CMYK so that it will be transparent.

这又是pdf

我为此还弄乱了一点.好像有一些淘汰赛分组,如何在Acrobat中更改此分组?

I've messed around for this a bit more. It looks like there is some knockout grouping, how can I change this in Acrobat?

在Acrobat中,我似乎还可以剪切图像,然后将其粘贴回去,从而获得所需的透明度.这有什么变化?我如何在无需剪切,粘贴和重新定位的情况下进行更改?

I also seem be able to, in Acrobat, cut the image, then paste it back in and I get the transparency I need. What is this changing and how can I change this without having to cut, paste and re-position?

推荐答案

Acrobat Pro使透明部分变实.如果我使用Chrome浏览器,它看起来不错.

Acrobat pro renders the transparent portion solid. If I view it in chrome it looks right.

就像问题 PDF中的透明图像

Just like in the case of the question Transparent images in PDF the problem indeed is the knockout setting in a transparency group. Knockout settings seem to be ignored by some viewers, especially by the built-in Chrome PDF previewer, but correctly are respected by (current) Adobe Acrobat and Reader versions.

与该其他问题的情况相反,所讨论的组不是页面组,而是特定xobject的组.由于该xobject同时包含透明图像和OP希望通过其显示的图像,因此观察到的问题非常相似.

In contrast to the situation in that other question the group in question is not the page group but a group of a specific xobject. As that xobject contains both the transparent image and the image the OP wants to shine through, though, the observed issue is very similar.

如何在Acrobat中更改此设置?

how can I change this in Acrobat?

我发现没有明显的方法可以在Acrobat中编辑透明度组设置.但不幸的是,我这里只有9.5版,也许较新的版本允许.

I found no obvious way to edit transparency group settings in Acrobat. But I unfortunately only have version 9.5 here, maybe newer versions allow that.

在Acrobat中,我似乎还可以剪切图像,然后将其粘贴回去,从而获得所需的透明度.这有什么变化

I also seem be able to, in Acrobat, cut the image, then paste it back in and I get the transparency I need. What is this changing

这很可能会将图像从图像共享的剔除透明度组中切出(实际照片和要用于变暗的部分透明的纯黑色图像),然后将其粘贴回结果中不同的透明度小组;因此,他们再也无法相互淘汰了.

Most likely this cuts the image out of the knockout transparency group shared by the images (the actual photo and the partially transparent pure black image you want to use for darkening), and pasting it back in results in those two images residing in different transparency groups; thus, they cannot knock each other out anymore.

该如何更改而无需剪切,粘贴和重新放置

how can I change this without having to cut, paste and re-position

您可以轻松地修补PDF,从而从透明度组定义中删除 K 剔除条目,请参见下文.

You can easily patch the PDF, thereby removing the K knockout entry from the transparency group definition, see below.

OP提供的PDF的第1页内容包含相当多的对象层次结构:

The page 1 content of the PDF provided by the OP contains quite an object hierarchy:

  • 立即页面内容不是透明度组的一部分,它包含一个图像xobject Im0 和两个表单xobject Fm1 Fm2 . /li>
  • xobject Fm1 表单具有一个剔除透明度 Group 条目,其中包含一个表单xobject HiQPdf_fnebajfcjaojkndmodkafcbjdllengkl
  • xobject HiQPdf_fnebajfcjaojkndmodkafcbjdllengkl 表单没有自己的 Group 条目,但属于其父级的剔除透明性组的一部分;它包含两个图像xobject HiQPdf_fhhbjncnhiipkdhfommnfnbdgijfcjpi HiQPdf_ibbjecddhjhkknkjbhmbefkgfbbmakep ,后者覆盖前者的顶部.
  • 图像xobject HiQPdf_fhhbjncnhiipkdhfommnfnbdgijfcjpi 包含一些房子的照片,没有透明度.
  • 图像xobject HiQPdf_ibbjecddhjhkknkjbhmbefkgfbbmakep 是黑色的,透明度为 SMask ,其各处值为162.
  • The immediate page content is not part of a transparency group and contains one image xobject Im0 and two form xobjects Fm1 and Fm2.
  • The form xobject Fm1 has a knockout transparency Group entry and contains one form xobject HiQPdf_fnebajfcjaojkndmodkafcbjdllengkl
  • The form xobject HiQPdf_fnebajfcjaojkndmodkafcbjdllengkl does not have an own Group entry but is part of its parent's knockout transparency group; it contains two image xobjects HiQPdf_fhhbjncnhiipkdhfommnfnbdgijfcjpi and HiQPdf_ibbjecddhjhkknkjbhmbefkgfbbmakep, the latter one covering the top part of the former.
  • The image xobject HiQPdf_fhhbjncnhiipkdhfommnfnbdgijfcjpi contains a photo of some house, no transparency.
  • The image xobject HiQPdf_ibbjecddhjhkknkjbhmbefkgfbbmakep is black and has a transparency SMask with a value 162 everywhere.

稍微透明的图像 HiQPdf_ibbjecddhjhkknkjbhmbefkgfbbmakep 和它所覆盖的图像 HiQPdf_fhhbjncnhiipkdhfommnfnbdgijfcjpi 都位于由 Fm1提供的同一剔除透明度组中.因此,透明性不允许 HiQPdf_fhhbjncnhiipkdhfommnfnbdgijfcjpi 中的房子照亮,但 Fm1 后面是什么.

The somewhat transparent image HiQPdf_ibbjecddhjhkknkjbhmbefkgfbbmakep and the image HiQPdf_fhhbjncnhiipkdhfommnfnbdgijfcjpi covered by it both are in the same knockout transparency group provided by Fm1. Thus, the transparency does not allow the house in HiQPdf_fhhbjncnhiipkdhfommnfnbdgijfcjpi shine through but what is behind Fm1.

但是 Fm1 后面没有任何内容,在PDF中意味着白色背景.结合 HiQPdf_ibbjecddhjhkknkjbhmbefkgfbbmakep 的黑度和恒定的 SMask 值162,这会在您在Adobe Reader中看到灰色条:

But there is nothing behind Fm1 which in PDF implies a white background. Combined with the blackness of HiQPdf_ibbjecddhjhkknkjbhmbefkgfbbmakep and a constant SMask value 162 this results in the gray bar you see in Adobe Reader:

Fm1 的敲除透明度组字典在对象31 0中:

The knockout transparency group dictionary of Fm1 is in object 31 0:

31 0 obj
<</K true/S/Transparency>>
endobj 

通过用空格覆盖/K true,将PDF修补为在此处具有非淘汰组,结果是:

By overwriting /K true with spaces the PDF is patched to have a non-knockout group here, and the result is:

这篇关于我需要做些什么才能使这种透明度起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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