13568 Commits

Author SHA1 Message Date
PJ Fanning
df2ebd6a88 license headers 2025-11-26 13:42:28 +01:00
Jacobo Aragunde Pérez
9ad8e753a6 Fix NPE in XWPFParagraph.getCTSpacing(). (#950)
We recently changed the getters so they don't create the PPr object if
it doesn't exist, but we missed adding one null check for the new
situation.

Add a test to exercise all the getters in a case where there isn't a PPr
object.
2025-11-24 20:44:49 +01:00
dependabot[bot]
456550b6c5 Bump commons-codec:commons-codec from 1.19.0 to 1.20.0 (#946)
Bumps [commons-codec:commons-codec](https://github.com/apache/commons-codec) from 1.19.0 to 1.20.0.
- [Changelog](https://github.com/apache/commons-codec/blob/master/RELEASE-NOTES.txt)
- [Commits](https://github.com/apache/commons-codec/compare/rel/commons-codec-1.19.0...rel/commons-codec-1.20.0)

---
updated-dependencies:
- dependency-name: commons-codec:commons-codec
  dependency-version: 1.20.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-11-20 15:29:03 +01:00
PJ Fanning
f9760568da reduce use of setCellType (#943) 2025-11-20 15:09:29 +01:00
PJ Fanning
11941cc4f7 prepare 5.5.1 2025-11-19 00:36:22 +01:00
dependabot[bot]
ea0f06ae21 Bump org.apache.pdfbox:pdfbox from 3.0.5 to 3.0.6 (#938)
Bumps org.apache.pdfbox:pdfbox from 3.0.5 to 3.0.6.

---
updated-dependencies:
- dependency-name: org.apache.pdfbox:pdfbox
  dependency-version: 3.0.6
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-11-18 23:13:31 +01:00
dependabot[bot]
faee1813fa Bump commons-io:commons-io from 2.20.0 to 2.21.0 (#937)
Bumps [commons-io:commons-io](https://github.com/apache/commons-io) from 2.20.0 to 2.21.0.
- [Changelog](https://github.com/apache/commons-io/blob/master/RELEASE-NOTES.txt)
- [Commits](https://github.com/apache/commons-io/compare/rel/commons-io-2.20.0...rel/commons-io-2.21.0)

---
updated-dependencies:
- dependency-name: commons-io:commons-io
  dependency-version: 2.21.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-11-18 23:13:31 +01:00
PJ Fanning
ec9b9d9c44 try to fix issue with missing module-info classes 2025-11-17 17:02:38 +01:00
PJ Fanning
d472b9c32b Revert "test with java 8 on 5.5.x branch"
This reverts commit 85cdbcbe131aedfdf3775454c1a73e38180b51ea.
2025-11-17 15:19:43 +01:00
PJ Fanning
85cdbcbe13 test with java 8 on 5.5.x branch 2025-11-17 15:05:33 +01:00
PJ Fanning
2b6589d4fb 5.5.1-SNAPSHOT 2025-11-17 15:01:42 +01:00
PJ Fanning
86e9f9a71c Update test-gradle.yml 2025-11-17 15:00:49 +01:00
PJ Fanning
95b46731b9
Remove comment about unknown built-in style
Removed comment about unknown built-in style from getTableStyle method.
REL_5_5_0
2025-11-03 07:41:22 +01:00
Dominik Stadler
b16a094bba Fix JavaDoc
Otherwise javadoc generation fails locally
2025-11-03 07:31:41 +01:00
Dominik Stadler
a371cba0be Apply IDE suggestions 2025-11-03 07:31:41 +01:00
Dominik Stadler
25a2dd9227 Adjust parsing XSSFBuiltinTableStyle
In case of invalid enum-value keep the fallback-handling
as before as otherwise some existing documents fail to parse
2025-11-03 07:26:03 +01:00
Dominik Stadler
207d67c12b Prevent a NullPointerException
The regression-corpus contains some documents which trigger this,
but succeed with the added null-check
2025-11-03 07:26:03 +01:00
PJ Fanning
e09a167bbb javadoc 2025-11-02 09:32:40 +01:00
PJ Fanning
f632c29683 javadoc issue 2025-10-31 00:18:10 +00:00
PJ Fanning
0dc32a8596
cache CellStyle Properties to improve performance (#926)
* cache CellStyle Properties to improve performance

* add tests
2025-10-29 19:47:21 +00:00
PJ Fanning
67c8284f35 prep 5.5.0 release 2025-10-27 17:31:34 +00:00
Dominik Stadler
1dcb799127 Source-rebuild testing: Fix building actual source-pacakge and improve output
Adjust for the actual build-directory where sources were extracted
Also print out how the necessary source-package can be created
2025-10-25 12:03:43 +02:00
PJ Fanning
1aa1fd6273 short versioning page 2025-10-24 21:07:03 +01:00
PJ Fanning
70f8b15333 Update changes.xml 2025-10-22 22:35:39 +01:00
PJ Fanning
782d187b10
Update targetCompatibility to use JavaVersion.VERSION_23 2025-10-22 22:18:45 +01:00
AdRiley
63c0bf9368
New api for reading xlsb (#920)
* Add new API

* Add testBasicXSSFBSheetContentsHandler

* Add testCommentsXSSFBSheetContentsHandler

* Add testDateXSSFBSheetContentsHandler

* Fix comment

* Code Review feedback

* Code review feedback

* Fix backwards compatibility

* rename helper method

* Organise imports

* Add @since POI 5.5.0
2025-10-21 14:19:16 +01:00
Dominik Stadler
ea74954fcf Trigger reading metadata-text as part of integration testing
One test-case fails differently now
2025-10-06 07:40:53 +02:00
Dominik Stadler
b5221fac25 Add changelog 2025-10-06 07:40:53 +02:00
Dominik Stadler
42193c57e4 Try to verify handling of deeply nested xlsx 2025-10-06 07:40:53 +02:00
Dominik Stadler
7003357b79 TestAllFiles: Add output if a file cannot be matched to a handler 2025-10-06 07:40:53 +02:00
Dominik Stadler
dc2cfe0bfc Apply IDE suggestions 2025-10-06 07:40:53 +02:00
Dominik Stadler
f10f164c61 Add a microBenchmark for replacing strings
It shows that Java 11 improves a lot and no custom string-replace
is necessary any more when using this version
2025-10-06 07:40:53 +02:00
Jacobo Aragunde Pérez
79d1630374
Prevent NullPointerException in XWPFTable.getWidthType(). (#912)
According to the spec in section "17.4.63 tblW (Preferred Table Width)",
the element tblW is not compulsory and "If this element is omitted, then
the cell width shall be of type auto."

We modify the getter to follow this behavior, preventing a NPE.

It implies a change of behavior in the situation when there is no tblPr,
in that case it used to return NIL, but notice that this behavior was
introduced in commit d4fc5cd6c08338a4132a6348ee1b1b077f9527b8 and has
never been part of a release.
2025-10-01 14:17:00 +01:00
PJ Fanning
05f37a5204 refactor SheetUtil code 2025-09-30 10:03:39 +01:00
Jaroslav Tulach
0a17fa9e22
Delay initialization of fontRenderContext field & co. by moving it into own inner class (#909)
* git-svn-id: https://svn.apache.org/repos/asf/poi/tags/REL_5_2_3@1904113 13f79535-47bb-0310-9956-ffa450edef68

* Delay loading AWT classes by moving the methods into own class

* Set default value of ignoreMissingFontSystem to true when java.desktop module isn't available

---------

Co-authored-by: PJ Fanning <fanningpj@apache.org>
Co-authored-by: Jaroslav Tulach <jaroslav.tulach@apidesign.org>
2025-09-30 09:44:47 +01:00
PJ Fanning
444a8a7214
Upgrade graphics2d dependency to 3.0.5 2025-09-29 19:47:44 +01:00
dependabot[bot]
22b78e1887
Bump de.rototor.pdfbox:graphics2d from 3.0.3 to 3.0.5 (#914)
Bumps [de.rototor.pdfbox:graphics2d](https://github.com/rototor/pdfbox-graphics2d) from 3.0.3 to 3.0.5.
- [Commits](https://github.com/rototor/pdfbox-graphics2d/compare/pdfboxgraphics2d-parent-3.0.3...pdfboxgraphics2d-parent-3.0.5)

---
updated-dependencies:
- dependency-name: de.rototor.pdfbox:graphics2d
  dependency-version: 3.0.5
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-09-29 19:46:17 +01:00
PJ Fanning
03fc1ddea1 [github-911] close DataSource before deleting temp file 2025-09-26 19:22:32 +01:00
Jacobo Aragunde Pérez
7a124135de
Make getters public for XML beans in XWPFDefault*Style. (#910)
The classes XWPFDefaultRunStyle and XWPFDefaultParagraphStyle only
expose a subset of their possibles attributes. To let users access all
the underlying data, we change the visibility of the XML bean getters
to public.
2025-09-26 09:13:14 +01:00
dependabot[bot]
b50946307e
Bump org.cyclonedx.bom from 2.3.1 to 2.4.1 (#908)
Bumps org.cyclonedx.bom from 2.3.1 to 2.4.1.

---
updated-dependencies:
- dependency-name: org.cyclonedx.bom
  dependency-version: 2.4.1
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-09-23 19:40:29 +01:00
dependabot[bot]
f26ea2b777
Bump com.google.guava:guava from 33.4.8-jre to 33.5.0-jre (#907)
Bumps [com.google.guava:guava](https://github.com/google/guava) from 33.4.8-jre to 33.5.0-jre.
- [Release notes](https://github.com/google/guava/releases)
- [Commits](https://github.com/google/guava/commits)

---
updated-dependencies:
- dependency-name: com.google.guava:guava
  dependency-version: 33.5.0-jre
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-09-22 17:21:13 +01:00
PJ Fanning
14cd9a35c6
Upgrade bouncycastle dependency to version 1.82 2025-09-22 10:33:01 +01:00
dependabot[bot]
c048ba53fe
Bump bouncyCastleVersion from 1.81 to 1.82 (#903)
Bumps `bouncyCastleVersion` from 1.81 to 1.82.

Updates `org.bouncycastle:bcpkix-jdk18on` from 1.81 to 1.82
- [Changelog](https://github.com/bcgit/bc-java/blob/main/docs/releasenotes.html)
- [Commits](https://github.com/bcgit/bc-java/commits)

Updates `org.bouncycastle:bcutil-jdk18on` from 1.81 to 1.82
- [Changelog](https://github.com/bcgit/bc-java/blob/main/docs/releasenotes.html)
- [Commits](https://github.com/bcgit/bc-java/commits)

---
updated-dependencies:
- dependency-name: org.bouncycastle:bcpkix-jdk18on
  dependency-version: '1.82'
  dependency-type: direct:production
  update-type: version-update:semver-minor
- dependency-name: org.bouncycastle:bcutil-jdk18on
  dependency-version: '1.82'
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-09-20 09:12:58 +01:00
PJ Fanning
2e375a76ea Update support-asf.png 2025-09-18 10:34:24 +01:00
dependabot[bot]
f2267c0668
Bump net.sf.saxon:Saxon-HE from 12.8 to 12.9 (#902)
Bumps net.sf.saxon:Saxon-HE from 12.8 to 12.9.

---
updated-dependencies:
- dependency-name: net.sf.saxon:Saxon-HE
  dependency-version: '12.9'
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-09-16 17:35:51 +01:00
dependabot[bot]
e4a2cd1233
Bump org.xmlunit:xmlunit-core from 2.10.3 to 2.10.4 (#901)
Bumps [org.xmlunit:xmlunit-core](https://github.com/xmlunit/xmlunit) from 2.10.3 to 2.10.4.
- [Release notes](https://github.com/xmlunit/xmlunit/releases)
- [Changelog](https://github.com/xmlunit/xmlunit/blob/main/RELEASE_NOTES.md)
- [Commits](https://github.com/xmlunit/xmlunit/compare/v2.10.3...v2.10.4)

---
updated-dependencies:
- dependency-name: org.xmlunit:xmlunit-core
  dependency-version: 2.10.4
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-09-15 18:34:09 +01:00
PJ Fanning
ca7e3330ed Update favicon.ico 2025-09-11 23:47:18 +01:00
PJ Fanning
6bbd6fc177 new support logo 2025-09-11 23:23:30 +01:00
PJ Fanning
18e0a37df3 new asf logo 2025-09-11 22:51:30 +01:00
PJ Fanning
49fd564023
log4j bom (#897) 2025-09-11 10:52:01 +01:00