[reportlab-users] About a bug with rects using round corners in RML

Tim Roberts timr at probo.com
Thu Sep 2 15:44:08 EDT 2010


Germán M. Bravo wrote:

> I'm adding bellow a .rml file that doesn't work with rounded corners.

> In my testings, the rect with rounded corners doesn't get the proper

> dimensions.

> ...

> <template showBoundary="0" pageSize="letter">

> <pageTemplate id="main">

> <pageGraphics>

> <rect x="20mm" y="158mm" width="170mm" height="100mm" />

> <rect x="20mm" y="158mm" width="170mm" height="100mm"

> round="5" />

> </pageGraphics>

> <frame id="code" x1="22mm" y1="245mm" width="166mm" height="11mm"/>

> </pageTemplate>


That's interesting. If I do a standalone script with canvas.rect and
canvas.roundRect, they do overlap exactly, so this is something specific
to RML.

--
Tim Roberts, timr at probo.com
Providenza & Boekelheide, Inc.



More information about the reportlab-users mailing list