Reset page count

Hi

I am building PDF file that contains statements for a few thousand clients. Statement for every client may have different numbers of pages. Page count for every statement should start from 1. We are using MS word templates and ADO dataset as data source. I need the following :

- reset page count for each client

- total pages generated for every client

Please advise.

Thanks

Serguei


This message was posted using Aspose.Live 2 Forum

Hi Serguei,

Thank you very much for considering Aspose.

Please share whether you’re trying to create a PDF file from scratch with the required numbering or you want to add such numbering in an existing PDF file? Also, kindly mention the platform you’re working with – .NET or Java – so we could guide you accordingly.

Regards,

Hi Shahzad

I am creating PDF from scratch and using .NET platform

Thanks

Serguei

Hi Serguei,

As Aspose.Pdf deals with the PDF files created from scratch, so I have moved it to the related forum. A representative from the concerned team would be able to help you out shortly.

Regards,

Hi Serguei,

Thanks for using our products.

As far as I have understood from your requirement, you are using Word document as template to generated PDF documents along with ADO dataset and datasource. Are you using Aspose.Words for .NET to accomplish this requirement ?

Besides this, if you are using Aspose.Pdf to generate PDF documents from scratch, then currently it supports the following features.

  • Each Pdf object contains its own page count information. So when you create a new Pdf object, the page count is automatically reset. Therefore in your scenario, you need to create separate Pdf object for each customer and page count is automatically reset.
  • You can use $P replaceable symbol inside PDF document (either in Header/Footer section or in the main body section of the document) to display the page count information for a single Pdf document. For more information, please visit Replaceable Symbols