Added PDF_exporter double layers

This commit is contained in:
Francesco Mangiacrapa 2023-12-19 17:30:50 +01:00
parent 9325d5aaef
commit 9c8d803fa8
5 changed files with 1161 additions and 18 deletions

View File

@ -1,14 +0,0 @@
# Changelog
All notable changes to this project will be documented in this file.
This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
## [v1.1.0-SNAPSHOT]
- Added 'Export as PDF' facility [#26026]
## [v1.0.0]
- Fixed #25201
- First release

View File

@ -2,9 +2,11 @@ package org.gcube.application.geoportaldatamapper.exporter;
import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;
import java.io.File;
import java.io.IOException;
import java.io.InputStream;
import java.net.URL;
import java.nio.file.StandardCopyOption;
import java.time.LocalDateTime;
import java.time.format.DateTimeFormatter;
import java.util.ArrayList;

View File

@ -228,7 +228,7 @@ public class BBOXConverter {
//System.out.println("offsetHeight: " + offsetHeight);
Log.debug("offset width: "+offsetHeight);
return offsetWidth < offsetHeight ? offsetHeight : offsetWidth;
return offsetWidth < offsetHeight ? offsetWidth : offsetHeight;
}
}

View File

@ -104,7 +104,7 @@ public class Geoportal_Export_To_PDF_Tests {
*
* @return the client
*/
//@Before
@Before
public void getClient() {
readContextSettings();
// assumeTrue(GCubeTest.isTestInfrastructureEnabled());
@ -117,7 +117,7 @@ public class Geoportal_Export_To_PDF_Tests {
/**
* API map box service endpoint reader.
*/
// @Test
//@Test
public void apiMapBoxServiceEndpointReader() {
try {
ServiceAccessPoint se = MapBoxEndpointReader.getMapBoxEndpoint();
@ -131,7 +131,7 @@ public class Geoportal_Export_To_PDF_Tests {
/**
* Test read project view.
*/
//@Test
@Test
public void testExportToPDF() {
ScopeProvider.instance.set(CONTEXT);