title: Reportlab, move image to center
body: <p>I have such code that add svg-image to pdf</p>
  <pre><code>def pdf_generator(response:
      buff = io.BytesIO()
      doc = SimpleDocTemplate(buff, pagesize=letter,
                              rightMargin=72, leftMargin=72,
                              topMargin=52, bottomMargin=18)
      Story = []
      styles = getSampleStyleSheet()
      styles.add(ParagraphStyle(name='Justify', alignment=TA_CENTER))
      current_dir = os.path.dirname(__file__)
      filename = os.path.join(current_dir, 'logo.svg')
      drawing = svg2rlg(filename)
      Story.append(drawing)
      Story.append(Spacer(1, 12))
  </code></pre>
  <p>The problem is that image is on left of the page. Is it possible to center it?</p>