[scribus] Getting a Text Frame's Page
Matt Miller
matt.miller at fastmail.com
Wed Apr 13 23:42:24 UTC 2022
>From Python I want to find the page number that contains a certain text frame. I know the object name of the frame I'm looking for, but I don't know what page it's on. The only way I've thought of is to loop page-by-page over the document, and for each page use getAllObjects() to see if the frame is on that page. The documents are typically hundreds or even a couple thousand pages. I'm hoping for a faster way.
>From the GUI I see that if I click on an object to select it, then the page returned by currentPage() is what I'm looking for, but if I just call selectObject() then currentPage() doesn't seem to care.
Thanks.
--
Matt Miller
mailto:matt.miller at fastmail.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.scribus.net/pipermail/scribus/attachments/20220413/a7f1d8c6/attachment.htm>
More information about the scribus
mailing list