C# TIFF Image Library
Delete TIFF File Page in C#.NET
Use C# Code to Delete & Remove Pages from TIFF Document File
C# Image - Delete TIFF File Page Overview
RasterEdge.com offers an advanced multi-page Tiff editing utility, XDoc.Tiff for .NET, which allows C#.NET developers to accurately & quickly delete and remove any specified page or pages from Tiff document with mature and flexible Tiff page deleting API.
Users can apply our .NET Tiff imaging SDK to Tiff managing and processing in C#.NET, VB.NET, ASP.NET and .NET Windows Forms projects. Besides, other raster image file formats are also supported, like Gif, Png, Bmp, and Jpeg. For complete image formats information, please refer to: image formats in C#.NET.
If you want to see other Tiff page manipulating functions, please follow the links below respectively:
How to insert a Tiff page using C# code
How to rotate Tiff page using C# code
How to sort Tiff pages using C# code
How to extract Tiff page using C# code
C#.NET Demo for TIFF Page Deletion
This part gives you a demo code for how to delete defined Tiff pages in C# project by using RasterEdge .NET Tiff processing SDK.
// Load a Tiff document.
TIFFDocument doc = new TIFFDocument(@"C:\demo1.tif");
if (null == doc) throw new Exception("Fail to load the file !");
int[] pageIds = new int[] { 1, 3 };
// Remove defined pages from the Tiff document. Note: page number is starting from 0.
doc.DeletePages(pageIds);
doc.Save(@"C:\delete.tif");
Related API(s) (TIFFDocument.cs):
public override void DeletePage(int pageIdx)Description:
Delete the specified page from input TIFF file.
Parameters:
public void DeletePages(int[] deleteIds)Description:
Delete TIFF pages from input TIFF file
Parameters:
public override void DeletePages(int fromPageId, int pageCount)Description:
Delete specified TIFF pages form input TIFF file.
Parameters: