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

Community Tip - Did you get called away in the middle of writing a post? Don't worry you can find your unfinished post later in the Drafts section of your profile page. X

convert2 function or composition using PE

sgaonkar-2
2-Guest

convert2 function or composition using PE

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:Smiley Tongueublish&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

1 REPLY 1
rdiaz
5-Regular Member
(To:sgaonkar-2)

Hi Shivaram,

I don't see too many things in the parameters and array.

Is there a reason you're using f=ACL, rather than f=convert?

Perhaps that will work as desired?

Top Tags