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 γράφει τα annotation visibility και interaction flags που ορίζονται από PDF /F. Χρησιμοποιήστε values όπως afPrint, afNoZoom, afNoRotate, afNoView, afLocked και afLockedContents στο THPDFAnnotationFlags set

 

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