Customizing the PDF file name on output

B-E-N
Posts: 122
Joined: Thu Mar 24, 2016 5:54 pm

Customizing the PDF file name on output

Post by B-E-N » Thu Nov 24, 2016 12:51 pm

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: 6507
Joined: Fri Jul 09, 2004 5:18 pm

Re: Customizing the PDF file name on output

Post by Radu » Thu Nov 24, 2016 1:04 pm

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: 98
Joined: Mon Nov 24, 2014 1:49 pm
Location: Münster/Germany

Re: Customizing the PDF file name on output

Post by xephon » Thu Nov 24, 2016 3:52 pm

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.
Join the DOCTALES DITA development team :arrow: https://doctales.atlassian.net/wiki

B-E-N
Posts: 122
Joined: Thu Mar 24, 2016 5:54 pm

Re: Customizing the PDF file name on output

Post by B-E-N » Thu Nov 24, 2016 5:12 pm

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

Post Reply