GetPageTransition

Page properties, presentations

Description

Reads a legacy typed page transition, the page-level display duration and the transition effect duration

Syntax

Function TPDFlib.GetPageTransition(Page: Integer; Out Transition: TPDFlibPageTransition; Out Duration, TransDuration: Double): Integer;

Parameters

PageOne-based page number; an invalid page returns 0 with zeroed outputs
TransitionReceives the legacy transition; ptNone when the page has no transition dictionary or stores a PDF 1.5 style this call cannot express
DurationReceives the page-level /Dur display duration in seconds, or 0 when absent
TransDurationReceives the transition effect duration in seconds, or 0 on failure

Return values

1The page carries a transition dictionary and the outputs were filled
0No document is selected, the page number is invalid or no transition dictionary exists

Remarks

Use GetPageTransitionEx to preserve PDF 1.5 styles and Fly-specific values

See also

GetPageTransitionEx, SetPageTransition