title: Reportlab mix static text and paragraphs
body: <p>I am trying to get started in reportlab. I know how to add strings, lines etc. Now I want to be able to combine static text with paragraphs and the static text needs to be in specific position. Sorry for the indentation errors. </p>
  
  <pre><code>from reportlab.pdfgen import canvas
  from reportlab.lib.pagesizes import letter
  from reportlab.platypus import Image, SimpleDocTemplate, Paragraph, Spacer,    
  from reportlab.rl_config import defaultPageSize
  from reportlab.lib.styles import getSampleStyleSheet, ParagraphStyle
  from reportlab.lib.enums import TA_JUSTIFY
  
  
  PAGE_HEIGHT=defaultPageSize[1]; PAGE_WIDTH=defaultPageSize[0]
  
  Story = []
  
  p = "This is a paragraph"
  
  
  
  last_name = "John"
  first_name = "Doe"
  dosuren = "02-03-2016"
  
  
  
  def generate_report(last_name, first_name, dosuren):
      pdf_file_name = last_name + first_name + "_" + dosuren + ".pdf"
  
      c= canvas.Canvas(pdf_file_name, pagesize=letter)
  
      c.setFont('Times-Bold', 12,leading=None )
      c.drawCentredString(PAGE_WIDTH/2.0, PAGE_HEIGHT-108,  "REPORT")
  
  ##### Static Text ############
  
  
  c.setFont('Times-Bold', 12, leading=None)
  c.drawString(30, 320, "Subject INfo:")
  
  c.setFont('Times-Roman', 12, leading=None)
  c.drawString(30, 380, "Subject info2:")
  
  ##Paragraph###
  styles = getSampleStyleSheet()
  styles.add(ParagraphStyle(name='Justify', alignment=TA_JUSTIFY))
  Story.append(Paragraph(p, styles["Justify"]))
  
  
  c.showPage()
  c.save()
  </code></pre>