This is a Capacitor plugin for printing the webview. It supports the Web, iOS and Android Platform.
npm install capacitor-webview-print
npx cap sync
Maintainer | GitHub |
---|---|
Yasin Şimşek |
5uper |
Plugin | Capacitor |
---|---|
6.x.x |
6.x.x |
No configuration required for this plugin.
import { WebviewPrint } from 'capacitor-webview-print';
public async printWebview(fileName: string): Promise<void> {
await WebviewPrint.print({ name: fileName });
}
- Web
- iOS
- Android
print(options: PrintOptions) => Promise<void>
Trigger a webview print event
Param | Type | Description |
---|---|---|
options |
PrintOptions |
The print options |
Since: 6.0.0
Prop | Type | Description | Since |
---|---|---|---|
name |
string |
Name of the file to be printed. This is an required attribute. | 6.0.0 |