Load PDF document with PDF-LIB on Node gives "No PDF header found"
Per the documentation, PDFDocument.load()
accepts a string which is the contents of the pdf file, not the name.
const fs = require('fs/promises');
const pdfData = await fs.readFile('./documents/cards/dental_insurance.pdf');
const pdfDoc = await PDFDocument.load(pdfData);