ByteScout Data Extraction Suite - VBScript - Convert pdf to xml with images with pdf extractor sdk - ByteScout
Announcement
Our ByteScout SDK products are sunsetting as we focus on expanding new solutions.
Learn More Open modal
Close modal
Announcement Important Update
ByteScout SDK Sunsetting Notice
Our ByteScout SDK products are sunsetting as we focus on our new & improved solutions. Thank you for being part of our journey, and we look forward to supporting you in this next chapter!

ByteScout Data Extraction Suite – VBScript – Convert pdf to xml with images with pdf extractor sdk

  • Home
  • /
  • Articles
  • /
  • ByteScout Data Extraction Suite – VBScript – Convert pdf to xml with images with pdf extractor sdk

How to convert pdf to xml with images with pdf extractor sdk in VBScript and ByteScout Data Extraction Suite

This code in VBScript shows how to convert pdf to xml with images with pdf extractor sdk with this how to tutorial

The sample source code below will teach you how to convert pdf to xml with images with pdf extractor sdk in VBScript. Want to convert pdf to xml with images with pdf extractor sdk in your VBScript app? ByteScout Data Extraction Suite is designed for it. ByteScout Data Extraction Suite is the set that includes 3 SDK products for data extraction from PDF, scans, images and from spreadsheets: PDF Extractor SDK, Data Extraction SDK, Barcode Reader SDK.

Want to quickly learn? This fast application programming interfaces of ByteScout Data Extraction Suite for VBScript plus the guidelines and the code below will help you quickly learn how to convert pdf to xml with images with pdf extractor sdk. Just copy and paste the code into your VBScript application’s code and follow the instructions. Check VBScript sample code samples to see if they respond to your needs and requirements for the project.

Trial version of ByteScout Data Extraction Suite is available for free. Source code samples are included to help you with your VBScript app.

On-demand (REST Web API) version:
 Web API (on-demand version)

On-premise offline SDK for Windows:
 60 Day Free Trial (on-premise)

PdfToXmlWithImages.vbs
      
' Create Bytescout.PDFExtractor.XMLExtractor object Set extractor = CreateObject("Bytescout.PDFExtractor.XMLExtractor") extractor.RegistrationName = "demo" extractor.RegistrationKey = "demo" ' Load sample PDF document extractor.LoadDocumentFromFile "../../sample1.pdf" ' Uncomment this line to get rid of empty nodes in XML 'extractor.PreserveFormattingOnTextExtraction = False ' Set output image format extractor.ImageFormat = 0 ' 0 = PNG; 1 = JPEG; 2 = GIF; 3 = BMP ' Save images to external files extractor.SaveImages = 1 ' 1 = ImageHandling.OuterFile extractor.ImageFolder = "images" ' Folder for external images extractor.SaveXMLToFile "result_with_external_images.xml" ' Embed images into XML as Base64 encoded string extractor.SaveImages = 2 ' 2 = ImageHandling.Embed extractor.SaveXMLToFile "result_with_embedded_images.xml" WScript.Echo "Done."

ON-PREMISE OFFLINE SDK

60 Day Free Trial or Visit ByteScout Data Extraction Suite Home Page

Explore ByteScout Data Extraction Suite Documentation

Explore Samples

Sign Up for ByteScout Data Extraction Suite Online Training

ON-DEMAND REST WEB API

Get Your API Key

Explore Web API Docs

Explore Web API Samples

VIDEO

ON-PREMISE OFFLINE SDK

60 Day Free Trial or Visit ByteScout Data Extraction Suite Home Page

Explore ByteScout Data Extraction Suite Documentation

Explore Samples

Sign Up for ByteScout Data Extraction Suite Online Training

ON-DEMAND REST WEB API

Get Your API Key

Explore Web API Docs

Explore Web API Samples

Tutorials:

prev
next