PdfContentEditor.AddDocumentAdditionalAction
PdfContentEditor.AddDocumentAdditionalAction method
Adds additional action for document event.
public void AddDocumentAdditionalAction(string eventType, string code)
Parameter | Type | Description |
---|---|---|
eventType | String | The document event types. |
code | String | The code of JavaScript. |
Examples
PdfContentEditor editor = new PdfContentEditor();
editor.BindPdf("example.pdf");
editor.AddDocumentAdditionalAction(PdfContentEditor.DocumentClose, "app.alert('Good-bye!');");
editor.Save("example_out.pdf");
See Also
- class PdfContentEditor
- namespace Aspose.Pdf.Facades
- assembly Aspose.PDF