Shows the 14 standard PDF fonts that DsPdfViewer supports out-of-the-box.
window.onload = function(){
//DsPdfViewer.LicenseKey = "***key***";
const viewer = new DsPdfViewer("#viewer", {
workerSrc: "/document-solutions/javascript-pdf-viewer/demos/product-bundles/build/dspdfviewer.worker.js",
supportApi: getSupportApiSettings(),
restoreViewStateOnLoad: false
});
viewer.addDefaultPanels();
viewer.addAnnotationEditorPanel();
viewer.toolbarLayout.annotationEditor = {
default: ["edit-select", "$split", "edit-free-text", "$split", "edit-undo", "edit-redo", "save"],
mobile: ["edit-select", "$split", "edit-free-text", "$split", "edit-undo", "edit-redo", "save"],
fullscreen: ["$fullscreen", "edit-select", "$split", "edit-free-text", "$split", "edit-undo", "edit-redo", "save"]
};
viewer.open("/document-solutions/javascript-pdf-viewer/demos/product-bundles/assets/pdf/viewer-font-support.pdf");
}