Scribusoid

Author Topic: Empty Pages with ImportPage script  (Read 105 times)

Akxst

  • Newbie
  • *
  • Posts: 1
  • Karma: 0
  • Scribus User
Empty Pages with ImportPage script
« 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?

a.l.e

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2177
  • Karma: 28
    • the graphics lab
Re: Empty Pages with ImportPage script
« Reply #1 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.