admin管理员组文章数量:1345896
I'm trying to find a way to detect what 'page number' text in a google docs document is on. I want to know this so I can determine page breaks accordingly if text would flow over onto the next page in a sequence of text I may have.
I have asked the AI and it claims this is impossible to do, but I doubt that. It claims the only way to do this is through heuristic methods like counting how many characters there is and so forth which will not work for me because content may have various font sizes or indentions and newlines etc... I need to reliably know for sure if something is on the next page or not.
So I looked into some different ways to do this.
1.) Maybe google app script? - Apparently there is no method for this?
2.) Google API's? - Apparently there is no API to detect this for text in the document.
3.) Using Chrome Extension and looking at the DOM. I studied the DOM structure of Google Docs and I could not for the life of me see how it's rendering the page. The AI claims it might be using iframes but this is not clear as I could not see where it's actually rendering the content. This would have been nice since I could just see if the text appears in some DOM element that represents the next page, but alas I can not seem to figure this out either.
So this brings me to you the community to see if you have any ideas I have not thought of that might be used to answer this seemingly simple question.
版权声明:本文标题:javascript - Is there a way to detect what 'page number' text in a google docs document is on? - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1743817657a2544214.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论