Why my pdf don't display polish character?
MemoryStream ms = new MemoryStream();
Pdf pdf = new Pdf(ms);
Section section = pdf.Sections.Add();
var txt = new Text("aąbcćde");
txt.TextInfo.FontName = "calibri";
section.Paragraphs.Add(txt);
pdf.Close();
byte[] bytes = ms.ToArray();
return bytes;
Those special characters are Unicode characters, so you have to make sure that your font supports them and call pdf.SetUnicode();
before pdf.Close
.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.