Use Custom Build File to reorder PDF

Posts: 10
Joined: Thu Apr 12, 2018 5:33 pm

Use Custom Build File to reorder PDF

Post by Ronser » Fri Sep 14, 2018 5:12 pm


After I build a PDF, I want to automatically reorder the pages using another .bat file. This reorders/reorientates the pages in the way I want.

Can I automate this process? After the pdf has built, I want to add a further command to run this .bat file. I think I need to add an <exec></exec> to the build.xml file but I don't really know where/how to add it in the build.xml.

Are ther eany more detailed examples than this: ... -file.html

Thanks for your help,


Posts: 7145
Joined: Fri Jul 09, 2004 5:18 pm

Re: Use Custom Build File to reorder PDF

Post by Radu » Tue Sep 18, 2018 4:51 pm

Hi Ronan,

I agree that you need to write your own ANT build file which calls the default processing and then calls the ANT <exec>, something like:

Code: Select all

<project basedir="." default="dist">
<!--The DITA OT default build file-->
<import file="build.xml"/>
<target name="dist">
<!--Call the DITA OT default target-->
<antcall target="init"/>
<!-- You could run your script here -->
More about the ANT exec task:

You should try to find an ANT tutorial and get starting writing a small build file, then progress from there.

Radu Coravu
<oXygen/> XML Editor

Post Reply