FormattedTextOptions class
Leave feedback
On this page
Provides the options which are used for formatted text extraction.
An instance of FormattedTextOptions is used as a parameter in Parser.get_formatted_text and Parser.get_formatted_text methods. See the usage examples there.
- Extract formatted text from document
- Extract a document text as HTML
- Extract a document text as Markdown
- Extract a document text as Plain text
The FormattedTextOptions type exposes the following members:
| Constructor | Description |
|---|---|
| init | Initializes a new instance of the FormattedTextOptions class. |
| init | Initializes a new FormattedTextOptions instance. |
| Property | Description |
|---|---|
| mode | The formatted text extraction mode. |
from groupdocs.parser import Parser
from groupdocs.parser.options import FormattedTextOptions, FormattedTextMode
with Parser("sample.pptx") as parser:
# Extract formatted text as Markdown (HTML and PLAIN_TEXT modes are also available)
reader = parser.get_formatted_text(FormattedTextOptions(FormattedTextMode.MARKDOWN))
print(reader.read_to_end() if reader is not None else "Formatted text isn't available.")
- module
groupdocs.parser.options
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.