itext 导出pdf 多个空格变成一个

如果要显示原有文本样式,保留所有空格 只需将需要显示的空格替换为\u00a0即可

 

参考链接:https://stackoverflow.com/questions/42805217/how-to-keep-up-white-spaces-between-words-in-itext5

posted @ 2018-03-01 15:41  小_妖  阅读(1343)  评论(0编辑  收藏  举报