You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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; ?>'
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
The text was updated successfully, but these errors were encountered: