We are saving a workbook as a PDF. In between we set the 'FirstPageNumber' to a value of '25'.
In the PDF the page number starts with '1' only. It does not starts with Page 25,26 e.t.c
we are using the below code. Please help! (Attaching the input file here)
Workbook xlWrkBook = new Workbook(sPath + sFileName);
Worksheet xlWrkSheet = xlWrkBook.Worksheets[0];
xlWrkSheet.PageSetup.FirstPageNumber = 25;
xlWrkBook.Save(sPath + sFileName + ".pdf", SaveFormat.Pdf);
Hi Abraham,
Thanks for your posting and using Aspose.Cells for .NET.
I have tested your file by converting it to pdf with the latest version: Aspose.Cells
for .NET v7.7.0.3 and it works fine. Your file already has a first page number set to 25 and in the output pdf, number of first page is 25 and second is 26 and so on.
I have also attached the output pdf and screenshot for your reference.
Please download and use the latest version and it should fix your issue.
Screenshot:
Thank you. We will check and let you know!