Hello everybody and thank you all for your answers.
In fact, after a deep and hard search I discovered that <pageCount />
tag will not return any value when we put it in a <place />
tag so I put it in a <drawstring />
tag and it returns the total number of pages. Here is my code:
<place x="1.3cm" y="0cm" height="1.9cm" width="19.0cm">
<para style="main_footer">
Page: <pageNumber/>/
</para>
</place>
<drawString x="11.36cm" y="1.64cm" ><pageCount/></drawString>
I know that this solution is not professional, but it did work, hope that this bug will be fixed soon.
Regards