Quickly learn how to read hindi text with pdf extractor sdk in VB.NET with this sample source code. ByteScout Data Extraction Suite is the bundle that includes three SDK tools for data extraction from PDF, scans, images and from spreadsheets: PDF Extractor SDK, Data Extraction SDK, Barcode Reader SDK and you can use it to read hindi text with pdf extractor sdk with VB.NET.
These VB.NET code samples for VB.NET guide developers to speed up coding of the application when using ByteScout Data Extraction Suite. Just copy and paste the code into your VB.NET application’s code and follow the instructions. Use of ByteScout Data Extraction Suite in VB.NET is also described in the documentation included along with the product.
You can download free trial version of ByteScout Data Extraction Suite from our website to see and try many others source code samples for VB.NET.
Imports System.Text Imports Bytescout.PDFExtractor Module Program Sub Main() Try ' Files Dim fileName As String = "hindiText.pdf" Dim destFileName As String = "extractedText.txt" ' Read all text from pdf file Dim extractor As TextExtractor = New TextExtractor ' Load PDF document extractor.LoadDocumentFromFile(fileName) ' Option 1: Extract all text and write to destination file extractor.SaveTextToFile(destFileName, encoding := Encoding.Unicode) Console.WriteLine("All extracted text (hindi) written successfully to destination text file.") Process.Start(destFileName) ' Option 2: Read all text to string variable 'Dim allText As String = extractor.GetText ' Cleanup extractor.Dispose() Catch ex As Exception Console.WriteLine(ex.Message) End Try Console.WriteLine() Console.WriteLine("Press any key to continue...") Console.ReadLine() End Sub End Module