Foxit PDF Conversion SDK

Public Member Functions | List of all members
FoxitPDFConversionSDKPython2.FileReaderCallback Class Reference

File reading interface. More...

Inherits FoxitPDFConversionSDKPython2._object.

## Public Member Functions
def | GetSize ()
| Get total size of the file. More...
def | ReadBlock (buffer, offset, size)
| Read a data block from the file. More...
def | Release ()
| Called when to release everything. More...

## Detailed Description

File reading interface.

## Member Function Documentation

## ◆ GetSize()

def FoxitPDFConversionSDKPython2.FileReaderCallback.GetSize | ( |  | ) |

Get total size of the file.

Returns
  File size, in bytes. Implementation can return 0 for any error.

## ◆ ReadBlock()

def FoxitPDFConversionSDKPython2.FileReaderCallback.ReadBlock | ( |  | buffer,
|  |  | offset,
|  |  | size
| ) |  |

Read a data block from the file.

Parameters

  [in,out] | buffer | Pointer to a buffer receiving read data
  [in] | offset | Byte offset from beginning of the file
  [in] | size | Number of bytes for the block.

Returns
  true means success, and false means failure.

## ◆ Release()

def FoxitPDFConversionSDKPython2.FileReaderCallback.Release | ( |  | ) |

Called when to release everything.

Returns
  None.