RadEditor Export to PDF with page numbers

2 posts, 0 answers
  1. Prathap Narravula
    Prathap Narravula avatar
    23 posts
    Member since:
    Apr 2010

    Posted 13 Jul 2015 Link to this post

     

    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

     

     

     

  2. Ianko
    Admin
    Ianko avatar
    1535 posts

    Posted 15 Jul 2015 Link to this post

    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
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top