How i can set the margin-left of the page to don't let the data spread along the width of the paper

Am newbie and am trying to use the library "reportlab" to generate the PDF, I want to fix the margin-left of the page but i did'nt know how i can do that :

this is my code:

c = canvas.Canvas(buf, bottomup=0)
c.translate(inch,inch)
textob = c.beginText()
textob.setTextOrigin(inch, inch)
textob.setFont("Helvetica", 6)
posts = Post.objects.all()
lines = []
for post in posts:
    lines.append(post.title)
    lines.append(post.content)

This is how it looks like :

enter image description here

But what i want is to fix the margin left

Back to Top