Go to the Pages app
Note: If you have not Page layout documents can’t be exported in TXT format.
Tip: To see if you have a Export to Word, PDF, or another file format in Pages on MacUse iCloud Drive with Pages on Mac