Foxit PDF SDK
FoxitPDFSDKPython2.OFDDoc Class Reference
Inheritance diagram for FoxitPDFSDKPython2.OFDDoc:
FoxitPDFSDKPython2.Base

Public Member Functions

def OFDDoc ()
 Constructor. More...
 
def GetPage (index)
 Get OFD page object by index. More...
 
def GetPageCount ()
 Get page count of current OFD document. More...
 
def IsEmpty ()
 Check whether current object is empty or not. More...
 
def Release ()
 Release current OFD document object. More...
 

Detailed Description

This class is used to get information of an OFD document. Please ensure FoxitPDFSDKPython2.Library.InitializeOFDEngine has been called successfully before using this class.

See also
FoxitPDFSDKPython2.Library

Constructor & Destructor Documentation

◆ OFDDoc()

def FoxitPDFSDKPython2.OFDDoc.OFDDoc ( )

Constructor.

Constructor, with another OFD document object.

Constructor, from an existing OFD file path.

Parameters
[in]pathA full path of an existing PDF file. It should not be an empty string.
[in]passwordPassword for the OFD file. It should be an empty string if the OFD file is not encrypted.
[in]otherAnother OFD document object.

Member Function Documentation

◆ GetPage()

def FoxitPDFSDKPython2.OFDDoc.GetPage (   index)

Get OFD page object by index.

Parameters
[in]indexIndex of the page. Valid range: from 0 to (page_count-1). page_count returned by function FoxitPDFSDKPython2.OFDDoc.GetPageCount .
Returns
OFD page object.

◆ GetPageCount()

def FoxitPDFSDKPython2.OFDDoc.GetPageCount ( )

Get page count of current OFD document.

Returns
Page count of current OFD document.

◆ IsEmpty()

def FoxitPDFSDKPython2.OFDDoc.IsEmpty ( )

Check whether current object is empty or not.

When the current object is empty, that means current object is useless.

Returns
true means current object is empty, while false means not.

◆ Release()

def FoxitPDFSDKPython2.OFDDoc.Release ( )

Release current OFD document object.

Please call this function before FoxitPDFSDKPython2.Library.ReleaseOFDEngine to release current OFD document object.

Returns
None.