Node-html-pdf: store generated pdf on server

Created on 5 Feb 2018  路  2Comments  路  Source: marcbachmann/node-html-pdf

I am using html-pdf to create pdf. After new user subscribes for product then admin fills data and generate pdf for that user. Now i want to make it available to show/download that pdf to user when he visits profile page . Is there any way to store pdf on server with respect to product and name .Thanks in advance.

Most helpful comment

I think this is out of the scope of this library. You could write a service that handles the storage itself.

All 2 comments

I think this is out of the scope of this library. You could write a service that handles the storage itself.

@PriyankaBondarde anyway, all you need is to set the path where you want to save the file
pdf.create(html, pdfConfig.options).toFile(PATH_TO_SAVE_FILE, ...

Was this page helpful?
0 / 5 - 0 ratings

Related issues

antiframes picture antiframes  路  4Comments

hishamabutt picture hishamabutt  路  4Comments

vivekiyer114 picture vivekiyer114  路  5Comments

ascsi picture ascsi  路  3Comments

B-StS picture B-StS  路  5Comments