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

Problem in merging two documents using Assembler service???

$
0
0

Hi,

 

I'm trying to merge two documents using Assembler service. In the first document, I have three form fields (One textbox and two buttons). There are separate onclick events written for each button. We have to fill the text box with enduser's input. The second document is a simple pdf image document. If I convert form (First document) to pdf to merge with second document, the buttons in the document are not working. If not, when trying to merge actual form with pdf using assembler service, it is throwing following errors:

 

Caused by: com.adobe.internal.pdfm.assembly.AssemblyException: PDFM_S02012: Document "srij_test1.pdf" cannot be assembled because it has an AcroForm and the base document "coverpage" has XFA.

          at com.adobe.internal.pdfm.assembly.DocAssembler.insertDocument(DocAssembler.java:930)

 

 

Please suggest how to resolve this....

 

Thanks in advance.......


How to force the bookmark tree to autoexpand upon open

$
0
0

If I add bookmarks to a PDF via Acrobat, the PDF opens with all bookmarks expanded (on the bookmark panel).

 

Now, I am using LCES AssemberServices to build a PDF with bookmarks. Everything works fine but that PDF opens will the bookmark tree collapsed to the first level.

 

Is there a trick, a special parameter/property/attribute on the DDX or Bookmarks so the result PDF opens with the bookmark tree fully expanded? I could not find anything in the documentation.

 

TIA

Julio

CollateralNotFoundException from the DDX

$
0
0

Hi,

 

Sorry, my question is a bit of naive.

 

I was trying to create a sample portfolio using Assembler.

 

The DDX file which I was using looks like below -

 

<DDX xmlns="http://ns.adobe.com/DDX/1.0/">

  <PDF result="final.pdf">

    <PDF source="/Applications/SampleApplication/1.0/form1.pdf"/>

    <PDF source="/Applications/SampleApplication/1.0/form2.pdf"/>

  </PDF>

  <?ddx-source-hint name="/Applications/SampleApplication/1.0/form1.pdf"?>

  <?ddx-source-hint name="/Applications/SampleApplication/1.0/form2.pdf"?>

</DDX>

 

 

form1.pdf and form2.pdf are at the paths mentioned in the application. I am passing this DDX as an input to the process, but it is giving me the exception -

 

Caused by: com.adobe.internal.pdfm.CollateralNotFoundException: DDXM_S14017: A <PDF> source document is required, but no documents were found for {PDF source="/Applications/TestApplication/1.0/form1.pdf"}.

 

The process properties which I set are below -

process.JPG

 

Can somebody help me in resolving this exception ?

 

Thanks

XDP Assembly Issue

$
0
0

Hi All,

 

I am getting following error while assembling the XDPs containg fragment references:-

 

Assembler cannot stitch fragment. Unable to resovle reference:

 

If the first document input to the assembler do not contain any fragment reference then the assembly happens, but if first document contains fragment reference then the error comes.

 

 

Assemble PDF's located in Network folder

$
0
0

Hi,

 

I am trying to assemble PDF's which are located in a network folder..

 

<?xml version="1.0"?>

<DDX xmlns="http://ns.adobe.com/DDX/1.0/">

     <PDF result="PDFA.pdf">

          <PDF source="\\w2msmossmgn02\SharedFolder\PID_APR_P111556.pdf"/>

          <PDF source="\\w2msmossmgn02\SharedFolder\PID_P111556.pdf"/>

     </PDF>

</DDX>

 

when the assembler service is invoked with the above DDX, i get an error as below,

 

com.adobe.internal.ddxm.DDXMException: com.adobe.internal.pdfm.CollateralNotFoundException:

DDXM_S14017: A <PDF> source document is required, but no documents were found for {PDF source="\\w2msmossmgn02\SharedFolder\PID_APR_P111556.pdf" baseDocument="true"}.

 

I have also tried giving the files names as specified in the DDXREF help file as below,

 

file:///dir-path/filename  (file:///w2msmossmgn02/SharedFolder/PID_APR_P111556.pdf) but it didn't work either.


Can some one pls help?

 

Thank you,

Sandeep.

Dynamic bookmark xml file associates with pdf files

$
0
0

Hi,

 

I have a process that generates a bookmark xml at runtime and uses the PDF Generator service to convert various documents (word, excel, and images) to PDF.  How do I associate the bookmark xml as a DDX to each pdf file that is generated by the PDF Generator service?  so the final pdf will allow the user to click on a bookmark to get to a specific document within the pdf.

 

Thanks,

 

Hai

Create links

$
0
0

Hi,

 

We can create a table of contents with the bookmarks in the ddx when assembling several PDF documents to one big document.

Some documents are related, for example document number 12 is related to document 3, but in the resulting PDF there may be 20 pages and other documents between them. What I would like to do is create a link on the bottom of document 3, which when I click on it brings me to the page where document 12 is located. There I would like a link back to document 3. Something like creating links with Adobe X.

 

Is this possible through ddx commands? If so, could you please provide an example?

 

Thanks,

Patrick

Submit Assembled Form

$
0
0

Hi.

 

I have used assembler services to assemble multiple xdp documents into a single xdp document and then render to client using renderPDFForm.

 

The form renders 100% and my fields are also pre-populated with the xml I have specified.

 

I now want to submit the form back to the server as xml. I have tried all possible conbination and also followed the sample found at:
http://help.adobe.com/en_US/livecycle/9.0/programLC/help/index.htm?content=000186.html#155 0733

 

The only submit button which seems to work is the HTTPSubmitButton

 

I keep getting this error:
Content is not allowed in prolog. (Which means that my xml is incorrect?)

 

Why is this and how can I fix it?


FileAttachments in Execute Script

$
0
0

How to add attachments to generated PDF document (i.e. MainForm) and send it to a mail in a ALC process?

 

Here, my script below

 

import java.util.Map;

import java.util.HashMap;

import java.lang.String;

import java.lang.StringBuilder;

import java.util.List;

import com.adobe.idp.Document;

 

 

String QUOTE = "\"";

 

 

quote( String s ) {

  return  QUOTE + s + QUOTE;

}

 

 

generateDDX() {

 

 

List attachList = patExecContext.getProcessDataListValue("/process_data/attachments1");

 

Document parentDocument = patExecContext.getProcessDataDocumentValue("/process_data/formDoc");

String documentName = parentDocument.getAttribute("basename");

 

 

final StringBuilder ddx = new StringBuilder();

final String newLine = "\n";

 

 

ddx.append( "<?xml version=" ).append( quote("1.0" ) ).append( " encoding=" ) .append( quote( "UTF-8") ).append(  "?>"  ).append( newLine );

ddx.append( "<DDX xmlns=" ).append( this.quote( "http://ns.adobe.com/DDX/1.0/" ) ).append( ">" ).append( newLine );

ddx.append( "<PDF result=" ).append( this.quote( "out.pdf" )).append( ">" ).append( newLine );

ddx.append( "<PDF source=" ).append( this.quote( "in.pdf" )  ).append(">").append( newLine );

ddx.append( "<NoForms/>" ).append( newLine );

ddx.append( "<NoXFA/>" ).append( newLine );

 

Map documents = new HashMap();

for (int i=0; i<attachList.size(); i++) {

 

Document document = (Document)attachList.get(i);

String currentFileName = document.getAttribute("basename");

 

ddx.append( "<FileAttachments source=" ).append( this.quote( currentFileName ) ).append(  ">" ).append( newLine );

ddx.append( "<File filename=" ).append( this.quote( currentFileName )  ).append(  "/>" ).append( newLine );

ddx.append( "<FilenameEncoding encoding=" ) .append( this.quote( "UTF-8" )  ).append(  "/>" ).append( newLine );

ddx.append( "</FileAttachments>").append( newLine );

 

documents.put(currentFileName, document);

}

 

patExecContext.setProcessDataMapValue("/process_data/documents", documents);

ddx.append( "</PDF>\n</PDF>\n</DDX>\n" );

patExecContext.setProcessDataStringValue( "/process_data/@AssemblerDDX", ddx.toString() );

}

 

this.generateDDX();

 

Error Message:

Capture.JPG

Live cycle service timeout

$
0
0

I have application which call adobe live cycle service such as assembler service,form data integration service,reader extension service etc. in my application we set timeout as 30 min. when i call large files for assembling  and it looks like assembling service take more time to assemble. but after 30 min my application will time out but as i saw live cycle log it still process the old request.

Is there anyway to set timeout for assemble service or  in general live cycle service other than pdfgeneration so that when my application timeout same time in server also that request should terminate

Assemble XDP with fragments :: No repository resource found (PDFM_W00009)

$
0
0

Hello,

 

I have a XDP, which refers to many fragments. Everything is stored in the repository ALC (AEM Forms 6).

Main XDP (formName.xdp) in: repository://MYFORMS/formName.xdp

 

Content of  formName.xdp form:

<?xml version="1.0" encoding="UTF-8"?><?xfa generator="Designer_V6..." APIVersion="..."?><xdp:xdp xmlns:xdp=...>


...
<subform usehref="repository:\\FRAGMENTS\MYFRAGMENT1.xdp#som($template....)" x="..." y="..."><subform usehref="repository:\\FRAGMENTS\MYFRAGMENT2.xdp#som($template....)" x="..." y="..."><subform usehref="repository:\\FRAGMENTS\MYFRAGMENT3.xdp#som($template....)" x="..." y="...">
...<subform usehref="repository:\\FRAGMENTS\MYFRAGMENTN.xdp#som($template....)" x="..." y="...">
...</xdp:xdp>

 

 

Render form in HTML5 (default profile) -> OK

http://alchost:8080/lc/content/xfaforms/profiles/default.html?contentRoot=repository://rep ository/MYFORMS&template= formName.xdp

 

Render form programmatically (as PDF) (FormsService.renderPDFForm(...)) via webService api (http:// alchost:8080/soap/services/FormsService?wsdl&...) -> OK

 

But with the Assembler Service does not work... my simple ddx file:

 

<?xml version="1.0" encoding="UTF-8"?><DDX xmlns="http://ns.adobe.com/DDX/1.0/">    <XDP result="out.pdf">        <XDP source="formRenderAndFlatten.xdp" />    </XDP></DDX>

 

The error that provides the service:

com.adobe.internal.pdfm.util.RepositoryURLConnection PDFM_W00009: No repository resource found for url : "repository://FRAGMENTS/MYFRAGMENT1.xdp "com.adobe.repository.bindings.dsc.client.ResourceRepositoryClientException: ALC-REP-018-000: Resource [/FRAGMENTS/MYFRAGMENT1.xdp] does not exist or you do not have sufficient rights to access it.    at com.adobe.repository.bindings.dsc.client.ResourceRepositoryClient.readResource(ResourceRepositoryClient.java:494)    at com.adobe.internal.pdfm.cache.CacheService.readRepositoryResource(CacheService.java:420)    at com.adobe.internal.pdfm.util.RepositoryURLConnection.getInputStream(RepositoryURLConnection.java:90)    at java.net.URL.openStream(URL.java:1037)

 

No reposotory resource found, but resource exist, and administrator user can read it.

The service is not able to resolve the fragments and fails. In all cases I used the same XDP and fragments (HTML5 / PDF via webService).

 

My question is is there any way to tell Assembler (in DDX file) that automatically resolves all referenced in the XDP fragments? how?


Thx.

ALC-ASM-S00-002 NumberFormatException on attachment filename or source

$
0
0

DDX:

<DDX xmlns="http://ns.adobe.com/DDX/1.0/">  <PDF result="pdfWithAttachments" format="PDF">   <PDF source="pdfWithoutAttachments"/>   <FileAttachments source="pic_20140917135051.bmp">    <File filename="pic_20140917135051.bmp"/>    <Description>null</Description>   </FileAttachments>  </PDF></DDX>

 

Error:

INFO  [com.adobe.livecycle.assembler.AssemblerServiceImpl] ALC-ASM-N00-001: Execute: invoke() begin on thread WorkerThread#1[192.168.126.196:59718] 186
INFO  [com.adobe.internal.ddxm.Executive] DDXM_N00000: Started processing result named pdfWithAttachments
ERROR [com.adobe.internal.ddxm.Executive] DDXM_S00001: Failed to assemble result named pdfWithAttachments
ERROR [com.adobe.livecycle.assembler.AssemblerServiceImpl] ALC-ASM-S00-002: Failed to execute the DDX - error messages provided.
com.adobe.livecycle.assembler.client.ProcessingException: ALC-ASM-S00-002: Failed to execute the DDX - error messages provided.
 at com.adobe.livecycle.assembler.AssemblerServiceImpl.makeResult(AssemblerServiceImpl.java:906)
 at com.adobe.livecycle.assembler.AssemblerServiceImpl.execute(AssemblerServiceImpl.java:510)
 at com.adobe.livecycle.assembler.AssemblerServiceImpl.invoke(AssemblerServiceImpl.java:454)
Caused by: java.lang.NumberFormatException: For input string: "20140917135051"
 at java.lang.NumberFormatException.forInputString(Unknown Source)
 at java.lang.Integer.parseInt(Unknown Source)
 at java.lang.Integer.parseInt(Unknown Source)
 at com.adobe.internal.pdfm.embeddedfiles.EmbeddedFilesHandler.updateBaseDocEmbeddedFilenames(EmbeddedFilesHandler.java:947)
 at com.adobe.internal.pdfm.embeddedfiles.EmbeddedFilesHandler.addEmbeddedFile(EmbeddedFilesHandler.java:691)
 at com.adobe.internal.pdfm.embeddedfiles.EmbeddedFilesHandler.importEmbeddedFiles(EmbeddedFilesHandler.java:285)
 at com.adobe.internal.pdfm.attachments.Attachments.importAttachments(Attachments.java:370)
 at com.adobe.internal.ddxm.task.attachments.ImportAttachments.execute(ImportAttachments.java:216)
 at com.adobe.internal.ddxm.ddx.Node.execute(Node.java:353)

 

 

The assembler is parsing the filename or source string (not sure which) and cast the timestamp part to a number ??

The assembler proces works fine with source and filename "pic_1.bmp"

 

Livecycle ES2.0

How to set Bookmark element to expand

$
0
0

Hi All,

 

First I'll explain the solution so that you understand what I'm trying to accomplish.

 

The solution involves several PDF files and each one is linked by the bookmark using the following DDX:

 

<Bookmark>    
    <Action>    
          <Launch NewWindow="true">     
               <File Name="MyFile.pdf"/>    
          </Launch>   
     </Action>   
     <Title>Contents</Title>  
</Bookmark>

 

Each PDF file will contains the same bookmark hierarchy data which consist of several levels, therefore they contain the links to the other PDF files.  Each time one of the bookmark element is clicked the bookmark resets back to it's orginal state of collapsed since it is opening a new pdf file.

 

I'm trying to dynamically assemble a bookmark.xml file with a pdf document.  There are two things I want to accomplish through the bookmark.xml:

 

1.  Set one specific bookmark element to expanded when it's rendered

2.  Set the focus (or highlight) a specific bookmark element when it's rendered.

 

Basically each time a bookmark item is clicked I want to maintain the user's last selected bookmark item to be expanded when the new pdf file is displayed.

 

I've attached a sample pdf file in which I can manipulate the expanding and collapsing of the bookmark via javascript, I need to figure out how to do this via the xml file that defines the bookmark hierarchy and functions, since the bookmark is merged with the PDF via the Assembler DSC service.

 

Is this possible?  If yes what xml tag would accomplish this?  Please provide any suggestion or alternative solution.  Currently I have two alternative solution (html or flex UI) but this involves additional depencies outside of LiveCycle, I'd like to create a solution that is completely Adobe LiveCycle.

 

Thanks,

s_stuff

How to force the bookmark tree to autoexpand upon open

$
0
0

If I add bookmarks to a PDF via Acrobat, the PDF opens with all bookmarks expanded (on the bookmark panel).

 

Now, I am using LCES AssemberServices to build a PDF with bookmarks. Everything works fine but that PDF opens will the bookmark tree collapsed to the first level.

 

Is there a trick, a special parameter/property/attribute on the DDX or Bookmarks so the result PDF opens with the bookmark tree fully expanded? I could not find anything in the documentation.

 

TIA

Julio

Assembler failing after form saved using ES3 designer(original works saved using ES2)

$
0
0

I am having an issue with a form that was created in ES2.  If you use the form created in ES2, the assembler process works fine.  Once you open the form and save it using ES3, the process fails.  Any idea what to look for, or anybody else see this behavior?  I have also created a new form using the the old form as a template and it also fails. 


Evaluating PDF Assembler and getting the following errors - Help needed

$
0
0

I am having following three issues when merging document using PDF Assembler Service:-


Error # 1 (JobID: 20369)

  1. System.ServiceModel.FaultException: Caused by: com.adobe.livecycle.assembler.client.ProcessingException: ALC-ASM-S00-002: Failed to execute the DDX - error messages provided. Caused by: com.adobe.internal.pdfm.assembly.AssemblyException: PDFM_S02013: The "insertDocument" operation failed on "137.pdf".; nested exception is:

com.adobe.livecycle.assembler.client.ProcessingException: ALC-ASM-S00-002: Failed to execute the DDX - error messages provided.

 

Error # 2 (JobID: 19966)

  1. System.ServiceModel.FaultException: Caused by: com.adobe.livecycle.assembler.client.ProcessingException: ALC-ASM-S00-002: Failed to execute the DDX - error messages provided. Caused by: com.adobe.internal.pdfm.assembly.AssemblyException: PDFM_S02013: The "insertDocument" operation failed on "1033.pdf".; nested exception is:

com.adobe.livecycle.assembler.client.ProcessingException: ALC-ASM-S00-002: Failed to execute the DDX - error messages provided.

 

Error # 3 (JobID: 19419)

The request channel timed out while waiting for a reply after 00:09:59.9920000. Increase the timeout value passed to the call to Request or increase the SendTimeout value on the Binding. The time allotted to this operation may have been a portion of a longer timeout.



Right-align PageOverlay with assembler

$
0
0

Hello,

 

I would like to apply a given single-page PDF document as a PageOverlay over a multi-page and multi-format PDF document (each page can have a different height and size).

And I need the Overlay to be aligned on the right of each page of the base document.

 

Is there an easy way to do this?

 

Thanks.

What is the best practice to configure Watchedfolder process to assemble multiple file types to single PDF file

$
0
0

I have a requirement to assemble multiple files from client app to a single PDF file. Please let me know the best practice to achieve it through watchedfolder configuration. We have to use watched folder sue to several reasons. I have noted down some design considerations please let me know if there is a better method. Also any reference to process input.xml file will also be very helpful.

 

Client App:

The client app will

    -> Generate a input.xml file and prepare few input files with multiple extensions like .doc, .html, .xls, .pdf etc.

    -> All these files along with input.xml will be copied inside a directory (input-dir) with unique name and input-dir will be copied to the 'input' directory of ALC ES4 watched folder.

    -> The app will wait for the result file to appear in the 'result' directory of ALC watched folder.

    -> The result file will be named same as name of input-dir.pdf as it is a unique name and it will help to troubleshoot the environment in case of any error.

 

The input.xml will contain below information.

   -> Header

   -> Footer

   -> List of file names

  

ALC ES4:

A process watching the folder will copy the input-dir along with all files and process it and write the output to result directory.

 

Flow of the process needs to be as below.

Option 1  

   -> Store the input-dir name to use in result PDf name

   -> Read input.xml file and store header and footer values to a variable

   -> Read the file list info from input.xml and convert files one by one to PDF in the same order (the order is important)

   -> Prepare a variable with generated file names

   -> Assemble all generated PDF files and apply header, footer information

   -> Write the result PDF to 'result' directory of watched folder

 

Option 2

   -> Store the input-dir name to use in result PDf name

   -> Read input.xml file and store header and footer values to a variable

   -> Read the file list info from input.xml and store it in a variable

   -> Assemble all input files as package and apply header, footer information

   -> All non PDF files will be automatically converted to PDF (is this available?)

   -> Write the result PDF to 'result' directory of watched folder

Disassemble PDF documents

$
0
0

Hi,

 

Is it possible to disassemble a PDF document invoking LiveCycle ES2 using MTOM, when the document does not contain bookmarks to separate each individual document inside?

 

Thank you.

Premature End of File Exception

$
0
0
When I invoke the Assembler Service via Web Service in Java 1.4 environment I get the following exception:<br /><br />org.xml.sax.SAXParseException: Premature end of file.<br />     at org.apache.axis.AxisFault.makeFault(AxisFault.java:101)<br />     at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:701)<br />     at org.apache.axis.Message.getSOAPEnvelope(Message.java:435)<br />     at org.apache.axis.handlers.soap.MustUnderstandChecker.invoke(MustUnderstandChecker.java:62) <br />     at org.apache.axis.client.AxisClient.invoke(AxisClient.java:206)<br />     at org.apache.axis.client.Call.invokeEngine(Call.java:2784)<br />     at org.apache.axis.client.Call.invoke(Call.java:2767)<br />     at org.apache.axis.client.Call.invoke(Call.java:2443)<br />     at org.apache.axis.client.Call.invoke(Call.java:2366)<br />     at org.apache.axis.client.Call.invoke(Call.java:1812)<br />     at com.adobe.idp.services.AssemblerServiceSoapBindingStub.invoke(AssemblerServiceSoapBinding Stub.java:264)<br /><br />I am using the DDX given in the SDK Documentation.<br /><br />File DDXFile = new File("C:\\DDX.xml");<br />               FileInputStream fis = new FileInputStream(DDXFile);<br />               byte[] ddxBytes = new byte[new Long(DDXFile.length()).intValue()];<br />               fis.read(ddxBytes); fis.close();<br /><br />               ddxDoc.setBinaryData(ddxBytes);               <br />               <br />               CfLogWriter.debug("The DDX Sent to Assembler:\n" + DDX);<br />               // Execute the Assembler Service<br />               AssemblerService assemblerService = getAssemblerService();<br />               AssemblerResult jobResult = assemblerService.invoke(ddxDoc,inputMap,assemblerSpec);<br /><br />DDX File:<br /><br /><?xml version="1.0" encoding="UTF-8"?><br /><DDX xmlns="http://ns.adobe.com/DDX/1.0/"><br /><PDF result="out.pdf"><br /><PDF source="map.pdf" /><br /><PDF source="directions.pdf" /><br /></PDF><br /></DDX><br /><br /> Any ideas?
Viewing all 10743 articles
Browse latest View live


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