When I take a Printout or Saving as a PDF Document Using Microsoft Word
Document Shows the Following Code {PAGE / *MERGEFORMAT} Instead of Page Number then I find how to fix Page number displayed in code
You can use these steps to fix it
Click the Office button and then click Word Options. In the Advanced
category, clear the "Print field codes instead of their values" option
(found under "Print").