export_to_pdf #8

Merged
francesco.mangiacrapa merged 84 commits from export_to_pdf into master 2024-06-28 15:17:39 +02:00
1 changed files with 3 additions and 4 deletions
Showing only changes of commit e382719f30 - Show all commits

View File

@ -13,7 +13,6 @@ public class HTML_Page {
public static String entityHTMLMessage(String action, String message, boolean waiting, String viewPdfURL) { public static String entityHTMLMessage(String action, String message, boolean waiting, String viewPdfURL) {
String newHTML = "<html>\n" String newHTML = "<html>\n"
+ "\n"
+ " <head>\n" + " <head>\n"
+ " <meta http-equiv=\"content-type\" content=\"text/html; charset=UTF-8\">\n" + " <meta http-equiv=\"content-type\" content=\"text/html; charset=UTF-8\">\n"
+ " <style>\n" + " <style>\n"
@ -50,7 +49,7 @@ public class HTML_Page {
+ " async function fetchPDF_URL() {\n" + " async function fetchPDF_URL() {\n"
+ " try {\n" + " try {\n"
+ "\n" + "\n"
+ " const response = await fetch("+viewPdfURL+");\n" + " const response = await fetch('"+viewPdfURL+"');\n"
+ " console.log(\"polling response\");\n" + " console.log(\"polling response\");\n"
+ " return response.json();\n" + " return response.json();\n"
+ " } catch (error) {\n" + " } catch (error) {\n"
@ -58,8 +57,8 @@ public class HTML_Page {
+ " }\n" + " }\n"
+ " }\n" + " }\n"
+ " async function playPDFPoll() {\n" + " async function playPDFPoll() {\n"
+ " const response_object = await fetchPDF_URL();\n" + " let response_object = await fetchPDF_URL();\n"
+ " isJsonresponse = isJsonString(response_object);\n" + " let isJsonResponse = isJsonString(response_object);\n"
+ " if (isJsonResponse) {\n" + " if (isJsonResponse) {\n"
+ " console.log(\"json response \" + response_object);\n" + " console.log(\"json response \" + response_object);\n"
+ " if (!(response_object.url === null || response_object.url === undefined)) {\n" + " if (!(response_object.url === null || response_object.url === undefined)) {\n"