AddStampAnnotation

注釈とホットスポットリンク

説明

選択したページにスタンプ注釈を追加します。色パラメーターの値は 0~1 で、0 は色の 0%、1 は 100% を示します。色はポップアップの背景色だけに影響し、スタンプ自体には影響しません

選択したドキュメントが PDF 1.3 未満の場合、スタンプ注釈は PDF 1.3 で導入されたため、ライターは有効な PDF バージョンを自動的に 1.3 へ引き上げます

構文

Delphi

Function TPDFlib.AddStampAnnotation(Left, Top, Width, Height: Double; StampType: Integer; Const Title, Contents: WideString; Red, Green, Blue: Double; Options: Integer): Integer;

ActiveX

Function PDFlib::AddStampAnnotation(Left As Double, Top As Double, Width As Double, Height As Double, StampType As Long, Title As String, Contents As String, Red As Double, Green As Double, Blue As Double, Options As Long) As Long

DLL

int DLAddStampAnnotation(int InstanceID, double Left, double Top, double Width, double Height, int StampType, const wchar_t * Title, const wchar_t * Contents, double Red, double Green, double Blue, int Options);

パラメータ

Left

スタンプ注釈左端の水平座標

Top

スタンプ注釈上端の垂直座標

Width

注釈の幅

Height

注釈の高さ

StampType

0 = 承認済み

1 = 試験的

2 = 未承認

3 = そのまま

4 = 期限切れ

5 = 一般公開不可

6 = 機密

7 = 最終版

8 = 売却済み

9 = 部門内限定

10 = コメント用

11 = 極秘

12 = 下書き

13 = 一般公開用

Title

ポップアップ注釈のタイトル

Contents

ポップアップ注釈の内容

Red

ポップアップ注釈'の背景色の赤成分

Green

ポップアップ注釈'の背景色の緑コンポーネント

ポップアップ注釈'の背景色の青コンポーネント

Blue

Options

将来の使用のために予約されています。常に 0 に設定する必要があります

戻り値

0スタンプ注釈をページに追加できなかった
1成功時の int Options);