VB PDF text extraction tutorial

VB PDF text extraction tutorial shows how to extract text from PDF to TXT file in Visual Basic using PDF Extractor SDK. Use Visual Basic source code below for PDF to text extraction.

VB

Imports Bytescout.PDFExtractor

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"

 ' Load sample PDF document
 extractor.LoadDocumentFromFile("sample2.pdf")

 ' Save extracted text to file
 extractor.SaveTextToFile("output.txt")

 ' Open output file in default associated application
 System.Diagnostics.Process.Start("output.txt")
End Sub
End Class
prev
next