←Select platform

DeletePage(Stream,int) Method

Summary
Deletes the specified page from a multipage file in a stream, if the format supports delete operations.
Syntax
C#
VB
Objective-C
C++
Java
public void DeletePage( 
   Stream stream, 
   int pageNumber 
) 
Public Overloads Sub DeletePage( _ 
   ByVal stream As Stream, _ 
   ByVal pageNumber As Integer _ 
)  
- (BOOL)deletePageInStream:(LTLeadStream *)stream page:(NSInteger)page error:(NSError **)error 
public void deletePage(ILeadStream stream, int page) 
public: 
void DeletePage(  
   Stream^ stream, 
   int pageNumber 
)  

Parameters

stream
A Stream containing the data of the image 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 21.0.2021.7.2
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2021 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Codecs Assembly

Products | Support | Contact Us | Intellectual Property Notices
© 1991-2021 LEAD Technologies, Inc. All Rights Reserved.