We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

PDFFileStamp.AddPageNumber

Hello,

I am using Aspose.PDF version 18.5.0 as a trail version. I’m attempting to call the following code:

   >      Aspose.Pdf.Facades.PdfFileStamp fileStamp = new Aspose.Pdf.Facades.PdfFileStamp();
        fileStamp.BindPdf(outputFile);
        int totalPages = new Aspose.Pdf.Facades.PdfFileInfo(outputFile).NumberOfPages;
        Aspose.Pdf.Facades.FormattedText formattedText = new Aspose.Pdf.Facades.FormattedText("Page # Of " + totalPages);
        fileStamp.StartingNumber = 1;
        fileStamp.AddPageNumber(formattedText, 0);
        fileStamp.Save(outputFile);
        fileStamp.Close();

I am getting a page number for only the first 4 pages. I noticed there are some limitations to running Aspose.PDF without a license, is this one of them?

Thanks!

Very Best Regards,
Victor

@VMOHA,

There are evaluation limitations of Aspose.PDF API, and you can avoid these limitations by applying a valid Aspose license. You can get a 30 day temporary license for the testing purposes. A temporary license is a time-restricted full license that lets you test every aspect of the API before buying it. Please refer to these helping links: Get a 30 day Temporary License and Apply License to Aspose.3D for .NET API