ByteScout PDF Suite - VBScript - Convert pdf to json with images with pdf extractor sdk - ByteScout

ByteScout PDF Suite – VBScript – Convert pdf to json with images with pdf extractor sdk

  • Home
  • /
  • Articles
  • /
  • ByteScout PDF Suite – VBScript – Convert pdf to json with images with pdf extractor sdk

How to convert pdf to json with images with pdf extractor sdk in VBScript and ByteScout PDF Suite

If you want to learn more then this tutorial will show how to convert pdf to json with images with pdf extractor sdk in VBScript

An easy to understand sample source code to learn how to convert pdf to json with images with pdf extractor sdk in VBScript What is ByteScout PDF Suite? It is the set that includes 6 SDK products to work with PDF from generating rich PDF reports to extracting data from PDF documents and converting them to HTML. This bundle includes PDF (Generator) SDK, PDF Renderer SDK, PDF Extractor SDK, PDF to HTML SDK, PDF Viewer SDK and PDF Generator SDK for Javascript. It can help you to convert pdf to json with images with pdf extractor sdk in your VBScript application.

This prolific sample source code in VBScript for ByteScout PDF Suite contains various functions and other necessary options you should do calling the API to convert pdf to json with images with pdf extractor sdk. IF you want to implement the functionality, just copy and paste this code for VBScript below into your code editor with your app, compile and run your application. Complete and detailed tutorials and documentation are available along with installed ByteScout PDF Suite if you’d like to learn more about the topic and the details of the API.

Our website gives trial version of ByteScout PDF Suite for free. It also includes documentation and source code samples.

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

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

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."

ON-PREMISE OFFLINE SDK

60 Day Free Trial or Visit ByteScout PDF Suite Home Page

Explore ByteScout PDF Suite Documentation

Explore Samples

Sign Up for ByteScout PDF 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 PDF Suite Home Page

Explore ByteScout PDF Suite Documentation

Explore Samples

Sign Up for ByteScout PDF Suite Online Training

ON-DEMAND REST WEB API

Get Your API Key

Explore Web API Docs

Explore Web API Samples

Tutorials:

prev
next