Merge existing pdf template with one manually created in reportlab

Viewed 10

How can I load a pdf template from url (data storage) and merge it with another document manually created with reportlab?

This is the document manually created:

  pdf_template = SimpleDocTemplate(pdf_filename, pagesize=A4,topMargin=0, bottomMargin=0, leftMargin=10, rightMargin=10)
  story1 = []
  img1 = Image(img_url, width=150, height=200, hAlign="LEFT")
  
  story1.append(img1)
  story1.append(Spacer(1, 12))
  story1.append(Paragraph(dog_desc.replace("\n", "<br />"), getSampleStyleSheet()['Normal']))
  pdf_template.build(story1)

and I want to merge it with this template:

https://ik.imagekit.io/aml28/resumee_dog_NidI0qW8l.pdf?ik-sdk-version=javascript-1.4.3&updatedAt=1663316755469
0 Answers
Related