How to C#: Tiff
Using Tiff SDK for C#.NET
Delete Tiff Pages
Delete Tiff Pages
Home ›› XDoc.Tiff ›› C# Tiff: Delete Tiff Page

C# TIFF - 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 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.

Related .net document control helps: pdf document viewer: ASP.NET PDF Document Viewer in C#: open, display, view, annotate, redact Adobe PDF files online in ASP.NET MVC & WebForm... excel view: ASP.NET Excel Viewer in C# Control (MVC & WebForms): view Office Excel document in web browser.
document viewer c#: ASP.NET Document Viewer using C#: Open, View, Annotate, Redact, Convert document files in ASP.NET using C#, HTML5, JQuer...
sharepoint document viewer: ASP.NET SharePoint Document Viewer: view, annotate, redact documents in SharePoint
mvc pdf editor: ASP.NET MVC PDF Viewer & Editor: view, annotate, redact, edit PDF document in C# ASP.NET MVC document viewer control: EdgeDoc:ASP.NET Document Viewer C# Control: Open, view, annotate, redact, convert documents online in C#, VB.NET, AS... edit pdf image control: ASP.NET PDF Image Edit Control: online insert, edit PDF images in C#

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

Add references;









Use corresponding namespaces;

  using RasterEdge.Imaging.Basic;

  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.

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. 

public override void DeletePage(int pageIdx)

Delete the specified page from input TIFF file.

public void DeletePages(int[] deleteIds)

Delete TIFF pages from input TIFF file

public override void DeletePages(int fromPageId, int pageCount)

Delete specified TIFF pages form input TIFF file.