export_to_pdf #8

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

View File

@ -42,7 +42,8 @@ public class FetchPDF {
}
public synchronized int incrementAttempt() {
return attempt++;
attempt++;
return attempt;
}

View File

@ -48,7 +48,6 @@ public class HTML_Page {
+ " <script type=\"text/javascript\">\n"
+ " async function fetchPDF_URL() {\n"
+ " try {\n"
+ "\n"
+ " const response = await fetch('"+viewPdfURL+"');\n"
+ " console.log(\"polling response\");\n"
+ " return response.json();\n"
@ -58,6 +57,7 @@ public class HTML_Page {
+ " }\n"
+ " async function playPDFPoll() {\n"
+ " const response_object = await fetchPDF_URL();\n"
+ " console.log(\"response is: \" + response_object);\n"
+ " let isJsonResponse = isJsonString(response_object);\n"
+ " if (isJsonResponse) {\n"
+ " console.log(\"json response \" + response_object);\n"