Compare commits
10 Commits
640f331f25
...
d171d73b73
Author | SHA256 | Date | |
---|---|---|---|
d171d73b73 | |||
ce33d23a02 | |||
521aa10642 | |||
55a701e1d2 | |||
45c0ace3ff | |||
e9e9d9eb3b | |||
306cc980e3 | |||
526985f349 | |||
1f48176da8 | |||
8f9ec4c4e1 |
@@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:d1df63f2243c175ba7edfc15a5d7fc87dfcac02194a3c2b798f6689b7dce8d7d
|
||||
size 10813177
|
3
1.4.2.tar.gz
Normal file
3
1.4.2.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:1e1ac3ad0d77e4ebe7d01c65e6301d0c18904dc3b1278a662d74afdbc7e11bca
|
||||
size 18458203
|
@@ -1,40 +0,0 @@
|
||||
--- a/openpdf/src/main/java/com/lowagie/text/pdf/PdfPKCS7.java
|
||||
+++ b/openpdf/src/main/java/com/lowagie/text/pdf/PdfPKCS7.java
|
||||
@@ -366,8 +366,8 @@ private void findOcsp(ASN1Sequence seq) throws IOException {
|
||||
}
|
||||
if (seq.getObjectAt(k) instanceof ASN1TaggedObject) {
|
||||
ASN1TaggedObject tag = (ASN1TaggedObject) seq.getObjectAt(k);
|
||||
- if (tag.getObject() instanceof ASN1Sequence) {
|
||||
- seq = (ASN1Sequence) tag.getObject();
|
||||
+ if (tag.getBaseObject() instanceof ASN1Sequence) {
|
||||
+ seq = (ASN1Sequence) tag.getBaseObject();
|
||||
ret = false;
|
||||
break;
|
||||
} else
|
||||
@@ -422,7 +422,7 @@ public PdfPKCS7(byte[] contentsKey, String provider) {
|
||||
throw new IllegalArgumentException(
|
||||
MessageLocalization
|
||||
.getComposedMessage("not.a.valid.pkcs.7.object.not.signed.data"));
|
||||
- ASN1Sequence content = (ASN1Sequence)((ASN1TaggedObject)signedData.getObjectAt(1)).getObject(); // the positions that we care are:
|
||||
+ ASN1Sequence content = (ASN1Sequence)((ASN1TaggedObject)signedData.getObjectAt(1)).getBaseObject(); // the positions that we care are:
|
||||
// the positions that we care are:
|
||||
// 0 - version
|
||||
// 1 - digestAlgorithms
|
||||
@@ -453,7 +453,7 @@ public PdfPKCS7(byte[] contentsKey, String provider) {
|
||||
// the possible ID_PKCS7_DATA
|
||||
ASN1Sequence rsaData = (ASN1Sequence) content.getObjectAt(2);
|
||||
if (rsaData.size() > 1) {
|
||||
- ASN1OctetString rsaDataContent = (ASN1OctetString)((ASN1TaggedObject)rsaData.getObjectAt(1)).getObject();
|
||||
+ ASN1OctetString rsaDataContent = (ASN1OctetString)((ASN1TaggedObject)rsaData.getObjectAt(1)).getBaseObject();
|
||||
RSAdata = rsaDataContent.getOctets();
|
||||
}
|
||||
|
||||
@@ -518,7 +518,7 @@ public PdfPKCS7(byte[] contentsKey, String provider) {
|
||||
ASN1TaggedObject tg = (ASN1TaggedObject) seqout.getObjectAt(j);
|
||||
if (tg.getTagNo() != 1)
|
||||
continue;
|
||||
- ASN1Sequence seqin = (ASN1Sequence) tg.getObject();
|
||||
+ ASN1Sequence seqin = (ASN1Sequence) tg.getBaseObject();
|
||||
findOcsp(seqin);
|
||||
}
|
||||
}
|
150
openpdf.changes
150
openpdf.changes
@@ -1,8 +1,156 @@
|
||||
-------------------------------------------------------------------
|
||||
Thu Mar 27 21:54:45 UTC 2025 - Fridrich Strba <fstrba@suse.com>
|
||||
|
||||
- Fix javadoc generation with javadoc:aggregate
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Jun 13 17:37:31 UTC 2024 - Anton Shvetz <shvetz.anton@gmail.com>
|
||||
|
||||
- Upgrade to version 1.4.2
|
||||
* What's Changed
|
||||
+ Use UTF-8 in .getBytes(), and force running Tests with UTF-8
|
||||
+ Provide PDF/A conform annotations (backport 1.4)
|
||||
+ Merge/1.3 in 1.4
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Mar 14 12:36:06 UTC 2024 - Anton Shvetz <shvetz.anton@gmail.com>
|
||||
|
||||
- Upgrade to version 1.4.1 - Java 11 compatible
|
||||
* What's Changed
|
||||
+ lift TrueTypeFontUnicode.includeCidSet flag up to BaseFont to
|
||||
make it publicly accessible (#1041)
|
||||
+ #837 Modified PdfPTable add cell method to return cell
|
||||
(Breaking Changes)
|
||||
+ Fix for issues #1047
|
||||
+ Build with Java 11
|
||||
+ #1062: Call LayoutProcessor.disable() after Test-Runs
|
||||
+ 1062 layout processor fix 1.4
|
||||
- Upgrade to version 1.3.41
|
||||
* What's Changed
|
||||
+ lift TrueTypeFontUnicode.includeCidSet flag up to BaseFont to
|
||||
make it publicly accessible (#1041)
|
||||
+ #837 Modified PdfPTable add cell method to return cell
|
||||
(Breaking Changes)
|
||||
+ Fix for issues #1047
|
||||
+ [#1053] [#1033] [#1034] Restored java8 compatibility
|
||||
+ Build with target JDK 8, GPG activated again
|
||||
+ #1062: Call LayoutProcessor.disable() after Test-Runs
|
||||
- Upgrade to version 1.3.40
|
||||
* What's New in OpenPDF 1.3.40
|
||||
+ Add TrueTypeFontUnicode.includeCidSet flag (#1041)
|
||||
+ Added Codacy
|
||||
+ Bump org.assertj:assertj-core from 3.25.1 to 3.25.2
|
||||
+ Bump com.puppycrawl.tools:checkstyle from 10.12.7 to 10.13.0
|
||||
+ Bump org.assertj:assertj-core from 3.25.2 to 3.25.3
|
||||
+ Bump junit.version from 5.10.1 to 5.10.2
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sat Jan 27 15:10:02 UTC 2024 - Anton Shvetz <shvetz.anton@gmail.com>
|
||||
|
||||
- Upgrade to version 1.3.39
|
||||
* What's Changed in OpenPDF 1.3.39
|
||||
+ Fix NullPointerException on null rows in table
|
||||
* What's Changed in OpenPDF 1.3.38
|
||||
+ Fix issue #1024: newline (or other control char below 0x20)
|
||||
should not switch font
|
||||
+ Fix row height calculation for tables with locked width
|
||||
* What's Changed in OpenPDF 1.3.37
|
||||
+ Java 11 or later is required to use OpenPDF.
|
||||
+ 32 methods and fields marked with Deprecated annotation which
|
||||
were already commented as deprecated.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sat Jan 13 02:35:53 UTC 2024 - Anton Shvetz <shvetz.anton@gmail.com>
|
||||
|
||||
- Upgrade to version 1.3.36
|
||||
* What's new in OpenPDF 1.3.36
|
||||
+ Bump org.assertj:assertj-core from 3.24.2 to 3.25.0
|
||||
+ Bump com.puppycrawl.tools:checkstyle from 10.12.6 to 10.12.7
|
||||
+ Bump org.apache.maven.plugins:maven-jxr-plugin from 3.3.1 to
|
||||
3.3.2
|
||||
+ Bump org.assertj:assertj-core from 3.25.0 to 3.25.1
|
||||
+ Fix performance for rowspan height distribution
|
||||
+ Java 9 or later is required.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Dec 27 17:13:29 UTC 2023 - Anton Shvetz <shvetz.anton@gmail.com>
|
||||
|
||||
- Upgrade to version 1.3.35
|
||||
* What's new in OpenPDF 1.3.35
|
||||
+ Bump com.ibm.icu:icu4j from 74.1 to 74.2
|
||||
+ Bump org.apache.maven.plugins:maven-compiler-plugin from
|
||||
3.11.0 to 3.12.0
|
||||
+ Bump org.apache.maven.plugins:maven-compiler-plugin from
|
||||
3.12.0 to 3.12.1
|
||||
+ Remove reflection use from MappedRandomAccessFile #1008
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sat Dec 23 12:14:20 UTC 2023 - Anton Shvetz <shvetz.anton@gmail.com>
|
||||
|
||||
- Upgrade to version 1.3.34
|
||||
* What's new in OpenPDF 1.3.34
|
||||
+ Disable External Entities in XmlParser #999
|
||||
+ Bump commons-io:commons-io from 2.15.0 to 2.15.1
|
||||
+ Bump org.apache.maven.plugins:maven-javadoc-plugin from 3.6.2
|
||||
to 3.6.3
|
||||
+ Bump com.puppycrawl.tools:checkstyle from 10.12.5 to 10.12.6
|
||||
+ Fixed several form flattening issues
|
||||
+ Fixed issues discussed in #992
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Nov 28 20:04:16 UTC 2023 - Anton Shvetz <shvetz.anton@gmail.com>
|
||||
|
||||
- Upgrade to version 1.3.33
|
||||
* What's New in OpenPDF 1.3.33
|
||||
+ Bump bouncycastle.version from 1.76 to 1.77
|
||||
+ Errors in indentation and tab positions
|
||||
+ Fixed issue reported by bsanchezb which in certain cases
|
||||
would overwr…
|
||||
+ Bump junit.version from 5.10.0 to 5.10.1 in #983
|
||||
+ Bump org.apache.maven.plugins:maven-javadoc-plugin from 3.6.0
|
||||
to 3.6.2
|
||||
+ example code and test case for #591:
|
||||
FopGlyphProcessor.convertToBytesWithGlyphs()
|
||||
+ Bump com.puppycrawl.tools:checkstyle from 10.12.4 to 10.12.5
|
||||
+ garbled CJK Unified Ideographs Extension text test and fix
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Nov 2 13:51:22 UTC 2023 - Fridrich Strba <fstrba@suse.com>
|
||||
|
||||
- Upgrade to version 1.3.32
|
||||
* Changes of 1.3.32
|
||||
+ Speed up loading fonts from JAR
|
||||
+ Nullsafe equals in XfaForm when processing template
|
||||
+ Fix height calculation for table rows with rowspan
|
||||
+ Added AutoCloseable annotations on classes, that already
|
||||
implement the close method
|
||||
+ Fixing umlauts in form fields
|
||||
+ Skipping eliminateSharedStreams() method call.
|
||||
+ Add flag to inhibit FOP glyph substitution
|
||||
+ Align /ID entry creation with 14.4 File Identifiers
|
||||
* Changes of 1.3.31
|
||||
+ Add optional metadata/info update in a sequential revision
|
||||
+ Add CIDSet for font subset to ensure PDF/A compliance
|
||||
+ Fix table rendering in footers
|
||||
+ Throw InvalidPdfException in PdfReader.rebuildXref if no
|
||||
trailer is found
|
||||
+ [SECURITY] Fix Temporary File Information Disclosure
|
||||
Vulnerability
|
||||
+ Enable kerning and ligatures for LayoutProcessor
|
||||
+ Add PDF/A-1b example
|
||||
+ Fix for localgoto in pdf/a-1b documents
|
||||
+ PDF/A conformance and StructElem Type
|
||||
+ Issue676: references in tag structure tree are incorrect
|
||||
+ set FLAGS_PRINT flag in annotation for action chunks
|
||||
- Removed patch:
|
||||
* openpdf-bc175.patch
|
||||
+ not needed with this version
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Oct 18 19:23:36 UTC 2023 - Fridrich Strba <fstrba@suse.com>
|
||||
|
||||
- Added patch:
|
||||
* no-getObject.patch
|
||||
* openpdf-bc175.patch
|
||||
+ allow building with bouncycastle 1.75+
|
||||
|
||||
-------------------------------------------------------------------
|
||||
|
18
openpdf.spec
18
openpdf.spec
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package openpdf
|
||||
#
|
||||
# Copyright (c) 2023 SUSE LLC
|
||||
# Copyright (c) 2024 SUSE LLC
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@@ -17,14 +17,13 @@
|
||||
|
||||
|
||||
Name: openpdf
|
||||
Version: 1.3.30
|
||||
Version: 1.4.2
|
||||
Release: 0
|
||||
Summary: A free Java library for creating and editing PDF files
|
||||
License: LGPL-2.1-only AND MPL-2.0
|
||||
Group: Development/Libraries/Java
|
||||
URL: https://github.com/LibrePDF/OpenPDF
|
||||
Source: %{url}/archive/refs/tags/%{version}.tar.gz
|
||||
Patch0: no-getObject.patch
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: maven-local
|
||||
BuildRequires: mvn(com.google.code.findbugs:jsr305)
|
||||
@@ -52,27 +51,22 @@ API documentation for %{name}.
|
||||
|
||||
%prep
|
||||
%setup -q -n OpenPDF-%{version}
|
||||
%patch0 -p1
|
||||
|
||||
%pom_remove_plugin org.sonatype.plugins:nexus-staging-maven-plugin
|
||||
%pom_remove_plugin :maven-javadoc-plugin
|
||||
|
||||
sed -i -e '/requires static fop;/ d' openpdf/src/main/java9/module-info.java
|
||||
sed -i -e '/requires org\.jfree\.jfreechart;/ d' pdf-toolbox/src/main/java9/module-info.java
|
||||
%pom_remove_plugin org.jacoco:jacoco-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 -- -DlegacyMode=true -Dverbose=true
|
||||
|
||||
%install
|
||||
%mvn_install
|
||||
%fdupes %{buildroot}%{_javadocdir}/%{name}
|
||||
|
||||
%files -f .mfiles
|
||||
%license LICENSE.md src/main/resources/META-INF/{MPL-2.0.txt,LGPL-2.1.md}
|
||||
%license LICENSE.md %{name}/src/main/resources/META-INF/{MPL-2.0.txt,LGPL-2.1.md}
|
||||
%doc {README,CONTRIBUTING}.md
|
||||
|
||||
%files javadoc -f .mfiles-javadoc
|
||||
%license LICENSE.md src/main/resources/META-INF/{MPL-2.0.txt,LGPL-2.1.md}
|
||||
%license LICENSE.md %{name}/src/main/resources/META-INF/{MPL-2.0.txt,LGPL-2.1.md}
|
||||
|
||||
%changelog
|
||||
|
Reference in New Issue
Block a user