extract method
Leave feedback
On this page
Extracts data from a document.
def extract(self, document, extraction_options):
...
| Parameter | Type | Description |
|---|---|---|
| document | Document |
The document from file system, stream or structure. |
| extraction_options | ExtractionOptions |
The extraction options. |
Returns: The extracted data of the document.
from groupdocs.search import Extractor
from groupdocs.search.common import Document
from groupdocs.search.options import ExtractionOptions
extractor = Extractor()
extractor.error_occurred += lambda sender, args: print(args.message)
document = Document.create_from_file("./documents/lecture.txt")
extraction_options = ExtractionOptions()
extraction_options.use_raw_text_extraction = False
extracted_data = extractor.extract(document, extraction_options)
These names call extract too, limited to the overloads listed.
| Alias | Accepts |
|---|---|
extract_document |
extract_document(document, extraction_options) |
- class
Extractor
Was this page helpful?
Any additional feedback you'd like to share with us?
Please tell us how we can improve this page.
Thank you for your feedback!
We value your opinion. Your feedback will help us improve our documentation.