i'm getting this below error while trying to modify pdf.
ERROR TypeError: null is not an object (evaluating '_PDFLib.default.modifyPDF')
the error is produced when i call write() as shown in the below code snippet
PDFDocument
.modify(filePath)
.modifyPage(page1)
.write() // Returns a promise that resolves with the PDF's path
.then(path => {
console.log('PDF modified at: ' + path);
});
i'm getting this below error while trying to modify pdf.
the error is produced when i call write() as shown in the below code snippet