OpenXml 获取word文档的页数
请问有谁用过OpenXml这个组件吗?怎么获取word文档的页数?
[解决办法]
using (WordprocessingDocument document = WordprocessingDocument.Open(fileName, false))
{
int pageCount = (int) document.ExtendedFilePropertiesPart.Properties.Pages.Text;
}