Category:Scripts

Other languages: Polski (pl) Portuguese (pt_BR)

= Scripter =

Here is documentation about the current scripting component in Scribus:


 * Scripter API -- Routines which can be used in scripts to control Scribus
 * Databases -- Scripts can interact with database software like MySQL or SQLite

This wiki is capable of letting users download raw code embedded into the pages and have it appear syntax highlighted.
 * So as to cite python script code with proper syntax hilight, use the following tag

Get content like text from a frame
ITEM TYPE
 * ItemType1 = 1,
 * ImageFrame = 2,
 * ItemType3 = 3,
 * TextFrame = 4,
 * Line = 5,
 * Polygon = 6,
 * PolyLine = 7,
 * PathText = 8,
 * LatexFrame = 9,
 * Multiple = 99

Get some text frame page number
Parsing the document's .sla file (which is just XML), here's the baseic gist to get the page number for a frame named "foo":

For this to work, the object has to manually have been given a name, not just leaving the auto-generated one, otherwise it's not stored in the .sla file.

Auto-Output all Scripter Commands
From Scribus User http://meiradarocha.jor.br Mailinglist Feb. 2012

The output for this script is collected in Automatic Scripter Commands list.

Image Manipulation

 * Objects: Images -- Example Scripts that manipulate images in a Scribus document

Beginners Scripts
This content has been moved to a separate page to reduce the enormity of this one.

Basic scripts
Scripts which give you ideas how you can solve your tasks.


 * Poor man's mail merge
 * Enlarge2Page - Enlarge an object to the size of the page.
 * Making Guides at an Object's Borders
 * Using the new applyMasterPage command
 * Swap Images
 * Creating Text Frames for Image Captions
 * Horizontal Rule over Text Frame
 * Creating an Object-sized Document
 * Translation helper

Full functional scripts
Scripts that are ready for achieving specific tasks

Scripting new Scribus' functions
Scripts which sketch new features which may be included in future releases of Scribus


 * Adjust the text frame size according to various factors


 * Project manager : create a book out of several parts documents, manage common format and styles, search across parts...

Extension scripts and PyQt

 * Extension script discussion
 * Experimental PyQt projects

Python issues

 * Known Scripter Issues

= Other =
 * Extension_script_repository
 * Web optimised PDF &mdash; learn how to minimize PDF size, make your life easier with the included Perl script (runs outside of Scribus)
 * Imagemagick Imposition – a bash script doing simple imposition of PNG files exported from Scribus
 * Printing_4-up_tickets_to_hard_copy_printer Shows a) automatic numbering in text boxes and b) hard-copy printing from script
 * Using createParagraphStyle
 * Text and Text Manipulation
 * Alessandro Rimoldi's blog series on scripter functions - a_l_e's blog
 * Windows Full Python Integration