itextSharp - htmlString para pdf Unicode estão ausentes
Quando estou tentando gerar PDF a partir de HTML, alguns caracteres turcos comoĞÜŞİÖÇ
ğüşıöç
estão ausentes no PDF, vejo um espaço no lugar desses caracteres, mas quero imprimir esse caractere.
Meu código é:
public virtual void print pdf(string html, int id)
{
String htmlText = html.ToString();
Document document = new Document();
string filePath = HostingEnvironment.MapPath("~/Content/Pdf/");
PdfWriter.GetInstance(document, new FileStream(filePath + "\\pdf-"+id+".pdf",
FileMode.Create));
document.Open();
iTextSharp.text.html.simpleparser.HTMLWorker hw =
new iTextSharp.text.html.simpleparser.HTMLWorker(document);
hw.Parse(new StringReader(htmlText));
document.Close();
}
por favor responda preciso de sugestão ... cumprimentos