Skip to content

Home > robinson > printByBlob

printByBlob() function

This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.

通过Blob对象打印内容

Signature:

typescript
declare function printByBlob(blob: Blob, type?: string): void;
declare function printByBlob(blob: Blob, type?: string): void;

Parameters

ParameterTypeDescription
blobBlobBlob对象
typestring(Optional) MIME类型,默认为'application/pdf'

Returns:

void

Example

printByBlob(new Blob(['Hello, world!'], { type: 'text/plain' }));

Released under the MIT License.