Table of Contents

Class RtfReadOptions

Namespace
DocWright.Formats.Rtf
Assembly
DocWright.Formats.Rtf.dll

Format-specific settings for RtfReader.

public sealed class RtfReadOptions
Inheritance
RtfReadOptions
Inherited Members

Remarks

These live on the reader rather than on DocumentReadOptions because the core seam never widens for a format — the same shape HtmlReadOptions and ImageRenderOptions use.

Constructors

RtfReadOptions()

Fields

DefaultMaxNestingDepth

The default group-nesting limit. Deep enough for any document a word processor produces — Word's own output rarely passes 20 — and shallow enough that a file built to exhaust memory is refused early.

DefaultMaxTableNestingDepth

The default table-nesting limit.

Properties

Encoding

Gets or sets the code page to decode literal bytes with, overriding the document's own \ansicpg and any font charset. Null (the default) honours the document.

ImportPictures

Gets or sets a value indicating whether pictures are imported. True by default. Setting it false skips picture payloads entirely, which is what a caller converting untrusted input for its text alone usually wants.

MaxNestingDepth

Gets or sets the maximum group-nesting depth. Exceeding it throws a ResourceLimitExceededException.

MaxTableNestingDepth

Gets or sets the maximum table-nesting depth accepted from \itap.