convert current page to pfd and send email

2 posts, 0 answers
  1. wu
    wu avatar
    1 posts
    Member since:
    Jan 2015

    Posted 17 Jul 2015 Link to this post

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

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

  2. Petya
    Petya avatar
    983 posts

    Posted 21 Jul 2015 Link to this post

    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 blogpost.

    I hope this is useful.
Back to Top