Property Rectangle
- Namespace
- BitMiracle.Docotic.Pdf
- Assembly
- BitMiracle.Docotic.Pdf.dll
Rectangle
Gets or sets the rectangle of interest.
public PdfRectangle? Rectangle { get; set; }
Property Value
- PdfRectangle?
The rectangle to extract the text from or
null
if all the text should be extracted.
Remarks
Default value: null
.
If the rectangle is null
AND the SkipInvisibleText is false
then the library will extract all available text.
If the rectangle is null
AND the SkipInvisibleText is true
then the library will only extract visible text inside the intersection of page
CropBox and
MediaBox.
If the rectangle is not null
AND the SkipInvisibleText is false
then the library will only extract text intersecting the specified rectangle. Any part
of a word which is outside of the rectangle will be extracted too.
If the rectangle is not null
AND the SkipInvisibleText is true
then the library will only extract visible text inside the specified rectangle. 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.
Read the Extract text from PDF in C# and VB.NET article to know how to extract text from PDF documents.