Capitalised pdfJsDocument and pdfLibDocument

This commit is contained in:
Saud Fatayerji
2023-11-15 02:38:07 +03:00
parent 5f23491189
commit 57415bea85
10 changed files with 21 additions and 21 deletions

View File

@@ -6,7 +6,7 @@ import { Image } from 'image-js';
import { getImagesOnPage } from "./getImagesOnPage.js";
export async function detectEmptyPages(file: PdfFile, whiteThreashold: number): Promise<number[]> {
const pdfDoc = await file.pdfjsDocument;
const pdfDoc = await file.pdfJsDocument;
const emptyPages: number[] = [];
for (let i = 1; i <= pdfDoc.numPages; i++) {