Avatar

Level 2

Hello,

I'm looking for a solution to fill and read fields value from a PDF form. I am working with Microsoft Framework 2.0 and C# for a desktop application.

For the moment I'm using a FDF file for filling the PDF fields and iTextSharp to read back fields values once the PDF is saved. But it's not working with some PDF that are bind to a XML datasource. The idea is to drop the FDF solution and try using the XML instead.

So I have a PDF Form (myPdf.pdf) with fields binded on a XML datasource (XSD schema file myPdf.xsd).

I have a XML data file (myPdf.xml) in the same directory as the PDF file.

With LiveCycle and JavaScript is it possible to :

  • Load the XML data file and fill the PDF when I open the PDF file ?
  • Export the fields value into the XML when closing or saving the PDF file ?

If not possible with LiveCycle and JavaScript, do you know any other solution ?

I was thinking about putting a "Send by HTTP" button and use a listener on localhost to get the data, but I need to listen on a particular port and there is a little chance that this port is already used by something else. I'm really not lucky in this case but it could happen. And since the port is "hard coded" in the PDF I have no way to change it if needed. Or I haven't found how to.

Thanks for your answers