ByteScout PDF Extractor SDK - VBScript - Convert PDF To JSON With Images - ByteScout

ByteScout PDF Extractor SDK – VBScript – Convert PDF To JSON With Images

  • Home
  • /
  • Articles
  • /
  • ByteScout PDF Extractor SDK – VBScript – Convert PDF To JSON With Images

How to convert PDF to JSON with images in VBScript using ByteScout PDF Extractor SDK

The tutorial below will demonstrate how to convert PDF to JSON with images in VBScript

ByteScout tutorials are designed to explain the code for both VBScript beginners and advanced programmers. ByteScout PDF Extractor SDK is the SDK that helps developers to extract data from unstructured documents, pdf, images, scanned and electronic forms. Includes AI functions like automatic table detection, automatic table extraction and restructuring, text recognition and text restoration from pdf and scanned documents. Includes PDF to CSV, PDF to XML, PDF to JSON, PDF to searchable PDF functions as well as methods for low level data extraction. It can be used to convert PDF to JSON with images using VBScript.

Fast application programming interfaces of ByteScout PDF Extractor SDK for VBScript plus the instruction and the code below will help you quickly learn how to convert PDF to JSON with images. Just copy and paste the code into your VBScript application’s code and follow the instruction. This basic programming language sample code for VBScript will do the whole work for you to convert PDF to JSON with images.

Free trial version of ByteScout PDF Extractor SDK is available for download from our website. Get it to try other source code samples for VBScript.

Try ByteScout PDF Extractor SDK today: Get 60 Day Free Trial or sign up for Web API

PdfToJsonWithImages.vbs
      
' Create Bytescout.PDFExtractor.JSONExtractor object Set extractor = CreateObject("Bytescout.PDFExtractor.JSONExtractor") extractor.RegistrationName = "demo" extractor.RegistrationKey = "demo" ' Load sample PDF document extractor.LoadDocumentFromFile "../../sample1.pdf" ' Uncomment this line to get rid of empty nodes in JSON '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.SaveJSONToFile "result_with_external_images.json" ' Embed images into JSON as Base64 encoded string extractor.SaveImages = 2 ' 2 = ImageHandling.Embed extractor.SaveJSONToFile "result_with_embedded_images.json" WScript.Echo "Done."

Try ByteScout PDF Extractor SDK today: 60 Day Free Trial (on-premise version) or sign up for Web API (on demand version)

VIDEO

ON-PREMISE VERSION

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

Explore ByteScout PDF Extractor SDK documentation

WEB API

Sign Up for free Web API key

Explore Web API Documentation

Tutorials:

prev
next