The Real Python Podcast

Creating and Manipulating PDFs in Python With borb

Oct 29, 2021
Ask episode
AI Snips
Chapters
Transcript
Episode notes
ANECDOTE

Why borb Started

  • Joris built borb because existing Python PDF tools forced pixel-level layout and didn't fit his needs.
  • He used his prior experience at iText to start fresh and implement higher-level layout features.
INSIGHT

Layout Engine Over Pixel Math

  • borb offers both pixel-precise placement and a layout engine that handles flow, columns, margins and hyphenation.
  • That lets developers treat PDF generation more like Word-style document layout than manual positioning.
ADVICE

Prefer Existing Algorithms

  • Reuse proven algorithms rather than reinventing complex behavior like hyphenation.
  • Check licenses for compatibility before integrating third-party code.
Get the Snipd Podcast app to discover more snips from this episode
Get the app