Creates a new DocumentPageText from a portion of this text data.
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.
boundsmust be in document coordinates. Refer to Documents Library Coordinate System for more information.
Products |
Support |
Feedback: clipText Method (DocumentPageText) - Leadtools.Documents |
Introduction |
Help Version 19.0.2017.3.21
|
Raster .NET | C API | C++ Class Library | JavaScript HTML5
Document .NET | C API | C++ Class Library | JavaScript HTML5
Medical .NET | C API | C++ Class Library | JavaScript HTML5
Medical Web Viewer .NET
Your email has been sent to support! Someone should be in touch! If your matter is urgent please come back into chat.
Chat Hours:
Monday - Friday, 8:30am to 6pm ET
Thank you for your feedback!
Please fill out the form again to start a new chat.
All agents are currently offline.
Chat Hours:
Monday - Friday
8:30AM - 6PM EST
To contact us please fill out this form and we will contact you via email.