Scribus Forums

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

Title: Empty Pages with ImportPage script
Post by: Akxst on November 09, 2019, 06: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:

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, 07:20:15 PM
hi aksxt

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

i just tried it out and

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

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