happypdf / decodeFromBase64DataUri
Function: decodeFromBase64DataUri()
ts
function decodeFromBase64DataUri(dataUri): Uint8Array;Defined in: src/utils/base64.ts:86
If the dataUri input is a data URI, then the data URI prefix must not be longer than 100 characters, or this function will fail to decode it.
Parameters
| Parameter | Type | Description |
|---|---|---|
dataUri | string | a base64 data URI or plain base64 string |
Returns
Uint8Array
a Uint8Array containing the decoded input