How to preserve the total section page count during Pdf conversion?

How to preserve the total section page count during Pdf conversion?

Hi,

when converting a word document that has multiple sections with individual page numbering, the resulting pdf file does not display the correct number from the SectionPages field. In the word document the pages are numbered 1/5, 2/5, 3/5, etc. but in the resulting pdf file the pages are numbered 1/1, 2/2, 3/3 etc. We have also tried to use a PageRef field to a bookmark on the last page of the section for the total, but with the same result.

How can we get the Pdf conversion to display the correct number of pages in a section?