From 9f36aed7d8c58fd731924d50dd07c4c11fc2794d Mon Sep 17 00:00:00 2001 From: Maxim Pliushchov Date: Sun, 13 Jul 2025 14:51:39 +0300 Subject: [PATCH 1/6] Update parent pom version to 1.28.2 --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index ed931d3cd..88f58c818 100644 --- a/pom.xml +++ b/pom.xml @@ -28,7 +28,7 @@ org.verapdf verapdf-parent - 1.28.1 + 1.28.2 org.verapdf From 40cf495e0090ef6865092b2d9d7ba96dba538cfd Mon Sep 17 00:00:00 2001 From: Git User <> Date: Mon, 12 May 2025 15:00:21 +0000 Subject: [PATCH 2/6] PDF/UA-2. Remove rule 8.2.5.20-3 --- .../verapdf/pdfa/validation/PDFUA-2-ISO32005.xml | 13 ------------- .../pdfa/validation/WTPDF-1-0-Accessibility.xml | 13 ------------- .../org/verapdf/pdfa/validation/WTPDF-1-0-Reuse.xml | 13 ------------- 3 files changed, 39 deletions(-) diff --git a/core/src/main/resources/org/verapdf/pdfa/validation/PDFUA-2-ISO32005.xml b/core/src/main/resources/org/verapdf/pdfa/validation/PDFUA-2-ISO32005.xml index a8bb39fc8..f1bba6335 100644 --- a/core/src/main/resources/org/verapdf/pdfa/validation/PDFUA-2-ISO32005.xml +++ b/core/src/main/resources/org/verapdf/pdfa/validation/PDFUA-2-ISO32005.xml @@ -292,19 +292,6 @@ - - - Multiple link annotations shall be included in a single Link or Reference structure element if they target the same location and are semantically perceived to be a single link - sameTargetAnnotObjectKey == null - - Annotations %1 and %2 target the same location, but are included into different structure elements - - objectKey - sameTargetAnnotObjectKey - - - - A Ruby structure element shall contain a single RB structure element and a single RT structure element or a Ruby structure element shall consist of a four-element subsequence: RB, RP, RT, RP diff --git a/core/src/main/resources/org/verapdf/pdfa/validation/WTPDF-1-0-Accessibility.xml b/core/src/main/resources/org/verapdf/pdfa/validation/WTPDF-1-0-Accessibility.xml index ebf525259..9000aa1dc 100644 --- a/core/src/main/resources/org/verapdf/pdfa/validation/WTPDF-1-0-Accessibility.xml +++ b/core/src/main/resources/org/verapdf/pdfa/validation/WTPDF-1-0-Accessibility.xml @@ -244,19 +244,6 @@ - - - Multiple link annotations shall be included in a single Link or Reference structure element if they target the same location and are semantically perceived to be a single link - sameTargetAnnotObjectKey == null - - Annotations %1 and %2 target the same location, but are included into different structure elements - - objectKey - sameTargetAnnotObjectKey - - - - A Ruby structure element shall contain a single RB structure element and a single RT structure element or a Ruby structure element shall consist of a four-element subsequence: RB, RP, RT, RP diff --git a/core/src/main/resources/org/verapdf/pdfa/validation/WTPDF-1-0-Reuse.xml b/core/src/main/resources/org/verapdf/pdfa/validation/WTPDF-1-0-Reuse.xml index 06c1693e9..d4525e382 100644 --- a/core/src/main/resources/org/verapdf/pdfa/validation/WTPDF-1-0-Reuse.xml +++ b/core/src/main/resources/org/verapdf/pdfa/validation/WTPDF-1-0-Reuse.xml @@ -244,19 +244,6 @@ - - - Multiple link annotations shall be included in a single Link or Reference structure element if they target the same location and are semantically perceived to be a single link - sameTargetAnnotObjectKey == null - - Annotations %1 and %2 target the same location, but are included into different structure elements - - objectKey - sameTargetAnnotObjectKey - - - - A Ruby structure element shall contain a single RB structure element and a single RT structure element or a Ruby structure element shall consist of a four-element subsequence: RB, RP, RT, RP From 55cabbadf5a19bcb3788aea0b518925ce02471ad Mon Sep 17 00:00:00 2001 From: Maxim Date: Sun, 15 Jun 2025 21:03:48 +0300 Subject: [PATCH 3/6] Add new flavours methods --- .../org/verapdf/pdfa/flavours/PDFFlavours.java | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/core/src/main/java/org/verapdf/pdfa/flavours/PDFFlavours.java b/core/src/main/java/org/verapdf/pdfa/flavours/PDFFlavours.java index a4ac81c3f..6c1e9036b 100644 --- a/core/src/main/java/org/verapdf/pdfa/flavours/PDFFlavours.java +++ b/core/src/main/java/org/verapdf/pdfa/flavours/PDFFlavours.java @@ -24,6 +24,15 @@ public class PDFFlavours { + public static boolean isOnlyPDFUARelatedFlavour(List flavours) { + for (PDFAFlavour flavour : flavours) { + if (!isPDFUARelatedFlavour(flavour)) { + return false; + } + } + return true; + } + public static boolean isPDFUARelatedFlavour(List flavours) { for (PDFAFlavour flavour : flavours) { if (isPDFUARelatedFlavour(flavour)) { @@ -89,6 +98,15 @@ public static boolean isFlavour(List flavours, PDFAFlavour checkedF } return false; } + + public static boolean isOnlyFlavour(List flavours, PDFAFlavour checkedFlavour) { + for (PDFAFlavour flavour : flavours) { + if (!isFlavour(flavour, checkedFlavour)) { + return false; + } + } + return true; + } public static boolean isFlavour(PDFAFlavour currentFlavour, PDFAFlavour checkedFlavour) { return currentFlavour == checkedFlavour; From 9349ed7d181cfd60b6601877b232441550147500 Mon Sep 17 00:00:00 2001 From: Maxim Date: Sun, 29 Jun 2025 20:24:06 +0300 Subject: [PATCH 4/6] Update jackson dependency version to 2.15.0 --- core/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/pom.xml b/core/pom.xml index 365c11952..307ce9b88 100644 --- a/core/pom.xml +++ b/core/pom.xml @@ -89,7 +89,7 @@ com.fasterxml.jackson.core jackson-databind - 2.14.0 + 2.15.0 From db17a994b0e95873bbb9f961bc2cb7e6b18e0370 Mon Sep 17 00:00:00 2001 From: Maxim Date: Mon, 19 May 2025 14:56:19 +0300 Subject: [PATCH 5/6] Update rdf parsing --- .../main/java/org/verapdf/xmp/impl/ParseRDF.java | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/xmp-core/src/main/java/org/verapdf/xmp/impl/ParseRDF.java b/xmp-core/src/main/java/org/verapdf/xmp/impl/ParseRDF.java index 4bc561266..2615a5446 100644 --- a/xmp-core/src/main/java/org/verapdf/xmp/impl/ParseRDF.java +++ b/xmp-core/src/main/java/org/verapdf/xmp/impl/ParseRDF.java @@ -98,14 +98,15 @@ static XMPMetaImpl parse(Node xmlRoot) throws XMPException */ static void rdf_RDF(XMPMetaImpl xmp, Node rdfRdfNode) throws XMPException { - if (rdfRdfNode.hasAttributes()) - { + //------------------------------------------------------------------------------ veraPDF: disabled exception for rdf without attributes https://github.com/veraPDF/veraPDF-library/issues/1528 +// if (rdfRdfNode.hasAttributes()) +// { rdf_NodeElementList (xmp, xmp.getRoot(), rdfRdfNode); - } - else - { - throw new XMPException("Invalid attributes of rdf:RDF element", BADRDF); - } +// } +// else +// { +// throw new XMPException("Invalid attributes of rdf:RDF element", BADRDF); +// } } From c9963cbd5ce6bfad4b2aeb80f3aa2bf98f0b9d33 Mon Sep 17 00:00:00 2001 From: Maxim Date: Tue, 15 Jul 2025 14:59:13 +0300 Subject: [PATCH 6/6] Add 1.28.2 release notes --- RELEASENOTES.md | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/RELEASENOTES.md b/RELEASENOTES.md index 1c24c032a..c8d4d3c20 100644 --- a/RELEASENOTES.md +++ b/RELEASENOTES.md @@ -1,3 +1,26 @@ +Version 1.28.2 (July 15, 2025) +================================= + +### Applications +- updated vulnerable dependencies ([commit](https://github.com/veraPDF/veraPDF-library/commit/b75a016)) + +### Validation +- (PDF/UA-2, WTPDF-1) disabled rule about multiple link annotations that target the same location ([commit](https://github.com/veraPDF/veraPDF-library/commit/3c05a38)) +- (PDF/UA-2, WTPDF-1) fixed structure destination validation ([commit](https://github.com/veraPDF/veraPDF-validation/commit/7fe5283)) +- fixed validation of Unicode for several flavours ([commit](https://github.com/veraPDF/veraPDF-validation/commit/7d143de)) + +### PDF Parser +- fixed width calculation in an edge case of Type2CharString ([commit](https://github.com/veraPDF/veraPDF-parser/commit/ea6ba8b)) +- fixed COSPredictorDecode (commits [1](https://github.com/veraPDF/veraPDF-parser/commit/e8f9024) [2](https://github.com/veraPDF/veraPDF-parser/commit/703fe86)) +- fixed RDF parsing with no attributes in metadata ([commit](https://github.com/veraPDF/veraPDF-library/commit/be2f0fb)) +- fixed exceptions in case of malformed PDFs + + +### Maintenance +- moved Maven publication from the decommissioned Sonatype service to Maven central publication +- added the new maven-central-publication plugin to veraPDF-parent POM for publication for all projects ([commit](https://github.com/veraPDF/veraPDF-parent-pom/commit/16c02dd)) +- updated the Maven plugins used to the latest versions ([commit](https://github.com/veraPDF/veraPDF-parent-pom/commit/07e58ea)) + Version 1.28 (April 30, 2025) =================================