from reportlab.pdfgen import canvas from reportlab.lib.units import inch font = "Helvetica" font_size = 26 text = "Hello, world" x = 5.0 * inch y = 8.0 * inch destination_file = "/tmp/first.pdf" my_canvas = canvas.Canvas(destination_file) my_canvas.setFont(font, font_size) my_canvas.drawRightString(x, y, text) my_canvas.save()