Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

generate 3 pages pdf reportlab

from reportlab.pdfgen import canvas
 
 
def create_pdf():
    pdf_file = 'multipage.pdf'
 
    can = canvas.Canvas(pdf_file)
 
    can.drawString(20, 800, "First Page")
    can.showPage()
 
    can.drawString(20, 800, "Second Page")
    can.showPage()
 
    can.save()
Source by code-maven.com #
 
PREVIOUS NEXT
Tagged: #generate #pages #pdf #reportlab
ADD COMMENT
Topic
Name
8+1 =