To get started with DocImage SDK for .NET, you are supposed to read VB.NET Imaging: Get Started first!
VB.NET Multi-page TIFF Splitting Application
Do you have the need to split a large-size & multi-page TIFF file into smaller TIFF documents? TIFF (short for Tagged image File Format) is a popular document image format which can encode multiple pages into one file. In the daily life, people may meet the situation to disassemble a multi-page TIFF file for better document distribution or management. Under this condition, an automatic and effective .NET multi-page TIFF splitting solution will be much helpful.
This VB.NET TIFF splitting control add-on can successfully split a multi-page TIFF document file in a programming way. Currently, RasterEdge VB.NET TIFF splitter SDK only supports splitting multi-page TIFF file by pages and it does not support other splitting methods, like splitting TIFF file by odd or even page. To put it in another way, using this VB.NET TIFF splitter control add-on, developers can specify a page range and then this TIFF splitting control will disassemble source TIFF document file by the defined page range.
Following is a quick navigation of this VB.NET multi-page TIFF document splitting online tutorial page.
- Key benefits of this VB.NET multi-page TIFF file splitting library toolkit
- Information on the VB.NET multi-page TIFF splitting library dlls
- VB.NET multi-page TIFF splitting method for .NET Framework application
- VB.NET programming example on how to split multi-page TIFF file by pages
Apart from splitting multi-page TIFF file in VB.NET class application, do you have the need to delete certain unnecessary TIFF pages? If yes, please try this VB.NET TIFF page deletion control
. Besides, if you want to combine one of split TIFF files with another existed TIFF file, please try this VB.NET TIFF merging assembly add-on
VB.NET TIFF Splitting Library Benefits
- Able to split 500+ page TIFF file into individual one-page TIFF files using VB.NET code
- Easy to disassemble multi-page TIFF file to several TIFF files based on a defined page range
- Allow VB.NET developers to name the output split TIFF files with same name pattern
- Able to perform further image processing functions within split TIFF files, like cropping and conversion
VB.NET Multi-page TIFF Splitting Library DLLs
There are two compact library dlls that will be used in the process of VB.NET multi-page TIFF splitting, which are RasterEdge.Imaging.Basic.dll and RasterEdge.Imaging.TIFF.dll. The former image library will help you manage & manipulate TIFF pages (like obtain all TIFF pages separately) using VB.NET code. And the later assembly will provide you the APIs that you can use to interpret and split TIFF file in VB.NET imaging application.
When you are using this VB.NET multi-page TIFF splitter SDK, please make sure you have installed the .NET Framework 2.0 (or 3.0, 3.5, 4.0, 4.5) and Microsoft Visual Studio 2005 (or VS 2008, VS 2010, VS 2012).
VB.NET Methods to Split Multi-page TIFF File
In this section, we list all the VB.NET methods that will be used for multi-page TIFF splitting application. Here we briefly talk about the multi-page TIFF splitting process: Open the source TIFF file with RasterEdge unique TIFF decoder API; then this VB.NET TIFF splitting control will split decoded TIFF file by every defined number of TIFF pages; finally RasterEdge VB.NET TIFF encoder will save split TIFF documents to new files.
Public Shared Function OpenDocumentFile(filePath As String) As REDocument
Public Shared Function OpenDocumentFile(filePath As String, dec As BaseDecoder) As REDocument
Public MustOverride Function SplitDocument(pageIndex As Integer) As List(Of BaseDocument)
VB.NET Sample Code to Split TIFF by Pages
The following VB.NET programming example is used to show developers how to split source multi-page TIFF file as desired. Developers can enter the page range value in this VB.NET command code "SplitDocument (page range value)". If you want to see a C#.NET programming demo code for multi-page TIFF splitting, please follow this link to C#.NET TIFF splitter control tutorial page
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.tif"
Dim doc As REDocument = REFile.OpenDocumentFile(fileName, New TIFDecoder())
'use TIFDecoder open a pdf file
Dim baseDocs As List(Of BaseDocument) = doc.SplitDocument(1)
Dim index As Integer = 0
For Each baseDoc As BaseDocument In baseDocs
' REImage reimage = (REImage)baseDoc.GetPage(0).ToImage();
index += 1
REFile.SaveDocumentFile(DirectCast(baseDoc, REDocument), "c:/reDoc" & index & ".tif", New TIFEncoder())
Recommend this to Google+