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 RotateParamsType = {
export async function rotatePages(params: RotateParamsType): Promise<PdfFile> {
const { file, rotation } = params;
const pages = (await file.pdflibDocument).getPages();
const pages = (await file.pdfLibDocument).getPages();
if (Array.isArray(rotation)) {
if (rotation.length != pages.length) {