DocumentPageText.prototype.clipText = function(
bounds
)
clipText(
bounds: LeadRectD
): DocumentPageText;
bounds
The area to clone. This value is in document coordinates.
New DocumentPageText.
Use this method to create a copy of DocumentPageText that contains only the characters that intersect with a specified rectangle. For example, if your application contains functionality where the user can select a portion of the page using rubber band to extract text from, then you can use ClipText on the page object to return a new object that can be used with BuildWords or BuildText to parse only the words and text of the area.
ClipText works by checking the value of DocumentCharacter.Bounds of each item in characters. If the value intersects, then it is added to the Characters list of the new object.
If the value of bounds is empty (IsEmpty), then this method returns an exact copy of this DocumentPageText.
bounds must be in document coordinates. Refer to Document Library Coordinate System for more information.
Help Collections
Raster .NET | C API | C++ Class Library | HTML5 JavaScript
Document .NET | C API | C++ Class Library | HTML5 JavaScript
Medical .NET | C API | C++ Class Library | HTML5 JavaScript
Medical Web Viewer .NET
Multimedia
Direct Show .NET | C API | Filters
Media Foundation .NET | C API | Transforms
Supported Platforms
.NET, Java, Android, and iOS/macOS Assemblies
Imaging, Medical, and Document
C API/C++ Class Libraries
Imaging, Medical, and Document
HTML5 JavaScript Libraries
Imaging, Medical, and Document