AddStampAnnotation
הערות וקישורים חמים (hotspot links)
תיאור
מוסיף הערת stamp לעמוד הנבחר; ערכי פרמטרי הצבע בטווח מ-0 עד 1, כאשר 0 מייצג 0% ו-1 מייצג 100% מהצבע; הצבע משפיע רק על צבע הרקע של ה-popup ולא על ה-stamp עצמו
כאשר המסמך הנבחר מתחת ל-PDF 1.3 הכותב מעלה אוטומטית את גרסת ה-PDF האפקטיבית אל 1.3, משום שהערות stamp הוצגו ב-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
הקואורדינטה האופקית של הקצה השמאלי של הערת ה-stamp
Top
הקואורדינטה האנכית של הקצה העליון של הערת ה-stamp
Width
רוחב ההערה
Height
גובה ההערה
StampType
0 = Approved
1 = Experimental
2 = NotApproved
3 = AsIs
4 = Expired
5 = NotForPublicRelease
6 = Confidential
7 = Final
8 = Sold
9 = Departmental
10 = ForComment
11 = TopSecret
12 = Draft
13 = ForPublicRelease
Title
הכותרת של הערת ה-popup
Contents
תוכן ההערה הקופצת
Red
רכיב האדום של צבע הרקע של ההערה הקופצת
Green
הרכיב הירוק של צבע הרקע של הערת popup (popup annotation's background color)
הרכיב הכחול של צבע הרקע של הערת popup (popup annotation's background color)
Blue
Options
שמור לשימוש עתידי. יש להגדיר תמיד ל-0.
ערכי החזרה
| 0 | לא ניתן היה להוסיף את הערת החותמת לדף |
|---|---|
| 1 | Success int Options); |