问题描述
有什么方法可以在 pdf 完全渲染和输入之前获得总页数,我们提供 xml 文件,xslt 是页面布局的样式表,我们使用 RenderX 进行从 xslt 的 pdf 转换,它被转换为 xsl-fo 文件,从 xsl-fo 转换为 xep 文件,从 xep 转换为 ps/pdf 文件.还有一个问题如何通过在 xep 中使用 java 从 xep 文件中读取数据,它包含页码和 ID 等.
is there any way to get total number of page count before pdf render completely and input we are giving xml file and xslt is style sheet for page layout,and we are using RenderX for pdf conversion from xslt it is converted to xsl-fo file and from xsl-fo it is converting to xep file and from xep it is converting to ps/pdf file.and one more question how to read data from xep file by using java in xep it is containing page numbers and id etc.
推荐答案
XEP 格式是一个 xml 文档.您可以在 RenderX 文档中查看所有标签的结构和含义.既然是XML,就可以用很多方法来提取甚至修改.
The XEP format is an xml document. You can look in the RenderX documentation for the structure and meaning of all the tags. Since it is XML, one could use many methods to extract and even change it.
页面由 xep:page 元素表示.您可以在 XEP 格式中检查此元素并获取页码和其他信息.
Pages are represented by the xep:page element. You can examine this element in the XEP format and get page number and other information.
这篇关于如何在java中读取xep文件数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!