SetCapturedPageTransparencyGroup
內容串流與選用內容群組、頁面版面
描述
在擷取頁面的 XObject 上設定透明群組字典。擷取內容必須以透明群組合成時,在 CapturePage 或 CapturePageEx 之後、繪製擷取頁面之前使用。
PDF 版本行為:擷取頁面的透明群組使用 PDF 1.4 的 /Group 透明模型。目前文件版本較低且儲存版本未鎖定時,SetCapturedPageTransparencyGroup 會自動把文件提升到 PDF 1.4,並在 AutoBumpedFeatures 記下 transparency group;呼叫端鎖定了較低的儲存版本時,相容性閘門會以 LastErrorCode 602 拒絕儲存。
語法
Delphi
Function TPDFlib.SetCapturedPageTransparencyGroup(CaptureID, CS, Isolate, Knockout: Integer): Integer;
ActiveX
Function PDFlib::SetCapturedPageTransparencyGroup(CaptureID As Long, CS As Long, Isolate As Long, Knockout As Long) As Long
DLL
int DLSetCapturedPageTransparencyGroup(int InstanceID, int CaptureID, int CS, int Isolate, int Knockout);
參數
| CaptureID | CapturePage 或 CapturePageEx 傳回的 ID。 |
|---|---|
| CS | 混合色彩空間:1 = DeviceRGB,2 = DeviceCMYK。 |
| Isolate | 設為 1 把透明群組與背景隔離;設為 0 為非隔離群組。 |
| Knockout | 設為 1 啟用群組內的 knockout 行為;設為 0 為一般合成。 |
傳回值
| 0 | 擷取 ID 或色彩空間選擇器無效,或目前 PDF/A 模式禁止透明群組。 |
|---|---|
| 1 | 擷取頁面的透明群組設定成功。 |
另見
CapturePage, CapturePageEx, DrawCapturedPage, SetPageTransparencyGroup