Accusoft.ImagXpress12.Net
DeletePage Method
See Also  Send Feedback
Accusoft.ImagXpressSdk Namespace > ImageX Class : DeletePage Method




imagXpress
An ImagXpress workspace instance.
filename
A string which represents the TIFF or EXIF file name.
pageNumber
An integer value from 0 to 65535 which represents the page to delete.

This is a one-based index.

Note: 0 is treated the same as a 1.

Glossary Item Box

Deletes a page from a multi-page document.

Syntax

 
Visual Basic
C#
Managed Extensions for C++
C++/CLI
 
 

Parameters

imagXpress
An ImagXpress workspace instance.
filename
A string which represents the TIFF or EXIF file name.
pageNumber
An integer value from 0 to 65535 which represents the page to delete.

This is a one-based index.

Note: 0 is treated the same as a 1.

Remarks

This method is for TIFF and EXIF file formats. It does not physically delete the image page from the file. It adjusts the pointers in the TIFF IFDs to point around the deleted image.

This operation will leave unused images in the file and therefore wasted space in the file. Use the CompactFile method to physically remove all unused pages in a file.

  • If an invalid format is specified for the file then a "File format unsupported" ImageXException will be thrown.
  • If the file is read-only or in-use then an "Error opening the file" ImageXException will be thrown.
  • A page number less than 0, greater than 65535 or greater than the number of pages will cause an "Invalid page number or number of pages" ImageXException to be thrown.

Note: Available in Professional edition.

See Also

©2013. Accusoft Corporation. All Rights Reserved.