Creates a new DocumentPageText from a portion of this text data.
DocumentPageText.prototype.clipText = function(bounds)
clipText(bounds: LeadRectD): DocumentPageText;
The area to clone. This value is in document coordinates.
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.
Medical Web Viewer .NET