Foxit PDF SDK
|
Public Member Functions | |
def | PDFNumberTree () |
Constructor. | |
def | PDFNumberTree (other) |
Constructor, with another PDF number tree object. More... | |
def | GetObj (number) |
Get the value (as PDF object) of a specified key integer. More... | |
def | GetType () |
Get the type of current number tree. More... | |
def | HasNumber (number) |
Check if the specified key integer exists in current number tree. More... | |
def | IsEmpty () |
Check whether current object is empty or not. More... | |
def | RemoveAllObjs () |
Remove all key integers from current number tree, along with theirs value (as PDF object). More... | |
def | RemoveObj (number) |
Remove a key integer from current number tree, along with its value (as PDF object). More... | |
def | SetObj (number, pdf_object) |
Set the value (as PDF object) of a specified key integer. If the key integer does not exist, it will be added to current number tree with the value. More... | |
Number tree is a kind of common data structure in PDF. A number tree is similar to a number tree, except that keys in a number tree are integers instead of strings and are sorted in ascending numerical order. Number tree has following characteristics:
Class PDFNumberTree is used to be associated with an existing number tree with specified type or create one. It offers functions to get key-value pairs in the number tree, and set/add/remove any key-value pair. Currently, class PDFNumberTree can be associated with following number tree defined in PDF document:
def FoxitPDFSDKPython2.PDFNumberTree.PDFNumberTree | ( | other | ) |
Constructor, with another PDF number tree object.
[in] | other | Another PDF number tree object. |
def FoxitPDFSDKPython2.PDFNumberTree.GetObj | ( | number | ) |
Get the value (as PDF object) of a specified key integer.
[in] | number | An integer as the key. |
def FoxitPDFSDKPython2.PDFNumberTree.GetType | ( | ) |
Get the type of current number tree.
def FoxitPDFSDKPython2.PDFNumberTree.HasNumber | ( | number | ) |
Check if the specified key integer exists in current number tree.
[in] | number | An integer that represents the key to be checked. |
def FoxitPDFSDKPython2.PDFNumberTree.IsEmpty | ( | ) |
Check whether current object is empty or not.
When the current object is empty, that means current object is useless.
def FoxitPDFSDKPython2.PDFNumberTree.RemoveAllObjs | ( | ) |
Remove all key integers from current number tree, along with theirs value (as PDF object).
def FoxitPDFSDKPython2.PDFNumberTree.RemoveObj | ( | number | ) |
Remove a key integer from current number tree, along with its value (as PDF object).
If the input key integer does not exist in current number tree, this function will return true directly.
[in] | number | An integer as the key to be removed. |
def FoxitPDFSDKPython2.PDFNumberTree.SetObj | ( | number, | |
pdf_object | |||
) |
Set the value (as PDF object) of a specified key integer. If the key integer does not exist, it will be added to current number tree with the value.
[in] | number | An integer as the key. |
[in] | pdf_object | A PDF object to be set as the key's value. It should not be null. The type of this PDF object should match current number tree; otherwise, the input PDF object is invalid. Please refer to comment of class PDFNumberTree for more details. User should not release this PDF object after this function succeeds. |