Simplifies communications to the API to api.pdfmiweb.com in Node.js
Client for Node.js to use pdfmiweb API service. For more informacion go to http://pdfmiweb.com/api
npm install pdfmiweb-pdf-client
var PDFClient = require'pdfmiweb-pdf-client';var PDF = "" "[[YOUR APPID]]" "[[YOUR APIKEY]]"
Only creates PDFs in API server. for get it use
PDFcreatewebPage: ""if resCreatebodyconsole.log"API says PDF has been created :)";elseconsole.log"API says PDF has not been created :(";;
//You can get a PDF as stream and do what you want:PDFgetwebPage: ""//Its an stream, do what you want!;//Or use in tandem with `PDF.save()` to store locally:PDFgetwebPage: ""PDFsavestream "path/to/save/a-name-for-this.pdf"if errSave throw errSave;console.log"PDF has been written in " + filepath;;;