RenditionAction

Inheritance: java.lang.Object, com.aspose.pdf.PdfAction

public final class RenditionAction extends PdfAction

A rendition action that controls the playing of multimedia content.

Constructors

ConstructorDescription
RenditionAction(String mediaFile, ScreenAnnotation screen)Creates the rendition action.

Methods

MethodDescription
getRendition()Gets or sets rendition associated with the action.
getRenditionOperation()The operation to perform when the action is triggered.
setRenditionOperation(int value)The operation to perform when the action is triggered.
getJavaScript()Gets or sets JavaScript code associated with the action.
setJavaScript(String value)Gets or sets JavaScript code associated with the action.

RenditionAction(String mediaFile, ScreenAnnotation screen)

public RenditionAction(String mediaFile, ScreenAnnotation screen)

Creates the rendition action.

Parameters:

ParameterTypeDescription
mediaFilejava.lang.StringThe path to multimedia file.
screenScreenAnnotationThe ScreenAnnotation object the RenditionAction will be bound with.

getRendition()

public final Rendition getRendition()

Gets or sets rendition associated with the action.

Returns: Rendition - Rendition instance

getRenditionOperation()

public final int getRenditionOperation()

The operation to perform when the action is triggered.

Returns: int - RenditionOperation element

setRenditionOperation(int value)

public final void setRenditionOperation(int value)

The operation to perform when the action is triggered.

Parameters:

ParameterTypeDescription
valueintRenditionOperation element

getJavaScript()

public final String getJavaScript()

Gets or sets JavaScript code associated with the action.

Returns: java.lang.String - String value

setJavaScript(String value)

public final void setJavaScript(String value)

Gets or sets JavaScript code associated with the action.

Parameters:

ParameterTypeDescription
valuejava.lang.StringStaring value