nativescript-html2pdf

2.0.0 • Public • Published

nativescript-html2pdf

Allows easy conversion from HTML to PDF files. Currently, only Android is supported.

Installation

tns plugin install nativescript-html2pdf

Usage

import { html2PdfFile } from 'nativescript-html2pdf';

let myHtml: string = '<p>Hello World</p>';

let pdfPath: string = 'fs.knownFolders.documents().getFile('myPdf.pdf').path;

html2PdfFile(myHtml, pdfPath);

//Your PDF file is now available at the specified path.

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 2.0.0
    3
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 2.0.0
    3

Package Sidebar

Install

npm i nativescript-html2pdf

Weekly Downloads

3

Version

2.0.0

License

ISC

Last publish

Collaborators

  • rnicoara