From 3ba0a79a5767d81b73367915dab1513b3532c1ac Mon Sep 17 00:00:00 2001 From: Juergen Hoeller Date: Sat, 30 Mar 2019 00:13:29 +0100 Subject: [PATCH] Upgrade to OpenPDF 1.2.12 --- spring-webmvc/spring-webmvc.gradle | 2 +- src/docs/asciidoc/web/webmvc-view.adoc | 7 +++---- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/spring-webmvc/spring-webmvc.gradle b/spring-webmvc/spring-webmvc.gradle index df8033f5f5f..cf756721df6 100644 --- a/spring-webmvc/spring-webmvc.gradle +++ b/spring-webmvc/spring-webmvc.gradle @@ -23,7 +23,7 @@ dependencies { optional("javax.xml.bind:jaxb-api:2.3.1") optional("org.webjars:webjars-locator-core:0.37") optional("com.rometools:rome:1.12.0") - optional("com.github.librepdf:openpdf:1.2.10") + optional("com.github.librepdf:openpdf:1.2.12") optional("org.apache.poi:poi-ooxml:4.0.1") optional("org.freemarker:freemarker:${freemarkerVersion}") optional("com.fasterxml.jackson.core:jackson-databind:${jackson2Version}") diff --git a/src/docs/asciidoc/web/webmvc-view.adoc b/src/docs/asciidoc/web/webmvc-view.adoc index 097630e1507..206ccbc35a5 100644 --- a/src/docs/asciidoc/web/webmvc-view.adoc +++ b/src/docs/asciidoc/web/webmvc-view.adoc @@ -798,9 +798,8 @@ When developing with JSPs, you can declare a `InternalResourceViewResolver` or a `ResourceBundleViewResolver` bean. `ResourceBundleViewResolver` relies on a properties file to define the view names -mapped to a class and a URL. With a `ResourceBundleViewResolver`, you -can mix different types of views by using only one resolver, as the following example -shows: +mapped to a class and a URL. With a `ResourceBundleViewResolver`, you can mix +different types of views by using only one resolver, as the following example shows: ==== [source,xml,indent=0] @@ -1960,7 +1959,7 @@ In order to use Excel views, you need to add the Apache POI library to your clas For PDF generation, you need to add (preferably) the OpenPDF library. NOTE: You should use the latest versions of the underlying document-generation libraries, -if possible. In particular, we strongly recommend OpenPDF (for example, OpenPDF 1.0.5) +if possible. In particular, we strongly recommend OpenPDF (for example, OpenPDF 1.2.12) instead of the outdated original iText 2.1.7, since OpenPDF is actively maintained and fixes an important vulnerability for untrusted PDF content.