cessda / cessda.cvs.two

Apache License 2.0
0 stars 2 forks source link

Explicitly load fonts into the PDF font provider #806

Closed matthew-morris-cessda closed 8 months ago

matthew-morris-cessda commented 8 months ago

When packaged into a JAR/WAR archive this.getClass().getResource("/fonts").getPath() won't return a path that is usable by fontProvider.addDirectory(). This PR explicitly adds the fonts using IOUtils.resourceToByteArray() to prevent this issue.