Missed a few changes

This commit is contained in:
Saud Fatayerji
2023-11-16 02:26:45 +03:00
parent 576b0e02f6
commit 373c5e4c26
4 changed files with 14 additions and 18 deletions

View File

@@ -10,9 +10,9 @@ export type SplitPdfParamsType = {
export async function splitPDF(params: SplitPdfParamsType): Promise<PdfFile[]> {
const { file, splitAfterPageArray } = params;
const pdflibDocument = await file.pdfLibDocument;
const pdfLibDocument = await file.pdfLibDocument;
const numberOfPages = pdflibDocument.getPages().length;
const numberOfPages = pdfLibDocument.getPages().length;
let pagesArray: number[] = [];
let splitAfter = splitAfterPageArray.shift();