SetPageTransition
Page properties, page layout
Description
Please review the syntax, parameters, and return value before calling the function.
Syntax
Function TPDFlib.SetPageTransition(Page: Integer; Transition: TPDFlibPageTransition; Duration, TransDuration: Double): Integer;Parameters
| Page | One-based page number; values below 1 are rejected |
|---|---|
| Transition | Legacy effect constant: ptNone, ptSplitHIn, ptSplitHOut, ptSplitVIn, ptSplitVOut, ptBlindsH, ptBlindsV, ptBoxIn, ptBoxOut, ptWipeLeftRight, ptWipeRightLeft, ptWipeTopBottom, ptWipeBottomTop, ptDissolve, ptGlitterLeftRight, ptGlitterTopBottom or ptGlitterDiagonal |
| Duration | Page display duration in seconds; a negative value rejects the call |
| TransDuration | Transition effect duration in seconds; a negative value rejects the call |
Return values
| 1 | The transition and page duration were written |
|---|---|
| 0 | No document is selected, the page number is invalid or a duration is negative |
Remarks
Wipe and Glitter directions are stored in /Di, ptNone clears both /Trans and page-level /Dur, and these standard styles do not force PDF 1.5
Use SetPageTransitionEx for replacement, Fly, Push, Cover, Uncover, Fade, scale and rectangular Fly options