Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BRMO-386] Upgrade itextpdf.version van 8.0.5 naar 9.0.0 #2311

Merged
merged 2 commits into from
Nov 19, 2024

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Nov 19, 2024

Bumps itextpdf.version from 8.0.5 to 9.0.0.
Updates com.itextpdf:kernel from 8.0.5 to 9.0.0

Updates com.itextpdf:itext-core from 8.0.5 to 9.0.0

Release notes

Sourced from com.itextpdf:itext-core's releases.

iText Core/Community 9.0.0

For this Q4 release, we’re pleased to announce a new major version of iText. iText Core version 9.0 introduces significant new features, support for new specifications, and revised APIs to delight developers.

We’ve added support for the ISO/TS 320003 and 320004 standards, enabling even more secure PDF documents. Also on the list is the finalized digital signature validation module, along with a new API to easily get layers used in a page, and improved PDF/UA signing.

NOTE: Since iText 9.0 is a major release version, it naturally means a break in compatibility with iText 8. As the developers among you will appreciate, this is necessary to make quality-of-life improvements and reduce our technical debt.

However, thanks to the solid foundations laid with iText 7 and 8 there are few major API differences in iText 9. The iText Knowledge Base has extensive documentation on the breaking changes to ease the migration of existing projects from earlier versions.

New ISO Standards Support

First and foremost, iText Core version 9.0 incorporates support for the very latest ISO PDF document security standards. ISO/TS 32003 adds AES-GCM encryption to the PDF 2.0 specification, allowing documents to be protected with high-performance, yet extremely secure encryption.

ISO/TS 32004 introduces an integrity protection mechanism for encrypted PDFs, using a Message Authentication Code (MAC) to ensure authenticity. To fully understand what this means for securing PDF documents, we highly recommend reading two great articles on the PDF Association site: ISO 32004: an overview and the follow-up MACs vs. signatures in PDF which go into detail on this subject.

Digital Signature Validation Module

On the subject of PDF digital signatures, we’re also proud to present the finalized version of our dedicated validation module. This forms an integral piece of iText’s enhanced digital signing capabilities introduced with iText 8.

The aim is to provide simpler, more extensive API methods to not just sign PDF documents, but also validate the digital signatures within them – whether iText created them or not. Since you can validate multiple document revisions as well as certificate chains, iText can now be your Swiss Army knife for digital signatures, as well as PDF creation and manipulation.

This release enables you to only validate a single signature in a document, as opposed to all signatures. In addition, the signature validator will now work for encrypted documents.

API Improvements

There are also major refinements to iText’s API. These include streamlining PDF/A and PDF/UA creation and conformance to simplify the process. We’ve also developed a new API to identify the layers used in a page. This will help to find which Optional Content Groups (OCGs) belong to which page in a document.

Signing of PDF/UA documents has been improved. When creating a signature form field iText will now take into account if an alternative description is set in the accessibility properties of the signature appearance. Additionally, if you forget to set a font for the signature appearance this will now result in a conformance exception, rather than a property error.

Further improvements have been made to the rebuilding of invalid cross-reference (xref) tables in corrupt documents. When iText encounters and resolves such errors in non-strict mode, specific information on the cause will now be provided.

Adding to the recent addition of RSASSA-PSS encryption support for .NET, this release now allows it to be supported in FIPS mode.

Along with that is improved font selection and general handling, performance enhancements, and much more. iText has a reputation amongst Java and .NET developers for its speed and ease of use, and we’re ensuring that remains the case in the future.

Make sure to check out the Breaking Changes if you’re migrating from a previous version of iText.

Pull Requests

Once again, we’d like to thank Matthias Valvekens for another pull request submission. This relates to Unicode, and adds support for platform 0 encoding 3 in the Truetype and OpenType character map table. This is used in some fonts shipped with macOS, among other places.

Bug Fixes and Miscellaneous

For content extraction, we fixed a bug in the RegexBasedLocationExtractionStrategy API (Java/.NET) . It now produces better results by default when processing multiple pages.

We fixed an edge-case bug in Certificate Revocation List validation. When a CRL response existed, but its issuer was neither trusted, nor self-signed, it could result in a stack overflow error.

In addition, a fix was made to SVG rendering to honor dy attributes in parent text attributes.

Other Stuff

... (truncated)

Commits
  • 3fe77bf [RELEASE] iText 9.0.0
  • a157a78 [RELEASE] 9.0.0
  • 1bb85b3 Make 'floatMultiplier' in ClipperBridge non-static configuration
  • e84bb3e Move all logic from PdfA/UaDocuments to pluggalbe mechanisms into PdfDocument
  • dc8d3fe Support encrypted documents in SignatureValidator
  • 9fe2316 Support MAC integrity protection for different signing modes
  • 5d52188 Add missing javadocs
  • 5b9f0e9 Refactor com.itextpdf.kernel.events mechanism
  • a0fc8b8 Fix cyclic references handling in struct tree parent
  • a6e77ae Correct certificate comparisons
  • Additional commits viewable in compare view

Updates com.itextpdf:layout from 8.0.5 to 9.0.0

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

@dependabot dependabot bot added bouw- en testinfrastuctuur oa. aanpassingen vanwege build servers en maven plugins dependency update (deels) automatische updates van gebruikte libraries labels Nov 19, 2024
@dependabot dependabot bot requested a review from mprins November 19, 2024 05:21
@mprins mprins changed the title build(deps): bump itextpdf.version from 8.0.5 to 9.0.0 [BRMO-386] Upgrade itextpdf.version van 8.0.5 naar 9.0.0 Nov 19, 2024
dependabot bot and others added 2 commits November 19, 2024 10:44
Bumps `itextpdf.version` from 8.0.5 to 9.0.0.

Updates `com.itextpdf:kernel` from 8.0.5 to 9.0.0

Updates `com.itextpdf:itext-core` from 8.0.5 to 9.0.0
- [Release notes](https://github.com/itext/itext7/releases)
- [Commits](itext/itext-java@8.0.5...9.0.0)

Updates `com.itextpdf:layout` from 8.0.5 to 9.0.0

---
updated-dependencies:
- dependency-name: com.itextpdf:kernel
  dependency-type: direct:production
  update-type: version-update:semver-major
- dependency-name: com.itextpdf:itext-core
  dependency-type: direct:production
  update-type: version-update:semver-major
- dependency-name: com.itextpdf:layout
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>
@mprins mprins force-pushed the dependabot/maven/master/itextpdf.version-9.0.0 branch from 5394a53 to 2a83843 Compare November 19, 2024 09:44
@mprins mprins enabled auto-merge (squash) November 19, 2024 09:44
Copy link

codecov bot commented Nov 19, 2024

Codecov Report

Attention: Patch coverage is 0% with 7 lines in your changes missing coverage. Please review.

Project coverage is 38%. Comparing base (9fc85ab) to head (2a83843).
Report is 1 commits behind head on master.

Files with missing lines Patch % Lines
.../nl/b3p/brmo/loader/checks/AfgiftelijstReport.java 0% 5 Missing ⚠️
...java/nl/b3p/brmo/loader/checks/AfgifteChecker.java 0% 2 Missing ⚠️
Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff            @@
##             master   #2311   +/-   ##
========================================
  Coverage        38%     38%           
  Complexity      806     806           
========================================
  Files           371     371           
  Lines         18863   18863           
  Branches       1777    1777           
========================================
  Hits           7153    7153           
  Misses        11138   11138           
  Partials        572     572           
Files with missing lines Coverage Δ
...java/nl/b3p/brmo/loader/checks/AfgifteChecker.java 0% <0%> (ø)
.../nl/b3p/brmo/loader/checks/AfgiftelijstReport.java 0% <0%> (ø)
---- 🚨 Try these New Features:

@mprins mprins merged commit ada4313 into master Nov 19, 2024
24 of 29 checks passed
@mprins mprins deleted the dependabot/maven/master/itextpdf.version-9.0.0 branch November 19, 2024 10:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bouw- en testinfrastuctuur oa. aanpassingen vanwege build servers en maven plugins dependency update (deels) automatische updates van gebruikte libraries
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant