capacitor-webview-printer
v1.1.2
Published
A custom Capacitor plugin providing native print functionality, allowing your web application to send HTML strings and Blob as Base64 directly to the device's print manager on iOS (AirPrint) and Android (Print Spooler).
Downloads
27
Readme
capacitor-webview-printer
A custom Capacitor plugin providing native print functionality, allowing your web application to send HTML and Blob strings directly to the device's print manager on iOS (AirPrint) and Android (Print Spooler).
Install
npm install capacitor-webview-printer
npx cap syncAPI
print(...)
print(options: { html: string; jobName?: string; }) => Promise<void>| Param | Type |
| ------------- | ------------------------------------------------ |
| options | { html: string; jobName?: string; } |
printBlob(...)
printBlob(options: { data: Blob; type: 'image' | 'pdf'; jobName?: string; }) => Promise<void>| Param | Type |
| ------------- | --------------------------------------------------------------------- |
| options | { data: any; type: 'image' | 'pdf'; jobName?: string; } |
