ByteScout PDF Extractor SDK - VB.NET - Extract Images from PDF - ByteScout

ByteScout PDF Extractor SDK – VB.NET – Extract Images from PDF

  • Home
  • /
  • Articles
  • /
  • ByteScout PDF Extractor SDK – VB.NET – Extract Images from PDF

How to extract images from PDF in VB.NET with ByteScout PDF Extractor SDK

This code in VB.NET shows how to extract images from PDF with this how to tutorial

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.

On-demand (REST Web API) version:
 Web API (on-demand version)

On-premise offline SDK for Windows:
 60 Day Free Trial (on-premise)

Program.vb
      
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

ON-PREMISE OFFLINE SDK

60 Day Free Trial or Visit ByteScout PDF Extractor SDK Home Page

Explore ByteScout PDF Extractor SDK Documentation

Explore Samples

Sign Up for ByteScout PDF Extractor SDK Online Training

ON-DEMAND REST WEB API

Get Your API Key

Explore Web API Docs

Explore Web API Samples

VIDEO

ON-PREMISE OFFLINE SDK

60 Day Free Trial or Visit ByteScout PDF Extractor SDK Home Page

Explore ByteScout PDF Extractor SDK Documentation

Explore Samples

Sign Up for ByteScout PDF Extractor SDK Online Training

ON-DEMAND REST WEB API

Get Your API Key

Explore Web API Docs

Explore Web API Samples

Tutorials:

prev
next