Skip to content

Releases: pharmaverse/rtflite

rtflite 2.5.2

02 Jan 08:05
286d979

Choose a tag to compare

Documentation

  • Migrated documentation site to use Zensical (#184, #185).

rtflite 2.5.1

28 Dec 00:09
144f9e2

Choose a tag to compare

Testing

  • Migrated the RTF snapshot tests implementation to a proper solution pytest-r-snapshot to reduce boilerplate code and improve maintainability. The legacy fixture generation workflow is removed and the snapshots are stored under the standard location tests/__r_snapshots__/ (#181).

rtflite 2.5.0

26 Dec 23:18
9a022cb

Choose a tag to compare

New features

  • Added RTFDocument.write_html and RTFDocument.write_pdf for exporting RTF documents to HTML and PDF via LibreOffice, matching the write_docx conversion workflow (#176).

Testing

  • Added parameterized tests covering DOCX, HTML, and PDF exports, with a new pdf extra (pypdf) for PDF text extraction. Improved LibreOffice availability checks to skip integration tests when conversion is not working (#176).

rtflite 2.4.0

26 Dec 01:55
098a880

Choose a tag to compare

Breaking changes

  • Removed the executable_path argument from RTFDocument.write_docx; pass converter=LibreOfficeConverter(executable_path=...) instead (#172).

Improvements

  • RTFDocument.write_docx now accepts a converter= instance to configure LibreOffice invocation (including custom executable paths) and to enable reusing a converter across multiple conversions (#172).

Converters

  • LibreOfficeConverter(executable_path=...) now accepts Path objects and resolves executable names via PATH when given (for example, "soffice") (#172).

rtflite 2.3.1

23 Dec 23:11
b56b4ab

Choose a tag to compare

Improvements

  • Added executable_path parameter to the write_docx() method.
  • Added /tmp/soffice and /tmp/libreoffice paths for Linux.

rtflite 2.3.0

05 Dec 05:07
73b7d85

Choose a tag to compare

New features

  • Added concatenate_docx function to merge DOCX outputs without manual field refreshes, preserving per-section orientation (#160).

Testing

  • Added DOCX concatenation coverage and centralized optional dependency skip markers for python-docx and LibreOffice to keep tests gated appropriately (#160).

Documentation

  • Updated the assembly article to use concatenate_docx in code examples and added a reference page for assemble function to the mkdocs site (#160).

rtflite 2.2.0

05 Dec 02:22
7924390

Choose a tag to compare

New features

  • Added RTFDocument.write_docx to export tables as DOCX via LibreOffice, with str/Path input support and automatic parent directory creation (#156).
  • Improved write_rtf to accept Path inputs and create missing output directories (#156).

Documentation

  • Expanded DOCX assembly guidance with toggle field caveats and python-docx concatenation examples (#157).
  • Documented installing the docx extra in the README and assemble article, including uv sync --extra docx for developers (#155).

rtflite 2.1.1

04 Dec 21:09
0f31fd4

Choose a tag to compare

Bug fixes

  • Reduce packaging files size by excluding unnecessary files and directories (#152).
  • Fixed an issue when paginating tables with page_by and subline_by (#152).

rtflite 2.1.0

02 Dec 04:26
db8c3b4

Choose a tag to compare

New features

  • Added assemble_rtf and assemble_docx functions for RTF and DOCX assembly (#142).

Bug fixes

  • Fixed an issue where RTFPage orientation was not correctly respected during assembly in certain edge cases (#141).

rtflite 2.0.0

01 Dec 01:31
8c15460

Choose a tag to compare

Breaking changes

  • Removed legacy pagination/encoding APIs, including ContentDistributor, PageDict/AdvancedPaginationService, and the SinglePageStrategy/PaginatedStrategy classes; dropped backwards-compatibility helpers such as text_convert and get_color_index (#138).

Refactors

  • Introduced a unified rendering pipeline (UnifiedRTFEncoder) with a strategy registry, page feature processor, and renderer that handle pagination, borders, and page headers consistently, including combined page_by and subline_by grouping (#138).
  • Simplified public exports by re-exporting RTFEncodingEngine, TableAttributes, RTFSubline, and get_string_width from the top-level package while reorganizing core config/constants imports (#138).

Testing and documentation

  • Added regression tests for combined grouping and page_by column alignment, and removed obsolete advanced pagination tests; cleaned up RTF doc fixtures and trimmed pagination reference docs to match the new architecture (#138).