RubyPdf 的中文博客
专注PDF技术
博客园
首页
新随笔
订阅
管理
posts - 194, comments - 1486, trackbacks - 6
2005年11月16日
iTextSharp生成的PDF显示“Page X of Y”的效果,IPdfPageEvent的应用一例
摘要: 一个网友的来信:
你好,我刚开始尝试使用iTextSharp,遇到一个问题:
我生成的pdf要求页脚显示“Page x of y”,看范例里面的写法
HeaderFooter f = new HeaderFooter(
new Phrase("Page "),
true);
doc.Footer = f;
这样显示可以看到当前页码,但是没办法得到PageCount。
阅读全文
posted @ 2005-11-16 09:22 RubyPDF 阅读(5334) 评论(5)
编辑