簡體   English   中英

ABCpdf unicode字符為?

[英]ABCpdf unicode character as?

我使用的是ABCPDF版本9.1.2.5

我們創建PDF的過程就像在后台導航URL一樣,並將完整的HTML作為字符串獲取,我們使用AddImageHtml()方法創建PDF,這種方法可以與英語完美配合,但不適用於其他語言,如中文日語表示為“?” 標記

Dim PDFData() As Byte = Nothing
Dim HtmlPage As String
Dim PDFDoc As New Doc
PDFDoc.Font = PDFDoc.EmbedFont("Arial Unicode MS", LanguageType.Unicode, False, True)
HtmlPage = myclass.GetWebPageAsString(TargetURL, PostData)
If Orientation = Myclass.PDFOrientation.Landscape Then
 Width = PDFDoc.MediaBox.Width
 Height = PDFDoc.MediaBox.Height
 Left = PDFDoc.MediaBox.Left
 Bottom = PDFDoc.MediaBox.Bottom
 PDFDoc.Transform.Rotate(90, Left, Bottom)
 PDFDoc.Transform.Translate(Width, 0)
 PDFDoc.Rect.Width = Height
 PDFDoc.Rect.Height = Width
End If
PDFDoc.Rect.Inset(20, 20)
PDFDoc.HtmlOptions.Timeout = 3600000
PDFDocID = PDFDoc.AddImageHtml(HtmlPage)
PDFData = PDFDoc.GetData
PDFDoc.Clear()

您正在使用的ABCpdf版本於2015年初停止使用。您使用的默認引擎的CJK字符呈現取決於運行應用程序的計算機上安裝的Internet Explorer版本。 從版本11開始,現在可以使用Chrome引擎,它更少依賴於您的操作系統配置。 它也更快,更符合標准。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM