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 กำหนด ใช้ค่าเช่น afPrint, afNoZoom, afNoRotate, afNoView, afLocked และ afLockedContents ใน set 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