Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package itextpdf for openSUSE:Factory checked in at 2025-11-17 12:13:39 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/itextpdf (Old) and /work/SRC/openSUSE:Factory/.itextpdf.new.2061 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "itextpdf" Mon Nov 17 12:13:39 2025 rev:7 rq:1317834 version:5.5.13.4 Changes: -------- --- /work/SRC/openSUSE:Factory/itextpdf/itextpdf.changes 2024-02-21 17:59:58.515024696 +0100 +++ /work/SRC/openSUSE:Factory/.itextpdf.new.2061/itextpdf.changes 2025-11-17 12:20:29.362460231 +0100 @@ -1,0 +2,13 @@ +Fri Nov 14 12:34:10 UTC 2025 - Fridrich Strba <[email protected]> + +- Upgrade to version 5.5.13.4 + * Security update of Bouncy Castle dependency to fix bsc#1224299, + CVE-2024-29857. +- Removed patch: + * itextpdf-bc175.patch + + not needed with this version +- Added patch: + * 0001-Upgrade-to-commons-imaging-1.0.0-alpha6.patch + + Upgrade to the latest commons-imaging and fix the build + +------------------------------------------------------------------- Old: ---- 5.5.13.3.tar.gz itextpdf-bc175.patch New: ---- 0001-Upgrade-to-commons-imaging-1.0.0-alpha6.patch 5.5.13.4.tar.gz _scmsync.obsinfo build.specials.obscpio ----------(Old B)---------- Old:- Removed patch: * itextpdf-bc175.patch + not needed with this version ----------(Old E)---------- ----------(New B)---------- New:- Added patch: * 0001-Upgrade-to-commons-imaging-1.0.0-alpha6.patch + Upgrade to the latest commons-imaging and fix the build ----------(New E)---------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ itextpdf.spec ++++++ --- /var/tmp/diff_new_pack.Hhv16X/_old 2025-11-17 12:20:30.446505943 +0100 +++ /var/tmp/diff_new_pack.Hhv16X/_new 2025-11-17 12:20:30.450506112 +0100 @@ -17,14 +17,14 @@ Name: itextpdf -Version: 5.5.13.3 +Version: 5.5.13.4 Release: 0 Summary: A Free Java-PDF library License: AGPL-3.0-only Group: Development/Libraries/Java URL: https://itextpdf.com Source0: https://github.com/itext/%{name}/archive/%{version}.tar.gz -Patch0: itextpdf-bc175.patch +Patch0: 0001-Upgrade-to-commons-imaging-1.0.0-alpha6.patch BuildRequires: fdupes BuildRequires: maven-local BuildRequires: mvn(com.itextpdf:itext-parent:pom:) @@ -61,8 +61,7 @@ %pom_remove_plugin -r :buildnumber-maven-plugin %build -%{mvn_build} -f -- \ - -Dproject.build.outputTimestamp=$(date -u -d @${SOURCE_DATE_EPOCH:-$(date +%%s)} +%%Y-%%m-%%dT%%H:%%M:%%SZ) +%{mvn_build} -f %install %mvn_install ++++++ 0001-Upgrade-to-commons-imaging-1.0.0-alpha6.patch ++++++ >From 3621b8cb6f1466015f2e092f70e7b9b35b8234db Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fridrich=20=C5=A0trba?= <[email protected]> Date: Fri, 14 Nov 2025 13:29:50 +0100 Subject: [PATCH] Upgrade to commons-imaging 1.0.0-alpha6 --- xtra/pom.xml | 4 ++-- .../pdfcleanup/PdfCleanUpRenderListener.java | 18 +++++++++++------- 2 files changed, 13 insertions(+), 9 deletions(-) diff --git a/xtra/pom.xml b/xtra/pom.xml index bbfcccecb..8c43aa5b2 100644 --- a/xtra/pom.xml +++ b/xtra/pom.xml @@ -83,12 +83,12 @@ <dependency> <groupId>org.apache.commons</groupId> <artifactId>commons-imaging</artifactId> - <version>1.0-alpha1</version> + <version>1.0.0-alpha6</version> </dependency> <dependency> <groupId>commons-io</groupId> <artifactId>commons-io</artifactId> - <version>2.4</version> + <version>2.19.0</version> </dependency> <dependency> <groupId>junit</groupId> diff --git a/xtra/src/main/java/com/itextpdf/text/pdf/pdfcleanup/PdfCleanUpRenderListener.java b/xtra/src/main/java/com/itextpdf/text/pdf/pdfcleanup/PdfCleanUpRenderListener.java index e82fb5e0e..9f96d3a8f 100644 --- a/xtra/src/main/java/com/itextpdf/text/pdf/pdfcleanup/PdfCleanUpRenderListener.java +++ b/xtra/src/main/java/com/itextpdf/text/pdf/pdfcleanup/PdfCleanUpRenderListener.java @@ -86,6 +86,8 @@ import org.apache.commons.imaging.ImageInfo; import org.apache.commons.imaging.Imaging; import org.apache.commons.imaging.ImagingConstants; import org.apache.commons.imaging.formats.tiff.constants.TiffConstants; +import org.apache.commons.imaging.formats.tiff.TiffImageParser; +import org.apache.commons.imaging.formats.tiff.TiffImagingParameters; class PdfCleanUpRenderListener implements ExtRenderListener { @@ -315,14 +317,16 @@ class PdfCleanUpRenderListener implements ExtRenderListener { // Apache can only read JPEG, so we should use awt for writing in this format if (imageInfo.getFormat() == ImageFormats.JPEG) { return getJPGBytes(image); + // In order to pass parameters, we have to use the image parser directly + } else if (imageInfo.getFormat() == ImageFormats.TIFF) { + final TiffImageParser tiffImageParser = new TiffImageParser(); + final TiffImagingParameters params = new TiffImagingParameters(); + ByteArrayOutputStream bos = new ByteArrayOutputStream(); + params.setCompression(TiffConstants.COMPRESSION_LZW); + tiffImageParser.writeImage(image, bos, params); + return bos.toByteArray(); } else { - Map<String, Object> params = new HashMap<String, Object>(); - - if (imageInfo.getFormat() == ImageFormats.TIFF) { - params.put(ImagingConstants.PARAM_KEY_COMPRESSION, TiffConstants.TIFF_COMPRESSION_LZW); - } - - return Imaging.writeImageToBytes(image, imageInfo.getFormat(), params); + return Imaging.writeImageToBytes(image, imageInfo.getFormat()); } } catch (Exception e) { throw new RuntimeException(e); -- 2.51.1 ++++++ 5.5.13.3.tar.gz -> 5.5.13.4.tar.gz ++++++ /work/SRC/openSUSE:Factory/itextpdf/5.5.13.3.tar.gz /work/SRC/openSUSE:Factory/.itextpdf.new.2061/5.5.13.4.tar.gz differ: char 13, line 1 ++++++ _scmsync.obsinfo ++++++ mtime: 1763123837 commit: cd29901151c7850b2470fff3aafb01ea921498406994ebd5080c08fecfb2fb1b url: https://src.opensuse.org/java-packages/itextpdf.git revision: cd29901151c7850b2470fff3aafb01ea921498406994ebd5080c08fecfb2fb1b projectscmsync: https://src.opensuse.org/java-packages/_ObsPrj ++++++ build.specials.obscpio ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/.gitignore new/.gitignore --- old/.gitignore 1970-01-01 01:00:00.000000000 +0100 +++ new/.gitignore 2025-11-14 13:38:04.000000000 +0100 @@ -0,0 +1 @@ +.osc
