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

Exclude some pages from numbering in DDX

$
0
0

Hi,

 

I have a need to exclude certain pages/documents from displaying the page number in an assembled document.

 

For example, if there are 10 documents that i'm assembling together, a few documents in between should not have the Page numbers in the Footer.

i.e. if these 10 documents contribute to a total of 20 pages, currently it displays as Page 1 of 20, Page 2 of 20 etc.

If i do not want say about 5 pages to display the number, it should display as Page 1 of 15, Page 2 of 15, followed by the 5 pages that do not have the page numbers, and then remaining pages like Page 3 of 15 etc.

 

Currently we use DDX Footer tags like "<_PageNumber/> of <_LastPageNumber/>".

Below is a sample DDX that we use.

 

Please assist me on this.

 

 

Sample DDX:

 

<?xml version='1.0' encoding='UTF-8' ?>

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

     <PDF result='out.pdf'>

         <Footer replaceExisting='true'>

             <Right>

                 <StyledText font-size='8pt' font-family='Helvetica'>

                     <p>Page <_PageNumber/> of <_LastPageNumber/>

                     </p>

                 </StyledText>

             </Right>

         </Footer>

         <Watermark rotation='45' scale='100%' opacity='10%' fitToPage='true'>

             <StyledText font-size='56pt' font-family='Helvetica'>

                 <p>

                     <b>DRAFT</b>

                 </p>

             </StyledText>

         </Watermark>

         <PageMargins left='0.5in' top='0.5in' right='0.5in' bottom='0.2in' alternation='None' />

         <PDF source='source0' bookmarkTitle='chap0'/>

         <PDF source='source1' bookmarkTitle='chap1'/>

         <PDF source='source2' bookmarkTitle='chap2'/>

         <PDF source='source3' bookmarkTitle='chap3'/>

         <NoXFA/>

     </PDF>

</DDX>

 

Thanks,

Karthic


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.



Merging PDFs through Assembler service returns error

$
0
0

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

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

    <PDF result="out.pdf">

        <PDF source="map.pdf" baseDocument="true"/>

        <PDF source="directions.pdf"/>

    </PDF>

</DDX>

 

This is the ddx file I am using as one of the input values .

It fails at this point

 

assemblerRes = svcAssembler.invoke(ddxBLOB, inputMap, assemblerSpec)

 

and the error returned is this:

 

com.adobe.livecycle.assembler.client.OperationException: ALC-ASM-S00-002: Failed to execute the DDX - error messages provided. Caused by: javax.xml.bind.UnmarshalException Caused by: org.xml.sax.SAXParseException: Content is not allowed in trailing section.; nested exception is:
com.adobe.livecycle.assembler.client.OperationException: ALC-ASM-S00-002: Failed to execute the DDX - error messages provided." String

 

Does this require any special changes in the server side .I have checked for the whitespace in the ddx document and there aren't any.Looks fine.

Any way to resolve this?

 

Fyi, I am have ES2 and am using it in .net 2.0

 

Thanks,

Dileep

 

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 can I encrypt(using PKI credential) a package/portfolio using Assembler Service

$
0
0

Hi All,

 

I have found a way to encrypt (using password credential) a package/
portfolio using a DDX and calling invokeDDX service of Assembler
Service. see the DDX snippet below

 

How  can I do the PKI based encryption on the package. I couldn't find
any DDX element for this.

 

snippet:
<?xml version="1.0" encoding="UTF-8"?>
  <DDX xmlns="http://ns.adobe.com/DDX/1.0/">
     <PDF result="GeneratedDocument.pdf" encryption="userProtect" >
        <PDF source="cover"/>
           <PackageFiles>
           <PDF source="attachments"/>
        </PackageFiles>
       </PDF>
      <PasswordEncryptionProfile name="userProtect">
                 <OpenPassword>abcd1234</OpenPassword>
     </PasswordEncryptionProfile>
  </DDX>

 

Thanks
greenday

DDX: How to add bookmarks in sourceMatch

$
0
0

Hello,

I'm working with Adobe LiveCycle ES 2.... I have a proccess with this ddx document:

 

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

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

           <PDF result="outDoc" >

                <PDF sourceMatch=".*" />

           </PDF>

     </DDX>

 

Work with n documents very well

 

It accetps a mapItem array, where one item has key: the name of the document, and value: the document in bytes.

 

Now, I try to add bookmarks, for example to add bookmark title (the name of the document), so one bookmark for document.

 

I need help to how to do it.

 

Thanks!

Assembler DDX Service returns XML file with corrupted text

$
0
0

PDF documents received in Jan and Feb are no longer processed correctly by an existing DDX application. It seems the output XML file contains text corrupted with extra spacing between characters. Is this a recent know issue?

 

AFC

filling form fields using .xml

$
0
0

Hi all,

 

We got a new requirement from our client to fill the form using .xml file.

 

Input for this process is:

1. PDF form with empty field

2. XML file to fill the form

 

I am using LiveCycle ES 8.2.

 

If anyone have this process, please advice us.

 

Thanks.

Shaji


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

Assembling huge documents:

$
0
0

Hi,

   We tried to assemble 20 documents of each document size 21.63 MB (740 pages per each document) using Assembler process. The process errors out with java.lang.IndexOutOfBoundsException: Index: 12035, Size: 12034. If I tried to assemble 15 documents, it worked. I guess this might be caused by total no. of pages count for the mashed up document. Really worried if the Adobe has the capability to handle this or not.

 

   We are running LiveCycle ES 8.2 on 32 bit OS Windows Server 2003, 4GB RAM & 3.00 G Hz processor. Our Application Server is Weblogic. I attached the log file. Moreover, If i try to run two threads parallelly to mash up, the LC server got hanged and I see the Java.OutOfMemory Exception in the log file.  So, it could not handle 2 heavy processes at a time. We didnt expect the LC getting crashed for heavy processes.

 

This is stopping us to go further in using adobe assembler services. Your help is highly appreciated.

 

Thanks,

Krishna

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.......

coerce object error out of assembler

$
0
0
I have a livecycle process that uses Assembler to create a PDF package. I then want to reader extend that package. I believe that I have to use "AssemblerResult" as the output type for the Assembler service but when it is passed to ReaderExtension, I get a "cannot coerce object from AssemblerResult to document type. Any thoughts on how to get around this??

Assembler Module V/s PDF Generation Module

$
0
0

Hi,

 

Assembler Module of the LiveCycle gives following error while publishing the big document of approx 3MB  size  or more

 

java.lang.OutOfMemoryError: Java heap space; nested exception is:

        java.lang.OutOfMemoryError: Java heap space

 

But I am able to publish successfully the same document using the PDF Generation Module of the LiveCycle.

 

I publish document using the code.

 

Please help me on the avove issue.

 

Regards,

Arvind

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

Append/Merge PDFs with SAP J2EE Application server

$
0
0

Hi Experts,

   I'm new to Adobe APIs. We have a requirement to append several PDF documents into a single document programatically using Adobe supported APIs. Upon my search I found that this can be achieved through the Assembler Service of Adobe Livecycle ES

 

http://help.adobe.com/en_US/livecycle/9.0/programLC/help/index.htm?content=000934.html

 

But, Adobe Livecycle ES can be deployed to only 3 J2EE servers(Jboss, Websphere, Weblogic) and Unfortunately we don't have any of the them in our landscape, but instead we use SAP J2EE Application Server(of SAP Netweaver 7.11).

 

So, my question is, Is there any way to use the 'Assembler Service'(or any other service to achieve PDF merging) with some application/feature that can be deployed to SAP Netweaver J2EE server? I found that 'Adobe Livecycle Data Services ES' can be deployed to SAP Netweaver J2EE server, but does that have the capability to merge PDF documents?

 

Your answers can help me to implement the best solution.

 

Thank you

Vijay.K


Assembler and PDF/A ??

$
0
0

We have Adobe LC ES2 SP2 and froms Server service license.

 

Well, we need to convert PDF to PDF / A, we are trying to use the Assembler service.

 

In the documentation "in Acrobat 9 and PDF/A-1 LiveCycle ES" (http://www.adobe.com/content/dam/Adobe/en/devnet/livecycle/pdfs/readercomp_pdfa.pdf), page 2, "Available tools ", there is a table where it says:

 

Source / Tool / ---- Function ----- Usage --- 1a -1b

LC ES / Assembler / conversion / automated / no / yes

LC ES / Assembler / validated -/ automated / no / yes

 

From this we can deduce that using the Assembler service can convert and validate PDF/A-1b.

 

However, the tests we have made ??in this regard, by IVS utility not seem to work, and server-side errors are generated.

 

We are trying to validate (using the Assembler service) a very simple PDF, which also meets PDF/A-1b know that, which we found through:

 

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

<DocumentInformation result="info" source="doc1" />

</DDX>]

 

Response: [<?xml version="1.0" encoding="UTF-8"?>

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

  <Title/>

  <Author>Javier Padrn Mrida</Author>

  <CreatedDate>2012-01-23T15:05:31Z</CreatedDate>

  <ModifiedDate>2012-01-23T15:06:21Z</ModifiedDate>

  <Creator>Acrobat PDFMaker 8.1 para Word</Creator>

  <Producer>Acrobat Distiller 8.1.0 (Windows)</Producer>

  <Version>1.4</Version>

  <NumPages>1</NumPages>

  <PDFAConformance isCompliant="notValidated" compliance="PDF/A-1b"/>

  <FormType>NotAForm</FormType>

  <PageSizes>

    <PageSize pages="1-1" width="595.22pt" height="842.0pt"/>

  </PageSizes>

  <PageRotations>

    <PageRotation pages="1-1" rotate90="0"/>

  </PageRotations>

  <PageLabels>

    <PageLabel pages="1-1" start="1" format="Decimal"/>

  </PageLabels>

</DocInfo>]

 

As expected PDFAConformance is PDF/A-1b ... But if we modify the DDX for detailed validation:

 

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

<DocumentInformation result="info" source="doc1">

<PDFAValidation

ignoreUnusedResources="true"

resultLevel="Detailed"/>

</DocumentInformation>

</DDX>]

 

Response: [[object Object]

null]

 

 

We tested with different types of PDF and in any case the Assembler service seems to be able to process the labels "PDFAValidation" or "PDFAProfile", the server side we get:

 

[com.adobe.livecycle.assembler.client.OperationException: ALC-ASM-S00-002: Failed to execute the DDX - error messages provided. Caused by: com.adobe.internal.ddxm.ValidationException: DDXM_S00003: The DDX did not pass validation against the specification. Check the job log for details.; nested exception is:

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

at org.apache.axis.message.SOAPFaultBuilder.createFault(SOAPFaultBuilder.java:222)

...

 

 

faultDetail: com.adobe.internal.ddxm.ddx.DDX.logInvalidMessage DDXM_S23001: Element PDFAValidation is invalid since document conversion is not enabled.]

 

 

So finally the question is: Is it possible to generate any type of PDF / A using only the Assembler service?

Need help in Assembler service

$
0
0

I installed Adobe Livecycle ES3 with WAS. I'm able to login to the adminui but could not see assemblerservice option under home->services->applicaiton and services->service management and then selected category as Common. Could you please let me know the steps to get the assembler service displayed in the list ASAP?

 

Thanks in advance!!

Bhargavi.

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.



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

Page break within a text object

$
0
0

I need to create a page break within a text object. I am providing the user a text field to describe an issue. There are 6 different groups with a rating and the user filled text. In the past we have provided a form with a fixed box but each manager uses different amounts of space to enter the information. Some will need multiple pages to cove the 6 areas others will get it done in two pages. How can I build my form? I have already created a flowable form allowing multiple lines and page breaks within content.  I am missing a basic step.  Please help.  (and yes I only started using LiveCycle yesterday.)

Viewing all 10743 articles
Browse latest View live


Latest Images