Skip to content

Getting Started

Print files or the current web view from a Capacitor app.

This plugin wraps the native printing UI on iOS and Android. Start with the current WebView (no external file), or print a local file such as a PDF generated in your app.

Documentation: Read the full documentation

Install

npm install @rdlabo/capacitor-printer
npx cap sync

Usage

From a button handler, print the current WebView to open the system print UI: Print WebView. Print a real local PDF or other file with Print PDF and files.

When to use

Use this plugin when your app needs to present the system print dialog, such as:

  • Printing a receipt or invoice as PDF.
  • Printing a report generated in the app.
  • Printing the contents of the current page.

Platform notes

  • iOS and Android: printFile and printWebView are both supported.
  • Web: Not supported because browsers already provide window.print().