Skip to content

Commit

Permalink
Bump pdf dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
fabian-emilius committed Nov 20, 2024
1 parent 27911f9 commit bed7624
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions server/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions server/src/main/java/thesistrack/ls1/utility/PDFBuilder.java
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public Resource build() {

Paragraph mainHeadingParagraph = new Paragraph(heading)
.setFontSize(24)
.setBold()
.simulateBold()
.setMarginBottom(20);

document.add(mainHeadingParagraph);
Expand All @@ -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);
Expand Down

0 comments on commit bed7624

Please sign in to comment.