RenditionAction
Overview
RenditionAction is a class in Aspose.PDF FOSS for .NET.
Inherits from: PdfAction.
A rendition action (PDF §12.6.4.14) — controls the playing of multimedia content.
This class provides 8 methods for working with RenditionAction objects in .NET programs.
Available methods include: CreateGoTo, CreateJavaScript, CreateLaunch, CreateNamed, CreateUri, GetECMAScriptString, RenditionAction, ToString.
All public members are accessible to any .NET application after installing the Aspose.PDF FOSS for .NET package.
Properties: Next, Rendition, RenditionOperation, Type.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
Rendition | Rendition? | Read | The rendition to play (/R entry). |
RenditionOperation | int | Read/Write | The operation to perform (/OP entry): 0 = play, 1 = stop, 2 = pause, 3 = resume, 4 = play-from-start. |
Type | ActionType | Read | The action type. |
Next | Annotations.ActionCollection | Read | The /Next chain — actions that fire after this one. |
Methods
| Signature | Description |
|---|---|
RenditionAction(rendition: Rendition) | Create a rendition action playing rendition. |
GetECMAScriptString() | For JavaScript actions, returns the embedded script; otherwise an empty string. |
CreateGoTo(pageIndex: int, fitType: string) | Create a GoTo action targeting a page index with the specified fit type. |
CreateUri(uri: string) | Create a URI action that opens the specified URL. |
CreateJavaScript(script: string) | Create a JavaScript action that executes the specified script. |
CreateNamed(name: string) | Create a Named action (e.g., NextPage, PrevPage, FirstPage, LastPage). |
CreateLaunch(filePath: string) | Create a Launch action that opens the specified file. |
ToString() | Human-readable representation of this appointment target. |