> .NET Imaging SDK
> Convert PDF to JPEG
This online guide content is Out Dated
Please get the latest XDoc.PDF C# Developer Guide here
VB.NET PDF to JPEG Conversion Overview
How to convert PDF document to JPEG raster image file using VB.NET programming code? Without using any other external software, this VB.NET PDF to JPEG converter SDK can help developers convert standard PDF file to high-quality JPEG image file independently. And converted JPEG image preserves all the content (including both images and texts) of original PDF document page.
Why do we need to convert PDF file to JPEG image format in VB.NET class application? Here we just randomly list two examples which reflect the practical value of PDF to JPEG conversion. One is in the Microsoft office application. When you are trying to slip a PDF page, other than a JPEG image, to your PowerPoint presentation, you need more time to load the embedded content. The other is in the web service application. Most modern browsers have the built-in capacity to display JPEG image file but they require an external plug-in, like Adobe Acrobat Reader, to display PDF document file.
This online tutorial for VB.NET PDF to JPEG converter SDK consists of following four parts.
- Benefit list of VB.NET PDF to JPEG converter control SDK
- Introduction on VB.NET PDF to JPEG converter SDK dlls
- VB.NET programming code to convert PDF file to JPEG image file
- Frequently asked questions about RasterEdge VB.NET PDF to JPEG converter SDK
VB.NET PDF to JPEG Converter Features
- Standalone VB.NET PDF to JPEG converting SDK that is built in .NET Framework 2.0
- Able to convert all PDF pages to separate JPEG image files using VB.NET programming code
- Convert PDF page to JPEG image whose resolution and size can be easily customized by VB.NET code
- Allow VB.NET developers to choose any one PDF page and convert it to JPEG image file
- Support converting PDF document to other image files using VB.NET, like GIF and BMP
VB.NET PDF to JPEG Converting DLLs
If you want to apply this mature PDF to JPEG converting solution into your VB.NET class application, you just need to add following two libraries to your project references.
The former one allows developers to decode a standard PDF document, get each PDF page and transform it to image. Besides, this compact PDF editing dll
can be also used to view, annotate, compress and process PDF file using VB.NET sample code. The latter library is often used to open, save and edit raster & vector image files, like JPEG and PNG.
VB.NET Sample Code to Convert PDF to JPEG
The VB.NET programming example below can be used to transform all PDF pages to separate JPEG image files instantly. And converted JPEG image files will be saved automatically to local disks in an orderly way.
What should be addressed here is that this VB.NET PDF to JPEG converter does not support converting a multi-page PDF document to one JPEG image size in VB.NET class application.
Public Partial Class Form1
Public Sub New()
Public Shared FolderName As String = "c:/"
Private Sub button1_Click(sender As Object, e As EventArgs)
Dim fileName As String = FolderName & "Sample.pdf"
Dim doc As REDocument = REFile.OpenDocumentFile(fileName, New PDFDecoder())
'use PDFDecoder open a pdf file
Dim pageCount As Integer = doc.GetPageCount()
'get pdf's page count
For pgIdx As Integer = 0 To pageCount - 1
Dim aPage As BasePage = doc.GetPage(pgIdx)
'get page from REDocument
Dim img As REImage = DirectCast(aPage.ToImage(), REImage)
'translate page to image
REFile.SaveImageFile(img, FolderName & "output" & pgIdx & ".jpg", New JPGEncoder())
Catch generatedExceptionName As Exception
Debug.WriteLine("Fail to display page " & pgIdx)
VB.NET PDF to JPEG Converter SDK FAQs
Q 1: I want to convert a group of PDF document files to JPEG at a time. Can this VB.NET PDF to JPEG converter SDK help me finish this task?
A 1: Sorry, this VB.NET PDF to JPEG conversion SDK does not support converting PDF files in batch mode.
Q 2: I have tried some online PDF to JPEG converters for PDF to JPEG conversion and most of them have set a limitation on the source PDF document size. So I wonder whether this VB.NET PDF to JPEG converter SDK allows developers to convert some large-size PDF file to JPEG.
A 2: Yes, this VB.NET PDF to JPEG converter SDK is smart for converting 1000+ page PDF file to JPEG.
More PDF Converting VB Developer Guide!
Recommend this to Google+