ByteScout PDF Suite - VBScript - Make searchable pdf discarding existing content with pdf extractor sdk - ByteScout

ByteScout PDF Suite – VBScript – Make searchable pdf discarding existing content with pdf extractor sdk

  • Home
  • /
  • Articles
  • /
  • ByteScout PDF Suite – VBScript – Make searchable pdf discarding existing content with pdf extractor sdk

How to make searchable pdf discarding existing content with pdf extractor sdk in VBScript and ByteScout PDF Suite

Learning is essential in computer world and the tutorial below will demonstrate how to make searchable pdf discarding existing content with pdf extractor sdk in VBScript

Sample source code below will display you how to manage a complex task like make searchable pdf discarding existing content with pdf extractor sdk in VBScript. Want to make searchable pdf discarding existing content with pdf extractor sdk in your VBScript app? ByteScout PDF Suite is designed for it. ByteScout PDF Suite is the bundle that provides six different SDK libraries 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.

These VBScript code samples for VBScript guide developers to speed up coding of the application when using ByteScout PDF Suite. Just copy and paste the code into your VBScript application’s code and follow the instructions. Further improvement of the code will make it more robust.

Trial version of ByteScout PDF Suite is available for free. Source code samples are included to help you with your VBScript app.

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

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

MakeSearchablePDFDiscardingExistingContent.vbs
      
' 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'."

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