Skip to main content
1-Visitor
September 2, 2011
Question

Batch composition

  • September 2, 2011
  • 1 reply
  • 945 views

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

    18-Opal
    September 2, 2011
    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