Sample source code below will display you how to manage a complex task like extract images by page from pdf with pdf extractor sdk in VB.NET. ByteScout PDF Suite can extract images by page from pdf with pdf extractor sdk. It can be applied from VB.NET. ByteScout PDF Suite is the bundle that provides six different SDK libraries to work with PDF from generating rich PDF reports to extracting data from PDF documents and converting them to HTML. This bundle includes PDF (Generator) SDK, PDF Renderer SDK, PDF Extractor SDK, PDF to HTML SDK, PDF Viewer SDK and PDF Generator SDK for Javascript.
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 PDF Suite. Simply copy and paste in your VB.NET project or application you and then run your app! Use of ByteScout PDF Suite in VB.NET is also described in the documentation included along with the product.
If you want to try other source code samples then the free trial version of ByteScout PDF Suite is available for download from our website. Just try other source code samples for VB.NET.
On-demand (REST Web API) version:
Web API (on-demand version)
On-premise offline SDK for Windows:
60 Day Free Trial (on-premise)
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
60 Day Free Trial or Visit ByteScout PDF Suite Home Page
Explore ByteScout PDF Suite Documentation
Explore Samples
Sign Up for ByteScout PDF Suite Online Training
Get Your API Key
Explore Web API Docs
Explore Web API Samples
60 Day Free Trial or Visit ByteScout PDF Suite Home Page
Explore ByteScout PDF Suite Documentation
Explore Samples
Sign Up for ByteScout PDF Suite Online Training
Get Your API Key
Explore Web API Docs
Explore Web API Samples
also available as: