PDFium Delphi Component Docs

RenderOverprintPreview 方法

元件: TPdf  ·  單元: PDFium
渲染目前頁面,模擬疊印油墨在印刷機上混合的效果

語法

function RenderOverprintPreview(Width, Height: Integer; Rotation: TRotation = ro0; Options: TRenderOptions = []; Color: TColor = clWhite): TBitmap;

Width, HeightInteger。輸出點陣圖的像素尺寸
RotationTRotation。套用至頁面的顯示旋轉
OptionsTRenderOptions。渲染旗標
ColorTColor。渲染前套用的背景填色
ResultTBitmap。新建立的點陣圖,由呼叫端擁有且必須釋放

說明

一般渲染會將下方內容挖空;疊印預覽則呈現油墨如在紙上般的混合方式。對於 PageUsesOverprint 回報為使用疊印的頁面,兩種渲染結果會有差異,而預覽才是能預測印刷結果的那一種

原生疊印預覽是已載入 PDFium 模組的功能;缺少該功能時呼叫會引發 EPdfError

呼叫期間會持有渲染鎖定,因此在同一元件上與並行渲染相互安全

另請參閱

PageUsesOverprint, RenderSpotPlate, SpotPlates, RenderPage