AddRedactAnnotation
註解與熱點連結
描述
在所選頁面附加 ISO 32000-1 §12.5.6.23 的 /Subtype /Redact 提案註解,供兩階段塗銷流程使用,寫入 /IC 內部填色、/OverlayText 與標準布林 /Repeat 旗標
語法
Delphi
Function TPDFlib.AddRedactAnnotation(Left, Top, Width, Height, FillR, FillG, FillB: Double; Const OverlayText: WideString; RepeatOverlay: Integer= 0): Integer;
ActiveX
Function PDFlib::AddRedactAnnotation(Left As Double, Top As Double, Width As Double, Height As Double, FillR As Double, FillG As Double, FillB As Double, OverlayText As String, RepeatOverlay As Long) As Long
DLL
int DLAddRedactAnnotation(int InstanceID, double Left, double Top, double Width, double Height, double FillR, double FillG, double FillB, const wchar_t* OverlayText, int RepeatOverlay);
int DLAddRedactAnnotationA(int InstanceID, double Left, double Top, double Width, double Height, double FillR, double FillG, double FillB, const char* OverlayText, int RepeatOverlay);
參數
| Left, Top, Width, Height | 目前量測單位與座標原點下的塗銷矩形 |
|---|---|
| FillR, FillG, FillB | 內部 RGB 填色分量(0.0 到 1.0),寫入 /IC |
| OverlayText | 選配的取代標籤,寫入 /OverlayText |
| RepeatOverlay | 非零值設定 /Repeat true,讓覆蓋文字在塗銷區域內重複 |
傳回值
| > 0 | 目前頁面上以 1 為基準的註解索引,失敗時為 0 |
|---|