You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
AFAIK just make sure to set $phpWord->getSettings()->setUpdateFields(true); and that the document is not in "protected" mode, and open the document in Word. A pop-up will open to ask you whether you want to update the document, agree. After Word updated the fields, the page numbers will display.
At the level of PHPWord, there is no way to know on which page the content will end up on, it is up to Word.
I use the version 0.16.0,but still has this question.
The text was updated successfully, but these errors were encountered: