From bed76246957beae36c41438edcf7474571d27ebf Mon Sep 17 00:00:00 2001 From: Fabian Emilius Date: Wed, 20 Nov 2024 05:01:43 +0100 Subject: [PATCH] Bump pdf dependencies --- server/build.gradle | 4 ++-- server/src/main/java/thesistrack/ls1/utility/PDFBuilder.java | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/server/build.gradle b/server/build.gradle index 5f06bd9f..e359089a 100644 --- a/server/build.gradle +++ b/server/build.gradle @@ -46,8 +46,8 @@ dependencies { implementation "commons-io:commons-io:2.18.0" implementation "com.github.vladimir-bukhtoyarov:bucket4j-core:8.0.1" implementation "org.mnode.ical4j:ical4j:4.0.5" - implementation "com.itextpdf:itext-core:8.0.5" - implementation "com.itextpdf:html2pdf:5.0.5" + implementation "com.itextpdf:itext-core:9.0.0" + implementation "com.itextpdf:html2pdf:6.0.0" implementation "com.auth0:java-jwt:4.4.0" // use newest version of commons-compress to avoid security issues through outdated dependencies diff --git a/server/src/main/java/thesistrack/ls1/utility/PDFBuilder.java b/server/src/main/java/thesistrack/ls1/utility/PDFBuilder.java index 708620cf..cd332a7f 100644 --- a/server/src/main/java/thesistrack/ls1/utility/PDFBuilder.java +++ b/server/src/main/java/thesistrack/ls1/utility/PDFBuilder.java @@ -44,7 +44,7 @@ public Resource build() { Paragraph mainHeadingParagraph = new Paragraph(heading) .setFontSize(24) - .setBold() + .simulateBold() .setMarginBottom(20); document.add(mainHeadingParagraph); @@ -55,7 +55,7 @@ public Resource build() { for (Section section : sections) { Paragraph sectionHeading = new Paragraph(section.heading) .setFontSize(16) - .setBold() + .simulateBold() .setMarginTop(10) .setMarginBottom(5); document.add(sectionHeading);