Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
W:通过 Office.js 提取 document.xml 时缺少 LastRenderedPageBreak 标记。请让我知道有没有办法通过 Office.js 获取此标签。
先感谢您!
这个标签是“短暂的”。当文档关闭时,Word 可能会或可能不会在 Word Open XML 中创建它- 人们不能依赖它存在于关闭的文件中。
当文档再次在 Word 中打开时,不需要标记,因为 Word 会立即重新计算换行符和分页符。它会在打开文档进行编辑的整个过程中动态执行此操作。
因此,在 Word 中打开的文档中无法获取此标记。