THPDFNamesFacade.AddNamedDestination Method
Adds a named destination that can be targeted by named-destination links
Declaration
procedure AddNamedDestination(const Name: AnsiString; PageIndex: Integer; FitMode: THPDFDestinationFitMode = dfmFit; Left: Single = 0; Top: Single = 0; Right: Single = 0; Bottom: Single = 0; Zoom: Single = 0);
Unit
HPDFDoc
Parameters
| Name | Purpose |
|---|---|
Name | Destination name added to the document name tree |
PageIndex | Zero-based page the destination jumps to |
FitMode | Page fit mode (see THPDFDestinationFitMode); defaults to dfmFit |
Left, Top, Right, Bottom | Position coordinates used by the position-dependent fit modes; default to 0 |
Zoom | Zoom factor used by dfmXYZ; defaults to 0 |
Usage notes
- Forwards to THotPDF.RegisterNamedDestination
- Target these destinations with THPDFPage.AddNamedDestinationLink