在itextsharp pdf中应用页码 [英] Applying page numbers in itextsharp pdf
问题描述
大家好,
我正在使用iText夏普pdf生成方法,并尝试将页码应用于我生成的pdf文档.在这样做的同时,我在将表添加到文档之前调用一次pageendevent类,在这里我注意到页码仅应用于第一页,其余页未获取页码.我究竟做错了什么?如何在文档的所有页面上添加页码?每当页面在我的文档中结束时,如何调用pageendevent函数?
请帮忙.
在此先感谢,
感谢和问候
Hi All,
I am using iText sharp pdf generation method and trying to apply page numbers to the pdf document that i generate. While doing so i am calling the pageendevent class once before adding the table to the document, here i notice that the page number is being applied only to the first page and the remaining pages are not getting the page numbers. What am i doing wrong? How to add page numbers to all the pages of the document? How to call the pageendevent funtion each time when the page ends in my document?
Please help.
Thanks in Advance,
Thanks and Regards
推荐答案
for(int p = 1; p< writter.currentpagenumber;> {
textbox.Text = writer.CurrentPageNumber.ToString();
}
for(int p=1; p<writter.currentpagenumber;>{
textbox.Text=writer.CurrentPageNumber.ToString();
}
这篇关于在itextsharp pdf中应用页码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!