Expand my Community achievements bar.

Dive into Adobe Summit 2024! Explore curated list of AEM sessions & labs, register, connect with experts, ask questions, engage, and share insights. Don't miss the excitement.

Convert or Generate PDF form to XML format

Avatar

Former Community Member

Hello,

Is it possible to convert or generate a filled PDF form to XML with a specific format like the one below? Please advise.

<ImportSession UserID="Test" Password="Test">
<Batches>
<Batch Name="Batch Name" BatchClassName="Batch Name">
<Documents>
<Document FormTypeName="Form2314">
<IndexFields>
<IndexField Name="TITLE" Value="7601"/>
<IndexField Name="DocDate" Value="05/18/2011"/>
<IndexField Name="Person Name" Value="Smith, John"/>
<IndexField Name="From" Value="IT Division"/>
</IndexFields>
<Pages>
<Page ImportFileName="<INSERT FILE LOCATION HERE>"/>
</Pages></Document>
</Documents>
</Batch>
</Batches>
</ImportSession>

Thanks,

Han Dao

3 Replies

Avatar

Level 8

It depends on what you used to create the PDF Form. 

If you used LiveCycle Designer, then it is quite easy.   You can bind your XML strucuture to the PDF fields using either a schema, or a sample XML file.   Then LiveCycle Forms ES (a server side module running in the LiveCycle environment) can extract the data directly in your XML format.

If the form is an "Acro Form" then you can extract the data using either the LiveCycle Forms ES, or LiveCycle Form Data Integration module.   You'll then have to programatically transform it into the XML format.

If its something else, such as a non-interactive flat file, then things get more complicated

Avatar

Former Community Member

Hi Hodmi,

I would prefer to use LC Designer, can you explain little bit more on how to start it and LC Form ES.

Thanks, Han

Avatar

Level 8

Hello Han;

I've noticed that you are already very active on the Designer forums.   There is additional information in the documentation: http://help.adobe.com/en_US/livecycle/9.0/designerHelp/index.htm

You can find more about Live Cycle Forms and the other Live Cycle Modules in the Developer Center:  http://www.adobe.com/devnet/livecycle.html