Search docs/
Getting StartedPlugins

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?

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.

Contact Us Today!

Installation

ionic cordova plugin add cordova-pdf-generatornpm install @ionic-native/pdf-generatornpm install cordova-pdf-generatornpm install @ionic-native/pdf-generatorionic cap sync
Ionic Enterprise comes with fully supported and maintained plugins from the Ionic Team. Learn More or if you're interested in an enterprise version of this plugin Contact Us

Supported Platforms

  • Android
  • iOS

Usage

Using React?

See here.

import { PDFGenerator } from '@ionic-native/pdf-generator';

constructor(private pdfGenerator: PDFGenerator) { }

...

this.pdfGenerator.fromURL(url, options).then(base64String => console.log(base64String));