Allow to display another language in PDF

Viewed 29

I'm using a: iText

html += @"<div style='font-weight:bold;'>Inventory Stock Report</div>
                <table style='width:100%;'>
               <tr style='border-bottom:solid 1px black;'>
                <td>Item Code</td>
                <td>Description</td>
                <td>Quantity</td>
                <td>Unit Cost</td>
                <td>ד</td>
                <td>ג</td>
                <td>ב</td>
                <td>א</td>
                <tr>";

string fileName = System.Guid.NewGuid().ToString();
string file = fPath + fileName + ".pdf";
CreatePDFFromDatabase(_url, html, file);

public void CreatePDFFromDatabase(string url, string html, string destination)
{
    ConverterProperties cp = new ConverterProperties();
    cp.SetBaseUri(url);
    HtmlConverter.ConvertToPdf(html, new FileStream(destination, FileMode.Create), cp);
}

It works great and is saved in my folder.

The problem is, that the text in Hebrew (including what comes from the DB) is not decoded into the PDF. How to decipher a language that is not English? (Hebrew for example)

0 Answers
Related