Guide for VB.NET
Core Document Formats
Tiff to PDF
Additional Features

VB.NET TIFF - Convert TIFF to PDF Using VB.NET

Visual Basic .NET TIFF to PDF Converter for .NET Imaging Project

VB.NET
Home > .NET Imaging SDK > VB.NET > Convert TIFF to PDF

"This online guide content is Out Dated!
    Please get the latest XDoc.Tiff C# Developer Guide here.
"

Both TIFF and PDF are popular formats for document imaging. And these two document formats can store multiple pages in one file. This online tutorial will tell you how to convert TIFF to PDF file using a VB.NET TIFF to PDF converting solution. Following is the article layout.
Related .net document control helps:
asp.net office viewer: ASP.NET Office Word Document Viewer: view Word doc files online using C# in ASP.NET MVC web applications
asp.net mvc pdf editor control: ASP.NET MVC PDF Viewer & Editor: view, annotate, redact, edit PDF document in C# ASP.NET MVC
asp.net pdf document viewer c#: ASP.NET PDF Document Viewer in C#: open, display, view, annotate, redact Adobe PDF files online in ASP.NET MVC & WebForm...
asp.net annotate pdf control: ASP.NET Annotate PDF Control: annotate, comment, markup PDF document online using ASP.NET C#
asp.net edit pdf page control: ASP.NET PDF Pages Edit Control: add, remove, sort, replace PDF pages online using C#
asp.net edit pdf text control: ASP.NET PDF Text Edit Control: online edit PDF text content using C# ASP.NET
asp.net image viewer jquery: ASP.NET Image Viewer Control(MVC & WebForms): view, annotate, redact, convert image files in html, JQuery
  • How to achieve high-quality TIFF to PDF conversion using VB.NET APIs?
  • How to convert TIFF to PDF document format using VB.NET sample code?
  • What are the differences between TIFF and PDF document format?
Converting APIs
Combining VB.NET TIFF reading add-on and VB.NET PDF manipulating plug-in, this VB.NET component can easily convert a multi-page or single-page TIFF file to PDF document programmatically.
'API for rendering TIFF to get a REImage collection
Private Function GetPage(pageIdx As Integer) As BasePage Implements TIFFDocument.GetPage
End Function
Private Function toImage() As BaseImage Implements TIFFPage.toImage
End Function
Private Function toImage(width As Integer, height As Integer) As BaseImage Implements TIFFPage.toImage
End Function
Private Sub New(imagesource As List(Of REImage))
End Sub

' API for converting TIFF file to PDF
Private Sub Convert(s As Stream, format As ImageFormat) Implements REImage.Convert
End Sub
API Explanation: with the purpose to help you have a better understanding of above VB.NET TIFF to PDF converting APIs, we here illustrate two RasterEdge defined programming classes and the general process of VB.NET TIFF to PDF converting application.
  • TIFFDocument: this class is used as an abstraction for one in-memory TIFF document file, which is derived from REDocument. If you want to read detailed programming guidance on how to create, load and save TIFFDocument object, please read VB.NET online guide for getting started with TIFF file.
  • TIFFPage: as for one page contained in TIFFDocument object, this VB.NET TIFF to PDF conversion SDK uses one TIFFPage instance to represent it.
  • TIFF to PDF converting process: decoding source TIFF document file into one TIFFDocument object, rendering one or more selected TIFF pages into a REImage collection (a class used for representing image object) and converting rendered REImage collection into PDF document file.
VB.NET Sample Code
Using following VB.NET demo code, you can easily convert a multi-page TIFF file from local file to a multi-page PDF document. If you want to convert a TIFF file that is saved in web server as memory stream, this VB.NET TIFF to PDF converter control can help you easily get the source TIFF file and convert it to .pdf document format. Please remember to install .NET Framework 2.0 or later versions before using this VB.NET TIFF to PDF converting control add-on.
''' <summary>
''' Convert TIFF to PDF through REImage
''' </summary>
''' <param name="TiffFilePath"></param>
''' <returns></returns>
Public Function ConvertTIFFtoPDF(TiffFilePath As [String]) As PDFDocument
Dim doc As New TIFFDocument(TiffFilePath)

Dim imageBuffer As New List(Of REImage)()

For i As Integer = 0 To doce.GetPageCount() - 1
Dim page As TIFFPage = DirectCast(doc.GetPage(i), TIFFPage)

imageBuffer.Add(DirectCast(page.ToImage(), REImage))
Next

' Create a PDFDocument using the REImage you get from TIFFDocument

Return PDFDocument(imageBuffer)
End Function
TIFF & PDF
Apart from this VB.NET TIFF to PDF converting control, RasterEdge also offers VB.NET sample code for PDF to TIFF conversion in .NET developing application. Thus, to help you make a better decision on which document format to choose, we here list the differences existing between TIFF & PDF.
TIFF, Tagged Image File Format, is used to contain many compressed images and metadata. A TIFF file can be compressed with several methods, but this is done at the cost of reading & writing speed. If you want to restore the file with a smallest possible size, you should choose TIFF over PDF.
However, if you want the document file to be easily read by others, you should select PDF over TIFF, as it is highly possible that they already have a PDF viewer installed (such as Adobe PDF reader) instead of a TIFF reader / viewer.
More Tutorials!


Recommend this to Google+


RasterEdge.com is professional provider of ASP.NET MVC Document Viewer, ASP.NET PDF Viewer, MVC PDF Viewer document, content and imaging solutions, available for ASP.NET AJAX, Silverlight, Windows Forms as well as WPF. We are dedicated to provide powerful & profession imaging controls, PDF document, image to pdf files and components for capturing, viewing, processing, converting, compressing and stroing images, documents and more.

©2000-2017 Raster Edge.com