Open foscone opened 6 years ago
Hi, is there a way to use a variable for a part of file name?
I'm thinking of something like: <button onclick="return xepOnline.Formatter.Format('container',{ pageWidth:'210mm', pageHeight:'297mm', render:'download', filename: `name-${variable}` });">PDF</button>
<button onclick="return xepOnline.Formatter.Format('container',{
pageWidth:'210mm',
pageHeight:'297mm',
render:'download',
filename: `name-${variable}`
});">PDF</button>
Thanks
I was able to use a PHP variable for the file name of the PDF. Don't know if it's possible for a JS variable. This is what I used. filename:'<?php echo $filename; ?>'
filename:'<?php echo $filename; ?>'
Hi, is there a way to use a variable for a part of file name?
I'm thinking of something like:
<button onclick="return xepOnline.Formatter.Format('container',{
pageWidth:'210mm',
pageHeight:'297mm',
render:'download',
filename: `name-${variable}`
});">PDF</button>
Thanks