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");
string
specifies the download action of PdfViewer.
string
specifies the export annotations action of PdfViewer.
string
specifies the export action of PdfViewer.
string
specifies the imports annotations action of PdfViewer.
string
specifies the imports action of PdfViewer.
string
specifies the load action of PdfViewer.
string
specifies the print action of PdfViewer.
string
specifies the annotation comments action of PdfViewer.
string
specifies the render action of PdfViewer.
string
specifies the export action of PdfViewer.
string
specifies the download action of PdfViewer.
string
specifies the unload action of PdfViewer.
string
Specifies the password validation action of PDF Viewer.