Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

Java API Livecycle Pdf Generator Invocation Error

Not applicable
Hello<br />Im new at livecycle im using Livecycle ES Turnkey installation with Jboss ,Eclipse Java IDE with last java sdk and ms office 2007 im trying to convert .doc to .pdf with Java.My Java source code is at below i got this from adobe site I imported all required packets then when i run code im getting same !%&^ error "Error OCCURRED: ALC-PDG-001-001-The Job Configuration either cant be obtained or is invalid.Invocation error." I searched this error code on the internet but couldnt find any result.What does this error for and how can i solve?" Thanks in advance..<br /><br />------------------------------------------------------------------------------------------<br />***********************************************************************<br />/*<br /><br /> * This Java Quick Start uses the 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 a different JAR file if LiveCycle ES is not deployed on JBoss)<br /><br /> *<br /><br /> * These JAR files are located in the following path:<br /><br /> * <install directory>/Adobe/LiveCycle8/LiveCycle_ES_SDK/client-libs<br /><br /> *<br /><br /> * For complete details about the 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;<br /><br />import;<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 to 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,ServiceClientFactoryProperties.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 a ServiceClientFactory instance<br /><br /> ServiceClientFactory factory = ServiceClientFactory.createInstance(connectionProps);<br /><br /> <br /><br /> //Create a GeneratePdfServiceClient object<br /><br /> GeneratePdfServiceClient pdfGenClient = new GeneratePdfServiceClient(factory);<br /><br /> <br /><br /> //Get a Microsoft Word file document to convert to a 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 the Word document to a 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 the newly created document<br /><br /> Document createdDocument = result.getCreatedDocument();<br /><br /> <br /><br /> //Save the converted PDF document as a PDF file<br /><br /> cr
0 Replies