Skip to content

Cordova Plugin to Open HTML To PDF use WKWebView instead of UIWebView

License

Notifications You must be signed in to change notification settings

cgutierrez365/cordova-plugin-html2pdf

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cordova-Plugin-Html2pdf

Plugin for cordova greater or equal than v3.0.0_ to enable to call Mobile.

Build status

Installation

Just type the following statement in your cli Cordova for install.

cordova plugin add cordova-plugin-html2pdf

if you want to install a specific version just add @<version> to the link

Example:

cordova plugin add [email protected]

Description

Enables Cordova apps on the iPhone and Android platforms to create pdf based on html and store it on device.

Usage

On Download function:
cordova.plugins.html2pdf.create(
  "<html><head></head><body><h1>Some</h1><p>html content.</p></body></html>",
  "~/Documents/test.pdf", // on iOS,
// "test.pdf", on Android (will be stored in /mnt/sdcard/cordova.plugin.html2pdf/test.pdf)
  success,
  error
);

License

This plugin was created under the MIT license.

About

Cordova Plugin to Open HTML To PDF use WKWebView instead of UIWebView

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 71.8%
  • Objective-C 26.7%
  • JavaScript 1.5%