A modern implementation of https://gitlab.com/autokent/pdf-parse. A thin wrapper on top of pdf-js, just like the original.
import parsePdf from "jsr:@lino/pdf-parse";
const { text, info } = await parsePdf(
"https://github.com/mozilla/pdf.js/files/1340729/Hyphenator.pdf",
);
console.log(text, info);