clean up pages, dont send the document to server

This commit is contained in:
Jonathan Jenne
2023-11-17 13:46:38 +01:00
parent 89e6903c0b
commit 2b7cd4a209
7 changed files with 201 additions and 32 deletions

View File

@@ -185,19 +185,6 @@ class App {
return false;
}
// Flatten the annotations and save the document to disk
try {
const buffer = await this.Instance.exportPDF({ flatten: true });
const postDocumentResult = await this.Network.postDocument(this.envelopeKey, this.currentDocument.id, buffer);
if (postDocumentResult === false) {
return false;
}
} catch (e) {
console.error(e);
return false;
}
return true;