Skip to content

Print the WebView

Present the system print UI for the current WebView content. Only Android and iOS. Call this after Installation. From a button, this is the fastest way to confirm the system print UI without an external file. Print a PDF or other file with Print PDF and files.

import { Printer } from '@rdlabo/capacitor-printer';

await Printer.printWebView({ name: 'Document' });

name is the print job name and defaults to 'Document'.

method printWebView(...)

Present the printing user interface to print the web view content.

printWebView(options?: PrintOptions | undefined) => Promise<void>

type alias PrintWebViewOptions

PrintOptions