问题
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