THPDFPage.SetAnnotationFlags

THPDFPage

 

הקודם  מתודות  הבא

Installs or replaces the PDF annotation /F flag bit field.

 

Delphi syntax:

procedure SetAnnotationFlags(Annot: THPDFDictionaryObject; Flags: THPDFAnnotationFlags);

 

C++ syntax:

void __fastcall SetAnnotationFlags(THPDFDictionaryObject *Annot, THPDFAnnotationFlags Flags);

 

תיאור

SetAnnotationFlags כותב את דגלי visibility ו-interaction של annotation שמוגדרים על ידי PDF ‏/F. השתמש בערכים כגון afPrint, ‏afNoZoom, ‏afNoRotate, ‏afNoView, ‏afLocked ו-afLockedContents בקבוצה THPDFAnnotationFlags

 

Passing an empty set removes an existing /F entry. When PDF/A compliance is active, HotPDF keeps the required Print bit enabled.

 

Example

Page.SetAnnotationFlags(Page.LastAnnotation, [afPrint, afNoZoom, afNoRotate]);

 

See also: LastAnnotation, SetAnnotationHighlightMode, SetAnnotationBorderStyle