This is a migrated thread and some comments may be shown as answers.
convert current asp.net page to pfd and send email
1 Answer 16 Views
This is a migrated thread and some comments may be shown as answers.
n/a
Top achievements
Rank 1
n/a asked on 17 Jul 2015, 06:39 AM

1.  Asp.net page is normal page created by telerik(not mvc), user can  input value.

2. I want click one button,i can convert current asp.net page  to pfd and send email(this pdf should save in server,and pfd as the attached )

1 Answer, 1 is accepted

Sort by
0
Petya
Telerik team
answered on 21 Jul 2015, 04:07 PM
Hi wu,

Could you please elaborate whether you are looking for a way to convert documents to PDF or PFD as the two formats are rather different?

The former is supported using several different approaches. Please check my suggestions and the related demos and see how they fit your needs.

One of the options is the Telerik ASP.NET ClientExportManager that was recently introduced. You can see it in action in this demo and see how it fits your needs.

The alternative is to use the RadWordsProcessing library to convert the document. You'll need to use the HtmlFormatProvider class to import the HTML and then export it with PdfFormatProvider. The approach is demonstrated in this demo that will also allow you to try the library out in your scenario. 

You should be aware that the latter approach converts the HTML you pass to the document model of the library with base class RadFlowDocument. Basically, if there is an element on the HTML page that cannot be converted (mapped) to one in the flow document model, it will be skipped, so there may be some differences between the original page and the exported PDF. Additionally, you might want to take a look at the settings of the HtmlFormatProvider to learn about the available customization options.

As far as sending an email with the PDF document attached is concerned, this is more of a general task than directly related to our controls. You can find some helpful answers on the internet for example in this StackOverflow thread or this .

I hope this is useful.
 
Regards,
Petya
Telerik
Asked by
n/a
Top achievements
Rank 1
Answers by
Petya
Telerik team
Share this question
or