Is there a free component to convert arabic html to pdf?
Posted
by Mariam
on Stack Overflow
See other posts from Stack Overflow
or by Mariam
Published on 2010-05-22T08:32:27Z
Indexed on
2010/05/23
21:00 UTC
Read the original article
Hit count: 365
I need to take an HTML page in Arabic and convert it to a PDF. itextsharp doesn't work. Here is some example HTML with Arabic in it.
<div>
<table border="1" width="500px">
<tr>
<td colspan="2">
aspdotnetcodebook
????? ???????</td>
</tr>
<tr>
<td>
cell1
</td>
<td>
cell2
</td>
</tr>
<tr>
<td colspan="2">
<asp:Label ID="lblLabel" runat="server"
Text=""></asp:Label>
<img alt="" src="logo.gif" style="width: 174px; height: 40px" /></td>
</tr>
<tr>
<td colspan="2" dir="rtl">
<h1>
<img alt="" height="168"
src="http://a.cksource.com/c/1/inc/img/demo-little-red.jpg"
style="margin-left: 10px; margin-right: 10px; float: left;" width="120" />?????
????? ??? ??? ?? ?? ??</h1>
<p>
?????? ??????? ??????? ???? ?????? ????? ??????? ?????? ???? ?????? ??????
??????? ????????. ???????? ??? ??????? ??????? ????? ?????? ??????? ?? ???????
??? ?????? ????? ????? ?????? ????? ???????? ?? ????? ????? ???? ????? ?? ?????
?????? ??????? ??????? ????? ??????? ?????????.
<a href="http://en.wikipedia.org/wiki/Brothers_Grimm">
??????? ????/a> ?????? ??????? ??????? ???? ?????? ????? ??????? ?????? ????
?????? ?????? ??????? ????????. ???????? ??? ??????? ??????? ????? ??????
??????? ?? ??????? ??? ?????? ????? ????? ?????? ????? ???????? ?? ????? ?????
???? ????? ?? ????? ?????? ??????? ??????? ????? ??????? ?????????. <a href="http://en.wikipedia.org/wiki/Hood_(headgear%2529"
title="Hood (headgear)">?</a><a
href="http://en.wikipedia.org/wiki/Hood_(headgear%2529">?????</a>
<a href="http://en.wikipedia.org/wiki/Cape" title="Cape">?</a><a
href="http://en.wikipedia.org/wiki/Cape">??</a> ??
<a href="http://en.wikipedia.org/wiki/Cloak" title="?????????">?????????</a>
?????? ??????? ??????? ???? ?????? ????? ??????? ?????? ???? ?????? ??????
??????? ????????. ???????? ??? ??????? ??????? ????? ?????? ??????? ?? ???????
??? ?????? ????? ????? ?????? ????? ???????? ?? ????? ????? ???? ????? ?? ?????
?????? ??????? ??????? ????? ??????? ?????????. .</p>
<p>
?????? ??????? ??????? ???? ?????? ????? ??????? ?????? ???? ?????? ??????
??????? ????????. ???????? ??? ??????? ??????? ????? ?????? ??????? ?? ???????
??? ?????? ????? ????? ?????? ????? ???????? ?? ????? ????? ???? ????? ?? ?????
?????? ??????? ??????? ????? ??????? ?????????.</p>
<p>
?????? ??????? ??????? ???? ?????? ????? ??????? ?????? ???? ?????? ??????
??????? ????????. ???????? ??? ??????? ??????? ????? ?????? ??????? ?? ???????
??? ?????? ????? ????? ?????? ????? ???????? ?? ????? ????? ???? ????? ?? ?????
?????? ??????? ??????? ????? ??????? ?????????.</p>
<p>
?????? ??????? ??????? ???? ?????? ????? ??????? ?????? ???? ?????? ??????
??????? ????????. ???????? ??? ??????? ??????? ????? ?????? ??????? ?? ???????
??? ?????? ????? ????? ?????? ????? ???????? ?? ????? ????? ???? ????? ?? ?????
?????? ??????? ??????? ????? ??????? ?????????.
<a href="http://en.wikipedia.org/wiki/Hunter">??????</a>, ?????? ???????
??????? ???? ?????? ????? ??????? ?????? ???? ?????? ?????? ??????? ????????.
???????? ??? ??????? ??????? ????? ?????? ??????? ?? ??????? ??? ?????? ?????
????? ?????? ????? ???????? ?? ????? ????? ???? ????? ?? ????? ?????? ???????
??????? ????? ??????? ?????????. ??????? ??????? ???? ?????? ????? ???????
?????? ???? ?????? ?????? ??????? ????????. ???????? ??? ??????? ??????? ?????
?????? ??????? ?? ??????? ??? ?????? ????? ????? ?????? ????? ???????? ?? ?????
????? ???? ????? ?? ????? ?????? ??????? ??????? ????? ??????? ?????????.</p>
<p>
?????? ??????? ??????? ???? ?????? ????? ??????? ?????? ???? ?????? ??????
??????? ????????. ???????? ??? ??????? ??????? ????? ?????? ??????? ?? ???????
??? ?????? ????? ????? ?????? ????? ???????? ?? ????? ????? ???? ????? ?? ?????
?????? ??????? ??????? ????? ??????? ?????????. <a href="http://en.wikipedia.org/wiki/Enchanted_forest">??????</a>, ??????
??????? ??????? ???? ?????? ????? ??????? ?????? ???? ?????? ?????? ???????
????????. ???????? ??? ??????? ??????? ????? ?????? ??????? ?? ??????? ???
?????? ????? ????? ?????? ????? ???????? ?? ????? ????? ???? ????? ?? ?????
?????? ??????? ??????? ????? ??????? ?????????. </p>
</td>
</tr>
</table>
</div>
i use itextsharp to convert this content which is stored in DB to pdf file to be downloaded to the user
© Stack Overflow or respective owner