An easy to understand sample source code to learn how to make searchable pdf and fix rotated pages with pdf extractor sdk in VB.NET Want to make searchable pdf and fix rotated pages with pdf extractor sdk in your VB.NET app? ByteScout Premium Suite is designed for it. ByteScout Premium Suite is the set that includes 12 SDK products from ByteScout including tools and components for PDF, barcodes, spreadsheets, screen video recording.
The SDK samples given below describe how to quickly make your application do make searchable pdf and fix rotated pages with pdf extractor sdk in VB.NET with the help of ByteScout Premium Suite. This VB.NET 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! Complete and detailed tutorials and documentation are available along with installed ByteScout Premium Suite if you’d like to learn more about the topic and the details of the API.
Trial version of ByteScout Premium Suite is available for free. Source code samples are included to help you with your VB.NET app.
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