Foxit PDF SDK
|
Public Member Functions | |
LRContext (PDFPage page) | |
Constructor, from a PDF Page object. More... | |
LRContext (LRContext other) | |
Constructor, with another context object. More... | |
LRStructureElement | GetRootElement () |
Get the root element of structure tree. More... | |
bool | IsEmpty () |
Check whether current object is empty or not. More... | |
Progressive | StartParse (PauseCallback pause) |
Start to parse layout recognition for related PDF page. More... | |
This class can be used to parse layout recognition to get the root element.
|
inline |
Constructor, from a PDF Page object.
[in] | page | A valid PDF page object. |
|
inline |
Constructor, with another context object.
[in] | other | Another context object. |
|
inline |
Get the root element of structure tree.
Please ensure current context object has been parsed successfully before calling this function; otherwise, no valid root structure element can be retrieved.
|
inline |
Check whether current object is empty or not.
When the current object is empty, that means current object is useless.
|
inline |
Start to parse layout recognition for related PDF page.
It may take a long time to do parsing, so Foxit PDF SDK uses a progressive process to do this. If there is any error occurs in parsing progress, this function will throw exception. Please refer to class foxit.PDFException and values starting from foxit.common.ErrorCode.e_ErrFile .
[in] | pause | Pause callback object which decides if the parsing process needs to be paused. This can be null which means not to pause during the parsing process. If this is not null, it should be a valid pause object implemented by user. |