SetPageTransparencyGroup

向量圖形、文字、頁面版面

描述

設定所選頁面的 transparency group 字典。頁面內容使用遮罩、軟性遮罩、混合模式或合成擷取內容、需要明確混合色彩空間時非常有用

PDF 版本行為:頁面透明群組使用 PDF 1.4 的 /Group 透明模型。目前文件版本較低且儲存版本未鎖定時,SetPageTransparencyGroup 會自動把文件提升到 PDF 1.4,並在 AutoBumpedFeatures 記下 transparency group;呼叫端鎖定了較低的儲存版本時,相容性閘門會以 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 啟用群組內的 knockout 行為;設為 0 為一般合成。

傳回值

0色彩空間選擇器無效、未選取頁面,或目前 PDF/A 模式禁止透明群組。
1頁面透明群組設定成功。

另見

SetCapturedPageTransparencyGroup, SetTransparency, SetPageUserUnit