Free Support Forum - aspose.com

Restarting Page Numbers

We'd like to replace our current PDF solution with Aspose.Pdf, but there's one thing I've seen so far that will stop us. (I haven't yet dug into the flexibility of simulating nested page headers and "keep together" logic, so I may find more issues later.)

I know "Page $p of $P" provides a way to display the current page compared to the entire number of pages within the whole document. Is there a way to re-start page numbers with a new section?

I need to be able to have pages with footers something like the following, all within a single PDF document:

Patient 1: Page 1 of 2
Patient 1: Page 2 of 2
Patient 2: Page 1 of 3
Patient 2: Page 2 of 3
Patient 2: Page 3 of 3

Is that doable in Aspose.PDF?

Dear sdwire,

Thank you for considering Aspose.

The function you want is not supported in the current version. But it seems a useful feature so I will add support for it in my next task which will start at the end of this month. How urgent you are?

Does this feature available now?
We have version 2.1.4.1

I have supported this feature. Please refer to Aspose.Pdf Hotfix 2.1.6 Released!.

hi,
pdf.IsPageNumberRestarted=True is a nice feature.

but it Restarted page number for every new section which is not expected to me,

we want to set pdf.IsPageNumberRestarted=Ture after first section and continue page numbers for the remaning sections like pdf.IsPageNumberRestarted=False for the next sections.

it will just effective for the remaning new sections, not the whole pdf document as it do now.

regards …
Sojib

examp: Output:

Dim sec1 As Section = pdf.Sections.Add page1 sec1
… …
… page2

pdf.IsPageNumberRestarted=True
page1 sec2

Dim sec2 As Section = pdf.Sections.Add page2
… …
… page3 sec3
Dim sec3 As Section = pdf.Sections.Add …
… pagen
… …

Dear sojib,

Thank you for considering Aspose.

I think I should support IsPageNumberRestarted at section level so you can control the page number restart at which section. I will support this in several days.

Thanks Tommy,

u r right. pls try do it hurry.

hi Tommy,

how much time u will need to support IsPageNumberRestarted at section level ?
it will be helpfull if u done this before 5th-10th May 2005.

Regards…

Sojib

Dear Sojib,

Thank you for considering Aspose.

This feature will be available before May 10th.

Dear Tommy,

Have any progress about this??

Thanks.
Sojib.

Dear Sojib,

Thank you for considering Aspose.

I hope I can finish this feature before this weekend.

Dear Tommy,

Please try to add this feature on 10th May, I am wating for this.


Regards.

Sojib

Dear Sojib,

Thank you for considering Aspose.

Sorry for implement this feature late. I am not working on this issue and will publish a hotfix soon.


Dear Tommy.

It’s ok, no problem - i shall wait for u until it has been done.

I will be greatfull to you if u give priority to this.

Regards.
Sojib