Customizing the PDF file name on output

Post here questions and problems related to editing and publishing DITA content.
Anonymous1

Customizing the PDF file name on output

Post 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:

Image
Radu
Posts: 9054
Joined: Fri Jul 09, 2004 5:18 pm

Re: Customizing the PDF file name on output

Post 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
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
xephon
Posts: 140
Joined: Mon Nov 24, 2014 1:49 pm
Location: Greven/Germany

Re: Customizing the PDF file name on output

Post 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.
stefan-jung.org – Your DITA/DITA-OT XML consultant
Anonymous1

Re: Customizing the PDF file name on output

Post by Anonymous1 »

Thank you, outputFile.base works great. This seems to offer enough flexibility for us.
Post Reply