HOT FIX FOR PDF FILE CHANGE

This commit is contained in:
Jason Liu 2021-09-29 08:41:58 -04:00
parent fb9b007007
commit 651ad32004
1 changed files with 2 additions and 2 deletions

View File

@ -131,8 +131,8 @@ async function getPdfDetails(fileBuffer: ArrayBuffer): Promise<Receipt> {
let loadingTask = PdfJS.getDocument(typedArray);
const pdfDocument = await loadingTask.promise;
// Load last PDF page
const pageNumber = pdfDocument.numPages;
// Load FIRST DUE TO NEW COVAXON FORMAT
const pageNumber = 1;
const pdfPage = await pdfDocument.getPage(pageNumber);
const content = await pdfPage.getTextContent();