How to C#: Tiff
Using Tiff SDK for C#.NET
Split Tiff Document
Split Tiff Document
  |  
Home ›› XDoc.Tiff ›› C# Tiff: Split Tiff

C# TIFF - Split Multi-page TIFF File in C#.NET


C# Guide for How to Use TIFF Processing DLL to Split Multi-page TIFF File




C# Image: Split Multi-page TIFF File Overview



RasterEdge .NET Tiff processing toolkit, XDoc.Tiff for .NET, supplies robust and reliable Tiff file pages splitting solution for users to divide loaded Tiff document or create customized Tiff splitting application in C#.NET class library. RasterEdge .NET Tiff imaging DLL also allows C# users to pre-process Tiff document, like Tiff file creating, loading, merging, and splitting. Besides, Tiff image file saving is also available based on well-compiled Tiff imaging technology.


Related .net document control helps:
asp.net office file viewer: ASP.NET Office Word Document Viewer: view MS Office Word files online using C# in ASP.NET web applications
asp.net excel file viewer: ASP.NET Excel Document Viewer in C# Control: view office excel files online in ASP.NET web applications
asp.net iis file viewer: C# HTML5 Viewer: Deployment on IIS
asp.net dicom file viewer: ASP.NET Dicom Document Viewer Control: view, annotate dicom imaging files online in ASP.NET
asp.net pdf viewer control: ASP.NET PDF Viewer Control: view, navigate, zoom Adobe PDF document in C# ASP.NET
asp.net image file viewer: ASP.NET Image Document Viewer Control: view, annotate, redact, convert image files in html web browser
asp.net convert pdf control: ASP.NET Convert PDF Control: Convert, export PDF to Word, HTML, Tiff files in C# ASP.NET




C# Project Multi-page TIFF File Splitting Features



Supported by RasterEdge .NET Tiff imaging DLL control


Provide flexible Tiff document page splitting method for C# class application


Easy to define and adjust page number for Tiff file splitting


Support high-speed Tiff document splitting and saving in your Visual C# program


Store split Tiff files to disk or memory as you wish




How to Split Multi-page TIFF in C# Project



Add references;


  RasterEdge.Imaging.Basic.dll


  RasterEdge.Imaging.Basic.Codec.dll


  RasterEdge.Imaging.Drawing.dll


  RasterEdge.XDoc.Processing.dll


  RasterEdge.Imaging.Raster.dll


  RasterEdge.Imaging.Raster.Core.dll


  RasterEdge.Imaging.Font.dll


  RasterEdge.XDoc.TIFF.dll


Use corresponding namespaces;


  using RasterEdge.Imaging.Basic;


  using RasterEdge.Imaging.Raster.Core;


  using RasterEdge.XDoc.TIFF;


Note: When you get the error "Could not load file or assembly 'RasterEdge.Imaging.Basic' or any other assembly or one of its dependencies. An attempt to load a program with an incorrect format", please check your configure as follows:


If you are using x64 libraries/dlls, Right click the project -> Properties -> Build -> Platform target: x64.


If using x86, the platform target should be x86.


C# developers are capable of splitting multi-page TIFF file into two or more single or multi-page Tiff documents by using provided API. Please see demo below to get detailed instruction. Please note, your Tiff image file page number is suggested to be more than 5.




// Define output Tiff image files.
            string[] outputPaths = new string[] { @"C:\output1.tif", @"C:\output2.tif" };

            // Split demo.tif (file page number should be more than 5) into two files and save as output1.tif and output2.tif.
            TIFFDocument.SplitDocument(@"C:\demo1.tif", 2, outputPaths);



public static void SplitDocument(string source, int index, string[] fileName)

Description:
Split Tiff file into two and save them to the specified file path

Parameters:
public static void SplitDocument(string source, int index, Stream[] streams)

Description:
Split Tiff file into two and save them to stream.

Parameters:
public static void SplitDocument(Stream inputFilePath, int[] splitIndexes, Stream[] outputStreams)

Description:
Split Tiff file into files with specified page indexes and save them to streams.

Parameters:
public static void SplitDocument(Stream inputStream, int[] splitIndexes, string[] outputFilePaths)

Description:
Split Tiff file into files with specified page indexes and save them to files on the disk.

Parameters:
public static void SplitDocument(string inputFilePath, int[] splitIndexes, Stream[] outputStreams)

Description:
Split Tiff file into files with specified page indexes and save them to streams.

Parameters:
public static void SplitDocument(string inputFilePath, int[] splitIndexes, string[] outputFilePaths)

Description:
Split Tiff file into files with specified page indexes and save them to files on the disk.

Parameters: