Export Formdata as XML

With the Aloaha PDF Saver API Version it is possible to export the formdata to XML.  

To be able to access the functions please create the object.

Dim PDF
set PDF = createobject("aloahapdf.edit")

Then you need to load the PDF File into the Memory. 

If PDF.load_pdf_to_mem(cstr(c:\form.pdf)) = true then
     msgbox "Form loaded to memory"
     if PDF.FormFields>0 then
          msgbox "PDF is Form"
     else
          msgbox "PDF is not a Form"
          call PDF.unload_pdf_from_mem
     end if
else
     msgbox "Could not load Form to memory"
end if



Now call the export Function 


if PDF.export_formdata(cstr("c:\formdata.xml")) <> "" then
      msgbox "PDF Export OK"
else
      msgbox "PDF Export Failed"
end if 

In some cases it might be more suiteable to retrieve the formdata directly as string

dim XMLSTRING
XMLSTRING = PDF.export_formdata("")


Now please clean up the memory and call unload_pdf_from_mem



Aloaha Software / Knowledge Base / PDF Form Saver SDK / Export XML Data
create PDF Software

Export XML Data

Any questions?
Aloaha Software - Export XML Data
ProductsKnowledge BaseShopSupportPress
Deutsche VersionEnglish version