Want to speed up the application development? Then this VB.NET, code samples for VB.NET, developers help to speed up the application development and writing a code when using ByteScout PDF Suite. If you want to implement this functionality, you should copy and paste code below into your app using code editor. Then compile and run your application. VB.NET application implementation mostly involves various stages of the software development so even if the functionality works please check it with your data and the production environment.
ByteScout PDF Suite free trial version is available for download from our website. Free trial also includes programming tutorials along with source code samples.
Imports Bytescout.PDFExtractor Imports System.IO Module Module1 Sub Main() ' Create Bytescout.PDFExtractor.TextExtractor instance Dim extractor = New TextExtractor() extractor.RegistrationName = "demo" extractor.RegistrationKey = "demo" ' Get PDF files Dim pdfFiles() = Directory.GetFiles(".", "*.pdf") For Each file As String In pdfFiles ' Load document extractor.LoadDocumentFromFile(file) ' Save extracted text to .txt file extractor.SaveTextToFile(Path.ChangeExtension(file, ".txt")) ' Reset the extractor before load another file extractor.Reset() Next ' Cleanup extractor.Dispose() End Sub End Module