THotPDF.AddLoadedPopupAnnotation Method
Creates a /Subtype /Popup annotation on a loaded page and links it in both directions with an existing markup annotation
Declaration
procedure AddLoadedPopupAnnotation(PageIndex, ParentAnnotationIndex: Integer; X1, Y1, X2, Y2: Single; Open: boolean = False);
Unit
HPDFDoc
Parameters
| Name | Purpose |
|---|---|
PageIndex | Zero-based index of the loaded page |
ParentAnnotationIndex | Index of the existing markup annotation the popup is linked to |
X1, Y1, X2, Y2 | Popup window rectangle in PDF user space points |
Open | True to mark the popup initially open in compliant viewers |
Return value
This member returns no value
Usage notes
- The parent annotation's /Popup entry and the popup's /Parent entry are set to reference each other
- Use this after adding a markup annotation such as THotPDF.AddLoadedCircleAnnotation or THotPDF.AddLoadedFreeTextAnnotation