On Tue, 10 Jun 2008 08:35:20 +0200
André Wobst <[EMAIL PROTECTED]> wrote:

> 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/
> 
> 

Yes, it's grosso modo the same than my script; one must add 'rotated=1':
to obtain the »querformat« (== 'à l'italienne'). The result is perfect
on a display, but when printing it, I get losses (?) [Verluste, pertes] due
to the printer (0.5 cm on the margins).

I tried to change the margins (== reduce the 'Satzspiegel') but it did not work.
I will try to reduce the content and adapt it to the printable area, if there is
no other way.

Thanks for your infos, also Axel and Michael
 
-- 
R. Bastian 
www.musiques-rb.org



-------------------------------------------------------------------------
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