Skip to content

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

ParameterType
bytesUint8Array

Returns

string

MIT Licensed. A fork of pdf-lib.