When someone is requesting how to reinstall Pages for any version of macOS, it sort of implies that they have Pages documents already. If these are text-only Pages documents, one can open them in a compatible version of LibreOffice and then save them as Word documents. Usually, unless there is some Pages formatting issues to overcome such as tables and n-column text.
LibreOffice continues to offer a command-line tool hidden within the application bundle. One can use that to convert any acceptable document format (including benign Pages documents) to another document format. I have soft-linked that tool to my ~/bin directory that I include in my PATH, and further, have created a Zsh function.
ln -s /Applications/LibreOffice.app/Contents/MacOS/soffice ~/bin/soffice
soffice --help
In my ~/.zshenv file, I created the following function:
function to_docx_365 () {
for file in "$@" ;
do
if [ -s $file ]; then
/Applications/LibreOffice.app/Contents/MacOS/soffice --headless --convert-to docx:"Office Open XML Text" "${file}"
else
printf "\n%s\n\n" ">>> $file not found or zero length."
continue
fi
done
}
In the Terminal, I refresh my available functions:
source ~/.zshenv
and now I can convert a basic Pages document in the current directory location to DOCX in the following manner:
to_docx_365 4pager.pages
There is no assurance that any images or other document objects will appear in their former Pages locations.
Tested with a Pages v14.1 document and LibreOffice v24.8.0 on macOS Sonoma 14.6.1. The converted document opens properly formatted in Word v16.88.