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 starting page of the pages to delete.
This is a one-based index.
Note: 0 is treated the same as a 1.
- numberOfPages
- An integer value from 1 to 65535 which represents the number of pages to delete.
This method is for TIFF and EXIF file formats. It does not physically delete the image pages from the file. It adjusts the pointers in the TIFF IFDs to point around the deleted images.
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.
- A value for number of pages that is less than 1 or greater than 65535 will cause an "Invalid page number or number of pages" ImageXException to be thrown.
- If the page number plus the number of pages exceeds the number of pages in the document an "Invalid page number or number of pages" ImageXException will be thrown.
Note: Available in Professional edition.