CalcBuilder Forum

Pass variable to pdf name

User moon_955 2013-03-23 23:34:20

Hi, is it possible to pass a variable to the name of the generated pdf?

Moonsoft support 2013-03-25 09:22:49

Hi,
the pdf is exported using library mpdf, and the output is generated with default name. It doesn't use any variable to build the name of the file. If you want to change that function, maybe you could use some parameters of the 'output' mpdf function. Here the information:

http://mpdf1.com/manual/index.php?tid=125

and here the source file where that function is called. Maybe you can try to modify this last line in order to change default output to an specific (or dynamic) name:

joomla\components\com_calcbuilder\views\calcbuilder\tmpl\pdf.php


Hope this helps, regards

...
Support/development

Perfect for small code changes or to correct any bug at your site

Buy now!
...
Support/development 10 hours

Get a bigger amount of hours for more complex tasks and get a 10% discount

Buy now!