Releases: pharmaverse/rtflite
Releases · pharmaverse/rtflite
rtflite 2.5.2
rtflite 2.5.1
Testing
- Migrated the RTF snapshot tests implementation to a proper solution
pytest-r-snapshotto reduce boilerplate code and improve maintainability. The legacy fixture generation workflow is removed and the snapshots are stored under the standard locationtests/__r_snapshots__/(#181).
rtflite 2.5.0
New features
- Added
RTFDocument.write_htmlandRTFDocument.write_pdffor exporting RTF documents to HTML and PDF via LibreOffice, matching thewrite_docxconversion workflow (#176).
Testing
- Added parameterized tests covering DOCX, HTML, and PDF exports, with a new
pdfextra (pypdf) for PDF text extraction. Improved LibreOffice availability checks to skip integration tests when conversion is not working (#176).
rtflite 2.4.0
Breaking changes
- Removed the
executable_pathargument fromRTFDocument.write_docx; passconverter=LibreOfficeConverter(executable_path=...)instead (#172).
Improvements
RTFDocument.write_docxnow accepts aconverter=instance to configure LibreOffice invocation (including custom executable paths) and to enable reusing a converter across multiple conversions (#172).
Converters
LibreOfficeConverter(executable_path=...)now acceptsPathobjects and resolves executable names viaPATHwhen given (for example,"soffice") (#172).
rtflite 2.3.1
Improvements
- Added
executable_pathparameter to thewrite_docx()method. - Added
/tmp/sofficeand/tmp/libreofficepaths for Linux.
rtflite 2.3.0
New features
- Added
concatenate_docxfunction 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-docxand LibreOffice to keep tests gated appropriately (#160).
Documentation
- Updated the assembly article to use
concatenate_docxin code examples and added a reference page for assemble function to the mkdocs site (#160).
rtflite 2.2.0
rtflite 2.1.1
rtflite 2.1.0
rtflite 2.0.0
Breaking changes
- Removed legacy pagination/encoding APIs, including
ContentDistributor,PageDict/AdvancedPaginationService, and theSinglePageStrategy/PaginatedStrategyclasses; dropped backwards-compatibility helpers such astext_convertandget_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 combinedpage_byandsubline_bygrouping (#138). - Simplified public exports by re-exporting
RTFEncodingEngine,TableAttributes,RTFSubline, andget_string_widthfrom the top-level package while reorganizing core config/constants imports (#138).
Testing and documentation
- Added regression tests for combined grouping and
page_bycolumn alignment, and removed obsolete advanced pagination tests; cleaned up RTF doc fixtures and trimmed pagination reference docs to match the new architecture (#138).