Learn how to make searchable PDF and fix rotated pages in VB.NET with this source code sample. 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 and fix rotated pages in your VB.NET application.
VB.NET code samples for VB.NET developers help to speed up coding of your application when using ByteScout PDF Extractor SDK. In order to implement the functionality, you should copy and paste this code for VB.NET below into your code editor with your app, compile and run your application. Detailed tutorials and documentation are available along with installed ByteScout PDF Extractor SDK if you’d like to dive deeper into the topic and the details of the API.
You can download free trial version of ByteScout PDF Extractor SDK from our website to see and try many others source code samples for VB.NET.
Imports Bytescout.PDFExtractor Module Module1 Sub Main() ' Create Bytescout.PDFExtractor.TextExtractor instance Dim searchablePdfMaker As SearchablePDFMaker = New SearchablePDFMaker() searchablePdfMaker.RegistrationName = "demo" searchablePdfMaker.RegistrationKey = "demo" ' Load sample PDF document searchablePdfMaker.LoadDocumentFromFile("sample_ocr_with_rotatedPage.pdf") ' Set the location of OCR language data files searchablePdfMaker.OCRLanguageDataFolder = "c:\Program Files\Bytescout PDF Extractor SDK\ocrdata\" ' Set OCR language searchablePdfMaker.OCRLanguage = "eng" ' "eng" for english, "deu" for German, "fra" for French, "spa" for Spanish etc - according to files in "ocrdata" folder ' Set PDF document rendering resolution searchablePdfMaker.OCRResolution = 300 ' Detect Page Rotation searchablePdfMaker.OCRDetectPageRotation = True ' Save extracted text to file searchablePdfMaker.MakePDFSearchable("output.pdf") ' Cleanup searchablePDFMaker.Dispose() ' Open output file in default associated application System.Diagnostics.Process.Start("output.pdf") End Sub End Module