SetPageTransparencyGroup

矢量图形、文本、页面布局

描述

设置所选页面的透明度组字典。当页面内容使用蒙版、软蒙版、混合模式或合成的捕获内容,并且页面需要定义的混合颜色空间时,这很有用

PDF 版本行为:页面透明度组使用 PDF 1.4 /Group 透明度模型 如果当前文档版本较低且未锁定保存版本,SetPageTransparencyGroup 会自动将文档提升至 PDF 1.4,并记录 transparency group 到 AutoBumpedFeatures 如果调用方锁定了较低的保存版本,兼容性门控会以 LastErrorCode 602 拒绝保存

语法

Delphi

Function TPDFlib.SetPageTransparencyGroup(CS, Isolate, Knockout: Integer): Integer;

ActiveX

Function PDFlib::SetPageTransparencyGroup(CS As Long, Isolate As Long, Knockout As Long) As Long

DLL

int DLSetPageTransparencyGroup(int InstanceID, int CS, int Isolate, int Knockout);

参数

CS混合色彩空间:1 = DeviceRGB,2 = DeviceCMYK
Isolate设置为 1 以使透明度组与页面背景隔离;设置为 0 表示非隔离组
Knockout设为 1 以启用组内的挖空行为;设为 0 使用正常合成

返回值

0色彩空间选择器无效、未选择页面,或当前 PDF/A 模式禁止透明组
1页面透明组已成功设置

另请参阅

SetCapturedPageTransparencyGroup, SetTransparency, SetPageUserUnit