AddDocumentAdditionalAction
PdfContentEditor.AddDocumentAdditionalAction method
Добавляет дополнительное действие для события документа.
public void AddDocumentAdditionalAction(string eventType, string code)
Параметр | Тип | Описание |
---|---|---|
eventType | String | Типы событий документа. |
code | String | Код JavaScript. |
Примеры
PdfContentEditor editor = new PdfContentEditor();
editor.BindPdf("example.pdf");
editor.AddDocumentAdditionalAction(PdfContentEditor.DocumentClose, "app.alert('Good-bye!');");
editor.Save("example_out.pdf");
Смотрите также
- class PdfContentEditor
- пространство имен Aspose.Pdf.Facades
- сборка Aspose.PDF