ByteScout PDF Extractor SDK - VBScript - PDF XFA Form To XML - ByteScout

ByteScout PDF Extractor SDK – VBScript – PDF XFA Form To XML

  • Home
  • /
  • Articles
  • /
  • ByteScout PDF Extractor SDK – VBScript – PDF XFA Form To XML

PDF XFA form to XML in VBScript and ByteScout PDF Extractor SDK

Write code in VBScript to make PDF XFA form to XML with this How-To tutorial

On this page you will learn from code samples for programming in VBScript. ByteScout PDF Extractor SDK was made to help with PDF XFA form to XML in VBScript. ByteScout PDF Extractor SDK is the Software Development Kit (SDK) that is designed to help developers with data extraction from unstructured documents like pdf, tiff, scans, images, scanned and electronic forms. The library is powered by OCR, computer vision and AI to provide unique functionality like table detection, automatic table structure extraction, data restoration, data restructuring and reconstruction. Supports PDF, TIFF, PNG, JPG images as input and can output CSV, XML, JSON formatted data. Includes full set of utilities like pdf splitter, pdf merger, searchable pdf maker.

You will save a lot of time on writing and testing code as you may just take the code below and use it in your application. In order to implement this functionality, you should copy and paste code below into your app using code editor. Then compile and run your application. Code testing will allow the function to be tested and work properly with your data.

Trial version can be downloaded from our website. Source code samples for VBScript and documentation are included.

Try it today: Get 60 Day Free Trial or sign up for Web API

XfaFormToXml.vbs
      
' 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.

Try it today: Get 60 Day Free Trial or sign up for Web API

MORE INFORMATION

Get 60 Day Free Trial or Visit ByteScout PDF Extractor SDK page

Explore ByteScout PDF Extractor SDK documentation

WEB API VERSION

Sign Up for free Web API key

Explore Web API Documentation

Tutorials:

prev
next