Package edu.jiangxin.apktoolbox.word
Class WordUtils
java.lang.Object
edu.jiangxin.apktoolbox.word.WordUtils
-
Method Summary
-
Method Details
-
getPageCount
读取 Word 文档的页数。 - .doc 使用 HWPFDocument(poi-scratchpad) - .docx 使用 XWPFDocument(poi-ooxml) 若读取失败或页数 invalid input: '<'= 0,返回 0。- Parameters:
file- Word 文档文件- Returns:
- 文档页数,若无法读取则返回 0
-