API of docverter is mentioned in curl format as shown below
curl \
http://c.docverter.com/convert \
-F from=html \
-F to=pdf \
-F input_files[]=@<(echo hello)
API states that input_files[]
value should be a multipart/form-data file
upload but in my AngularJS application, I am dynamically generating a report (at a specific route) which means it is not an html file which can be uploaded using file upload control.
My question may be bit vague because by looking at the docverter API, I am not able to know what code goes on client and what goes on server.
Overall I am looking for a solution which converts the generated HTML (along with stylesheet) to PDF file and this PDF file is then downloaded to the browser.
On the server side, I am using Node.js. Appreciate if you can provide clarity on how this conversion happens.