redstone78
Results
1
comments of
redstone78
I used the pdf-lib package and used the getPageCount to get the # of pages. https://github.com/Hopding/pdf-lib/blob/d213f921237daca7a5e21fb38eb69d733ff34796/src/api/PDFDocument.ts#L539 Example: const pdfLoadDoc = await PDFDocument.load(Buffer.from(pdfFile.Body, 'base64')) const pageCount = pdfLoadDoc.getPageCount() console.log('page count', pageCount)