Skip to content

Commit

Permalink
Change to mapfish-print 2.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
jodygarnett committed Jun 9, 2022
1 parent f91390f commit c52a2d9
Show file tree
Hide file tree
Showing 6 changed files with 1,840 additions and 15 deletions.
4 changes: 2 additions & 2 deletions core/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -383,8 +383,8 @@
<exclusions>
<exclusion>
<!-- provided by openpdf -->
<groupId>com.lowagie</groupId>
<artifactId>itext</artifactId>
<groupId>com.itextpdf</groupId>
<artifactId>itextpdf</artifactId>
</exclusion>
<exclusion>
<groupId>commons-httpclient</groupId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ private MapPrinter getMapPrinter() {
}

public Path generateThumbnail(String jsonConfig, Integer rotationAngle)
throws IOException, com.itextpdf.text.DocumentException {
throws IOException {

PJsonObject specJson = MapPrinter.parseSpec(jsonConfig);
if (Log.isDebugEnabled(LOGGER_NAME)) {
Expand Down
12 changes: 2 additions & 10 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -813,7 +813,7 @@
<dependency>
<groupId>org.mapfish.print</groupId>
<artifactId>print-lib</artifactId>
<version>2.1.6</version>
<version>2.2-SNAPSHOT</version>
</dependency>

<!-- Lib utils -->
Expand Down Expand Up @@ -912,19 +912,11 @@
<artifactId>mysql-connector-java</artifactId>
<version>8.0.20</version>
</dependency>
<!-- Not permitted under oracle licensing rules
<dependency>
<groupId>ojdbc</groupId>
<artifactId>ojdbc</artifactId>
<version>14</version>
</dependency>
-->
<!-- Oracle changed policy, this is from maven central -->
<!-- Oracle Free Use Terms and Conditions (FUTC) -->
<dependency>
<groupId>com.oracle.database.jdbc</groupId>
<artifactId>ojdbc8</artifactId>
<version>19.6.0.0</version>
<!-- Oracle Free Use Terms and Conditions (FUTC) -->
</dependency>
<dependency>
<groupId>org.codehaus.izpack</groupId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -527,7 +527,7 @@ private String getXmlFromUrl(ServiceContext context, String lang, String url, We
return new String(ByteStreams.toByteArray(execute.getBody()), Constants.CHARSET);
}

private void writerAsPDF(ServiceContext context, HttpServletResponse response, byte[] bytes, String lang) throws IOException, com.itextpdf.text.DocumentException {
private void writerAsPDF(ServiceContext context, HttpServletResponse response, byte[] bytes, String lang) throws IOException, com.lowagie.text.DocumentException {
final String htmlContent = new String(bytes, Constants.CHARSET);
try {
XslUtil.setNoScript();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@

import com.google.common.collect.Sets;
import com.google.common.io.Files;
import com.itextpdf.text.Image;
import com.lowagie.text.Image;
import org.apache.commons.io.IOUtils;
import org.apache.commons.lang.StringUtils;
import org.fao.geonet.api.ApiUtils;
Expand Down
Loading

0 comments on commit c52a2d9

Please sign in to comment.