2 Replies Latest reply on Sep 21, 2010 7:40 AM by MartinDetva

    adobe livecycle pdf doesn't work for me :(

    MartinDetva

      Hello all

       

      I've got the following java code, using the Java API:

       

      //except the soap libraries, I am using these external jars: adobe-output-client.jar, adobe-livecycle-client.jar, adobe-generatepdf-client.jar

       

      Properties connectionProps = new Properties();
      connectionProps.setProperty(ServiceClientFactoryProperties.DSC_DEFAULT_SOAP_ENDPOINT, "http://server:port");
      connectionProps.setProperty(ServiceClientFactoryProperties.DSC_TRANSPORT_PROTOCOL, ServiceClientFactoryProperties.DSC_SOAP_PROTOCOL);
      connectionProps.setProperty(ServiceClientFactoryProperties.DSC_SERVER_TYPE, "WebLogic");
      connectionProps.setProperty(ServiceClientFactoryProperties.DSC_CREDENTIAL_USERNAME, "someLogin");
      connectionProps.setProperty(ServiceClientFactoryProperties.DSC_CREDENTIAL_PASSWORD, "somePassword");
                 
      ServiceClientFactory myFactory = ServiceClientFactory.createInstance(connectionProps);
                 
      OutputClient outClient = new OutputClient(myFactory);
                             
      FileInputStream fileInputStream = new FileInputStream("C:\\Adobe\\TimeSheet_data.xml");
      Document inXMData = new Document(fileInputStream);
                 
      PDFOutputOptionsSpec outputOptions = new PDFOutputOptionsSpec();
      outputOptions.setFileURI("C:\\Adobe\\TimeSheet.pdf");
                 
      RenderOptionsSpec pdfOptions = new RenderOptionsSpec();
      pdfOptions.setLinearizedPDF(true);
      pdfOptions.setAcrobatVersion(AcrobatVersion.Acrobat_9);
                 
      OutputResult outputDocument = outClient.generatePDFOutput(TransformationFormat.PDF, "TimeSheet.xdp", "C:\\Adobe", outputOptions, pdfOptions, inXMData);

       

      When I run it, I'll get the following error:

       

      com.adobe.livecycle.output.exception.OutputException: 
      While trying to lookup 'com.adobe.output.config.OutputConfigHome' didn't find subcontext 'output'. Resolved 'com.adobe' in javax.naming.NameNotFoundException

      .

      .

      .

       

      1. does anybody know why I am getting this error (something with jndi names on customer's server?)

      2. I also used pure webservices (I've got the wsdl location) and run htmlToPdf, but the CSS was omitted and I've got pdf with simple

      text and hyperlinks without images and formatting. Is it possible to get it?

       

      Thanks for any information provided.

       

        Martin