[scribus] Trying to justify a text block using a python script

Andy Pastuszak apastuszak at gmail.com
Mon Jul 2 13:34:36 UTC 2012


Hello all,

New member of the list.

I've been spending the last 3 days scripting Scribus to get it to
automatically create a stamp album page off of data in a CSV file and
things have been going well.

The only problem I am facing, is trying to take a block of text and justify it.

I am using the following code:

setTextAlignment(ALIGN_BLOCK, B)

That line sets the text to Force Justified

I tried using ALIGN_FORCED and that also does a force justified text block.

I need the text to be justified, so the last line isn't force
justified, leaving a big gap between all the words in the last line.



More information about the scribus mailing list