Foxit PDF SDK

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

File reading interface.
More...

Inheritance diagram for FoxitPDFSDKPython3.FileReaderCallback:

## 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 FoxitPDFSDKPython3.FileReaderCallback.GetSize | ( |  | ) |

Get total size of the file.

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

## ◆ ReadBlock()

def FoxitPDFSDKPython3.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 FoxitPDFSDKPython3.FileReaderCallback.Release | ( |  | ) |

Called when to release everything.

Returns
  None.