[Scribus] Bug? or me

Owen rcook
Tue Apr 22 13:22:25 CEST 2008


On Tue, 22 Apr 2008 21:05:45 +1000
Owen <rcook at pcug.org.au> wrote:

> #!/usr/bin/python
> 
> from scribus import *
> if newDocument(PAPER_A4, (10, 10, 10, 10), PORTRAIT, 1, UNIT_MILLIMETERS, NOFACINGPAGES, FIRSTPAGERIGHT,1):
> 
>     saveDocAs("test.sla")
> 
> 
> 
> produces a document 595.28mm by 841.89mm in both the latest svn versions of 1.3.3.12 and 1.3.5
> 
> UNITS_POINTS produce the same dimensions, but in points, ie, correct


Well I just found the correct specification for newDocument (I think) but it also generates the incorrect size.

#!/usr/bin/python

from scribus import *
#if newDocument(PAPER_A4, (10, 10, 10, 10), PORTRAIT, 1, UNIT_MILLIMETERS, NOFACINGPAGES, FIRSTPAGERIGHT,1):

test = newDocument(PAPER_A4, (10, 10, 20, 20), PORTRAIT, 1, UNIT_MILLIMETERS, PAGE_1, 0, 1)

saveDocAs("test.sla")


Owen



More information about the scribus mailing list