Skip to content

Commit 9b0d46a

Browse files
committed
chore: fj-doc-mod-openpdf-ext, stronger library version retrieve
1 parent 2c10674 commit 9b0d46a

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1010
### Fixed
1111

1212
- fj-doc-mod-fop, recover Apache FOP version <https://github.com/fugerit-org/fj-doc/issues/571>
13+
- fj-doc-mod-openpdf-ext, stronger library version retrieve
1314

1415
## [8.17.4] - 2025-11-04
1516

fj-doc-mod-openpdf-ext/src/main/java/org/fugerit/java/doc/mod/openpdf/ext/helpers/DocumentMetaHelper.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
import com.lowagie.text.Document;
44
import org.fugerit.java.core.function.SafeFunction;
55
import org.fugerit.java.core.function.UnsafeConsumer;
6+
import org.fugerit.java.core.lang.helpers.StringUtils;
67
import org.fugerit.java.core.util.mvn.MavenProps;
78
import org.fugerit.java.doc.base.config.DocConfig;
89
import org.fugerit.java.doc.base.config.VenusVersion;
@@ -20,7 +21,8 @@ private static String getModuleVersion() {
2021
}
2122

2223
private static String getOpenPDFVersion() {
23-
return MavenProps.getProperty( "com.github.librepdf", "openpdf", MavenProps.VERSION );
24+
return StringUtils.valueWithDefault( Document.getVersion(),
25+
StringUtils.valueWithDefault( MavenProps.getProperty( "com.github.librepdf", "openpdf", MavenProps.VERSION ), "" ) );
2426
}
2527

2628
private static final String PRODUCER_OVER = "OpenPDF";

0 commit comments

Comments
 (0)