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

Germán M. Bravo german.mb at gmail.com
Thu Sep 2 14:37:20 EDT 2010


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.

Both rects in the example should overlap exactly, but the one with
rounded corners is all messed up for some reason. I could not track
the source of the problem since it seems to be inside the rml2pdf.pyc
file itself.

--------- RML FILE BEGINS, CUT HERE --------
<!DOCTYPE document SYSTEM "rml.dtd">
<document filename="example.pdf">
<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>
</template>
<stylesheet>
</stylesheet>
<story>
<para></para>
</story>
</document>
-------- RML ENDS, CUT HERE --------


More information about the reportlab-users mailing list