ServerActionSettings

12 Sep 20251 minute to read

The ServerActionSettings module is used to provide the server action methods of PDF viewer.

<div id="pdfViewer" style="height: 100%;width: 100%;"></div>
 let viewer: PdfViewer = new PdfViewer();
 // Change the server action settings.
 viewer.serverActionSettings = {
     load: "Load",
     renderPages: "RenderPdfPages",
     unload: "Unload",
     download: "Download",
     renderThumbnail: "RenderThumbnailImages",
     print: "PrintImages",
     renderComments: "RenderAnnotationComments",
     importAnnotations: "ImportAnnotations",
     exportAnnotations: "ExportAnnotations",
     importFormFields: "ImportFormFields",
     exportFormFields: "ExportFormFields",
     renderTexts: "RenderPdfTexts",
     validatePassword: "ValidatePassword"
 };
 viewer.appendTo("#pdfViewer");

Properties

download string

specifies the download action of PdfViewer.

exportAnnotations string

specifies the export annotations action of PdfViewer.

exportFormFields string

specifies the export form fields action of PdfViewer.

importAnnotations string

specifies the imports annotations action of PdfViewer.

importFormFields string

specifies the imports form fields action of PdfViewer.

load string

specifies the load action of PdfViewer.

print string

specifies the print action of PdfViewer.

renderComments string

specifies the annotation comments action of PdfViewer.

renderPages string

specifies the render action of PdfViewer.

renderTexts string

specifies the render pdf texts action of PdfViewer.

renderThumbnail string

specifies the render thumbnail action of PdfViewer.

unload string

specifies the unload action of PdfViewer.

validatePassword string

Specifies the password validation action of PDF Viewer.