The coding instructions are formulated to help you to try-out the features without the requirement to write your own code. ByteScout Premium Suite is the set that includes 12 SDK products from ByteScout including tools and components for PDF, barcodes, spreadsheets, screen video recording. It can extract images from pdf with pdf extractor sdk in VB.NET.
Want to quickly learn? This fast application programming interfaces of ByteScout Premium Suite for VB.NET plus the guidelines and the code below will help you quickly learn how to extract images from pdf with pdf extractor sdk. Simply copy and paste in your VB.NET project or application you and then run your app! Complete and detailed tutorials and documentation are available along with installed ByteScout Premium Suite if you’d like to learn more about the topic and the details of the API.
If you want to try other source code samples then the free trial version of ByteScout Premium Suite is available for download from our website. Just try other source code samples for VB.NET.
Imports Bytescout.PDFExtractor Imports System.Drawing.Imaging Class Program Friend Shared Sub Main(ByVal args As String()) ' Create Bytescout.PDFExtractor.ImageExtractor instance Dim extractor As New ImageExtractor() extractor.RegistrationName = "demo" extractor.RegistrationKey = "demo" ' Load sample PDF document extractor.LoadDocumentFromFile(".\sample1.pdf") Dim i As Integer = 0 ' Initialize image enumeration If extractor.GetFirstImage() Then Do Dim outputFileName As String = "image" & i & ".png" ' Save image to file extractor.SaveCurrentImageToFile(outputFileName, ImageFormat.Png) i = i + 1 Loop While extractor.GetNextImage() ' Advance image enumeration End If ' Cleanup extractor.Dispose() ' Open result file in default associated application (for demo purposes) System.Diagnostics.Process.Start("image0.png") End Sub End Class