Skip to content

Releases: ariebovenberg/pdfje

0.6.1

13 Nov 18:35
Compare
Choose a tag to compare

🐍 Official Python 3.12 compatibility

0.6.0

15 Aug 06:38
Compare
Choose a tag to compare

Added

  • 🧮 Paragraphs can be optimally typeset using the Knuth-Plass line
    breaking algorithm. Use the optimal argument for this.
  • 🛟 Paragraphs support automatically avoiding orphaned lines with
    avoid_orphans argument.

Breaking

  • 📊 In the rare case that a paragraphs contains different text sizes,
    all lines now rendered with the same leading.
    This is more consistent and allows for faster layouting.

Fixed

  • 🐍 Fix compatibility with Python 3.8 and 3.9

0.5.0

07 May 11:23
Compare
Choose a tag to compare

Added

  • 📰 Support for horizontal alignment and justification of text.
  • 🫸 Support for indenting the first line of a paragraph.
  • ✂️ Automatic hyphenation of text.

Breaking

  • 🪆 Expose most classes from submodules instead of root (e.g. pdfje.Rect becomes pdfje.draw.Rect). The new locations can be found in the API documentation.
  • Rule padding attribute renamed to margin.

0.4.0

10 Apr 14:30
Compare
Choose a tag to compare

A big release with lots of new features and improvements.
Most importantly, the page layout engine is now complete and
can be used to create multi-page/column documents.

Added

  • 📖 Automatic layout of multi-style text into lines, columns, and pages
  • 🔬 Automatic kerning for supported fonts
  • 🖌️ Support for drawing basic shapes
  • 🎨 Additional text styling options
  • 📦 Make FontTools dependency optional
  • 📏 Horizontal rule element

Documentation

  • 🧑‍🏫 Add a tutorial and examples
  • 📋 Polished docstrings in public API

Performance

  • ⛳️ Document pages and fonts are now written in one efficient pass

Breaking

  • 🌅 Drop Python 3.7 support

0.3.0

02 Dec 11:09
Compare
Choose a tag to compare

Added

  • 🍰 Documents can be created directly from string input
  • 🪜 Support for explicit newlines in text
  • 📢 Document.write() supports paths, file-like objects and iterator output
  • ✅ Improved PDF spec compliance

Changed

  • 📚 Text is now positioned automatically within a page

0.2.0

01 Dec 22:07
Compare
Choose a tag to compare

Added

  • 🖌️ Different builtin fonts can be selected
  • 📥 Truetype fonts can be embedded
  • 🌏 Support for non-ASCII text
  • 📐 Pages can be rotated
  • 🤏 Compression is applied to keep filesize small

0.1.0

01 Dec 22:09
Compare
Choose a tag to compare

Added

  • 💬 Support for basic ASCII text on different pages

0.0.1

02 Dec 11:05
Compare
Choose a tag to compare

Added

  • 🌱 Write a valid, minimal, empty PDF file