WordProcessingOptions class

WordProcessingOptions class

Contains options for rendering Word documents.

For details, see the documentation at https://docs.groupdocs.com/viewer/net/render-word-documents/.

The WordProcessingOptions type exposes the following members:

Constructors

Constructor Description
init Initializes options for rendering word processing documents.

Methods

Method Description
clone Creates and returns a full deep copy of these options.
equals Determines whether the specified WordProcessingOptions instance is equal to this instance.
equals_word_processing_options

Properties

Property Description
bottom_margin The bottom margin of a page.
enable_open_type_features The option enables kerning and other OpenType features when rendering Arabic, Hebrew, Indian Latin-based, or Cyrillic-based scripts.
horizontal_resolution The horizontal resolution for generated images in dots per inch. This option is used when rendering WordProcessing documents to PNG or JPEG formats only.
left_margin The left margin of a page.
page_number_location The page numbering location for the loaded WordProcessing document, which can forcibly apply page numbering; by default it is WordsPageNumberLocation.not_apply, leaving the document intact.
page_size The size of the output page.
render_tracked_changes The property enables rendering of tracked changes (revisions).
right_margin The right margin of a page.
top_margin The top margin of a page in points.
unlink_table_of_contents The option disables navigation from the table of contents when set to True for HTML or PDF rendering.
update_fields The property determines whether fields of certain types are updated before saving the WordProcessing document to HTML, PDF, PNG, or JPEG formats. The default is True, meaning fields are updated.
vertical_resolution The vertical resolution for generated images in dots per inch, used when rendering WordProcessing documents to PNG or JPEG formats only.

Example

from groupdocs.viewer import Viewer
from groupdocs.viewer.options import PdfViewOptions

with Viewer("with_tracked_changes.docx") as viewer:
    view_options = PdfViewOptions("output/word_with_tracked_changes.pdf")
    view_options.word_processing_options.render_tracked_changes = True
    viewer.view(view_options)

See Also