Avatar

Level 2

Is there anyone know how to get the total page after we generate the pdf file. I'm using the rest method and create a out process.?