implementing transform matrix to getTextContent
Merge pull request #3695 from SSk123/transform

Adding transformation to the extract code