cointavia-html-to-pdf-converter

2.0.8 • Public • Published

Welcome to Cointavia HTML to PDF Generator 👋

Install from the command line:

The CointaviaPDF npm package can be installed via NPM by requiring the cointavia-html-to-pdf-converter package.

npm i cointavia-html-to-pdf-converter

Purchase Api Token

You can purchase api token through pdf.cointavia.com

Usage for Vue

In Vue project you can simply import CointaviaPDF after above command

Example :

import CointaviaPDF from 'cointavia-html-to-pdf-converter/CointaviaPDF'


export default {

  methods: {
    accessCointaviaApi() {
      const auth_token = "************";
      const fileName = "vueFile";
      const htmlString = "<h1>Hello</h1><p>Node Js</p>";

       CointaviaPDF.generatePDF(auth_token,fileName,htmlString)
    },


  }
}

With successfull request Cointavia Api will return following responce

{
    "status": 200,
    "success": {
        "filePath": "Path-To-Download-PDF"
    }
}

Disclaimer

All rights reserved @cointavia

Package Sidebar

Install

npm i cointavia-html-to-pdf-converter

Weekly Downloads

0

Version

2.0.8

License

MIT

Unpacked Size

4.12 kB

Total Files

5

Last publish

Collaborators

  • cointavia