XImage.Raster
Features
Tech Specs
How-to C#
Pricing

C# Imaging Library
How to merge, split multi-page image files using C# Imaging Library?


How to merge, split multi-page image files using C# Imaging Library?



Using the XImage.Raster SDK, you can easily merge, split multiple pages image files (TIFF or GIF) in your C# program.


How to merge, split multi-page image files using C#?

  1. Download XImage.Raster C# imaging library
  2. Install C# library to merge, split multi-page image files in .NET applications
  3. Step by Step Tutorial












Class MultiPageImageProcess



Class MultiPageImageProcess provides utility methods to merge, split, multiple pages image file in C# ASP.NET Core, MVC, WinForms, WPF application.


Merge Images



Here we will learn how to combine two png image files into one multi-page TIFF document using XImage.Raster C# imaging library.

Call method MultiPageImageProcess.CombineDocument() to merge two RasterImage objects into one image and print to a TIFF file path in C#.

MultiPageImageProcess.CombineDocument(
    new RasterImage("C://input//raster-arrow-right.png"),
    new RasterImage("C://input//raster-arrow-down.png"),
    "C://output//raster-merged-arrows.tif");




Split multi-page image files



TIFF, GIF image files may contain multiple pages inside. You can easily split a multi-page TIFF file into several tiff files using C# image library.

In the following C# example source code, we try to split a 3-page tiff file into two new tiff files, the first new tiff file will contain the first two pages of the original tiff document, and the second tiff file will contain the last page of the original tiff document.

Use method MultiPageImageProcess.SplitDocument() to split an existing tiff file into two new tiff files.

MultiPageImageProcess.SplitDocument(
    new RasterImage("C://input//sample-pdf-3-pages.tiff"), 
    2,
    "C://output//sample-tiff-splited-1st-part.tiff",
    "C://output//sample-tiff-splited-2nd-part.tiff");