ByteScout Data Extraction Suite - VB.NET - Extract images by page from pdf with pdf extractor sdk - ByteScout

ByteScout Data Extraction Suite – VB.NET – Extract images by page from pdf with pdf extractor sdk

  • Home
  • /
  • Articles
  • /
  • ByteScout Data Extraction Suite – VB.NET – Extract images by page from pdf with pdf extractor sdk

How to extract images by page from pdf with pdf extractor sdk in VB.NET using ByteScout Data Extraction Suite

How to write a robust code in VB.NET to extract images by page from pdf with pdf extractor sdk with this step-by-step tutorial

Quickly learn how to extract images by page from pdf with pdf extractor sdk in VB.NET with this sample source code. ByteScout Data Extraction Suite: the set that includes 3 SDK products for data extraction from PDF, scans, images and from spreadsheets: PDF Extractor SDK, Data Extraction SDK, Barcode Reader SDK. It can extract images by page from pdf with pdf extractor sdk in VB.NET.

The SDK samples given below describe how to quickly make your application do extract images by page from pdf with pdf extractor sdk in VB.NET with the help of ByteScout Data Extraction Suite. This VB.NET sample code is all you need for your app. Just copy and paste the code, add references (if needs to) and you are all set! Complete and detailed tutorials and documentation are available along with installed ByteScout Data Extraction Suite if you’d like to learn more about the topic and the details of the API.

ByteScout provides the free trial version of ByteScout Data Extraction Suite along with the 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(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") ' Get count of pages Dim pageCount As Integer = extractor.GetPageCount() ' Extract images from each page For i As Integer = 0 To pageCount - 1 Dim j As Integer = 0 ' Initialize page images enumeration If extractor.GetFirstPageImage(i) Then Do Dim outputFileName As String = "page" & i & "image" & j & ".png" ' Save image to file extractor.SaveCurrentImageToFile(outputFileName, ImageFormat.Png) j = j + 1 Loop While extractor.GetNextImage() ' Advance image enumeration End If Next ' Cleanup extractor.Dispose() ' Open result file in default associated application (for demo purposes) System.Diagnostics.Process.Start("page0image0.png") End Sub End Class

ON-PREMISE OFFLINE SDK

60 Day Free Trial or Visit ByteScout Data Extraction Suite Home Page

Explore ByteScout Data Extraction Suite Documentation

Explore Samples

Sign Up for ByteScout Data Extraction Suite 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 Data Extraction Suite Home Page

Explore ByteScout Data Extraction Suite Documentation

Explore Samples

Sign Up for ByteScout Data Extraction Suite Online Training

ON-DEMAND REST WEB API

Get Your API Key

Explore Web API Docs

Explore Web API Samples

Tutorials:

prev
next