Hello,
I am trying to invoke PE from my CMS for publishing. I am using this URL form CMS:
sch_e3.acl has following function as described in the PE Programmer's guide:
local inFile = "D:\\cms_export\\1654640360.xml";
local outFile = "D:\\output";
local parameters[];
local resultArray[];
parameters[ "type" ] = "pdf";
parameters[ "stylesheet" ] = "d:\\stylesheets\\stylesheet.fos";
local resultString = e3::convert2( inFile, outFile, parameters );
e3::stringToArray( resultString, resultArray );
if ( resultArray[ "result" ] == "ok" ) {
# conversion succeeded: continue processing
}
else {
# conversion failed: error page is in resultArray[ "page" ]
}
This does not work, how can I invoke publishing?
I tried compose_for_pdf() method as well, that simply failed to compose.
Can anyone suggest with code please.
Thank you,
Shivaram