AddDocumentAdditionalAction

PdfContentEditor.AddDocumentAdditionalAction method

Lägger till ytterligare åtgärd för dokumenthändelse.

public void AddDocumentAdditionalAction(string eventType, string code)
ParameterTypBeskrivning
eventTypeStringDokumenthändelsetyperna.
codeStringKoden för JavaScript.

Exempel

PdfContentEditor editor = new PdfContentEditor();
editor.BindPdf("example.pdf");
editor.AddDocumentAdditionalAction(PdfContentEditor.DocumentClose, "app.alert('Good-bye!');");
editor.Save("example_out.pdf");

Se även