首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > .NET > C# >

怎么将pdf中的文件居中?需代码(iTextSharp有关问题)

2013-11-09 
如何将pdf中的文件居中?需代码(iTextSharp问题)HeaderFooter footer new HeaderFooter(new Phrase(--

如何将pdf中的文件居中?需代码(iTextSharp问题)
怎么将pdf中的文件居中?需代码(iTextSharp有关问题)

HeaderFooter footer = new HeaderFooter(new Phrase("-- ", font), new Phrase(" --", font));  
                footer.Border = Rectangle.NO_BORDER;        // 不显示两条横线  
                footer.Alignment = Rectangle.ALIGN_CENTER;  // 让页码居中  
                document.Footer = footer; 
上面是网上知道的但是出现的问题是HeaderFooter这个类不存在在iTextSharp这个dll文件中
[解决办法]
可能是你的iTextSharp这个dll的版本问题。这篇博客中第9节有提到。http://www.cnblogs.com/LifelongLearning/archive/2010/12/28/1919138.html

热点排行