This is a migrated thread and some comments may be shown as answers.

RadEditor Export to PDF with page numbers

1 Answer 124 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Prathap Narravula
Top achievements
Rank 1
Prathap Narravula asked on 13 Jul 2015, 08:22 AM

 

Dear Team,

I am exporting RadEditor content into Pdf by using the below code.

RadEditor1.ExportSettings.Pdf.PageLeftMargin = System.Web.UI.WebControls.Unit.Pixel(1);
RadEditor1.ExportSettings.Pdf.PageLeftMargin = System.Web.UI.WebControls.Unit.Pixel(1);
RadEditor1.ExportSettings.Pdf.PageTopMargin = System.Web.UI.WebControls.Unit.Pixel(1);
RadEditor1.ExportSettings.Pdf.PageBottomMargin = System.Web.UI.WebControls.Unit.Pixel(1);
RadEditor1.ExportSettings.Pdf.PaperSize = GridPaperSize.A4;
RadEditor1.ExportSettings.Pdf.PageWidth = System.Web.UI.WebControls.Unit.Percentage(100);
RadEditor1.ExportSettings.Pdf.PageHeaderMargin = System.Web.UI.WebControls.Unit.Pixel(1);        
RadEditor1.ExportSettings.Pdf.ForceTextWrap = true;

RadEditor1.ExportToPdf();

 

I need to print page number in every page of pdf(Page 1 of 10, Page 2 of 10).

Please advice

 

Thanks in advance,

Prathap

 

 

 

1 Answer, 1 is accepted

Sort by
0
Ianko
Telerik team
answered on 15 Jul 2015, 08:42 AM
Hi Prathap,

With the RadEditor's built-in PDF engine adding page numbers is not possible.

However, you could be able to programmatically implement a solution by processing the output via PdfProcessing engine—http://docs.telerik.com/devtools/aspnet-ajax/controls/pdfprocessing/overview.

Regards,
Ianko
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
Editor
Asked by
Prathap Narravula
Top achievements
Rank 1
Answers by
Ianko
Telerik team
Share this question
or