我想基于模板创建一个新文档,并且需要知道我在最终打印输出中的新页面插入或追加结果时是否有任何属性/属性,例如可用于此的页数?
I want to create a new document based on a template and need to know when my insertion or append results in a new page in the final printed output is there any property/attribute eg number of pages that can be used for this?
最满意答案
我过去经常搜索这个,我认为没有任何属性或任何其他方式来了解页面信息。
我使用的解决方案是在我的模板上或通过脚本插入分页符,使用我自己的模板工作原理知识,即迭代时需要多少空间等等。然后我知道我通过计算哪个页面分页符。
无论如何,您可以在问题跟踪器上提出增强请求。
I've search this a lot in the past and I don't think there's any property or any other way to know page info.
The solution I use is to insert page breaks on my template or via the script, using my own knowledge of how my template works, i.e. how much space it takes as I iterate, etc. And then I know which page I am by counting the page breaks.
Anyway, you could an enhancement request on the issue tracker.
更多推荐
发布评论