Hi Joseph--
You might have to write an ACL script to set this up. In the script, you
would need to define an array of parameters that you can pass to the
compose::compose_for_pdf() function, and add the output file name you
want to that array. Here is a sample script that does the bare minimum
setup, to generate the PDF in the same location as the source file, with
the same basename and ".pdf" extension. (In other words, "MyDoc.xml"
will be published as "MyDoc.pdf".)
# batch print a document
require compose;
function batch_print(doc = current_doc()) {
# init params
local params[];
# derive output filename
params['outputFile'] = compose::set_output_file( doc, 'preview',
".pdf");
# set interactive off so it knows we're in batch mode
params['interactive'] = 0;
# add stylesheet param
params['stylesheet'] = compose::get_doc_stylesheet(doc,
"printstylesheet", "pdf");
#compose
compose::compose_for_pdf(doc,params);
}
# go ahead and call the function now
batch_print();
If you put this code into a file batchprint.acl, you should be able to
invoke it in a batch file by putting "source batchprint" into the -c
parameter argument, like so:
"C:\program files\PTC\Arbortext Editor\bin\x64\editor.exe" -styler -c
"source batchprint" Document1.xml
HTH
--Clay
Clay Helberg
Senior Consultant
TerraXML