[Scribus] Python API: How to copy and paste?

Gregory Pittman gpittman
Fri Feb 23 04:11:51 CET 2007

Robin Munn wrote:
> I'm trying to write a script using the Python scripting API to make it
> easier to produce A4 booklets from a bunch of A5 pages. In other
> words, I want to print two portrait A5 pages side-by-side on a single
> lanscape A4 page, placing the pages in the right order so that when
> they're stacked and stapled they will produce a booklet.
> My initial approach to creating this script was to create a new
> document with A4 pages, then simply select all the objects on each
> page of the current A5 document and copy/paste them to the right page
> and location on the A4 document. However, I can't find any copy/paste
> functions in the Python API reference at
> http://docs.scribus.net/index.php?lang=en&page=scripterapi .
> Am I missing something obvious? Or, if copy-and-paste isn't available
> at all in the Python API, does anyone have a different suggestion for
> how to go about a booklet-making script?
You may find that a better way of doing this is here (without Scripter):


In your case, you will not be resizing the pages, but you will otherwise 
be doing a similar operation. It also covers things like imposition.


More information about the scribus mailing list