An easy to understand sample source code to learn how to convert pdf to json with images 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. It can be applied to convert pdf to json with images with pdf extractor sdk using VBScript.
Want to save time? You will save a lot of time on writing and testing code as you may just take the VBScript code from ByteScout Data Extraction Suite for convert pdf to json with images with pdf extractor sdk below and use it in your application. Follow the instructions from scratch to work and copy the VBScript code. This basic programming language sample code for VBScript will do the whole work for you to convert pdf to json with images with pdf extractor sdk.
All these programming tutorials along with source code samples and ByteScout free trial version are available for download from our website.
' 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."