Search results

ServerActionSettings API in JavaScript PDF Viewer API control

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"
 };
 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 action of PdfViewer.

importAnnotations

string

specifies the imports annotations action of PdfViewer.

importFormFields

string

specifies the imports 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 export action of PdfViewer.

renderThumbnail

string

specifies the download action of PdfViewer.

unload

string

specifies the unload action of PdfViewer.