Quantcast
Channel: PTC Community : All Content - Arbortext
Viewing all articles
Browse latest Browse all 1645

convert2 function or composition using PE

$
0
0

Hello,

 

I am trying to invoke PE from my CMS for publishing. I am using this URL form CMS:

http://localhost:28080/e3/servlet/e3?f=acl&p0=sch_e3s::publish&p1=D:\cms_export\1654640360.xml&p2=PDF&p3=D:\output&p4=myemail@mycompany.com

 

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


Viewing all articles
Browse latest Browse all 1645

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>