[reportlab-users] Scaled Flowables consuming too much space in Platypus?
Dinu Gherman
reportlab-users@reportlab.com
Tue, 17 Sep 2002 10:43:21 +0200
Robin Becker:
> I guess we either need to redefine scale for Drawings or to define some
> new concept like resize that does the scale and the dimension change. I
> suspect that you need to do something like
>
> def resize(self,width,height):
> owidth, oheight = self.width, self.height
> self.width, self.height = width, height
> self.scale(owidth/float(width), oheight/float(height))
>
> or
> def rescale(self,xscale,yscale):
> self.scale(xscale,yscale)
> self.width *= abs(xscale)
> self.height *= abs(yscale)
I won't test these immediately, but maybe it's something to consider
for the FAQ?
Dinu
--
Dinu C. Gherman
......................................................................
"They made a desert and called it peace." (Tacitus)