The following code snippet for ByteScout PDF Suite works best when you need to quickly extract info about pdf with pdf extractor sdk in your VB.NET application. Follow the instructions from scratch to work and copy the VB.NET code. Check VB.NET sample code samples to see if they respond to your needs and requirements for the project.
All these programming tutorials along with source code samples and ByteScout free trial version are available for download from our website.
Imports Bytescout.PDFExtractor Class Program Friend Shared Sub Main(args As String()) ' Create Bytescout.PDFExtractor.InfoExtractor instance Dim extractor As New InfoExtractor() extractor.RegistrationName = "demo" extractor.RegistrationKey = "demo" ' Load sample PDF document extractor.LoadDocumentFromFile(".\sample1.pdf") Console.WriteLine("Author: " + extractor.Author) Console.WriteLine("Creator: " + extractor.Creator) Console.WriteLine("Producer: " + extractor.Producer) Console.WriteLine("Subject: " + extractor.Subject) Console.WriteLine("Title: " + extractor.Title) Console.WriteLine("CreationDate: " + extractor.CreationDate) Console.WriteLine("Keywords: " + extractor.Keywords) Console.WriteLine("Bookmarks: " + extractor.Bookmarks) Console.WriteLine("Encrypted: " + extractor.Encrypted.ToString) ' Cleanup extractor.Dispose() Console.WriteLine() Console.WriteLine("Press any key to continue...") Console.ReadLine() End Sub End Class