RenditionAction
Contents
[
Hide
]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
Constructor | Description |
---|---|
RenditionAction(String mediaFile, ScreenAnnotation screen) | Creates the rendition action. |
Methods
Method | Description |
---|---|
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:
Parameter | Type | Description |
---|---|---|
mediaFile | java.lang.String | The path to multimedia file. |
screen | ScreenAnnotation | The 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:
Parameter | Type | Description |
---|---|---|
value | int | RenditionOperation 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:
Parameter | Type | Description |
---|---|---|
value | java.lang.String | Staring value |