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

HTML - PDF Convertor

5 Answers 167 Views
Forum suggestions
This is a migrated thread and some comments may be shown as answers.
Ali
Top achievements
Rank 1
Ali asked on 25 May 2007, 08:26 AM
Hi,

Is there any tool in Telerik Library for HTML - PDF conversion. Because I've tried iTextSharp and AbcPDF but they are not parsing the HTML generated by RADEditor, for example RADEditor generates <BR/> for line break but AbcPDF recognizes <BR />,  a space is need between <BR and />. <Table> and <TBODY> are also unknow for these two APIs.

So is there any convertor in Telerik Library.

Ali

5 Answers, 1 is accepted

Sort by
0
Georgi Tunev
Telerik team
answered on 25 May 2007, 09:00 AM
Hello Ali,

Currently there is no such convertor from Telerik, but you can try the tool of Tall Components. You can find an example on how to use it with r.a.d.editor in the following KB article:
(ID#278) Converting r.a.d.editor HTML to PDF format



All the best,
Georgi Tunev
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Rumen
Telerik team
answered on 25 May 2007, 09:17 AM
Hello Ali,

I just want to add that when the ConvertToXhtml and NewLineBr properties are set to true, then RadEditor produces <br /> tags with space between <br and />, e.g.

line 1<br />line 2<br />line 3<br />

You can test this behavior in the following example: Content Filters.

Best regards,
Rumen
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Ali
Top achievements
Rank 1
answered on 25 May 2007, 11:13 AM
Hi,
I saw the live demo of Tall Components. It's working fine except table header. I just created a table with header in grey color and created few rows in RADEditor. When I run their live demo example with this HTML, it generated a PDF file without header color, rest of the format was perfect
0
Rumen
Telerik team
answered on 25 May 2007, 11:40 AM
Hi,

Our suggestion is to contact the support team of TallComponents and report the issue that you experience. Here is a link to their support page: http://www.tallcomponents.com/default.aspx?id=question.

Best regards
Rumen
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Dominic
Top achievements
Rank 1
answered on 25 Mar 2019, 03:48 PM

[quote]Is there any tool in Telerik Library for HTML - PDF conversion. Because I've tried iTextSharp and AbcPDF but they are not parsing the HTML generated by RADEditor, for example RADEditor generates <BR/> for line break but AbcPDF recognizes <BR />,  a space is need between <BR and />. <Table> and <TBODY> are also unknow for these two APIs.[/quote]

Hi Ali,

There are many online services that can do that for you, for most processing BR tags without a corresponding closing tag shouldn't be a problem. One of the best, which has wide programming language support is GrabzIt. Here is an example on https://grabz.it/html-to-pdf-image-api.aspx#PDF

Hope this helps

Dominic

 

Tags
Forum suggestions
Asked by
Ali
Top achievements
Rank 1
Answers by
Georgi Tunev
Telerik team
Rumen
Telerik team
Ali
Top achievements
Rank 1
Dominic
Top achievements
Rank 1
Share this question
or