Accusoft ImagXpress 12
DeletePages Method
See Also  Send comments on this topic.
FileName
A String which represents the file name.
PageNbr

A Long value 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. Valid values are from 0 to 65535.

NumPages
A Long value which represents the number of pages to delete. Valid values are from 0 to 65535.
AccusoftImagXpress12 ActiveX DLL > ImagXpress Object : DeletePages Method

Glossary Item Box

Description

Deletes one or more pages from a multi-page document.

Syntax

Visual Basic
Public Sub DeletePages( _
   ByVal FileName As String, _
   ByVal PageNbr As Long, _
   ByVal NumPages As Long _
) 

Parameters

FileName
A String which represents the file name.
PageNbr

A Long value 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. Valid values are from 0 to 65535.

NumPages
A Long value which represents the number of pages to delete. Valid values are from 0 to 65535.

Remarks

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 an IX_Error_InvalidFormat error will be returned.
  • If the file is read-only or in-use then an IX_Error_FileOpen error will be returned.
  • A page number less than 0, greater than 65535, or greater than the number of pages will cause an IX_Error_InvalidPage error to be returned.
  • A value for number of pages that is less than 1 or greater than 65535 will cause an IX_Error_InvalidPage error to be returned.
  • If the page number plus the number of pages exceeds the number of pages in the document an IX_Error_InvalidPage error will be returned. 

Note: Available in Professional edition.

See Also

©2013. Accusoft Corporation. All Rights Reserved.