ServerActionSettings

6 Jul 20261 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.

Defaults to ‘Download’

exportAnnotations string

specifies the export annotations action of PdfViewer.

Defaults to ‘ExportAnnotations’

exportFormFields string

specifies the export form fields action of PdfViewer.

Defaults to ‘ExportFormFields’

importAnnotations string

specifies the imports annotations action of PdfViewer.

Defaults to ‘ImportAnnotations’

importFormFields string

specifies the imports form fields action of PdfViewer.

Defaults to ‘ImportFormFields’

load string

specifies the load action of PdfViewer.

Defaults to ‘Load’

print string

specifies the print action of PdfViewer.

Defaults to ‘Print’

renderComments string

specifies the annotation comments action of PdfViewer.

Defaults to ‘RenderAnnotationComments’

renderPages string

specifies the render action of PdfViewer.

Defaults to ‘RenderPdfPages’

renderTexts string

specifies the render pdf texts action of PdfViewer.

Defaults to ‘RenderPdfTexts’

renderThumbnail string

specifies the render thumbnail action of PdfViewer.

Defaults to ‘RenderThumbnailImages’

unload string

specifies the unload action of PdfViewer.

Defaults to ‘Unload’

validatePassword string

Specifies the password validation action of PDF Viewer.

Defaults to ‘ValidatePassword’