Hi,

you probably want something like:

import math
from pyx import *

def poster(c, paperformat):
    bbox = c.bbox()
    paperwidth_pt = unit.topt(paperformat.width)
    paperheight_pt = unit.topt(paperformat.height)
    d = document.document()
    for ix in range(int(math.ceil(bbox.width_pt()/paperwidth_pt))):
        for iy in range(int(math.ceil(bbox.height_pt()/ 
paperheight_pt))):
            c2 = canvas.canvas()
            c2.insert(c, [trafo.translate_pt(-bbox.llx_pt- 
ix*paperwidth_pt, -bbox.lly_pt-iy*paperheight_pt)])
            p = document.page(c2, paperformat=paperformat, centered=0)
            d.append(p)
    d.writePDFfile()

c = canvas.canvas()
c.text(0, 0, "Poster", [trafo.scale(200)])
poster(c, document.paperformat.A4)


Best,


André

-- 
by  _ _      _    Dr. André Wobst, Amselweg 22, 85716 Unterschleißheim
    / \ \    / )   [EMAIL PROTECTED], http://www.wobsta.de/
   / _ \ \/\/ /    PyX - High quality PostScript and PDF figures
  (_/ \_)_/\_/     with Python & TeX: visit http://pyx.sourceforge.net/


-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
PyX-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pyx-user

Reply via email to