我正在添加Pdftable
到现有的 pdf,现有的 pdf 已经有,footer
但在某些情况下,如果表格行更多,我正在使用插入新页面
stamper.InsertPage(pagecount, pagesize);
但我不确定如何添加footer
到这个新添加的页面。我到目前为止所尝试的是
stamper.Writer.PageEvent = new PdfFooterClass()
{
//Below are the properties of pdfFooterClass whose values used for footer.
Title = "My Sample Page"
UserId = "007"
};
但这不起作用,请建议在footer
使用stamper
. 我正在使用与使用 iTextsharp 为 PDF 添加页眉和页脚中使用的方法不同的方法添加新页面,因此这并不能解决我的问题。
提前致谢。