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

chrispitude
Posts: 326
Joined: Thu May 02, 2019 2:32 pm

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

Post by chrispitude » Thu Jan 07, 2021 8:12 pm

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: 174
Joined: Wed Oct 16, 2019 3:47 pm

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

Post by julien_lacour » Fri Jan 08, 2021 10:51 am

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: 326
Joined: Thu May 02, 2019 2:32 pm

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

Post by chrispitude » Fri Jan 08, 2021 6:08 pm

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