PdfTextOptions Class
Represents options used for extracting text from a PDF content.
- Inheritance:
- System.ObjectPdfTextOptions
Constructors
PdfTextOptions()
Initializes a new instance of the PdfTextOptions class.
Properties
Bounds
Gets or sets the bounds of the extracted text or null if the extracted text is unbounded.
Default value: null (the extracted text is unbounded).
Property Value
- System.Nullable<PdfQuad>
The bounds of the extracted text or null if the extracted text is unbounded.
Default
Gets the default options used for extracting any text from a PDF content.
public static PdfTextOptions Default { get; }
Public Shared ReadOnly Property Default As PdfTextOptions
Property Value
The default options used for extracting any text from a PDF content.
FontFace
Gets or sets the font face used for measuring insignificant whitespace characters inserted in the extracted text if the Blank flag is set in the Whitespaces property.
Default value: Courier.
Property Value
The font face used for measuring insignificant whitespace characters inserted in the extracted text if the Blank flag is set in the Whitespaces property.
Exceptions
- System.ArgumentNullException
The value assigned to the FontFace is null.
NewLineChars
Gets or sets the character string to use for line breaks in the extracted text if the NewLine flag is set in the Whitespaces property.
Default value: System.Environment.NewLine.
Property Value
- System.String
The character string to use for line breaks in the extracted text if the NewLine flag is set in the Whitespaces property.
Exceptions
- System.ArgumentNullException
The value assigned to the NewLineChars is null.
Order
Gets or sets the order in which the text should be extracted.
Default value: Reading.
Property Value
The order in which the text should be extracted.
Whitespaces
Gets or sets a value that specifies how whitespace characters are inserted in the extracted text.
public PdfTextWhitespaces Whitespaces { get; set; }
Public Property Whitespaces As PdfTextWhitespaces
Property Value
A value that specifies how whitespace characters are inserted in the extracted text.