Java API Livecycle Pdf Generator Invocation Error


hello<br />im new @ livecycle im using livecycle es turnkey installation jboss ,eclipse java ide last java sdk , ms office 2007  im trying convert .doc .pdf java.my java source code @ below got adobe site imported required packets when run code im getting same !%&^ error "error occurred: alc-pdg-001-001-the job configuration either cant obtained or invalid.invocation error." searched error code on internet couldnt find result.what error , how can solve?" in advance..<br /><br />--------------------------------------------------------------------------------------- ---<br />***********************************************************************<br />/*<br /><br /> * java quick start uses following jar files<br /><br /> * 1. adobe-generatepdf-client.jar<br /><br /> * 2. adobe-livecycle-client.jar<br /><br /> * 3. adobe-usermanager-client.jar<br /><br /> * 4. adobe-utilities.jar<br /><br /> * 5. jbossall-client.jar (use different jar file if livecycle es not deployed on jboss)<br /><br /> *<br /><br /> *  these jar files located in following path:<br /><br /> * <install directory>/adobe/livecycle8/livecycle_es_sdk/client-libs<br /><br /> *<br /><br /> * complete details location of these jar files,<br /><br /> * see "including livecycle es library files" in programming with<br /><br /> * livecycle es<br /><br /> */<br /><br />import java.io.file;<br /><br />import java.io.fileinputstream;<br /><br />import java.util.properties;<br /><br /> <br /><br />import com.adobe.idp.document;<br /><br />import com.adobe.idp.dsc.clientsdk.serviceclientfactory;<br /><br />import com.adobe.idp.dsc.clientsdk.serviceclientfactoryproperties;<br /><br />import com.adobe.livecycle.generatepdf.client.createpdfresult;<br /><br />import com.adobe.livecycle.generatepdf.client.generatepdfserviceclient;<br /><br /> <br /><br />public class convertworddocument {<br /><br /> <br /><br />    public static void main(string[] args)<br /><br />    {<br /><br />        try{<br /><br />        //set connection properties required invoke livecycle es                               <br /><br />        properties connectionprops = new properties();<br /><br />        connectionprops.setproperty(serviceclientfactoryproperties.dsc_default_ejb_endpoint, "jnp://localhost:1099");<br /><br />        connectionprops.setproperty(serviceclientfactoryproperties.dsc_transport_protocol,service clientfactoryproperties.dsc_ejb_protocol);         <br /><br />        connectionprops.setproperty(serviceclientfactoryproperties.dsc_server_type, "jboss");<br /><br />        connectionprops.setproperty(serviceclientfactoryproperties.dsc_credential_username, "administrator");<br /><br />        connectionprops.setproperty(serviceclientfactoryproperties.dsc_credential_password, "password");<br /><br /> <br /><br />        //create serviceclientfactory instance<br /><br />        serviceclientfactory factory = serviceclientfactory.createinstance(connectionprops);<br /><br />               <br /><br />        //create generatepdfserviceclient object<br /><br />        generatepdfserviceclient pdfgenclient = new generatepdfserviceclient(factory);<br /><br />       <br /><br />        //get microsoft word file document convert pdf document<br /><br />        string inputfilename = "c:\\adobe\\loan.doc";<br /><br />        fileinputstream fileinputstream = new fileinputstream(inputfilename);<br /><br />        document indoc = new document(fileinputstream);<br /><br />       <br /><br />        //set createpdf parameter values<br /><br />        string adobepdfsettings = "smallest_file_size";<br /><br />        string securitysettings = "no security";<br /><br />        string filetypesettings = "filetype settings";<br /><br />       <br /><br />        //convert word document pdf document<br /><br />        createpdfresult result = pdfgenclient.createpdf2(<br /><br />                indoc,<br /><br />                inputfilename,<br /><br />                filetypesettings,<br /><br />                adobepdfsettings,<br /><br />                securitysettings,<br /><br />                null,<br /><br />                null);<br /><br />           <br /><br />        //get newly created document<br /><br />        document createddocument = result.getcreateddocument();<br /><br />           <br /><br />        //save converted pdf document pdf file<br /><br />        cr



More discussions in LiveCycle pre-ES (6.x and 7.x) discussions


adobe

Comments