I get the quads list, but the point is I want the top Left and bottom right coordinates of the selection.
Quad list works properly if I select any text from Top to Bottom, but if you select the text from Bottom to Top then the quads list that you get from this method is not useful.
My main purpose of all this is to get the selected text when rectangular mode is selected.
Tools.TextTool['SELECTION_MODE'] = 'rectangular';
But the problem is once the text is selected using rectangle, and I get that text using
var selectedText = readerControl.docViewer.getSelectedText();
I get whole selected text without any space or new line character.
And when I do the same thing using
Tools.TextTool.SELECTION_MODE = 'structural';
It returns me:
Could you please suggest me solution for this, how to get selected text with proper space and new line characters for rectangular selection?