MCPcopy Create free account
hub / github.com/electrovir/statement-parser / parsePdfs

Function parsePdfs

src/parser/parse-api.ts:38–55  ·  view source on GitHub ↗
(
    pdfs: StatementPdf[],
    debug = false,
)

Source from the content-addressed store, hash-verified

36>;
37
38export async function parsePdfs(
39 pdfs: StatementPdf[],
40 debug = false,
41): Promise<Readonly<Readonly<ParsedPdf>[]>> {
42 const parsedPdfs: Readonly<Readonly<ParsedPdf>[]> = await Promise.all(
43 pdfs.map(async (pdf) => {
44 return {
45 ...pdf,
46 data: await parsers[pdf.type].parsePdf({
47 debug,
48 ...pdf.parserInput,
49 }),
50 };
51 }),
52 );
53
54 return parsedPdfs;
55}

Callers 3

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected