implementing transform matrix to getTextContent