Help me about footer

I want to place the footer only in the last page so I set IsLastPageOnly = true, but in a long PDF document, previous pages have a blank that the footer supposed to be. Data not filled at those. How can I solve this problem.

Dear lnhuy,

Thank you for considering Aspose.

The footer of a all pages in a section have the same size. Although only footer in the laset page is displayed, other pages will have a blank for the footer. I have planed to solve this problem and it hopes to be soved late this month. Currently please consider if it is possible to put the last page in a single section.

Dear Forever,

How can I know which is the last page?

Dear lnhuy,

Thank you for considering Aspose.

Certainly I will try to solve this problem in Aspose.Pdf. I just wanted to ask you if it is possible for you to know which is the last page from your application.