cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - You can change your system assigned username to something more personal in your community settings. X

How to use content pipeline to publish PDF file ?

dgopois
12-Amethyst

How to use content pipeline to publish PDF file ?

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

0 REPLIES 0
Top Tags