LiveCycle LifeLine Weblog

Extracting Data from Signed PDF using LiveCycle Server

April 25, 2009 · 4 Comments

Very common request- how do I extract data from a Signed PDF using livecycle ES
To do this you will need to have livecycle server software installed. This example uses processFormSubmission service operation of the forms component.
Attached is the PDF which explains the process and it also has the process lca and the test file need to run the process
Click here
This process can be used when you are getting the signed PDF from email/watchedFolder. This process can also be used when you are submitting the signed pdf from workspace

Categories: Form Submission
Tagged: , ,

4 responses so far ↓

  • Carlos Nascimbene // April 28, 2009 at 1:24 pm | Reply

    It works very good!!!! Can you provide a deeper explanation about the use of the namespaces in order to get the data into the variables with the setValue Operation?

    Thanks a lot,

    Carlos

    • Girish Bedekar // April 28, 2009 at 5:21 pm | Reply

      Hi Carlos
      If you look at the data which is extracted from the PDF using the process Form Submission, the data has 2 namespaces defined viz xdp and xfa. Now in order to access the data in the xml, you will also have to define the namespaces. We define the namespaces in our process. The namespace consists of a “Prefix” and URI portion. For example I had the following namespace defined in the process
      d http://ns.adobe.com/xdp/. Here d is the namepsace prefix and “http://ns.adobe.com/xdp/” is the namespace URI. If you see in the xml data, you have a namespace called XDP which points to “http://ns.adobe.com/xdp/”
      Then in my setvalue I used the “d” prefix to access the xml data. Basically whereever xdp namespace was used, I replaced it with my namespace-d in this case.
      let me know if you have any more questions
      thanks
      girish

  • Carlos Nascimbene // April 30, 2009 at 11:16 am | Reply

    Your example works really fine but in my process I’m facing some problems to retrieve and set the variable values from the resultant XML data.

    When I print the variables to the log after use the SetValue Operation i get null values (but the XML variable is holding all the XDP with the data and the chunk pdf):

    2009-04-28 11:07:18,359 INFO [STDOUT] [PID:5,812] /process_data/apellido_afiliado: null

    The XPath expressions i’m using are:

    LOCATION
    /process_data/@apellido_afiliado
    EXPRESSION
    /process_data/XML_Data/d:xdp/f:datasets/dd:data/DatosAfiliado/apellido

    What i’m doing wrong? Maybe the problem colud be the root node in my schema has not the same name of the root form element in my object’s hierarchy?

    If you think that sending all my XML data could be valuable please tell me.

    Thanks again for all your help,

    Carlos

Leave a Comment