cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
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

mbushby
1-Newbie

Batch composition


Adepters,

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.

Thanks,

Martin Bushby
Kongsberg Maritime
1 REPLY 1

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



Clay Helberg

Senior Consultant

TerraXML


Top Tags