3.3
Version 3.3.0 of Office-stamper is now available! The headline feature is the long-awaited support for Scalable Vector Graphics (SVG), allowing you to insert crisp, resolution-independent diagrams and logos into your DOCX documents.
🖼️ SVG Support (Major Change)
The Image class and engine now automatically detect SVG content. This allows for high-fidelity vector image stamping, moving beyond traditional raster formats like BMP, PNG, and JPG. This resolves a long-standing request for better support of diagrams generated by tools like PlantUML, gnuplot, or Mermaid.
Important
🧪 Invitation to Test: SVG support in OpenXML is a powerful addition, but it can behave differently across various DOCX editors. We invite all users to test this new feature with their complex diagrams. If you encounter any rendering issues—whether in Microsoft Word, LibreOffice, or other viewers—please open an issue so we can refine the implementation!
🛠️ New Features
- Smart Tag Attribute Validation: Introduced
WmlUtils.hasTagAttributeto check for the existence and value of attributes within DOCX smart tags, enabling more robust template logic.
🧹 Refactorings & Cleanup
- Internal API Streamlining: Removed legacy
ByteUtilsandDocxRendererfrom theutilsmodule as part of an ongoing effort to simplify the codebase. These have been replaced by the modern internalDocx-to-Asciidoctoolchain.
📦 Dependencies
- Spring: Updated Spring Expression and Context to 7.0.6.
- Jackson: Updated Jackson monorepo to 2.21.2.
- Quality: Updated PIT mutation testing to 1.23.0 and Mockito JUnit Jupiter to 5.23.0.
- JavaFX: Updated to version 27-ea+10 for CLI and testing.
🏗️ Quality & Tooling
- Build System: Added
maven-jxr-pluginfor generating cross-reference source documentation.
Full Changelog: v3.2.0...v3.3.0
Read the blog post: Office-stamper v3.3 — Vector Graphics and SVG Stamping