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

Are you missing a feature? Request its implementation here.
chrispitude
Posts: 922
Joined: Thu May 02, 2019 2:32 pm

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

Post 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!
julien_lacour
Posts: 665
Joined: Wed Oct 16, 2019 3:47 pm

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

Post 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
chrispitude
Posts: 922
Joined: Thu May 02, 2019 2:32 pm

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

Post 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!!
Post Reply