Issues-Insert page numbers in PDF

Hi Team,

We have a valid license up to 2013Dec26.Please provide us the code for insert page numbers in PDF.

1.Page numbers are not display in PDF while convert from excel to PDF.We need to insert page numbers in bottom of PDF.

Used code:

workbook.Save(pdfFilePath, Aspose.Cells.SaveFormat.Pdf);

Aspose.Pdf.Facades.PdfViewer viewer = new Aspose.Pdf.Facades.PdfViewer();

viewer.BindPdf(pdfFilePath);

viewer.AutoResize = true;

viewer.Resolution = 600;

viewer.AutoRotate = true;

viewer.PrintPageDialog = true;

System.Drawing.Printing.PrinterSettings ps = new System.Drawing.Printing.PrinterSettings();

System.Drawing.Printing.PageSettings pgs = new System.Drawing.Printing.PageSettings();

System.Drawing.Printing.PrintDocument prtdoc = new System.Drawing.Printing.PrintDocument();

ps.PrinterName = prtdoc.PrinterSettings.PrinterName;

pgs.PaperSize = new System.Drawing.Printing.PaperSize("A4", 827, 1169);

pgs.Margins = new System.Drawing.Printing.Margins(0, 0, 0, 0);

viewer.PrintDocumentWithSettings(pgs, ps);

viewer.Close();

viewer.PrintLargePdf(pdfFilePath, pgs, ps);

Thanks and Regards

Saravanan.l

Saravananl:
Please provide us the code for insert page numbers in PDF.
Hi Saravanan,

Thanks for contacting support.

Please follow the instructions specified over Add Page Number Stamp in a PDF File

Saravananl:
1.Page numbers are not display in PDF while convert from excel to PDF.We need to insert page numbers in bottom of PDF.

Do you mean the excel file contains page number information and they are not appearing when converting it to PDF format. If so is the case, can you please share the excel worksheet which you are using, so that we can test the scenario at our end. We are sorry for this inconvenience.