documentParser
Function documentParser
documentParser(input: string | ArrayBuffer | Uint8Array<ArrayBufferLike>): Promise<{ attachments: { data: Uint8Array<ArrayBufferLike>; name: string }[] | null; getXml: (opts?: { context: ZugferdContext; fileName?: undefined; profile: string } | { context?: ZugferdContext; fileName?: undefined; profile?: ZugferdProfile<any> } | { context?: ZugferdContext; fileName?: "factur-x.xml" | "order-x.xml" | "xrechnung.xml" | ("factur-x.xml" | "order-x.xml" | "xrechnung.xml")[]; profile?: undefined }) => string | null; input: string | ArrayBuffer | Uint8Array<ArrayBufferLike>; pdf: PDFDocument | null; getSpecificationIdentifier: any; parse: any }>Parameters
-
input: string | ArrayBuffer | Uint8Array<ArrayBufferLike>
Returns Promise<{ attachments: { data: Uint8Array<ArrayBufferLike>; name: string }[] | null; getXml: (opts?: { context: ZugferdContext; fileName?: undefined; profile: string } | { context?: ZugferdContext; fileName?: undefined; profile?: ZugferdProfile<any> } | { context?: ZugferdContext; fileName?: "factur-x.xml" | "order-x.xml" | "xrechnung.xml" | ("factur-x.xml" | "order-x.xml" | "xrechnung.xml")[]; profile?: undefined }) => string | null; input: string | ArrayBuffer | Uint8Array<ArrayBufferLike>; pdf: PDFDocument | null; getSpecificationIdentifier: any; parse: any }>
Defined in packages/parser/src/index.ts:79