add getTextFromPositions method for credocument