Accented Character showing as é in a pdf Using Persits.PDF

懵懂的女人 提交于 2020-01-04 11:38:08

问题


I'm trying to display a name on a pdf using Persits.PDF (Persits URL), this particular name has a an accented character in it, this being é

When I use the Arial font it works fine:

Dim standardFont As PdfFont = doc.Fonts.Item("Arial")

However when I use Helvetica, é is shown as é

Dim standardFont As PdfFont = doc.Fonts.Item("Helvetica")

strParams = "x=" & (leftMarginX + CDbl(1345)).ToString() & "; y=660; width=1430.5; size=42; color=#000000;"
page.Canvas.DrawText(strFullName, strParams, standardFont)

In above code page = Persits.PDF.PdfPage and doc = Persits.PDF.PdfDocument

How can I get Helvetica to display this character?


回答1:


i think the documentation tells you that it's not supported in Helvetica - see support.persits.com



来源:https://stackoverflow.com/questions/15787001/accented-character-showing-as-%c3%83-in-a-pdf-using-persits-pdf

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!