RED-4917 - Blank page after clicking on "No" in the dialogue for non-matching page number in compare

This commit is contained in:
Valentin Mihai 2022-08-12 12:09:00 +03:00
parent b888c04bc2
commit ae95f3511e

View File

@ -61,8 +61,6 @@ export class CompareFileInputComponent {
async #createDocumentsAndCompare(buffer: ArrayBuffer, fileName: string) {
const currentBlob = await this._documentViewer.blob();
this._documentViewer.close();
const pdfNet = this._pdf.PDFNet;
const compareDocument = await pdfNet.PDFDoc.createFromBuffer(buffer);
@ -78,6 +76,7 @@ export class CompareFileInputComponent {
}
}
this._documentViewer.close();
await this.#loadCompareDocument(currentDocument, compareDocument);
}