AddActionNextTransition
Document properties, Annotations and hotspot links
Description
Appends a /Trans page-transition action (PDF 1.5) to an action chain; chain the result onto a page open trigger with SetPageAction
TransitionType 1..12 maps to Split, Blinds, Box, Wipe, Dissolve, Glitter, R, Fly, Push, Cover, Uncover and Fade; DurationMS clamps to the 1..60000 ms range with a 500 ms default
Syntax
Delphi
Function TPDFlib.AddActionNextTransition(ActionID, TransitionType, DurationMS: Integer): Integer;
ActiveX
Function PDFlib::AddActionNextTransition(ActionID As Long, TransitionType As Long, DurationMS As Long) As LongDLL
int DLAddActionNextTransition(int InstanceID, int ActionID, int TransitionType, int DurationMS);Parameters
| ActionID | Existing action handle that receives the transition action |
|---|---|
| TransitionType | 1 through 12 for Split, Blinds, Box, Wipe, Dissolve, Glitter, R, Fly, Push, Cover, Uncover and Fade |
| DurationMS | Duration in milliseconds; values below 1 default to 500 and values above 60000 are clamped to 60000 |
Return values
| 1 | The action was appended to the chain |
|---|---|
| 0 | The action id is invalid, the transition code is outside 1..12, or a PDF/A mode forbids actions |