WordProcessingConvertOptions class

WordProcessingConvertOptions class

The options for conversion to WordProcessing file type.

The WordProcessingConvertOptions type exposes the following members:

Constructors

Constructor Description
init Initializes a new instance of WordProcessingConvertOptions.

Properties

Property Description
dpi The desired page DPI after conversion. The default resolution is 96 dpi.
fallback_page_size The fallback page size.
format The desired file type the input document should be converted to.
margin_settings The margin settings for the conversion, represented by IPageMarginOptions.
markdown_options The Markdown conversion options.
orientation_settings The orientation settings.
page_number The page number to start conversion from.
pages The list of page indexes to be converted. Should be specified to convert specific pages.
pages_count The number of pages to convert starting from PageNumber.
password The password used to protect the converted document.
pdf_recognition_mode The PDF recognition mode used for conversion, implementing IPdfRecognitionModeOptions.pdf_recognition_mode.
rtf_options The RTF specific convert options.
size_settings The size settings for the conversion.
watermark The watermark specific options.
zoom The zoom level in percentage.

Example

from groupdocs.conversion import Converter
from groupdocs.conversion.options.convert import WordProcessingConvertOptions
from groupdocs.conversion.filetypes import WordProcessingFileType

with Converter("./business-plan.docx") as converter:
    options = WordProcessingConvertOptions()
    options.format = WordProcessingFileType.TXT
    converter.convert("./business-plan.txt", options)

Guides

Task guides that use WordProcessingConvertOptions:

See Also