Acrobat SDK – extract text from PDF files without having it installed. No additional tools needed. Use C# and Visual Basic .NET source code samples below to extract from PDF to TXT with PDF Extractor SDK.
VB.NET
' 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")
C#
// Create Bytescout.PDFExtractor.TextExtractor instance
TextExtractor extractor = 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");