title: Get dimensions - or proportions - of an SVG file with CairoSVG
body: <p>I'm using CairoSVG successfully in my Python project - <a href="https://github.com/MartinPacker/md2pptx" rel="nofollow noreferrer">md2pptx</a>.</p>
  <p>It converts SVG to PNG and that is then scaled to fit a space on the relevant PowerPoint slide.</p>
  <p>It would be better to scale the SVG file <strong>on conversion</strong> rather than subsequently. But I don't kno3w the proportions (or dimensions) of the SVG file.</p>
  <p>Yes, I could parse the XML in my own code - but it's better not to.</p>
  <p>CairoSVG appears to have an <strong>internal</strong> method for getting this information - but not an externalised one.</p>
  <p>How can I use CairoSVG in Python 3 to get the proportions or dimensions?</p>