Search code examples
scribus

Empty Pages by using ImportPage in script


I am trying to import pages in Scribus 1.5.5 from a Scribus Document with a script by using:

scribus.importPage("fromDoc", (2,3))

The script Imports just empty pages. When I use the dropdown Menu "Page->Import" it Imports also the text and image frames. What am I doing wrong?


Solution

  • I've already replied to the same question in the Scribus forums

    With the current Scribus code I've tried:

    importPage('/tmp/lines.sla', (1,))
    

    and it did import page 1 of /tmp/lines.sla as a new page in my current document.

    In your question, it is unknown what is "fromDoc" and if the document you're reading from has three pages.