Der PSPDFKitLicenseKey-Schlüssel wurde aktualisiert, um den Lizenzcode aus appsettings.json an das Frontend zu übergeben.

This commit is contained in:
Developer 02
2024-05-07 10:14:45 +02:00
parent 79aa6f4cb3
commit b19cccdc34
5 changed files with 11 additions and 4 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.
loadPSPDFKit(arrayBuffer, container) {
loadPSPDFKit(arrayBuffer, container, licenseKey) {
return PSPDFKit.load({
licenseKey: licenseKey,
styleSheets: ['/css/site.css'],
container: container,
document: arrayBuffer,