Quantcast
Channel: Adobe Community : Popular Discussions - LiveCycle Output
Viewing all 9631 articles
Browse latest View live

Webservice Output as List

$
0
0

Hi,

 

I have a problem with the Webservice output of live cycle (in combination with calling it from a pdf form).

I want to give back a list of datatuples, for example: a list of IDs, names and oher information.

When I make the output type as list (+ subtype xml), then I can't define how the subtype is structured, when I call from Designer the webservice, the output is just document+element. When I choose xml as output type, it ignores the schema file, too, and gives back document+element.

So how can I achieve to have a list of datatuples, a kind of table?

I only can set more than one variable, but than I have no list...

 

Regards

Fabian N.


Error while running java code

$
0
0
Hi
I have requirement of converting word document to PDF/A. Iam using the APIs provided by Livecycle ES. I tried to implement the requirement by creating a java program with the jar files provided. But iam getting the following error. Can anyone plz help me?

ALC-PDG-1000-000: com.adobe.livecycle.generatepdf.client.ConversionException: ALC-PDG-001-000-Conversion failed because of an exception.
Causing exception message : Remote EJBObject lookup failed for 'ejb/Invocation'; nested exception is:
javax.naming.NoInitialContextException: Need to specify class name in environment or system property, or as an applet parameter, or in an application resource file: java.naming.factory.initial
Caused by: java.rmi.RemoteException: Remote EJBObject lookup failed for 'ejb/Invocation'; nested exception is:
javax.naming.NoInitialContextException: Need to specify class name in environment or system property, or as an applet parameter, or in an application resource file: java.naming.factory.initial
at com.adobe.idp.dsc.provider.impl.ejb.EjbMessageDispatcher.initialise(E jbMessageDispatcher.java:90)
at com.adobe.idp.dsc.provider.impl.ejb.EjbMessageDispatcher.doSend(EjbMe ssageDispatcher.java:119)
at com.adobe.idp.dsc.provider.impl.base.AbstractMessageDispatcher.send(A bstractMessageDispatcher.java:57)
at com.adobe.idp.dsc.clientsdk.ServiceClient.invoke(ServiceClient.java:2 08)
at com.adobe.livecycle.generatepdf.client.GeneratePdfServiceClient.creat ePDF(GeneratePdfServiceClient.java:172)
at Converttopdfa.main(Converttopdfa.java:44)
Caused by: javax.naming.NoInitialContextException: Need to specify class name in environment or system property, or as an applet parameter, or in an application resource file: java.naming.factory.initial
at javax.naming.spi.NamingManager.getInitialContext(Unknown Source)
at javax.naming.InitialContext.getDefaultInitCtx(Unknown Source)
at javax.naming.InitialContext.getURLOrDefaultInitCtx(Unknown Source)
at javax.naming.InitialContext.lookup(Unknown Source)
at com.adobe.idp.dsc.provider.impl.ejb.EjbMessageDispatcher.initialise(E jbMessageDispatcher.java:84)
... 5 more
Error OCCURRED: ALC-PDG-001-000-Conversion failed because of an exception.
Causing exception message : Remote EJBObject lookup failed for 'ejb/Invocation'; nested exception is:
javax.naming.NoInitialContextException: Need to specify class name in environment or system property, or as an applet parameter, or in an application resource file: java.naming.factory.initial

at com.adobe.livecycle.generatepdf.client.GeneratePdfServiceClient.creat ePDF(GeneratePdfServiceClient.java:194)
at Converttopdfa.main(Converttopdfa.java:44)

ES3 Output getting java.io.IOException: error=12, Cannot allocate memory

$
0
0

Hello,

 

We just upgraded to ES3, and for load testing, I submitted 1000 xml files to a watch folder.  The process that picks up the files merges the data with a template and dispatches the documents to a printer.  We had this same memory issue in the past on an older version of LiveCycle, but we increased the swap space according to http://blogs.adobe.com/livecycle/2010/05/livecycle_formsivs_and_output i.html and the problem went away. 

 

Here's what our current swap space is:

Swap:  4200912k total,  2478116k used,  1722796k free,   932596k cached

 

Is there a good way to resolve this error?  Or are we supposed to bump up the swap even higher now?

 

Thanks,

Ryan

 

2012-04-02 12:07:46,821 ERROR [STDERR] Caused by: com.adobe.livecycle.formsservice.exception.RenderFormException: java.lang.reflect.UndeclaredThrowableException: An unexpected exception while resolving a new connection to an Adobe Service.

2012-04-02 12:07:46,821 ERROR [STDERR]  at com.adobe.formServer.FormServer.renderForm(FormServer.java:233)

2012-04-02 12:07:46,821 ERROR [STDERR]  at com.adobe.formServer.FormServer.renderForm(FormServer.java:281)

2012-04-02 12:07:46,821 ERROR [STDERR]  at com.adobe.formServer.docservice.FormsDocService.renderForm(FormsDocSe rvice.java:558)

2012-04-02 12:07:46,821 ERROR [STDERR]  at com.adobe.printSubmitter.util.FormSubmitter.submit(FormSubmitter.java :187)

2012-04-02 12:07:46,821 ERROR [STDERR]  ... 187 more

2012-04-02 12:07:46,823 ERROR [STDERR] Caused by: com.adobe.livecycle.formsservice.exception.FormServerException: java.lang.reflect.UndeclaredThrowableException: An unexpected exception while resolving a new connection to an Adobe Service.

2012-04-02 12:07:46,823 ERROR [STDERR]  at com.adobe.formServer.PA.XMLFormAgentWrapper.doPAExecute(XMLFormAgentW rapper.java:267)

2012-04-02 12:07:46,823 ERROR [STDERR]  at com.adobe.formServer.PA.XMLFormAgentWrapper.execute(XMLFormAgentWrapp er.java:203)

2012-04-02 12:07:47,661 ERROR [STDERR]  at com.adobe.formServer.Controller.doXFARender(Controller.java:809)

2012-04-02 12:07:47,661 ERROR [STDERR]  at com.adobe.formServer.Controller.doRender(Controller.java:623)

2012-04-02 12:07:47,661 ERROR [STDERR]  at com.adobe.formServer.Controller.render(Controller.java:140)

2012-04-02 12:07:47,662 ERROR [STDERR]  at com.adobe.formServer.FormServer.renderForm(FormServer.java:214)

2012-04-02 12:07:47,662 ERROR [STDERR]  ... 190 more

2012-04-02 12:07:47,664 ERROR [STDERR] Caused by: java.lang.reflect.UndeclaredThrowableException: An unexpected exception while resolving a new connection to an Adobe Service.

2012-04-02 12:07:47,664 ERROR [STDERR]  at com.adobe.formServer.PA.XMLFormAgentWrapper.doPAExecute(XMLFormAgentW rapper.java:257)

2012-04-02 12:07:47,664 ERROR [STDERR]  ... 195 more

2012-04-02 12:07:47,664 ERROR [STDERR] Caused by: java.lang.reflect.InvocationTargetException

2012-04-02 12:07:47,664 ERROR [STDERR]  at sun.reflect.GeneratedMethodAccessor564.invoke(Unknown Source)

2012-04-02 12:07:47,664 ERROR [STDERR]  at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces sorImpl.java:25)

2012-04-02 12:07:47,664 ERROR [STDERR]  at java.lang.reflect.Method.invoke(Method.java:597)

2012-04-02 12:07:47,664 ERROR [STDERR]  at com.adobe.util.ConnectionFactoryReflectionWrapper.getConnection(Utili ties.java:1162)

2012-04-02 12:07:47,664 ERROR [STDERR]  at com.adobe.formServer.PA.XMLFormAgentBase.getFormAgentFactory(XMLFormA gentBase.java:67)

2012-04-02 12:07:47,664 ERROR [STDERR]  at com.adobe.formServer.PA.XMLFormAgentWrapper.doPAExecute(XMLFormAgentW rapper.java:252)

2012-04-02 12:07:47,664 ERROR [STDERR]  ... 195 more

2012-04-02 12:07:47,664 ERROR [STDERR] Caused by: java.lang.reflect.UndeclaredThrowableException: Error executing process

2012-04-02 12:07:47,664 ERROR [STDERR]  at com.adobe.service.ProcessResource.startProcess(ProcessResource.java:4 86)

2012-04-02 12:07:47,664 ERROR [STDERR]  at com.adobe.service.ProcessResource.<init>(ProcessResource.java:195)

2012-04-02 12:07:47,664 ERROR [STDERR]  at com.adobe.service.ProcessFactoryManager.createConnectionResource(Proc essFactoryManager.java:64)

2012-04-02 12:07:47,664 ERROR [STDERR]  at com.adobe.service.ResourcePooler.allocateResource(ResourcePooler.java :154)

2012-04-02 12:07:47,664 ERROR [STDERR]  at com.adobe.service.ConnectionFactoryManagerPeer.getConnectionResourceF romPool(ConnectionFactoryManagerPeer.java:79)

2012-04-02 12:07:47,664 ERROR [STDERR]  at com.adobe.service.J2EEConnectionFactoryManagerPeerImpl.getConnection( J2EEConnectionFactoryManagerPeerImpl.java:103)

2012-04-02 12:07:47,664 ERROR [STDERR]  ... 201 more

2012-04-02 12:07:47,665 ERROR [STDERR] Caused by: java.io.IOException: Cannot run program "chmod": java.io.IOException: error=12, Cannot allocate memory

2012-04-02 12:07:47,665 ERROR [STDERR]  at java.lang.ProcessBuilder.start(ProcessBuilder.java:460)

2012-04-02 12:07:47,665 ERROR [STDERR]  at java.lang.Runtime.exec(Runtime.java:593)

2012-04-02 12:07:47,665 ERROR [STDERR]  at java.lang.Runtime.exec(Runtime.java:431)

2012-04-02 12:07:47,665 ERROR [STDERR]  at java.lang.Runtime.exec(Runtime.java:328)

2012-04-02 12:07:47,665 ERROR [STDERR]  at com.adobe.service.ProcessResource.startProcess(ProcessResource.java:4 75)

2012-04-02 12:07:47,665 ERROR [STDERR]  ... 206 more

2012-04-02 12:07:47,665 ERROR [STDERR] Caused by: java.io.IOException: java.io.IOException: error=12, Cannot allocate memory

2012-04-02 12:07:47,665 ERROR [STDERR]  at java.lang.UNIXProcess.<init>(UNIXProcess.java:148)

2012-04-02 12:07:47,665 ERROR [STDERR]  at java.lang.ProcessImpl.start(ProcessImpl.java:65)

2012-04-02 12:07:47,665 ERROR [STDERR]  at java.lang.ProcessBuilder.start(ProcessBuilder.java:453)

2012-04-02 12:07:47,665 ERROR [STDERR]  ... 210 more

PDF Generator ES without Acrobat

$
0
0
Hi,

which conversions are supported by PDF Generator without installing Acrobat (Windows Server of course)?

Best regards

Martin

GeneratePDFService quick start code issue

$
0
0
Hi,

I am getting a build error, while using quick start code for converting the native document into PDF document through webservice api.

error: The type or namespace TestPDFG8WS couldn't found

In the quickstart code, it is using TestPDFG8WS as namespace as you can see below a line of code.
using TestPDFG8WS.GeneratePDFService;

Any idea, what reference we have to add to fix the issue ?.

refer the following link to see the quickstarts code .
http://livedocs.adobe.com/livecycle/es/sdkHelp/programmer/sdkHelp/wwhe lp/wwhimpl/common/html/wwhelp.htm?context=sdkHelp&file=quickStarts_Gen eratePDF.11.1.html

Regards,
Arvind

PDF/A-1a not available

$
0
0
Hi,

I'm trying to convert a PDF to a PDF/A. This needs to be done using the steps PDF -> PS and after that PS -> PDF/A. My problem is that I can only select 'PDFA1b 2005 CMYK' and 'PDFA1b 2005 RGB' as profile settings to convert PS to PDF/A.

There doesn't seem to be a preset for a profile for PDF/A-1a. Even if I try to create a new 'Adobe PDF Setting' for the conversion, I can't find out how to create a PDF/A that conforms to PDF/A-1a eventough http://www.adobe.com/products/livecycle/pdfgenerator/features.html says that should be supported by Generator ES.

regards,

Jan Eerdekens

Subform instances and data missing in email submitted pdf

$
0
0
I have created a form in which a user can add instances of a subform, enter data, and submit it to an email address as a pdf. When I receive the form the instances are missing. What steps do I need to follow to ensure that all of the data that is entered is sent? Thank you.

Stephen

Is Output ES3 the right choice?

$
0
0

Hello. My company has asked me to search a solution for doing the following things.

 

-We already have the form designed with LiveCycle Designer.

-Now we have to prefill/merge the form with data from an xml document.

-In the xml, there are lots of data for creating different forms. I mean, there is the data from thousands of different people and the data from each person will go into a single form.

Then I have been asked to generate these pdf forms (around 10000) already prefilled.

 

We only have LC Designer, and I assume this can't be done with Designer and we will need something like Forms or Production Print.

 

What I thought is that I have to buy the suite, install a LiveCycle Server and then use the module that allows me to do that.

I have searched a lot in the forums and Adobe's site, but I don't know exactly what I should do.

 

Could someone give me a hand in what should I do?

 

Thanks in advance.


Sample lca for output

$
0
0

Hi,

 

does anyone have a sample lca, showing the use of Output and Matching Pattern rules?

I have a request from a customer where they have one xml-file and many xdp-files.

 

rgds,

 

Tommy

Printing text in Gray color

$
0
0

Hi,

 

I have forms which are  printing all the grey color text in dark black, on xerox printers. When the output is of PS type, it works all well and good, but for PCL, it is printing all black.

 

I have been using hppcl5c.xdc for PCL. Do I need to have a xerox XDC? If yes, where can I get it or what changes do I need to make to the HP XDC in order to make it work?

 

 

 

Is there probably a specific property that needs to be changed in order to get the Gray text printed gray instead of black?

 

Is there anything else that I am probably not doing right?

 

 

Thanks.

 

 

 

Here is my XDC if you need:

 

<?xml version="1.0" encoding="UTF-8"?><?xfa generator=

can we assemble XFA and Flatten pdfs?

$
0
0

Hi,

I am not sure if assembler can create a XFA + Flatten pdf to a XFA form.

I want to assemble a pdf1 (xfa)  with pdf2 (flatten) to produce a pdf3.

 

Pdf3 should not be completely xfa or flatten, so that i can submit pdf3 on hit of button and extract out xml out of it.

 

PDF1 is an application form

PDF2 is just instruction page, so i want to keep it as flatten to reduce size of this pdf.

 

PD3 should be XFA cum flatten, so when it is rendered to user and user clicks on submit button. It will submit the entire pdf.

 

Please let me know how do i do using assembler.

 

assemblerXFAFLATTEN.jpg

 

 

Regards

Sunil

How to buy only "Adobe LiveCycle PDF Generator ES" Service

$
0
0
Hi All,
I am very new to development using ADOBE products.
I have a small requirement, to generate PDF from DOC/DOCX on microsoft and non-microsoft platform using Java language (No MS Office is installed on that machine). So I came to know about Adobe LiveCycle PDF Generator ES.
Now, is there any other solutions available for specific need or above is the one from Adobe?
Can we purchase only this component? How to get the information about pricing of this component - Adobe LiveCycle PDF Generator ES?

Please guide,
Thanks in Advance,
(I am sorry if this is wrong place for this question and if so, please redirect me to the proper forum)

Disassemble PDF based on Content Table

$
0
0
Suppose a PDF file has a table of contents. Is it possible to split this PDF file into multiple small PDF files that only contains one chapter?

Thanks,
P

What is the use for the input file name?

$
0
0
Some of Livecycle function need inputfilename besides the document object, such as following. The document object already give as a input parameter, why still need inputfilename? Actually I use some other dummy name that is different from the physical file name, it still works. So just do not get it why need input file name parameter in some Adobe LiveCycle class functions?

CreatePDFResult createPDF(Document inDoc, String inputFileName, String pdfSettings, String securitySettings, Document inSettingsDoc, Document inXMPDoc)

Thanks for your help,
P

Problem passing xml file data to my function

$
0
0

I have a function that should take the xml file produced on clicking the submit button of the interactive pdf form and pass the datasets into an access table.

Currently it looks like this:

<?xml version="1.0" encoding="UTF-16"?>

<topmostSubform>

<TextField1/>

<TextField2/>

<TextField3/>

</topmostSubform>

The code is looking for a schema as shown below:

<?xml version="1.0" encoding="UTF-16"?>

<topmostSubform>

     <Problem>

<TextField1/>

<TextField2/>

<TextField3/>

     </Problem>

</topmostSubform>

How do I get the “Problem” tag to be included in the xml dataset file? I am pretty much a rookie at xml and the xml source page was a bit intimidating. Attached is my base form.

 

Thanks!

 

Crystal


Unable to create / open file

$
0
0

hi

 

i try to create pdf with Output Service API Quick Starts, i copy code in the file in

Web service API so i call my output service.
i have a modele ComdeDynamiq.xdp
i have  a  xml file for merging : PurchaseOrder.xml
i add to url service ?blob=base64
but my method generatePdfOutput don't run at all : no file generate
and in my file output.xml where i put data in generatepdfOutputResultDoc.BinaryData there is :
<?xml version="1.0" encoding="UTF-8"?>
<printResult>
<status>2</status>
<requestId>611e915ba</requestId>
<context>7</context>
<messages>
<message>Unable to create / open file C:\creerPdf\Res.pdf.</message>
</messages>
<printSpec/>
</printResult>
i don't knom what doesn't run in my code?? i give it in attach files? is there somoene which could help me??
thanks
my code is below :

using

 

System;

using

 

System.IO;

using

 

System.Collections;

using

 

System.ComponentModel;

using

 

System.Data;

using

 

System.Configuration;

using

 

System.Web;

using

 

System.Web.Security;

using

 

System.ServiceModel;

using

 

WebReference;

 

///

 

<summary>

///

 

Summary description for outPut

///

 

</summary>

public

 

classTestOutPut

{

 

public TestOutPut()

{

 

//

 

// TODO: Add constructor logic here

 

//

}

 

publicvoid Essai()

{

 

try

{

 

 

// Appel du service output

 

OutputServiceService outPutClient = newOutputServiceService();

outPutClient.Url +=

"?blob=base64";

outPutClient.Credentials =

new System.Net.NetworkCredential("administrator", "password");

 

//creation d'un blob pour stocker les données du fichier

 

BLOB inData = newBLOB();

 

//reference du fichier xml à merger avec le modèle :

 

String inPutFile = @"C:\\creerPdf\\PurchaseOrder.xml";

 

FileStream fs = newFileStream(inPutFile, FileMode.Open);

 

//on récupère la taille du flux du fichier et on crée un tableau de byte :

 

int longueur = (int)fs.Length;

 

Byte[] byteArray = newbyte[longueur];

 

//on remplit le tableau de byte avec le contenu du file stream :

fs.Read(byteArray, 0, longueur);

 

//on rempli le blob

inData.binaryData = byteArray;

 

//option de run time du pdf

 

PDFOutputOptionsSpec pdfOptions = newPDFOutputOptionsSpec();

pdfOptions.fileURI =

"C:\\creerPdf\\Res.pdf";

pdfOptions.lookAhead = 300;

pdfOptions.generateManyFiles =

false;

pdfOptions.recordLevel = 1;

 

//render options :

 

RenderOptionsSpec renderOptions = newRenderOptionsSpec();

renderOptions.cacheEnabled =

true;

 

//Create empty objects to pass as arguments

 

//to the generatePDFOutput method

 

//These objects are populated by the method

 

BLOB generatePDFOutputMetaDataDoc = newBLOB();

 

BLOB generatePDFOutputResultDoc = newBLOB();

 

OutputResult outResult = newOutputResult();

 

//On crée le doc pdf

outPutClient.generatePDFOutput(

TransformationFormat.PDF, "BonCmdeDynamiq.xdp", "C:\\creerPdf\\", pdfOptions, renderOptions, inData, out generatePDFOutputMetaDataDoc, out generatePDFOutputResultDoc, out outResult);

 

//On ecrit les données vers output.pdf

 

//on rempli un tableau de byte avec les données de sortie

 

byte[] outByteArray = generatePDFOutputResultDoc.binaryData;

 

//On crée un nouveau fichier pour stocker les données

 

string FILE_NAME = "C:\\Adobe\\Output.xml";

 

FileStream fs2 = newFileStream(FILE_NAME, FileMode.OpenOrCreate);

 

//on ecrit le flux de données

 

BinaryWriter w = newBinaryWriter(fs2);

w.Write(outByteArray);

w.Close();

fs2.Close();

fs.Close();

}

 

catch(Exception ee)

{

 

Console.WriteLine(ee.Message);

}

 

}

}

Run JavaScript before flattening in Output

$
0
0

I have some forms that I sometimes need to flatten with Output before emailing to a user, sometimes not. On these forms I have some JavaScript that decides if certain fields are visible or not depending on certain data in the forms. This JS works fine when I render the form unflattened (i.e. not using Output). When I flatten the form with Output, my JavaScript doesn't run and the fields are unaffected. Is there any way around this? I would love to find a way to do this on the PDF rather than get in to some custom server side code in my PHP.

 

- Nathan

Case study needed: online/realtime statement generator (via webservice for example)...

$
0
0

Hi,

 

I need a casestudy on realtime/online statement generation by Adobe LiveCycle using webservice. I expect webservice to be capable enough to provide a realtime statment generation. Following is requirement:

 

1. Presentation layer sends an xml request to Adobe LiveCycle.

2. Adobe generates a pdf/afp or any other printable format statement as output.

3. The output is sent to printer.

4. Print comes out of printer.

5. Print handed over to customer.

 

Please suggest a case study that helps achieving business objective as stated above.

 

Thanks and regards,

Mayank

Enable Track Changes on Interactive Form

$
0
0
Hi,

I have an interactive form that I designed in LiveCycle Designer 8. I've set the distribution rights using Acrobat Pro to enable my Reader users to fill out the form.

When the completed form is returned I would like to add sticky notes and text edits using Pro, but Acrobat restricts the use of markup tools to static PDF documents.

Does anyone know how to allow the use of markup tools on interactive documents?

Thanks!

Andi

Embedding Fonts with Forms Service RenderPDFForm

$
0
0
We have several custom fonts being used in PDFs we're rendering using the Forms Service RenderPDFForm API. Rather than require consumers of these PDFs to have those fonts installed, we'd like to embed them in the PDFs being generated. Is it possible to embed fonts using RenderPDFForm?

Tom
Viewing all 9631 articles
Browse latest View live


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