VB PDF text extraction tutorial - ByteScout
Announcement
Our ByteScout SDK products are sunsetting as we focus on expanding new solutions.
Learn More Open modal
Close modal
Announcement Important Update
ByteScout SDK Sunsetting Notice
Our ByteScout SDK products are sunsetting as we focus on our new & improved solutions. Thank you for being part of our journey, and we look forward to supporting you in this next chapter!

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

Tutorials:

prev
next