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 Long

DLL

int DLAddActionNextTransition(int InstanceID, int ActionID, int TransitionType, int DurationMS);

Parameters

ActionIDExisting action handle that receives the transition action
TransitionType1 through 12 for Split, Blinds, Box, Wipe, Dissolve, Glitter, R, Fly, Push, Cover, Uncover and Fade
DurationMSDuration in milliseconds; values below 1 default to 500 and values above 60000 are clamped to 60000

Return values

1The action was appended to the chain
0The action id is invalid, the transition code is outside 1..12, or a PDF/A mode forbids actions

See also

AddActionNextNamed, SetPageAction