c# - Aspose.Pdf Polish Characters -


why 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 unicode characters, have make sure font supports them , call pdf.setunicode(); before pdf.close.


Comments

Popular posts from this blog

magento2 - Magento 2 admin grid add filter to collection -

Android volley - avoid multiple requests of the same kind to the server? -

Combining PHP Registration and Login into one class with multiple functions in one PHP file -