Foxit PDF SDK

Instance Methods | List of all members
<FSImageCompressionCallback> Protocol Reference

Inherits <NSObject>.

## Instance Methods
(id< FSFileStreamCallback >) | - GetTemporaryFileStream:
| Get temporary file stream. The file stream is used for saving the encoding result of JPEG2000 and JBIG2 temporarily. More...
(void) | - release
| A callback function used to release current callback object itself. More...

## Detailed Description

This class represent a callback object used during the process to optimizie PDF document. All the pure virtual functions in this class are used as callback functions and should be implemented by user.

## Method Documentation

## ◆ GetTemporaryFileStream:()

- (id<FSFileStreamCallback>) GetTemporaryFileStream: |  | (FSBitmap *) | bitmap |
| required

Get temporary file stream. The file stream is used for saving the encoding result of JPEG2000 and JBIG2 temporarily.

Parameters

  [in] | bitmap | A bitmap object need to be encoded.

Returns
  A common::file::StreamCallback object which is implemented by user. This callback would be used to save image data. Callback fucntion common::file::StreamCallback::Release of returned callback object will be called by Foxit PDF SDK, when Foxit PDF SDK does not need to use returned callback object anymore.

## ◆ release()

- (void) release |  |  |
| required

A callback function used to release current callback object itself.

Returns
  None.