THPDFPage.SetAnnotationFlags

THPDFPage

 

Précédent  Méthodes  Suivant

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

 

Syntaxe Delphi :

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

 

Syntaxe C++ :

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

 

Description

SetAnnotationFlags écrit les flags de visibilité et d’interaction de l’annotation définis par PDF /F. Utilisez des valeurs telles que afPrint, afNoZoom, afNoRotate, afNoView, afLocked et afLockedContents dans l’ensemble THPDFAnnotationFlags

 

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

 

Exemple

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

 

Voir aussi: LastAnnotation, SetAnnotationHighlightMode, SetAnnotationBorderStyle