Any one tell me How to convert arabic aspx content to pdf document? ..
I need with example....
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
FestarPosted Sep 15, 2015, 7:27 AM
Tony HammondPosted May 15, 2014, 2:39 AM
If part of the ASPX page is an image, then your solution would need to include optical character recognition also.
You can use libraries like iTextSharp or leadtools for the PDF conversion.
Ring ZhongPosted Dec 29, 2013, 11:02 PM
http://pdfapi.codeplex.com
Here is the demo for normal html to pdf using spire.pdf:
static void Main(string[] args)
{
//Create a pdf document.
PdfDocument doc = new PdfDocument();
String url = "http://www.london2012.com/news/articles/paralympic-torch-relay-route-revealed-1258473.html";
doc.LoadFromHTML(url, false, true, true);
//Save pdf file.
doc.SaveToFile("sample.pdf");
doc.Close();
//Launching the Pdf file.
System.Diagnostics.Process.Start("sample.pdf");
}
If convert arabic aspx content to pdf, maybe the font is not supporting Arabic so what you have to do is using a font which support Arabic like tahoma,
here is the relative post for you:
http://geekswithblogs.net/JaydPage/archive/2011/11/02/using-itextsharp-to-correctly-display-hebrew--arabic-text-right.aspx
http://engthunder.wordpress.com/2011/10/03/export-gridview-to-pdf-with-arabic-content-using-itextsharp/