Linux: read files created on OsX using Pages

Do you need to open and read on your Linux box  files generated on Mac OsX using Pages? Below how i'm doing it.
  1. create file /usr/local/bin/pages
  2. edit /usr/local/bin/pages and inserte the following code
    #!/bin/sh
    PDFV=evince  # your favorite pdf viewer
    FILEP="$1"
    FILET=$(mktemp)
    mv $FILET ${FILET}.pdf
    DIRP=$(dirname $FILEP)
    cd $DIRP
    unzip -jp "$1" QuickLook/Preview.pdf > ${FILET}.pdf
    $PDFV ${FILET}.pdf
    cd -
    rm -f ${FILET}.pdf
    
    
    at line 2 insert the full path of your favorite pdf viewer
  3. make executable the newly created file ( chmod +x /usr/local/bin/pages )
Now you can read .pages file from your shell executing pages /path/to/file.pages