JavaScriptAction
Vue de l’ensemble
‘JavaScriptAction’ est une classe dans Aspose.PDF FOSS pour Java.Déduit de: PdfAction.
L’action JavaScript est un script JavaScript (ISO 32000-1:2008, §12.6.4.16).
Cette classe fournit 8 méthodes pour travailler avec les objets JavaScriptAction dans les programmes Java. Les méthodologies disponibles comprennent: ‘JavaScriptAction’, ‘fromDictionary’, getNext', ‘getPdfDictary’, 'getScript', ’getType', ‚setScript. Tous les membres publics sont accessibles à toute application Java après l’installation de l’Aspose.PDF FOSS pour le package Java, propriétés : ’next’, ‘‘pdfDictorial’,‘‘script’,`type’.
Propriétés
| Name | Type | Access | Description |
|---|---|---|---|
script | String | Read | Returns the JavaScript source code. |
pdfDictionary | PdfDictionary | Read | Returns the underlying action dictionary. |
type | String | Read | Returns the action type (/S entry). |
next | PdfAction | Read | Returns the next action (/Next), if any. |
méthodes
| Signature | Description |
|---|---|
JavaScriptAction(dict: PdfDictionary) | Parses a JavaScriptAction from an existing dictionary. |
JavaScriptAction(script: String) | Creates a JavaScriptAction with the given script. |
getScript() → String | Returns the JavaScript source code. |
setScript(script: String) | Sets the JavaScript source code (as a text string). |
getPdfDictionary() → PdfDictionary | Returns the underlying action dictionary. |
getType() → String | Returns the action type (/S entry). |
getNext() → PdfAction | Returns the next action (/Next), if any. |
fromDictionary(dict: PdfDictionary, doc: Document) → PdfAction | Factory: creates the appropriate PdfAction subclass from a dictionary. |
Voir aussi
- Aspose.PDF pour Java — API d’entreprise