Community Tip - Have a PTC product question you need answered fast? Chances are someone has asked it before. Learn about the community search. X
Hello.
Arbortext Editor provide a set of ACL functions that query CCF Files to create pipeline processes. I have created a function for PDF publishing but nothing is generated (no file and no error). See code below. Can you help me ?
#PDFFileComposer.acl
autoload _composerlog::start_job _composerlog;
autoload _composerlog::add_record _composerlog;
autoload _composerlog::end_job _composerlog;
function composeToPDFFromDoc(docId, stylesheet, outputFile) {
local installPath = main::aptpath;
local ccfParameters[];
local composeStatus;
#Get the composer for PDFfile.ccf (present in the composerpath
local composer = get_composer(ccfParameters, "pdf", docId);
#setup the parameters
ccfParameters["stylesheet"] = stylesheet;
ccfParameters["stylesheetType"] = "fosi";
ccfParameters["outputFile"] = outputFile;
ccfParameters["processingType"] = "smallDoc";
ccfParameters["docID"] = docId;
ccfParameters["convertPI"] = "true";
#start logging
_composerlog::start_job("PDFFileComposer");
composeStatus = run_composer(composer, ccfParameters);
if (composeStatus) {
_composerlog::add_record(_eventlog::SEVERITY_INFO, "Success.");
message "$outputFile";
}
else {
_composerlog::add_record(_eventlog::SEVERITY_INFO, "Failure.");
}
_composerlog::end_job();
return composeStatus;
}
Regards,
David G