Convert docx to pdf
-
Hi,
I have created a report like this link: https://playground.jsreport.net/w/admin/yo9J3hvu
I use docx for my template and send data to it like above link, but I want to get pdf file from my docx template.
How can I do it?
Thanks
-
I enabled UNOCONV option and I solved my problem!
-
hwo to enable that
template: {
recipe: 'docx',
engine: 'handlebars',
docx: { templateAsset: [Object] },
unoconv: { format: 'pdf' }
},
extensions: {
unoconv: { format: 'pdf' }
},
options: { preview: false, unoconv: { format: 'pdf' } },
reports: { save: false },
helpers: null
}it not working for me