Thanks!
(For some reason, I hoped it will be easy as flipping the recipe switch)
D
dannehhh
@dannehhh
0
Reputation
2
Posts
145
Profile views
0
Followers
0
Following
Posts made by dannehhh
-
RE: Docx Template with handlebars to PDF
-
Docx Template with handlebars to PDF
Hi, new user here.
We've started using JSReport as a docx-template filler in our system with handlebars, but sometimes we would like the output of this template to be a PDF.
What's the convention and best practice here?jsreport.render({ template: { engine: 'handlebars', recipe: 'docx', helpers: this.helpers, docx: { templateAsset: { content: content.toString('base64'), encoding: 'base64', }, }, }, data: formattedData, });