Foxit PDF SDK
|
Public Member Functions | |
def | OCR () |
Constructor. More... | |
def | GetOCRSuspectsInfo (ocred_pdf_doc) |
Get OCR suspicious information. More... | |
def | IsEmpty () |
Check whether current object is empty or not. More... | |
def | OCRPDFDocument (pdf_doc, is_editable) |
OCR each page of a PDF document. More... | |
def | OCRPDFPage (pdf_page, is_editable) |
OCR a PDF page. More... | |
This class is used to do OCR for a PDF page or a PDF document. Please ensure OCR engine has been initialized before using this class.
def FoxitPDFSDKPython2.OCR.OCR | ( | ) |
Constructor.
Constructor, with another ocr object.
[in] | other | Another ocr object. |
def FoxitPDFSDKPython2.OCR.GetOCRSuspectsInfo | ( | ocred_pdf_doc | ) |
Get OCR suspicious information.
The parameter ocred_pdf_doc is a valid PDF document that should have been ocred.
[in] | ocred_pdf_doc | A valid PDF document object. |
def FoxitPDFSDKPython2.OCR.IsEmpty | ( | ) |
Check whether current object is empty or not.
When the current object is empty, that means current object is useless.
def FoxitPDFSDKPython2.OCR.OCRPDFDocument | ( | pdf_doc, | |
is_editable | |||
) |
OCR each page of a PDF document.
After this function succeeds, the PDF page content may be changed. It is better to parse or re-parse PDF pages in the input PDF document before using these pages.
[in] | pdf_doc | A valid PDF document object. |
[in] | is_editable | true means the OCR result is editable. false means the OCR result can only be searched but not be edited. |
def FoxitPDFSDKPython2.OCR.OCRPDFPage | ( | pdf_page, | |
is_editable | |||
) |
OCR a PDF page.
After this function succeeds, the PDF page content may be changed and the input PDF page is recommended to be re-parsed.
[in] | pdf_page | A valid PDF page object. This PDF page should have been parsed. |
[in] | is_editable | true means the OCR result is editable. false means the OCR result can only be searched but not be edit. |