Showing results for 
Search instead for 
Did you mean: 
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Need to share some code when posting a question or reply? Make sure to use the "Insert code sample" menu option. Learn more! X

Batch composition


Batch composition


Is there a simple way to run Editor in batch mode to perform a complete composition task silently?

I've used something like this before to get a quick print:

editor -c "print allpasses force wait" myfile.xml

but what I really want is to be able to specify a profile to be used and to compose to PDF.

We have Arbortext 5.3/6.0 and use a Publishing Engine.


Martin Bushby
Kongsberg Maritime

Hi Martin-

My advice would be to set up an ACL function that can take parameters,
set up the profiles and any other composition options, and invoke the
publish. Then you can call that function from the command line,
something like this:

editor -c "my_compose_with_profile('novice')" myfile.xml

If you are using 6.0, you may also be able to leverage publishing rules
for this purpose. I haven't done a lot of work with that yet, but it
seems like it should be helpful for situations like this. If there isn't
an obvious function in the docs for invoking a publishing rule, you
might have to poke around in the stock ACL code to find the function to
do it.


Clay Helberg

Senior Consultant


Top Tags