borb is a comprehensive Python library designed for reading, creating, and manipulating PDF files. It offers a wide range of functionalities from simple text and image handling to advanced layout management. The library is actively maintained with frequent patch releases, typically on a monthly or bi-monthly cadence, adding new features and improving robustness.
pip install borbVerified import paths — ran on the pinned version, not inferred.
This quickstart demonstrates how to create a simple PDF document containing 'Hello World!' text using borb. It initializes a Document, adds a Page, places a Paragraph using a bounding box, and saves the document to a file.
Review the borb v3.x documentation and examples, particularly regarding numeric handling and the new `LayoutElement` paradigm for annotations and other page content.
Install borb with the `[full]` extra (`pip install borb[full]`) or specify the required feature groups (e.g., `pip install borb[image,text]`) to ensure all necessary dependencies are met for your use case.
Upgrade to borb v3.0.1 or newer. If forced to use an older version, consult borb's GitHub issues for potential workarounds for packaging non-Python assets.