Every ByteScout tool includes sampleVB.NET source codes that you can find here or in the folder with installed ByteScout product. File processing using profiles with pdf extractor sdk in VB.NET can be applied with ByteScout Data Extraction Suite. 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.
VB.NET code snippet like this for ByteScout Data Extraction Suite works best when you need to quickly implement file processing using profiles with pdf extractor sdk in your VB.NET application. To use file processing using profiles with pdf extractor sdk in your VB.NET project or application just copy & paste the code and then run your app! These VB.NET sample examples can be used in one or many applications.
Trial version can be downloaded from our website for free. It contains this and other source code samples for VB.NET.
Imports Bytescout.PDFExtractor ' This example demonstrates the use of profiles. Profiles are set of properties ' allowing to apply them to Extractor in any combination quickly. You can use ' predefined profiles or create you own in JSON format like in this example. Class Program Friend Shared Sub Main(args As String()) ' Create Bytescout.PDFExtractor.TextExtractor instance Dim extractor As New TextExtractor() extractor.RegistrationName = "demo" extractor.RegistrationKey = "demo" extractor.OCRLanguageDataFolder = "c:\Program Files\Bytescout PDF Extractor SDK\ocrdata" ' Load sample PDF document extractor.LoadDocumentFromFile("sample_ocr.pdf") ' Apply predefined profiles extractor.Profiles = "ocr, newspaper-layout" ' Extract text to file extractor.SaveTextToFile("result1.txt") extractor.Reset() ' Load another document extractor.LoadDocumentFromFile("sample_ocr.pdf") ' Load and apply custom profiles extractor.LoadProfiles("profiles.json") extractor.Profiles = "keep-formatting, ocr-forced-200dpi" ' Extract text to file extractor.SaveTextToFile("result2.txt") ' Cleanup extractor.Dispose() ' See result files in "bin\Debug" folder End Sub End Class