you can try the following code and it should give you the pdf as download in browser, of course you need to execute this on your webserver, with express it looks like this

app.get('/report', async (req, res) => { try { const resp = await client.render({ template: { content: '<h1>sample</h1>', engine: 'handlebars', recipe: 'chrome-pdf' } }) const reportName = 'report.pdf' // set response headers to trigger the browser download res.set({ 'Content-Type': resp.headers['content-type'], 'Content-Disposition': `attachment; filename=${reportName}`, }) resp.pipe(res) } catch (e) { res.status(500).send(e.message) } })