Page 1 of 1
Customizing the PDF file name on output
Posted: Thu Nov 24, 2016 12:51 pm
by Anonymous1
Hi,
is there a way to specify a custom file name for the PDF dependent on the selected transformation scenario?
Currently, the PDF have the file name of the main ditamap.
I would have hoped to find this option here:

Re: Customizing the PDF file name on output
Posted: Thu Nov 24, 2016 1:04 pm
by Radu
Hi,
We had a previous request to have a custom editor variable which expands to the current scenario file name and to be able to use that editor variable in all the transformation scenario fields. I will add your vote for this. Until then, I do not have a good workaround for you.
Regards,
Radu
Re: Customizing the PDF file name on output
Posted: Thu Nov 24, 2016 3:52 pm
by xephon
You can use the
outputFile.base parameter to do this, see
http://www.dita-ot.org/2.4/parameters/p ... s-pdf.html. To be more flexible, you maybe should simply rename the file with your build target. If you parse your map metadata, you can define your own patterns.
Re: Customizing the PDF file name on output
Posted: Thu Nov 24, 2016 5:12 pm
by Anonymous1
Thank you, outputFile.base works great. This seems to offer enough flexibility for us.