To get started with DocImage SDK for .NET, you are supposed to read VB.NET Imaging: Get Started first!
> .NET Imaging SDK
> Convert PDF to Image
RasterEdge .NET Imaging PDF Converter makes it possible and easy for both professional programmers and non-professional end users to convert PDF and PDF/A documents to many image formats that are used commonly in daily life (like tiff, jpg, png, bitmap, jpeg, etc.) from any .NET application using VB class.
Following list is a quick navigation and access of this PDF to image converting toolkit tutorial in VB.NET Windows imaging application:
- Overview on the benefits and technical details of VB.NET PDF to image converter library
- Comprehensive PDF to image method and sample code that comply with complete VB programming language
- More related PDF converting frequently asked questions in VB image project
If you are C# developers for PDF to image converting, please directly link here: C# Windows converting project to convert PDF to jpeg, png, tiff, etc
Summary on PDF to Image Converting Benefits and Tech Details
- Easy to be integrated in Windows desktop or web application with VB programming class
- RasterEdge.Imaging.Basic.dll & RasterEdge.Imaging.PDF.dll are offered to convert PDF to image
- Support converting scanned or not PDF and PDF/A files to images with VB sample code
- Load and save customized PDF converting settings in high efficiency
- Able to convert single PDF page to image format with a few lines of VB code
- Capable of converting multiple PDF pages to images at a time with high quality
- Convert PDF document to image file without recompression in VB project
- Save the converted image with several storage options, like to memory, disk, etc.
Convert PDF to Image in VB Windows Project
This part can be divided into two parts: one is the example VB method for PDF to image converting; and the other one is the entire demo code to convert PDF to image in VB class. Please refer to the respective guide precisely.
And please note that, before you can use following solution and code, you need to download and install RasterEdge .NET Imaging SDK, and activate your granted developer license. If you're still confused, please contact our online technical adviser.
VB Image: Convert PDF to Image API Solution
Please refer to following complete document converting API solution to convert PDF to image in VB project. As you can see, users just need to adopt RasterEdge .NET document rendering and image converting method to convert any PDF source document to image file.
' Following APIs are designed to help users render PDF page to image collection
Private Function GetPage(pageIdx As Integer) As BasePage Implements PDFDocument.GetPage
Private Function toImage() As BaseImage Implements PDFPage.toImage
Private Function toImage(height As Integer, width As Integer) As BaseImage Implements PDFPage.toImage
' Use image saving API below to convert PDF to other image formats
Private Sub SaveImageFile(image As REImage, filePath As [String]) Implements REFile.SaveImageFile
VB Image: Convert PDF to Image Example
Besides PDF document converting method, we also provide users with the detailed VB sample code to help users convert both single and multiple PDF files to images in an easy way.
The supported converting image files are jpeg, tiff, png, bmp and gif. You just need to change the output image format in VB programming code, like changing "tif" to "gif", and then you can get any wanted target image file. Additionally, using our .NET Imaging Converting SDK, users are also allowed to convert PDF to other daily used document files, like MS Word.
''' To view, edit or save images of a pdf file, first generate REImage from a particular page of the document.
''' <param name="doc"></param>
Public Function GetReImageForPDFDocument(doc As PDFDocument) As List(Of REImage)
Dim imageList As New List(Of REImage)()
For i As Integer = 0 To doc.GetPageCount() - 1
Dim tmpPage As PDFPage = DirectCast(doc.GetPage(i), PDFPage)
Dim tmpImage As REImage = DirectCast(tmpPage.ToImage(), REImage)
''' You can transform REImage to TIFF image with following sample code
''' <param name="doc"></param>
Public Sub ConvertPDFToTIFF(doc As PDFDocument)
Dim imageList As List(Of REImage) = GetReImageForPDFDocument(doc)
Dim imgCount As Integer = 1
For Each img As REImage In imageList
REFile.SaveImageFile(img, "C:" & imgCount & ".tif", New TIFEncoder())
imgCount += 1
More Related PDF Converting FAQs in VB Program
Q 1: Can I convert scanned PDF documents to image files by using RasterEdge .NET PDF to image converting library in VB project?
A 1: Yes, our PDF to image converter control in VB class supports converting both original and scanned PDF documents to image files.
Q 2: Is it possible for me to use your PDF to image converting API to convert image to PDF document in vice versa? And how?
A 2: Sorry, RatsterEdge VB.NET Imaging Converting SDK isn't available on converting image to pdf document at present.
You may see more Visual Basic guide for Using .NET Image SDK!
Recommend this to Google+