These sample source codes on this page below are displaying how to convert pdf to json with images with pdf extractor sdk in VBScript. ByteScout Premium Suite: the bundle that includes twelve SDK products from ByteScout including tools and components for PDF, barcodes, spreadsheets, screen video recording. It can convert pdf to json with images with pdf extractor sdk in VBScript.
This prolific sample source code in VBScript for ByteScout Premium 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. This VBScript sample code is all you need for your app. Just copy and paste the code, add references (if needs to) and you are all set! 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.
You can download free trial version of ByteScout Premium Suite from our website to see and try many others source code samples for VBScript.
' 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."