It is possible to embed field functions in Microsoft Word documents, most commonly used is the function to insert the maximum page number.
These fields are usually updated by Word when viewing the document. When a programmatically generated docx file is uploaded and converted to pdf without viewing it, these fields are not evaluated and appear as placeholders in the pdf.
An option to make the graph API update these fields would be very helpful.