> .NET Imaging SDK
> Convert PDF to TIFF
This online guide content is Out Dated
Please get the latest XDoc.PDF C# Developer Guide here
Using our VB.NET PDF Document Conversion Library, developers can easily convert PDF document to TIFF image file through VB.NET programming. We provide this guide to help you try our VB.NET PDF Document Conversion Library
for PDF to TIFF conversion. You are able to find answers to the following questions on PDF to TIFF conversion in VB.NET.
- Can I get more detailed information on TIFF image format to which PDF document is converted in VB.NET?
- What DLLs will be used to convert PDF document to TIFF image through Visual Basic .NET programming?
- What APIs can be called to render and convert PDF file to TIFF image in VB.NET application?
- Where to get free VB demo code for PDF document to TIFF image converting in .NET project?
Detailed Information on TIFF
When converting PDF document to TIFF image using VB.NET program, do you know about TIFF image format? Originally, TIFF stands for Tagged Image File Format which can be compressed and uncompressed by using lossless compression. TIFF image is regarded as the best image format for commercial work and is a standard in the printing and publishing industry. It is also a flexible raster image format for handling images and data within a single file and multiple layered images can be stored in a single TIFF file.
To complete high-quality PDF to TIFF conversion in VB.NET class application, three compact dlls will be involved, which are:
RasterEdge.Imaging.Basic.dll is one of the core dlls in RasterEdge .NET Image SDK
and all other RasterEdge document image processing dlls must rely on this core assembly for further document and image processing. RasterEdge.Imaging.PDF.dll
offers complete APIs for developers to view, compress, annotate, process and convert PDF document file in Visual Basic .NET class application. Similarly, RasterEdge.Imaging.TIFF.dll can be used for advanced TIFF file reading, annotation, conversion and editing applications.
To complete the conversion between PDF document and TIFF image file in VB.NET application by using our PDF Document Conversion Library for VB.NET, there are two steps. One is to render PDF document to REImage and the other is to convert and save rendered REImage to TIFF image format. The following APIs are designed to complete PDF to TIFF conversion through VB.NET programming step by step.
''' 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
There are two main classes used in the above APIs to convert PDF document to TIFF image in VB.NET: PDFDocument and PDFPage. PDFDocument is a programmatic abstraction of PDF document, containing all document information (such as pages in the document). It is derived from super class REDocument. PDFPage is an abstraction of PDF document page contained in the PDFDocument. Specific PDF document page can be converted to TIFF image in VB.NET class.
RasterEdge provides developers with detailed VB.NET demo code to render and convert PDF document to TIFF raster image in VB.NET project. The following demo code can be applied to your VB.NET project built in Visual Studio 2005 or later versions free of charge.
''' To view, convert 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 folloiwng sample code
''' <param name="doc"></param>
Public Sub ConvertPDFToTIFF(doc As PDFDocument)
Dim imageList As List(Of REImage) = GetReImageForPDFDocument(doc)
Dim imgCount As Integer = 0
For Each img As REImage In imageList
REFile.SaveImageFile(img, "C:\" & imgCount & ".tif", New TIFEncoder())
imgCount += 1
Developers are also able to compile customized code to complete PDF to TIFF file conversion based on the demo above. In the VB.NET demo code, GetReImageForPDFDocument is used to get a REImage collection (REImage is an image object defined by RasterEdge programmers) or specify certain PDF page to render. ConvertPDFToTIFF method is used to convert the REImage object rendered from source PDF document to TIFF image in VB.NET. You can also specify the file path for saving the converted TIFF image.
Using our PDF Doc Conversion Library, developers can not only convert PDF document to TIFF image in VB.NET application, but also transform PDF to TIFF file using C# class
See Related VB.NET PDF Conversion Tutorials!
Recommend this to Google+