PDF File Name using mainbooktitle element
Posted: Wed Jul 12, 2023 4:02 am
When I have a ditamap file named and the book map named running the PDF transform generates the output PDF as foo.pdf.
Is there a method to automatically rename the output PDF automatically to foobar.pdf possibly using args.output.base based on the mainbooktitle element (foobar)?
I currently set the args.output.base value to, which prompts me to use the default (foo) or change the name to something else, such as foobar.
I am in the process of converting many ditamaps with long file names containing dates and other descriptors. I know I can rename the ditamap files, but I wanted to keep those as is for now.
Code: Select all
foo.ditamap
Code: Select all
foobar
Is there a method to automatically rename the output PDF automatically to foobar.pdf possibly using args.output.base based on the mainbooktitle element (foobar)?
I currently set the args.output.base value to
Code: Select all
${ask('Message', input_type, '${cfn}')}
I am in the process of converting many ditamaps with long file names containing dates and other descriptors. I know I can rename the ditamap files, but I wanted to keep those as is for now.