For extracting structured text from an existing document