[scribus] Importing Pages with Text Frame Chain

Matt Miller matt.miller at fastmail.com
Mon Apr 18 15:18:14 UTC 2022


I'm still struggling with this, and it seems one reason is that I want to take advantage of text frame chains to initialize documents from text files, but when I'm editing existing documents the text frame chain is often getting in the way. So, how would I get rid of the frame chain after I've used it to help layout a new document?

Thanks.


On Sat, Apr 16, 2022, at 11:22, Matt Miller wrote:
> I'm trying use importPage() to replace selected pages with pages from 
> another document, but the document I'm importing from uses a text frame 
> chain. It seems that since the text in the other document is associated 
> with a frame chain and not with any particular frame, I'm not able to 
> import a page from somewhere in the middle of the other document and 
> get in my new document the text that would show in that page of the 
> other doc. As far as I can tell from the XML it's not stored in the 
> .sla what text is in each frame, but all the text of the entire chain 
> is just stored as a single piece of text.
>
> I'm thinking of opening the other document, using getFrameText() to 
> copy from the desired page of the other document, then using 
> insertText() to paste into my new document, But each page could have 
> multiple frames to copy and paste from, so that's more complex than a 
> page import. I'm wondering if there's some way to do this at the page 
> level, without looping over all the objects on a page.
>
> Thanks.
>
>
> --
>
>   Matt Miller
>   mailto:matt.miller at fastmail.com
>
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: 
> <http://lists.scribus.net/pipermail/scribus/attachments/20220416/c247fb0a/attachment.htm>
> ___
> Scribus Mailing List: scribus at lists.scribus.net
> Edit your options or unsubscribe:
> http://lists.scribus.net/mailman/listinfo/scribus
> See also:
> http://wiki.scribus.net
> http://forums.scribus.net

-- 

  Matt Miller
  mailto:matt.miller at fastmail.com



More information about the scribus mailing list