The coding tutorials are designed to help you test the features without need to write your own code. What is ByteScout PDF Extractor SDK? It is the Software Development Kit (SDK) that is designed to help developers with data extraction from unstructured documents like pdf, tiff, scans, images, scanned and electronic forms. The library is powered by OCR, computer vision and AI to provide unique functionality like table detection, automatic table structure extraction, data restoration, data restructuring and reconstruction. Supports PDF, TIFF, PNG, JPG images as input and can output CSV, XML, JSON formatted data. Includes full set of utilities like pdf splitter, pdf merger, searchable pdf maker. It can help you to make searchable PDF discarding existing content in your VBScript application.
This code snippet below for ByteScout PDF Extractor SDK works best when you need to quickly make searchable PDF discarding existing content in your VBScript application. In your VBScript project or application you may simply copy & paste the code and then run your app! Use of ByteScout PDF Extractor SDK in VBScript is also explained in the documentation included along with the product.
ByteScout free trial version is available for download from our website. It includes all these programming tutorials along with source code samples.
' Create Bytescout.PDFExtractor.SearchablePDFMaker object Set searchablePDFMaker = CreateObject("Bytescout.PDFExtractor.SearchablePDFMaker") searchablePDFMaker.RegistrationName = "demo" searchablePDFMaker.RegistrationKey = "demo" ' Load sample PDF document searchablePDFMaker.LoadDocumentFromFile("..\..\sample_ocr_withText.pdf") ' Set the location of OCR language data files searchablePDFMaker.OCRLanguageDataFolder = "c:\Program Files\Bytescout PDF Extractor SDK\ocrdata" ' Set OCR language ' "eng" for english, "deu" for German, "fra" for French, "spa" for Spanish etc - according to files in "ocrdata" folder. searchablePDFMaker.OCRLanguage = "eng" ' Find more language files at https://github.com/bytescout/ocrdata ' Set PDF document rendering resolution searchablePDFMaker.OCRResolution = 300 ' Discard Existing Text in document searchablePDFMaker.DiscardExistingDocumentText = true ' Process the document searchablePDFMaker.MakePDFSearchable("result.pdf") WScript.Echo "Searchable document saved as 'result.pdf'."