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

@@ -10,7 +10,7 @@ export type ScalePageParamsType = {
export async function scalePage(params: ScalePageParamsType): Promise<PdfFile> {
const { file, pageSize } = params;
const pdfDoc = await file.pdflibDocument;
const pdfDoc = await file.pdfLibDocument;
const pages = pdfDoc.getPages();
if (Array.isArray(pageSize)) {