👋
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