Server Side PDF from HTML

1 Answer 3988 Views
PdfProcessing
Michael
Top achievements
Rank 1
Michael asked on 29 Sep 2017, 03:22 PM

I work for a company that heavily leverages Telerik controls in our core applications. I’ve been tasked with exploring the PDF options available in hopes of replacing our current PDF exports with Telerik equivalents to help move away from an unwanted software license.

In exploring the demos and product features it appears to me that rendering HTML content is limited to the RadClientExportManager and therefore is client side only, while server document creation requires the more elemental building of documents by plotting text, and graphics manually via .NET code.

Is this an accurate assessment? What would you recommend to someone wanting to render HTML content on the server where there is no actual browser or user involvement?

We currently convert data populated WebForm pages into PDF files all on the server that are never delivered to a user via browser interaction, or even requested by a browser (automated generation.) 

Aside from an HTML source being easier to use and maintain, it would plug right into our existing situation and not require use to reconstruct our forms in C#. That is obviously a more attractive option for us.

I am very impressed with the functionality of the client side rendering, it just doesn’t appear to cover a lot of common use cases that we happen to fall under.

1 Answer, 1 is accepted

Sort by
0
Tanya
Telerik team
answered on 04 Oct 2017, 12:05 PM
Hello Michael,

To achieve the desired goal, I would suggest you check the RadWordsProcessing library. In addition to the ability to build a document from scratch in code, you can also import documents with different formats and export them to PDF.

With that said, you can obtain the HTML of the page using the .NET API, import the resultant HTML into a RadFlowDocument and export it to PDF.

The abilities of RadWordsProcessing can be also tested using our online examples.

Hope this information is helpful.

Regards,
Tanya
Progress Telerik

Michael
Top achievements
Rank 1
commented on 04 Oct 2017, 02:00 PM

I was exploring the RadFlowDocument last night which seems to be kind of the direction I would be looking to travel in. The styling limitations are taking some teasing out, so I will be looking into that for a little while. 

I will also have a look at the other documentation you linked to. Thank you.

Sameer
Top achievements
Rank 1
commented on 29 Jul 2019, 12:46 PM

Hi,

i want to convert HTML to Pdf in c# api in .net Core 2, an you please suggest best way

Martin
Telerik team
commented on 31 Jul 2019, 02:32 PM

Hi Sameer,

We are currently working on providing a version for .NET Core as the current one is compatible with .NET Framework only. We hope we will be able to include the new version in one of the upcoming releases. You can Follow the public item so we can notify you when its status changes: Document Processing: Provide version for .NET Core.

Hope this is helpful.

Regards,
Martin
Progress Telerik
Get quickly onboarded 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
PdfProcessing
Asked by
Michael
Top achievements
Rank 1
Answers by
Tanya
Telerik team
Share this question
or