←Select platform

DeletePage(string,int) Method

Summary

Deletes the specified page from a multi-page file, if the format supports delete operations.

Syntax
C#
VB
Objective-C
C++
public void DeletePage( 
   string fileName, 
   int pageNumber 
) 
Public Overloads Sub DeletePage( _ 
   ByVal fileName As String, _ 
   ByVal pageNumber As Integer _ 
)  
- (BOOL)deletePageInFile:(NSString *)file page:(NSInteger)page error:(NSError **)error 
public: 
void DeletePage(  
   String^ fileName, 
   int pageNumber 
)  

Parameters

fileName
A String containing the name of the file from which to delete the page.

pageNumber
1-based index of the page to delete. Use -1 to delete the last page. Use 1 to delete the first page.

Remarks

The following file formats support delete operations:

  • TIFF (most TIFF formats, including JTIF, but excluding EXIF)
  • PCX
  • Winfax

Example

For an example, refer to Save.

Requirements

Target Platforms

Help Version 20.0.2019.9.19
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2019 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Codecs Assembly