开发者

Itextsharp special characters like <

开发者 https://www.devze.com 2023-02-27 00:12 出处:网络
I am generating pdf using itextsharp i have one requirement to displa开发者_高级运维y << and >> in the pdf page how can i do thisIf you know the entity number of the special character you can cr

I am generating pdf using itextsharp i have one requirement to displa开发者_高级运维y << and >> in the pdf page how can i do this


If you know the entity number of the special character you can create that special character simply by using the following code.

document.Add(Phrase.GetInstance(" This is " + (char)945));

Substitute your entity number instead of 945. Hope this helps.

Edit: FontSelector class in iTextSharp will help you further if you have the required font with the symbols.

0

精彩评论

暂无评论...
验证码 换一张
取 消