These source code samples are assembled by their programming language and functions they use. ByteScout Data Extraction Suite was created to assist pdf xfa form to xml with pdf extractor sdk in VBScript. ByteScout Data Extraction Suite is the bundle that includes three SDK tools for data extraction from PDF, scans, images and from spreadsheets: PDF Extractor SDK, Data Extraction SDK, Barcode Reader SDK.
Want to speed up the application development? Then this VBScript, code samples for VBScript, developers help to speed up the application development and writing a code when using ByteScout Data Extraction Suite. Just copy and paste this VBScript sample code to your VBScript application’s code editor, add a reference to ByteScout Data Extraction Suite (if you haven’t added yet) and you are ready to go! These VBScript sample examples can be used in one or many applications.
ByteScout Data Extraction Suite free trial version is available for download from our website. Free trial also includes programming tutorials along with source code samples.
' 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.