PdfTextExtractionOptions.Rectangle Property

Gets or sets the rectangle of interest.

Namespace:  BitMiracle.Docotic.Pdf
Assembly:  BitMiracle.Docotic.Pdf (in BitMiracle.Docotic.Pdf.dll)

Syntax

C#
public PdfRectangle? Rectangle { get; set; }
VB
Public Property Rectangle As PdfRectangle?
	Get
	Set

Property Value

Type: Nullable<PdfRectangle>
The rectangle to extract the text from or null if all the text should be extracted.

Remarks

Default value: null.

If the value is null then all the text inside the page CropBox will be extracted.

If the value is not null AND the SkipInvisibleText is true then only the text inside the specified rectangle will be extracted. Any part of a word which is outside of the rectangle will be truncated. Characters that are partially inside the rectangle (partially visible) will be extracted.

If the value is not null AND the SkipInvisibleText is false then only the text that intersects the specified rectangle will be extracted. Any part of a word which is outside of the rectangle will be extracted too.

See Also