THotPDF.GetLoadedPageTransition Method
Reads the page transition animation style and animation duration of the specified page in the loaded PDF document
Declaration
function GetLoadedPageTransition(PageIndex: Integer; out AStyle: AnsiString; out ADuration: Single): boolean;
Unit
HPDFDoc
Parameters
| Name | Purpose |
|---|---|
PageIndex | Zero-based index of the target page |
AStyle | Output parameter, receives the transition animation type name (e.g., 'Split', 'Blinds', 'Dissolve', etc.) |
ADuration | Output parameter, receives the transition animation duration (in seconds) |
Return value
Returns True if the page contains a Trans dictionary and it is read successfully, otherwise returns False; when False is returned, the values of AStyle and ADuration are undefined
Usage notes
- AStyle corresponds to the S key of the Trans dictionary; valid values include Split, Blinds, Box, Wipe, Dissolve, Glitter, R, Fly, Push, Cover, Uncover and Fade
- ADuration corresponds to the D key in the Trans dictionary, in seconds, with a default value of 1; if the D key is missing, ADuration may be set to 0 or the default value
- Combined with GetLoadedPageDuration, the playback timing of a PDF presentation document can be fully restored