Foxit PDF Conversion SDK

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

File reading interface. More...

Inherits FoxitPDFConversionSDKPython3._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 FoxitPDFConversionSDKPython3.FileReaderCallback.GetSize | ( |  | ) |

Get total size of the file.

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

## ◆ ReadBlock()

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

Called when to release everything.

Returns
  None.