Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
lemonzone2010 committed Nov 26, 2013
1 parent fe3144f commit cae7870
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#doc-render
项目主页:http://git.oschina.net/lemonzone2010/doc-render

最近公司需要生成PDF,基于这个需求简单学习了下IText 和 flying saucer,对于这两个技术.我先简单介绍下:

Expand All @@ -18,6 +18,8 @@ Flying Saucer和iText介绍:

范例说明:

项目主页:http://git.oschina.net/lemonzone2010/doc-render

1.支持中文

a.目录doc-render/src/test/resources/config/fonts中如果没有字体,需要手动复制系统中字体文件ARIALUNI.TTF到目录
Expand All @@ -42,7 +44,7 @@ Flying Saucer和iText介绍:

5.由于生成pdf需要加载中文字体文件(一般字体文件>10M),本例中增加了资源池(最大资源数15),相关详细见ITextRendererObjectFactory.getObjectPool();经过简单测试能够支持:150个用户迭代10次

6. 模板地址:点击查看 overseaAssistance.html
6. 模板html:点击查看 overseaAssistance.html

7. pdf生成文件点击查看

Expand All @@ -68,4 +70,11 @@ junit-4.11.jar

log4j-1.2.17.jar

slf4j-api-1.7.5.jar
slf4j-api-1.7.5.jar




项目主页:http://git.oschina.net/lemonzone2010/doc-render


0 comments on commit cae7870

Please sign in to comment.