happypdf / decodeXfaXml
Function: decodeXfaXml()
ts
function decodeXfaXml(bytes): string;Defined in: src/utils/strings.ts:148
Decode XFA template bytes into a string. XFA templates are almost always UTF-8, Some producers, emit other single-byte encodings, rather than failing fall back to latin1, which maps every byte to a code point
Parameters
| Parameter | Type |
|---|---|
bytes | Uint8Array |
Returns
string