会员
周边
众包
新闻
博问
闪存
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
RubyPdf 的中文博客
专注PDF技术
博客园
首页
新随笔
订阅
管理
一个利用ChapterAutoNumber(iTextSharp的一个类)自动创建书签的话题
BaseFont bf
=
BaseFont.CreateFont(
"
STSong-Light
"
,
"
UniGB-UCS2-H
"
, BaseFont.NOT_EMBEDDED);
Font font1
=
new
Font(bf,
12
, Font.NORMAL);
Paragraph par
=
null
;
ChapterAutoNumber charp
=
null
;
for
(
int
i
=
0
; i
<
20
; i
++
)
{
par
=
new
Paragraph(
"
中华人民共和国万岁
"
, font1);
charp
=
new
ChapterAutoNumber(par);
//
step 4
document.Add(charp);
//
document.NewPage();
}
更多讨论和Demo演示可以到论坛查看:
http://www.steedsoft.com/bbs/viewtopic.php?t=12
posted on
2006-03-21 09:40
RubyPDF
阅读(
3839
) 评论(
2
)
编辑
收藏
举报
刷新页面
返回顶部