Skip to main content
Version: v5

PDFGenerator

Simple plugin to generate (offline) pdf. The plugin transforms HTML to PDF and also provide the mechanism to share the pdf to other apps like Mail, etc.

https://github.com/cesarvr/pdf-generator

Stuck on a Cordova issue?

Don't waste precious time on plugin issues.

If you're building a serious project, you can't afford to spend hours troubleshooting. Ionic’s experts offer premium advisory services for both community plugins and premier plugins.

Installation#

$ npm install cordova-pdf-generator $ npm install @ionic-native/pdf-generator $ ionic cap sync

Supported Platforms#

  • Android
  • iOS

Usage#

React#

Learn more about using Ionic Native components in React

Angular#

import { PDFGenerator } from '@ionic-native/pdf-generator';
constructor(private pdfGenerator: PDFGenerator) { }
...
this.pdfGenerator.fromURL(url, options).then(base64String => console.log(base64String));