PdfContentEditor.AddDocumentAdditionalAction

PdfContentEditor.AddDocumentAdditionalAction method

Adds additional action for document event.

public void AddDocumentAdditionalAction(string eventType, string code)
ParameterTypeDescription
eventTypeStringThe document event types.
codeStringThe 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