THotPDF.GetLoadedPageDuration Method
Reads the presentation dwell time (in seconds) of the specified page in the loaded PDF document
Declaration
function GetLoadedPageDuration(PageIndex: Integer): Single;
Unit
HPDFDoc
Parameters
| Name | Purpose |
|---|---|
PageIndex | Zero-based index of the target page |
Return value
Returns the Dur attribute value of the page (unit: seconds); returns 0 if the Dur key is absent from the page dictionary or the index is out of bounds
Usage notes
- The Dur entry drives PDF presentation mode, controlling how long a page stays up before advancing; pair it with the Trans entry
- The return value is in floating-point seconds; returning 0 indicates that the page does not have an autoplay duration set
- When used with GetLoadedPageTransition, the page-turning animation and timing configuration of the presentation document can be fully restored