←Select platform

CompactFile(Stream,Stream,int) Method

Summary
Compacts TIFF/BigTIFF streams with default options.
Syntax
C#
Objective-C
C++
public void CompactFile( 
   Stream srcStream, 
   Stream destStream, 
   int pages 
) 
- (BOOL)compactStream:(LTLeadStream *)sourceStream  
    destinationStream:(LTLeadStream *)destinationStream  
                pages:(NSUInteger)pages  
                error:(NSError **)error 
public: 
void CompactFile(  
   Stream^ srcStream, 
   Stream^ destStream, 
   int pages 
)  

Parameters

srcStream
A source Stream containing the data for the file being compacted. All the pages will be read from this stream.

destStream
A destination Stream that will contain the written data.

pages
Value that represents the number of pages to copy. Use 0 to copy all the pages. If  pages is > 0, only  pages will be copied to  destStream.

Remarks

This method can also be used to copy or extract one or more pages from a TIFF/BigTIFF file and copy them without recompression to another TIFF/BigTIFF file.

This method can also be used to convert a TIFF file to BigTIFF or vice versa. The destination file will be TIFF or BigTIFF, depending on the value of BigTiff.

Example

For an an example, refer to CompactFile.

Requirements

Target Platforms

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

Leadtools.Codecs Assembly

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