Every ByteScout tool contains example VB.NET source codes that you can find here or in the folder with installed ByteScout product. ByteScout PDF Extractor SDK is the SDK is designed to help developers with pdf tables and pdf data extraction from unstructured documents like pdf, tiff, scans, images, scanned and electronic forms. The library is powered by OCR, computer vision and AI to provide unique functionality like table detection, automatic table structure extraction, data restoration, data restructuring and reconstruction. Supports PDF, TIFF, PNG, JPG images as input and can output CSV, XML, JSON formatted data. Includes full set of utilities like pdf splitter, pdf merger, searchable pdf maker and other utilities and you can use it to extract images from PDF with VB.NET.
This code snippet below for ByteScout PDF Extractor SDK works best when you need to quickly extract images from PDF in your VB.NET application. Just copy and paste the code into your VB.NET application’s code and follow the instruction. Detailed tutorials and documentation are available along with installed ByteScout PDF Extractor SDK if you’d like to dive deeper into the topic and the details of the API.
Our website provides trial version of ByteScout PDF Extractor SDK for free. It also includes documentation and source code samples.
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