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

RadClientExportManager PDF Headers and Footers

3 Answers 276 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Gary
Top achievements
Rank 1
Gary asked on 11 Mar 2015, 05:00 PM
Hi,
When using the new RadClientExportManager feature to export an entire HTML page to PDF, is it possible to add headers and footers to each page of the resulting PDF file (like for a title or for page numbers) when the resulting file is multiple pages?

Thanks.

3 Answers, 1 is accepted

Sort by
0
Nencho
Telerik team
answered on 16 Mar 2015, 02:04 PM
Hello Gary,

In order to achieve the desired functionality, you can handle the same function responsible of the export that you use and modify the html of the page that is about to be exported. In the attachment you can find a simple example on how to achieve this.

Regards,
Nencho
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
0
Cameron
Top achievements
Rank 1
answered on 10 Sep 2018, 06:15 PM

Hi Nencho,

I am using Winforms, and I am using Telerik.Windows.Documents.Flow.FormatProviders.Pdf.PdfFormatProvider(). I need to have page number footers in my converted PDF.  Is there a way to do this?

0
Tanya
Telerik team
answered on 11 Sep 2018, 02:22 PM
Hello Cameron,

You can achieve that by exporting the document to a RadFixedDocument instance using the ExportToFixedDocument() method of Telerik.Windows.Documents.Flow.FormatProviders.Pdf.PdfFormatProvider. Then, you can draw any data you would like to add to the document with the FixedContentEditor class.

When you are done with the modifications, you can save the document to a file using the Telerik.Windows.Documents.Fixed.FormatProviders.Pdf.PdfFormatProvider class.

Hope this is helpful.

Regards,
Tanya
Progress Telerik
Get quickly and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Tags
General Discussions
Asked by
Gary
Top achievements
Rank 1
Answers by
Nencho
Telerik team
Cameron
Top achievements
Rank 1
Tanya
Telerik team
Share this question
or