refactor(annotations.js): update createAnnotations to return signatures and remove instance input

This commit is contained in:
2025-09-22 17:19:00 +02:00
parent e2df610544
commit 841cc4fd8d
3 changed files with 5 additions and 4 deletions

View File

@@ -36,7 +36,8 @@ class App {
// Load annotations into PSPDFKit
try {
await createAnnotations(this.currentDocument, this.pdfKit)
let signatures = await createAnnotations(this.currentDocument);
await this.pdfKit.create(signatures);
} catch (e) {
console.error("Error loading annotations:", e);
}