I know there are a bunch of libraries out there but none seem to exactly match my scenario. So I'm hoping to get some advice here...
technologies: I'm using Node.js on Express.js for the backend, and html/css/js for the front-end. Browser support is IE8 and up, chrome, FF, and other modern browsers.
What I need to do is: have a "to pdf" button for the user to click, which would then convert a chunk of the DOM to pdf. This chunk of DOM's html is generated dynamically when the back-end makes API calls to another app. The CSS is static.
Other than these, I have a lot of freedom to do whatever I want, as long as I don't have to send clear text data to third parties and etc.
Any recommended ways to do it?
Update: looking into wkhtmltopdf