iText中的特殊字符 [英] Special characters in iText
问题描述
我需要帮助使用这些符号⎕,∨,0,Ʌ等。但是当我使用iText创建PDF时,这些符号不会出现。
I need help in using these symbols ⎕, ∨, ๐, Ʌ, and so on. But when I create a PDF with iText these symbols do not appear.
我能做些什么才能出现这些符号?
What can I do so that these symbols appear?
推荐答案
您必须使用包含这些字符的字体和编码。您最好的选择是使用IDENTITY_H作为编码,因为这可以授予您访问给定字体中每个字符的权限......但您仍然必须使用正确的字体。
You have to use a font and encoding that contains those characters. Your best bet is to use IDENTITY_H for your encoding, as this grants you access to every character within a given font... but you still have to use the right font.
iText in Action字体中有几个字体操作示例:
http://www.itextpdf.com/book/chapter.php?id=11
There are several font-manipulation examples within "iText in Action's" chapter on fonts: http://www.itextpdf.com/book/chapter.php?id=11
示例在右侧。购买这本书也许有帮助。
The examples are down the right side. Buying the book would probably help too.
这篇关于iText中的特殊字符的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!