Scribus Forums

Scribus => Scripts and Plugins => Topic started by: Akxst on November 09, 2019, 07:15:38 pm

Title: Empty Pages with ImportPage script
Post by: Akxst on November 09, 2019, 07:15:38 pm
Hi All,

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

Code: [Select]
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 is wrong with the script?
Title: Re: Empty Pages with ImportPage script
Post by: a.l.e on November 09, 2019, 08:20:15 pm
hi aksxt

what is "fromDoc"?
does "fromDoc" have three pages?

i just tried it out and

Code: [Select]
importPage('/tmp/lines.sla', (1,))
does import page 1 of /tmp/lines.sla as a new page in my current document.