Hi
I’m trying to convert a single page in my website into PDF,
my website is written with hebrew fonts,
the PDF which was created with ASPOSE.PDF contains reversed hebrew strings.
URL for an example:
https://businessinfo.leumi-card.co.il/NotRegistered/Login/BusinessLogin.aspx
PDF which was created is attached to this Message.
i’m using this code to generate this:
WebClient client = new WebClient();
Console.WriteLine("loading url");
Stream stream = client.OpenRead(@"[https://businessinfo.leumi-card.co.il/NotRegistered/Login/BusinessLogin.aspx](http://businessinfo.lcweb-dev.co.il/NotRegistered/Login/BusinessLogin.aspx)");
StreamReader sr = new StreamReader(stream);
string str = sr.ReadToEnd();
Aspose.Pdf.Generator.Pdf pdf = new Aspose.Pdf.Generator.Pdf();
Aspose.Pdf.Generator.Section section = pdf.Sections.Add();
//pdf.IsRightToLeft = true;
//pdf.IsRtlInSegmentMode = true;
Aspose.Pdf.Generator.Text text = new Aspose.Pdf.Generator.Text(section, str);
text.IsHtmlTagSupported = true;
text.TextInfo.IsUnicode = true;
text.TextInfo.FontName = "Arial Unicode MS";
section.Paragraphs.Add(text);
pdf.HtmlInfo.ImgUrl = @"[https://businessinfo.leumi-card.co.il](http://businessinfo.lcweb-dev.co.il/)";
Console.WriteLine("saving pdf");
pdf.Save(@"c:\guy.pdf");
best regards,
guy bertental