refactor(annotations.js): update createAnnotations to return signatures and remove instance input
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user