1 Reply Latest reply on Jan 30, 2011 8:42 PM by $Nith$

    Not able to read data from an interactive PDF

    CallMeReV

      Hi all,

       

      I am trying to read xml from a static PDf ,parse it and push data to a database.

      I am using Adobe LC ES 8.2.

      I am using Read Document , export data ,set value  and a jdbc component.

      Attached below is my process diagram.

      prcess.JPG

      Read form output variable is document type which is input to export data.

      Export data output variable is also document type which is then mapped to a XML variable.

      The following is the schema used.

       

      <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" version="1.3">

      <xs:element name="AppForm" >

        <xs:complexType>

          <xs:sequence>

            <xs:element name="firstName" type="xs:string"/>

            <xs:element name="lastName" type="xs:string"/>

          </xs:sequence>

        </xs:complexType>

      </xs:element>

      </xs:schema>

       

      The following is the output I am getting.

      <xfa:data xmlns:xfa="http://www.xfa.org/schema/xfa-data/1.0/">

      <AppForm>

      <firstName>user</firstName>

      <lastName>Name</lastName>

      </AppForm>

      </xfa:data>

       

      I am not able to map the value to variables.

       

      Even after using a set value component and the following mapping I am getting only null string for the first name and last name.

       

      //Outputdata is document type ,output xml type ,first name and last name string type.

      /process_data/output , /process_data/Outputdata

      /process_data/@FirstName,/process_data/output/appform/firstname

      /process_data/@lastName,/process_data/output/appform/lastname

       

      Where am i went wrong?