Accessing a document's text from an