Class TextOptions
Options controlling text extraction from a PDF page.
Inherited Members
Namespace: DRIT.Pdf.Content
Assembly: DRIT.Pdf.dll
Syntax
public sealed class TextOptions
Constructors
TextOptions()
Initializes a new instance with default options.
Declaration
public TextOptions()
TextOptions(TextWhitespaceHandling, TextOrder)
Initializes a new instance with the specified whitespace handling and reading order.
Declaration
public TextOptions(TextWhitespaceHandling whitespaceHandling, TextOrder readingOrder)
Parameters
| Type | Name | Description |
|---|---|---|
| TextWhitespaceHandling | whitespaceHandling | |
| TextOrder | readingOrder |
Properties
IncludeMarkedContentTags
Gets or sets whether to include marked-content tags in the extracted text. Default is false.
Declaration
public bool IncludeMarkedContentTags { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
ReadingOrder
Gets or sets the reading order. Default is Stream.
Declaration
public TextOrder ReadingOrder { get; set; }
Property Value
| Type | Description |
|---|---|
| TextOrder |
WhitespaceHandling
Gets or sets the whitespace handling mode. Default is Preserve.
Declaration
public TextWhitespaceHandling WhitespaceHandling { get; set; }
Property Value
| Type | Description |
|---|---|
| TextWhitespaceHandling |