Hinzufügen von Beschriftungen mit schreibgeschütztem PSPDF Kit-Textformularfeld. Statische PSPDF-Kit-Instanz erstellt.

This commit is contained in:
Developer 02
2024-07-05 17:15:51 +02:00
parent b3b2baf0e4
commit 8eefd94569
5 changed files with 125 additions and 26 deletions

View File

@@ -14,8 +14,9 @@
// Load the PSPDFKit UI by setting a target element as the container to render in
// and a arraybuffer which represents the document that should be displayed.
static Instance
static loadPSPDFKit(arrayBuffer, container, licenseKey, locale) {
return PSPDFKit.load({
UI.Instance = PSPDFKit.load({
locale: locale,
licenseKey: licenseKey,
styleSheets: ['/css/site.css'],
@@ -43,6 +44,8 @@
Annotation: UI.annotationRenderer,
},
})
return UI.Instance;
}
static configurePSPDFKit(instance, handler) {