afpp
Version:
Async Fast PDF Parser for Node.js — dependency-light, TypeScript-first, production-ready.
10 lines • 500 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.parsePdf = parsePdf;
const core_1 = require("./core");
async function parsePdf(input, optionsOrCallback, callback) {
const options = typeof optionsOrCallback === 'function' ? {} : optionsOrCallback;
const cb = typeof optionsOrCallback === 'function' ? optionsOrCallback : callback;
return (0, core_1.parsePdfFile)(core_1.PROCESSING_TYPE.MIXED, input, options, cb);
}
//# sourceMappingURL=parsePdf.js.map