diff --git a/build.gradle b/build.gradle index ac9a73d0e..9844b4b74 100644 --- a/build.gradle +++ b/build.gradle @@ -178,7 +178,7 @@ dependencies { implementation group: "org.apache.commons", name: "commons-lang3", version: "3.17.0" implementation group: "commons-validator", name: "commons-validator", version: "1.9.0" - implementation group: 'org.apache.pdfbox', name: 'pdfbox', version: "3.0.2" + implementation group: 'org.apache.pdfbox', name: 'pdfbox', version: "3.0.3" implementation group: "net.javacrumbs.shedlock", name: "shedlock-spring", version: versions.shedlock implementation group: "net.javacrumbs.shedlock", name: "shedlock-provider-jdbc-template", version: versions.shedlock implementation group: 'org.apache.poi', name: 'poi-ooxml', version: '5.3.0', withoutCVE202011987 diff --git a/src/main/java/uk/gov/hmcts/reform/em/stitching/pdf/PDFOutline.java b/src/main/java/uk/gov/hmcts/reform/em/stitching/pdf/PDFOutline.java index 686566241..724e64752 100644 --- a/src/main/java/uk/gov/hmcts/reform/em/stitching/pdf/PDFOutline.java +++ b/src/main/java/uk/gov/hmcts/reform/em/stitching/pdf/PDFOutline.java @@ -139,6 +139,7 @@ public void copyOutline( PDDocumentCatalog documentCatalog, String key, int currentPageNumber) throws IOException { + cosObjectKeys.clear(); PDOutlineItem destLastOutlineItem; var node = outlineTree.findTreeNode(createBundleItemComparable(key), outlineTree);