ngx-extended-pdf-viewer
Version:
Embedding PDF files in your Angular application. Highly configurable viewer including the toolbar, sidebar, and all the features you're used to.
11 lines (10 loc) • 376 B
TypeScript
/**
* Converts a Blob to a Uint8Array.
*
* First tries the modern `blob.arrayBuffer()` API. If that is not available
* (older browsers), falls back to using FileReader.
*
* @param blob - The Blob to convert
* @returns A Promise resolving to the Uint8Array representation of the Blob
*/
export declare function convertBlobToUint8Array(blob: Blob): Promise<Uint8Array>;