2.6.0
Features
- It is now possible to add custom function to the Spel context in a simpler way. Try using
OfficeStamperConfiguration.addCustomFunction
methods. - Added the
pro.verron.officestamper.utils
package to provide useful and common elements for core, preset, test and users. - Deprecated the Paragraph wrapper now can provide a bit more advanced capability on inner P, don’t recommend calling
getP()
anymore.
Dependencies
- Change java target from
17
to21
- Bump
org.springframework:spring-expression
from6.1.12
to6.1.14
- Bump
org.springframework:spring-context
from6.1.12
to6.1.14
Continuous Integration
- Removed dependabot analysis
- Bump
org.apache.maven.plugins:maven-gpg-plugin
from3.2.5
to3.2.7
- Bump
org.apache.maven.plugins:maven-javadoc-plugin
from3.10.0
to3.10.1
- Bump
org.apache.maven.plugins:maven-surefire-plugin
from3.5.0
to3.5.1
- Bump
org.apache.maven.reporting:maven-surefire-report-plugin
from3.5.0
to3.5.1
- Bump
org.apache.maven.plugins:maven-site-plugin
from3.20.0
to3.21.0
- Bump
org.apache.maven.plugins:maven-project-info-reports-plugin
from3.7.0
to3.8.0
- Bump
org.apache.maven.plugins:maven-javadoc-plugin
from3.10.0
to3.10.1
- Bump
org.apache.maven.reporting:maven-reporting-exec
from2.0.0-M14
to2.0.0
- Bump
org.pitest:pitest-maven
from1.16.3
to1.17.0
- Bump
org.asciidoctor:asciidoctor-maven-plugin
from3.0.0
to3.1.0
- Bump
org.junit.jupiter:junit-jupiter
from5.11.0
to5.11.3
Refactorings
- CommentProcessor to now be setup with a P, run and placeholder with a ProcessorContext instead.
- Cleanup of malformed comments has moved to a PreProcessor instead of done on the fly during processing.
- Do a step toward treating Comment in the same way as Placeholder.
- Deprecated CommentProcessor to now be setup with a Paragraph that wraps and provides features around the docx4j P.
- Deprecated The
Image
preset object now deprecategetMaxWidth
andgetImageBytes
. - BREAK Removed DocxDocument.commentsPart method.
- BREAK DocxPart.streamParagraphs method now returns the Paragraph wrapper, instead of docx4j P.
Tests
- Improved test names,
- Improved Word to string representation to better differentiate paragraph, run and cell styles.
- Remove exotic characters from string representation of Word documents.
- Section break and page break are more explicit in string representation of Word documents.
Full Changelog: v2.5.0...v2.6.0