Page 1 of 1

Plugin to leave just the PDF file in the output directory?

Posted: Thu Jan 07, 2021 8:12 pm
by chrispitude
Hi folks!

I'd like to make a DITA-OT plugin that leaves just the final PDF directly in the output directory, without the temporary files or an intermediate directory containing them. (Ideally this would be controlled via parameter, so my writers get the simplified output but I can disable it when debugging issues.)

Before I work on this, has anyone already done this?

Thanks!

Re: Plugin to leave just the PDF file in the output directory?

Posted: Fri Jan 08, 2021 10:51 am
by julien_lacour
Hello Chris,

SInce Oxygen 22.0, the PDF - HTML & CSS scenario contains a 'args.keep.output.debug.files' parameter which can be set to 'No' if you only want the final pdf in the output folder.
Is it what you were looking for?

Regards,
Julien

Re: Plugin to leave just the PDF file in the output directory?

Posted: Fri Jan 08, 2021 6:08 pm
by chrispitude
julien_lacour wrote: Fri Jan 08, 2021 10:51 am SInce Oxygen 22.0, the PDF - HTML & CSS scenario contains a 'args.keep.output.debug.files' parameter which can be set to 'No' if you only want the final pdf in the output folder.
Is it what you were looking for?
This will work perfectly, thank you!

My goal is to have "Transform with" (from the Project view context menu) place all PDF files in the same output directory. So, I will change the output directory from ${pd}/out/pdf-${cfn} to ${pd}/out, then set args.keep.output.debug.files to No as you suggested. Each book's temporary files appear directly in the out/ directory, but only temporarily as they are subsequently deleted before the next book runs.

So in the end, every works as desired. :) Thank you!!