Foxit PDF Conversion SDK

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

File writing interface. More...

Inherits FoxitPDFConversionSDKPython3._object.

## Public Member Functions
def | Flush ()
| Flush internal buffer of the file. More...
def | GetSize ()
| Get total size of the file. More...
def | Release ()
| Called when to release everything.
def | WriteBlock (pData, offset, size)
| Write a block data. More...

## Detailed Description

File writing interface.

## Member Function Documentation

## ◆ Flush()

def FoxitPDFConversionSDKPython3.FileWriterCallback.Flush | ( |  | ) |

Flush internal buffer of the file.

Returns
  true means success, while false means failure.

## ◆ GetSize()

def FoxitPDFConversionSDKPython3.FileWriterCallback.GetSize | ( |  | ) |

Get total size of the file.

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

## ◆ WriteBlock()

def FoxitPDFConversionSDKPython3.FileWriterCallback.WriteBlock | ( |  | pData,
|  |  | offset,
|  |  | size
| ) |  |

Write a block data.

Parameters

  [in] | pData | The block data.
  [in] | offset | Byte offset from beginning of the file
  [in] | size | The length in bytes of the block data.

Returns
  true means success, while false means failure.