如何查找文档中的页码/页数?(How do I find the page number/number of pages in a document?)

编程入门 行业动态 更新时间:2024-10-24 07:34:49
如何查找文档中的页码/页数?(How do I find the page number/number of pages in a document?)

我想基于模板创建一个新文档,并且需要知道我在最终打印输出中的新页面插入或追加结果时是否有任何属性/属性,例如可用于此的页数?

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.

更多推荐

本文发布于:2023-07-24 00:20:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1239200.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:页码   页数   文档   find   document

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!