Extracting Form Data as XML
Printed From: Debenu Quick PDF Library - PDF SDK Community Forum
Category: For Users of the Library
Forum Name: I need help - I can help
Forum Description: Problems and solutions while programming with the Debenu Quick PDF Library and Debenu PDF Viewer SDK
URL: http://www.quickpdf.org/forum/forum_posts.asp?TID=1564
Printed Date: 06 May 25 at 9:48AM Software Version: Web Wiz Forums 11.01 - http://www.webwizforums.com
Topic: Extracting Form Data as XML
Posted By: shree_kotekar
Subject: Extracting Form Data as XML
Date Posted: 09 Sep 10 at 12:41AM
Hi,
I am trying to extract the XFA form fields data as a XML data. Is there any built-in function that can do this? Somewhat similar to FDF format. Entire data in a XML formatted sting. Is this possible?
|
Replies:
Posted By: Ingo
Date Posted: 09 Sep 10 at 6:40AM
Hi Shree!
There's no supporting function for this case in QuickPDF. But this doesn't matter 'cause it's no problem to do it by yourself. I've done it, too. Load the relevant pdf into a string. Check the content if there's a "<rdf:". If not then there's no xml-content. If yes then check for "<rdf:RDF" as the starting position and for "</rdf:RDF" as the ending position. The content between is your relevant xml-content. Now check for the relevant xml-syntax building the content tree. At least put the extracted/built content into a txt-file or the clipboard. That's it ;-)
Cheers, Ingo
|
Posted By: tpegley
Date Posted: 20 Feb 11 at 5:17PM
Hi Ingo,
I am trying to do the opposite - injecting XML into a Dynamic form. Have you managed to do that too? If so do you have a code sample you could share please?
This is what I am trying to achieve...
1. I have some Dynamic XML forms designened with the LiveCycle Designer. 2. The users completes the form and submits the XML via email. 3. We want to pick up the XML and inject it back into a form. 4. We'd then flatten the form and send it back as a confirmation.
Thanks in advance
Trev
|
Posted By: Ingo
Date Posted: 20 Feb 11 at 7:05PM
Hi Trev!
I've didn't try the opposite (rdf into pdf). I can only suggest: Take notepad, search for "<rdf:RDF", have a look on the pdf-tags before and after. Sorry... not much ;-)
Cheers, Ingo
|
|