diff --git a/src/reportlab/graphics/renderPM.py b/src/reportlab/graphics/renderPM.py index 9ecafe2f..e394569f 100644 --- a/src/reportlab/graphics/renderPM.py +++ b/src/reportlab/graphics/renderPM.py @@ -638,6 +638,8 @@ def setLineWidth(self,width): def drawToPMCanvas(d, dpi=72, bg=0xffffff, configPIL=None, showBoundary=rl_config._unset_): d = renderScaledDrawing(d) + scale = dpi/72.0 + d.scale(scale,scale) c = PMCanvas(d.width, d.height, dpi=dpi, bg=bg, configPIL=configPIL) draw(d, c, 0, 0, showBoundary=showBoundary) return c