jorisschellekens / borb

borb is a library for reading, creating and manipulating PDF files in python.
https://borbpdf.com/
Other
3.37k stars 148 forks source link

Multiple Column Layout #175

Closed aleksandar-devedzic closed 1 year ago

aleksandar-devedzic commented 1 year ago

Is there a function to create multiple column layout?

Image if I want to create newspapper page. I would like to add text (headline, lead, body) + image.

Is there a way to add text that will be represented in multiple columns, and then add an image?

jorisschellekens commented 1 year ago

Hi @aleksandar-devedzic,

There are a couple of things you could try:

  1. Write your own implementation of PageLayout
  2. Use a Table (setting col_span where needed)
  3. Use absolute positioning for everything

Kind regards, Joris Schellekens