We regularly create and update our sample code library so you may quickly learn pdf xfa form to xml with pdf extractor sdk and the step-by-step process in VBScript. ByteScout Premium Suite was made to help with pdf xfa form to xml with pdf extractor sdk in VBScript. ByteScout Premium Suite is the set that includes 12 SDK products from ByteScout including tools and components for PDF, barcodes, spreadsheets, screen video recording.
This rich and prolific sample source code in VBScript for ByteScout Premium Suite contains various functions and options you should do calling the API to implement pdf xfa form to xml with pdf extractor sdk. Just copy and paste this VBScript sample code to your VBScript application’s code editor, add a reference to ByteScout Premium Suite (if you haven’t added yet) and you are ready to go! VBScript application implementation mostly involves various stages of the software development so even if the functionality works please check it with your data and the production environment.
If you want to try other samples for VBScript then free trial version of ByteScout Premium Suite is available on our website.
' Create Bytescout.PDFExtractor.XMLExtractor object Set extractor = CreateObject("Bytescout.PDFExtractor.XFAFormExtractor") extractor.RegistrationName = "demo" extractor.RegistrationKey = "demo" ' Load sample PDF document extractor.LoadDocumentFromFile "..\..\samplexfa.pdf" ' Iterate through content types. See type descriptions below. For i = 0 To 12 count = extractor.GetCount(i) ' Get count of files of given type For j = 0 To count - 1 extractor.SaveToFile i, j, CStr(i) & "-" & CStr(j) & ".xml" Next Next WScript.Echo "XFA form data has been extracted to XML files." ' XFAFormContentType enumeration: ' ' 0 - "config" type; ' 1 - "connectionSet" type; ' 2 - "datasets" type; ' 3 - "form" type; ' 4 - "localeSet" type; ' 5 - "postamble" type; ' 6 - "preamble" type; ' 7 - "schema" type; ' 8 - "template" type; ' 9 - "xfdf" type; ' 10 - "xmpmeta" type; ' 11 - "<xdp:xdp>" opening tag type; ' 12 - "<xdp:xdp>" closing tag type.