<div dir="ltr">I'd follow the same pattern as the one Tom described. Have the external system create ALL the inputs that the typesetting program needs to produce the PDF. Let TeX do ALL the typesetting, and the external system ALL the preparation of inputs for typesetting.<div>-- </div><div>Jonathan</div></div>