findByApiKey(String apiKey);
diff --git a/src/main/java/stirling/software/SPDF/utils/PdfUtils.java b/src/main/java/stirling/software/SPDF/utils/PdfUtils.java
index c1589902..160e01da 100644
--- a/src/main/java/stirling/software/SPDF/utils/PdfUtils.java
+++ b/src/main/java/stirling/software/SPDF/utils/PdfUtils.java
@@ -6,7 +6,6 @@ import java.awt.image.RenderedImage;
import java.io.ByteArrayOutputStream;
import java.io.IOException;
import java.util.ArrayList;
-import java.util.Calendar;
import java.util.HashMap;
import java.util.List;
import java.util.zip.ZipEntry;
@@ -37,8 +36,6 @@ import org.springframework.web.multipart.MultipartFile;
import io.github.pixee.security.Filenames;
-import stirling.software.SPDF.model.PdfMetadata;
-
public class PdfUtils {
private static final Logger logger = LoggerFactory.getLogger(PdfUtils.class);
@@ -506,30 +503,6 @@ public class PdfUtils {
return baos.toByteArray();
}
- public static PdfMetadata extractMetadataFromPdf(PDDocument pdf) {
- return PdfMetadata.builder()
- .author(pdf.getDocumentInformation().getAuthor())
- .producer(pdf.getDocumentInformation().getProducer())
- .title(pdf.getDocumentInformation().getTitle())
- .creator(pdf.getDocumentInformation().getCreator())
- .subject(pdf.getDocumentInformation().getSubject())
- .keywords(pdf.getDocumentInformation().getKeywords())
- .creationDate(pdf.getDocumentInformation().getCreationDate())
- .modificationDate(pdf.getDocumentInformation().getModificationDate())
- .build();
- }
-
- public static void setMetadataToPdf(PDDocument pdf, PdfMetadata pdfMetadata) {
- pdf.getDocumentInformation().setAuthor(pdfMetadata.getAuthor());
- pdf.getDocumentInformation().setProducer(pdfMetadata.getProducer());
- pdf.getDocumentInformation().setTitle(pdfMetadata.getTitle());
- pdf.getDocumentInformation().setCreator(pdfMetadata.getCreator());
- pdf.getDocumentInformation().setSubject(pdfMetadata.getSubject());
- pdf.getDocumentInformation().setKeywords(pdfMetadata.getKeywords());
- pdf.getDocumentInformation().setCreationDate(pdfMetadata.getCreationDate());
- pdf.getDocumentInformation().setModificationDate(Calendar.getInstance());
- }
-
/** Key for storing the dimensions of a rendered image in a map. */
private record PdfRenderSettingsKey(float mediaBoxWidth, float mediaBoxHeight, int rotation) {}
diff --git a/src/main/java/stirling/software/SPDF/utils/RequestUriUtils.java b/src/main/java/stirling/software/SPDF/utils/RequestUriUtils.java
index a9c404e1..7aeab8e1 100644
--- a/src/main/java/stirling/software/SPDF/utils/RequestUriUtils.java
+++ b/src/main/java/stirling/software/SPDF/utils/RequestUriUtils.java
@@ -12,6 +12,7 @@ public class RequestUriUtils {
return requestURI.startsWith(contextPath + "/css/")
|| requestURI.startsWith(contextPath + "/fonts/")
|| requestURI.startsWith(contextPath + "/js/")
+ || requestURI.endsWith(contextPath + "robots.txt")
|| requestURI.startsWith(contextPath + "/images/")
|| requestURI.startsWith(contextPath + "/public/")
|| requestURI.startsWith(contextPath + "/pdfjs/")
@@ -22,4 +23,26 @@ public class RequestUriUtils {
|| requestURI.endsWith(".webmanifest")
|| requestURI.startsWith(contextPath + "/api/v1/info/status");
}
+
+ public static boolean isTrackableResource(String requestURI) {
+ return isTrackableResource("", requestURI);
+ }
+
+ public static boolean isTrackableResource(String contextPath, String requestURI) {
+ return !(requestURI.startsWith("/js")
+ || requestURI.startsWith("/v1/api-docs")
+ || requestURI.endsWith("robots.txt")
+ || requestURI.startsWith("/images")
+ || requestURI.endsWith(".png")
+ || requestURI.endsWith(".ico")
+ || requestURI.endsWith(".css")
+ || requestURI.endsWith(".map")
+ || requestURI.endsWith(".svg")
+ || requestURI.endsWith(".js")
+ || requestURI.contains("swagger")
+ || requestURI.startsWith("/api/v1/info")
+ || requestURI.startsWith("/site.webmanifest")
+ || requestURI.startsWith("/fonts")
+ || requestURI.startsWith("/pdfjs"));
+ }
}
diff --git a/src/main/resources/messages_ar_AR.properties b/src/main/resources/messages_ar_AR.properties
index 4b19d941..edf93176 100644
--- a/src/main/resources/messages_ar_AR.properties
+++ b/src/main/resources/messages_ar_AR.properties
@@ -77,7 +77,11 @@ color=لون
sponsor=راعٍ
info=معلومات
-
+legal.privacy=Privacy Policy
+legal.terms=Terms and Conditions
+legal.accessibility=Accessibility
+legal.cookie=Cookie Policy
+legal.impressum=Impressum
###############
# Pipeline #
diff --git a/src/main/resources/messages_bg_BG.properties b/src/main/resources/messages_bg_BG.properties
index 442f8789..859fb0a2 100644
--- a/src/main/resources/messages_bg_BG.properties
+++ b/src/main/resources/messages_bg_BG.properties
@@ -77,7 +77,11 @@ color=Цвят
sponsor=Спонсор
info=Info
-
+legal.privacy=Privacy Policy
+legal.terms=Terms and Conditions
+legal.accessibility=Accessibility
+legal.cookie=Cookie Policy
+legal.impressum=Impressum
###############
# Pipeline #
diff --git a/src/main/resources/messages_ca_CA.properties b/src/main/resources/messages_ca_CA.properties
index 4673d2d4..afa0eb1d 100644
--- a/src/main/resources/messages_ca_CA.properties
+++ b/src/main/resources/messages_ca_CA.properties
@@ -77,7 +77,11 @@ color=Color
sponsor=Sponsor
info=Info
-
+legal.privacy=Privacy Policy
+legal.terms=Terms and Conditions
+legal.accessibility=Accessibility
+legal.cookie=Cookie Policy
+legal.impressum=Impressum
###############
# Pipeline #
diff --git a/src/main/resources/messages_cs_CZ.properties b/src/main/resources/messages_cs_CZ.properties
index a5396d39..ef0cdb26 100644
--- a/src/main/resources/messages_cs_CZ.properties
+++ b/src/main/resources/messages_cs_CZ.properties
@@ -77,7 +77,11 @@ color=Barva
sponsor=Sponzor
info=Info
-
+legal.privacy=Privacy Policy
+legal.terms=Terms and Conditions
+legal.accessibility=Accessibility
+legal.cookie=Cookie Policy
+legal.impressum=Impressum
###############
# Pipeline #
diff --git a/src/main/resources/messages_da_DK.properties b/src/main/resources/messages_da_DK.properties
index 198c9d82..1260d104 100644
--- a/src/main/resources/messages_da_DK.properties
+++ b/src/main/resources/messages_da_DK.properties
@@ -77,7 +77,11 @@ color=Farve
sponsor=Sponsor
info=Info
-
+legal.privacy=Privacy Policy
+legal.terms=Terms and Conditions
+legal.accessibility=Accessibility
+legal.cookie=Cookie Policy
+legal.impressum=Impressum
###############
# Pipeline #
diff --git a/src/main/resources/messages_de_DE.properties b/src/main/resources/messages_de_DE.properties
index a9034445..ceaf679c 100644
--- a/src/main/resources/messages_de_DE.properties
+++ b/src/main/resources/messages_de_DE.properties
@@ -77,7 +77,11 @@ color=Farbe
sponsor=Sponsor
info=Informationen
-
+legal.privacy=Privacy Policy
+legal.terms=Terms and Conditions
+legal.accessibility=Accessibility
+legal.cookie=Cookie Policy
+legal.impressum=Impressum
###############
# Pipeline #
diff --git a/src/main/resources/messages_el_GR.properties b/src/main/resources/messages_el_GR.properties
index ba1c4e57..6e4c1df4 100644
--- a/src/main/resources/messages_el_GR.properties
+++ b/src/main/resources/messages_el_GR.properties
@@ -77,7 +77,11 @@ color=Χρώμα
sponsor=Yποστηρικτής
info=Info
-
+legal.privacy=Privacy Policy
+legal.terms=Terms and Conditions
+legal.accessibility=Accessibility
+legal.cookie=Cookie Policy
+legal.impressum=Impressum
###############
# Pipeline #
diff --git a/src/main/resources/messages_en_GB.properties b/src/main/resources/messages_en_GB.properties
index 46a28f6e..206fae04 100644
--- a/src/main/resources/messages_en_GB.properties
+++ b/src/main/resources/messages_en_GB.properties
@@ -77,7 +77,11 @@ color=Color
sponsor=Sponsor
info=Info
-
+legal.privacy=Privacy Policy
+legal.terms=Terms and Conditions
+legal.accessibility=Accessibility
+legal.cookie=Cookie Policy
+legal.impressum=Impressum
###############
# Pipeline #
diff --git a/src/main/resources/messages_en_US.properties b/src/main/resources/messages_en_US.properties
index 58ae0f84..3fcfa3d5 100644
--- a/src/main/resources/messages_en_US.properties
+++ b/src/main/resources/messages_en_US.properties
@@ -77,7 +77,11 @@ color=Color
sponsor=Sponsor
info=Info
-
+legal.privacy=Privacy Policy
+legal.terms=Terms and Conditions
+legal.accessibility=Accessibility
+legal.cookie=Cookie Policy
+legal.impressum=Impressum
###############
# Pipeline #
diff --git a/src/main/resources/messages_es_ES.properties b/src/main/resources/messages_es_ES.properties
index cd28db08..31dcacd5 100644
--- a/src/main/resources/messages_es_ES.properties
+++ b/src/main/resources/messages_es_ES.properties
@@ -77,7 +77,11 @@ color=Color
sponsor=Patrocinador
info=Info
-
+legal.privacy=Privacy Policy
+legal.terms=Terms and Conditions
+legal.accessibility=Accessibility
+legal.cookie=Cookie Policy
+legal.impressum=Impressum
###############
# Pipeline #
diff --git a/src/main/resources/messages_eu_ES.properties b/src/main/resources/messages_eu_ES.properties
index 5a297eac..1ebbf542 100644
--- a/src/main/resources/messages_eu_ES.properties
+++ b/src/main/resources/messages_eu_ES.properties
@@ -77,7 +77,11 @@ color=Color
sponsor=Sponsor
info=Info
-
+legal.privacy=Privacy Policy
+legal.terms=Terms and Conditions
+legal.accessibility=Accessibility
+legal.cookie=Cookie Policy
+legal.impressum=Impressum
###############
# Pipeline #
diff --git a/src/main/resources/messages_fr_FR.properties b/src/main/resources/messages_fr_FR.properties
index f51e31d2..b563103e 100644
--- a/src/main/resources/messages_fr_FR.properties
+++ b/src/main/resources/messages_fr_FR.properties
@@ -77,7 +77,11 @@ color=Couleur
sponsor=Sponsor
info=Info
-
+legal.privacy=Privacy Policy
+legal.terms=Terms and Conditions
+legal.accessibility=Accessibility
+legal.cookie=Cookie Policy
+legal.impressum=Impressum
###############
# Pipeline #
diff --git a/src/main/resources/messages_ga_IE.properties b/src/main/resources/messages_ga_IE.properties
index 65b90cfa..8223da8a 100644
--- a/src/main/resources/messages_ga_IE.properties
+++ b/src/main/resources/messages_ga_IE.properties
@@ -77,7 +77,11 @@ color=Dath
sponsor=Urraitheoir
info=Eolas
-
+legal.privacy=Privacy Policy
+legal.terms=Terms and Conditions
+legal.accessibility=Accessibility
+legal.cookie=Cookie Policy
+legal.impressum=Impressum
###############
# Pipeline #
diff --git a/src/main/resources/messages_hi_IN.properties b/src/main/resources/messages_hi_IN.properties
index 24e68fbd..4c7137a1 100644
--- a/src/main/resources/messages_hi_IN.properties
+++ b/src/main/resources/messages_hi_IN.properties
@@ -77,7 +77,11 @@ color=Color
sponsor=Sponsor
info=Info
-
+legal.privacy=Privacy Policy
+legal.terms=Terms and Conditions
+legal.accessibility=Accessibility
+legal.cookie=Cookie Policy
+legal.impressum=Impressum
###############
# Pipeline #
diff --git a/src/main/resources/messages_hr_HR.properties b/src/main/resources/messages_hr_HR.properties
index d669f1f7..980bda1a 100644
--- a/src/main/resources/messages_hr_HR.properties
+++ b/src/main/resources/messages_hr_HR.properties
@@ -77,7 +77,11 @@ color=Boja
sponsor=Sponzor
info=Info
-
+legal.privacy=Privacy Policy
+legal.terms=Terms and Conditions
+legal.accessibility=Accessibility
+legal.cookie=Cookie Policy
+legal.impressum=Impressum
###############
# Pipeline #
diff --git a/src/main/resources/messages_hu_HU.properties b/src/main/resources/messages_hu_HU.properties
index 417c3909..11f1d8ba 100644
--- a/src/main/resources/messages_hu_HU.properties
+++ b/src/main/resources/messages_hu_HU.properties
@@ -77,7 +77,11 @@ color=Color
sponsor=Sponsor
info=Info
-
+legal.privacy=Privacy Policy
+legal.terms=Terms and Conditions
+legal.accessibility=Accessibility
+legal.cookie=Cookie Policy
+legal.impressum=Impressum
###############
# Pipeline #
diff --git a/src/main/resources/messages_id_ID.properties b/src/main/resources/messages_id_ID.properties
index 109b57c0..dba627cd 100644
--- a/src/main/resources/messages_id_ID.properties
+++ b/src/main/resources/messages_id_ID.properties
@@ -77,7 +77,11 @@ color=Color
sponsor=Sponsor
info=Info
-
+legal.privacy=Privacy Policy
+legal.terms=Terms and Conditions
+legal.accessibility=Accessibility
+legal.cookie=Cookie Policy
+legal.impressum=Impressum
###############
# Pipeline #
diff --git a/src/main/resources/messages_it_IT.properties b/src/main/resources/messages_it_IT.properties
index b680c4cb..58505fcd 100644
--- a/src/main/resources/messages_it_IT.properties
+++ b/src/main/resources/messages_it_IT.properties
@@ -77,7 +77,11 @@ color=Colore
sponsor=Sponsor
info=Info
-
+legal.privacy=Privacy Policy
+legal.terms=Terms and Conditions
+legal.accessibility=Accessibility
+legal.cookie=Cookie Policy
+legal.impressum=Impressum
###############
# Pipeline #
diff --git a/src/main/resources/messages_ja_JP.properties b/src/main/resources/messages_ja_JP.properties
index b7e64251..c0a441b8 100644
--- a/src/main/resources/messages_ja_JP.properties
+++ b/src/main/resources/messages_ja_JP.properties
@@ -77,7 +77,11 @@ color=色
sponsor=スポンサー
info=Info
-
+legal.privacy=Privacy Policy
+legal.terms=Terms and Conditions
+legal.accessibility=Accessibility
+legal.cookie=Cookie Policy
+legal.impressum=Impressum
###############
# Pipeline #
diff --git a/src/main/resources/messages_ko_KR.properties b/src/main/resources/messages_ko_KR.properties
index 3110922a..3c47f3c5 100644
--- a/src/main/resources/messages_ko_KR.properties
+++ b/src/main/resources/messages_ko_KR.properties
@@ -77,7 +77,11 @@ color=색상
sponsor=스폰서
info=Info
-
+legal.privacy=Privacy Policy
+legal.terms=Terms and Conditions
+legal.accessibility=Accessibility
+legal.cookie=Cookie Policy
+legal.impressum=Impressum
###############
# Pipeline #
diff --git a/src/main/resources/messages_nl_NL.properties b/src/main/resources/messages_nl_NL.properties
index b0ed1ca8..643e9ebe 100644
--- a/src/main/resources/messages_nl_NL.properties
+++ b/src/main/resources/messages_nl_NL.properties
@@ -77,7 +77,11 @@ color=Kleur
sponsor=Sponsor
info=Info
-
+legal.privacy=Privacy Policy
+legal.terms=Terms and Conditions
+legal.accessibility=Accessibility
+legal.cookie=Cookie Policy
+legal.impressum=Impressum
###############
# Pipeline #
diff --git a/src/main/resources/messages_no_NB.properties b/src/main/resources/messages_no_NB.properties
index a9794fbb..73309cb2 100644
--- a/src/main/resources/messages_no_NB.properties
+++ b/src/main/resources/messages_no_NB.properties
@@ -77,7 +77,11 @@ color=Farge
sponsor=Sponsor
info=Info
-
+legal.privacy=Privacy Policy
+legal.terms=Terms and Conditions
+legal.accessibility=Accessibility
+legal.cookie=Cookie Policy
+legal.impressum=Impressum
###############
# Pipeline #
diff --git a/src/main/resources/messages_pl_PL.properties b/src/main/resources/messages_pl_PL.properties
index 7c4556ab..0800397a 100755
--- a/src/main/resources/messages_pl_PL.properties
+++ b/src/main/resources/messages_pl_PL.properties
@@ -77,7 +77,11 @@ color=kolor
sponsor=sponsor
info=informacje
-
+legal.privacy=Privacy Policy
+legal.terms=Terms and Conditions
+legal.accessibility=Accessibility
+legal.cookie=Cookie Policy
+legal.impressum=Impressum
###############
# Pipeline #
diff --git a/src/main/resources/messages_pt_BR.properties b/src/main/resources/messages_pt_BR.properties
index 4f3804c0..f6e93ba2 100644
--- a/src/main/resources/messages_pt_BR.properties
+++ b/src/main/resources/messages_pt_BR.properties
@@ -77,7 +77,11 @@ color=Cor
sponsor=Patrocine
info=Informações
-
+legal.privacy=Privacy Policy
+legal.terms=Terms and Conditions
+legal.accessibility=Accessibility
+legal.cookie=Cookie Policy
+legal.impressum=Impressum
###############
# Pipeline #
diff --git a/src/main/resources/messages_pt_PT.properties b/src/main/resources/messages_pt_PT.properties
index 9d13fd99..bce2fb45 100644
--- a/src/main/resources/messages_pt_PT.properties
+++ b/src/main/resources/messages_pt_PT.properties
@@ -77,7 +77,11 @@ color=Color
sponsor=Sponsor
info=Info
-
+legal.privacy=Privacy Policy
+legal.terms=Terms and Conditions
+legal.accessibility=Accessibility
+legal.cookie=Cookie Policy
+legal.impressum=Impressum
###############
# Pipeline #
diff --git a/src/main/resources/messages_ro_RO.properties b/src/main/resources/messages_ro_RO.properties
index e4d96c25..7c800454 100644
--- a/src/main/resources/messages_ro_RO.properties
+++ b/src/main/resources/messages_ro_RO.properties
@@ -77,7 +77,11 @@ color=Culoare
sponsor=Sponsor
info=Informații
-
+legal.privacy=Privacy Policy
+legal.terms=Terms and Conditions
+legal.accessibility=Accessibility
+legal.cookie=Cookie Policy
+legal.impressum=Impressum
###############
# Pipeline #
diff --git a/src/main/resources/messages_ru_RU.properties b/src/main/resources/messages_ru_RU.properties
index 4fd23c09..4c02d934 100644
--- a/src/main/resources/messages_ru_RU.properties
+++ b/src/main/resources/messages_ru_RU.properties
@@ -77,7 +77,11 @@ color=Цвет
sponsor=Спонсор
info=Info
-
+legal.privacy=Privacy Policy
+legal.terms=Terms and Conditions
+legal.accessibility=Accessibility
+legal.cookie=Cookie Policy
+legal.impressum=Impressum
###############
# Pipeline #
diff --git a/src/main/resources/messages_sk_SK.properties b/src/main/resources/messages_sk_SK.properties
index 3452d732..968f29a8 100644
--- a/src/main/resources/messages_sk_SK.properties
+++ b/src/main/resources/messages_sk_SK.properties
@@ -77,7 +77,11 @@ color=Farba
sponsor=Sponzorovať
info=Info
-
+legal.privacy=Privacy Policy
+legal.terms=Terms and Conditions
+legal.accessibility=Accessibility
+legal.cookie=Cookie Policy
+legal.impressum=Impressum
###############
# Pipeline #
diff --git a/src/main/resources/messages_sr_LATN_RS.properties b/src/main/resources/messages_sr_LATN_RS.properties
index 53226f25..6744321f 100644
--- a/src/main/resources/messages_sr_LATN_RS.properties
+++ b/src/main/resources/messages_sr_LATN_RS.properties
@@ -77,7 +77,11 @@ color=Color
sponsor=Sponsor
info=Info
-
+legal.privacy=Privacy Policy
+legal.terms=Terms and Conditions
+legal.accessibility=Accessibility
+legal.cookie=Cookie Policy
+legal.impressum=Impressum
###############
# Pipeline #
diff --git a/src/main/resources/messages_sv_SE.properties b/src/main/resources/messages_sv_SE.properties
index 3d159d3a..9a6232b4 100644
--- a/src/main/resources/messages_sv_SE.properties
+++ b/src/main/resources/messages_sv_SE.properties
@@ -77,7 +77,11 @@ color=Färg
sponsor=Sponsor
info=Info
-
+legal.privacy=Privacy Policy
+legal.terms=Terms and Conditions
+legal.accessibility=Accessibility
+legal.cookie=Cookie Policy
+legal.impressum=Impressum
###############
# Pipeline #
diff --git a/src/main/resources/messages_th_TH.properties b/src/main/resources/messages_th_TH.properties
index ae82a70f..c8e6232e 100644
--- a/src/main/resources/messages_th_TH.properties
+++ b/src/main/resources/messages_th_TH.properties
@@ -77,7 +77,11 @@ color=สี
sponsor=ผู้สนับสนุน
info=ข้อมูล
-
+legal.privacy=Privacy Policy
+legal.terms=Terms and Conditions
+legal.accessibility=Accessibility
+legal.cookie=Cookie Policy
+legal.impressum=Impressum
###############
# Pipeline #
diff --git a/src/main/resources/messages_tr_TR.properties b/src/main/resources/messages_tr_TR.properties
index c5d72ccf..0dd75373 100644
--- a/src/main/resources/messages_tr_TR.properties
+++ b/src/main/resources/messages_tr_TR.properties
@@ -77,7 +77,11 @@ color=Renk
sponsor=Bağış
info=Bilgi
-
+legal.privacy=Privacy Policy
+legal.terms=Terms and Conditions
+legal.accessibility=Accessibility
+legal.cookie=Cookie Policy
+legal.impressum=Impressum
###############
# Pipeline #
diff --git a/src/main/resources/messages_uk_UA.properties b/src/main/resources/messages_uk_UA.properties
index 41ca0038..e91a09fd 100644
--- a/src/main/resources/messages_uk_UA.properties
+++ b/src/main/resources/messages_uk_UA.properties
@@ -77,7 +77,11 @@ color=Колір
sponsor=Спонсор
info=Інформація
-
+legal.privacy=Privacy Policy
+legal.terms=Terms and Conditions
+legal.accessibility=Accessibility
+legal.cookie=Cookie Policy
+legal.impressum=Impressum
###############
# Pipeline #
diff --git a/src/main/resources/messages_vi_VN.properties b/src/main/resources/messages_vi_VN.properties
index 28ef3fa1..6d417a96 100644
--- a/src/main/resources/messages_vi_VN.properties
+++ b/src/main/resources/messages_vi_VN.properties
@@ -77,7 +77,11 @@ color=Màu sắc
sponsor=Nhà tài trợ
info=Thông tin
-
+legal.privacy=Privacy Policy
+legal.terms=Terms and Conditions
+legal.accessibility=Accessibility
+legal.cookie=Cookie Policy
+legal.impressum=Impressum
###############
# Pipeline #
diff --git a/src/main/resources/messages_zh_CN.properties b/src/main/resources/messages_zh_CN.properties
index e0f312cf..a1c2059a 100644
--- a/src/main/resources/messages_zh_CN.properties
+++ b/src/main/resources/messages_zh_CN.properties
@@ -77,7 +77,11 @@ color=颜色
sponsor=赞助
info=信息
-
+legal.privacy=Privacy Policy
+legal.terms=Terms and Conditions
+legal.accessibility=Accessibility
+legal.cookie=Cookie Policy
+legal.impressum=Impressum
###############
# Pipeline #
diff --git a/src/main/resources/messages_zh_TW.properties b/src/main/resources/messages_zh_TW.properties
index 096a5625..6b523d13 100644
--- a/src/main/resources/messages_zh_TW.properties
+++ b/src/main/resources/messages_zh_TW.properties
@@ -77,7 +77,11 @@ color=顏色
sponsor=贊助
info=Info
-
+legal.privacy=Privacy Policy
+legal.terms=Terms and Conditions
+legal.accessibility=Accessibility
+legal.cookie=Cookie Policy
+legal.impressum=Impressum
###############
# Pipeline #
diff --git a/src/main/resources/settings.yml.template b/src/main/resources/settings.yml.template
index 2e06ea9f..2a5400b6 100644
--- a/src/main/resources/settings.yml.template
+++ b/src/main/resources/settings.yml.template
@@ -48,6 +48,22 @@ security:
scopes: openid, profile, email # Specify the scopes for which the application will request permissions
provider: google # Set this to your OAuth provider's name, e.g., 'google' or 'keycloak'
+# Enterprise edition settings unused for now please ignore!
+EnterpriseEdition:
+ key: 00000000-0000-0000-0000-000000000000
+ CustomMetadata:
+ autoUpdateMetadata: true # set to 'true' to automatically update metadata with below values
+ author: username # Supports text such as 'John Doe' or types such as username
+ creator: Stirling-PDF # Supports text such as 'Company-PDF'
+ producer: Stirling-PDF # Supports text such as 'Company-PDF'
+
+legal:
+ termsAndConditions: '' # URL to the terms and conditions of your application (e.g. https://example.com/terms) Empty string to disable or filename to load from local file in static folder
+ privacyPolicy: '' # URL to the privacy policy of your application (e.g. https://example.com/privacy) Empty string to disable or filename to load from local file in static folder
+ accessibilityStatement: '' # URL to the accessibility statement of your application (e.g. https://example.com/accessibility) Empty string to disable or filename to load from local file in static folder
+ cookiePolicy: '' # URL to the cookie policy of your application (e.g. https://example.com/cookie) Empty string to disable or filename to load from local file in static folder
+ impressum: '' # URL to the impressum of your application (e.g. https://example.com/impressum) Empty string to disable or filename to load from local file in static folder
+
system:
defaultLocale: en-US # Set the default language (e.g. 'de-DE', 'fr-FR', etc)
googlevisibility: false # 'true' to allow Google visibility (via robots.txt), 'false' to disallow
diff --git a/src/main/resources/static/js/multitool/PdfContainer.js b/src/main/resources/static/js/multitool/PdfContainer.js
index 0654cac9..55635c69 100644
--- a/src/main/resources/static/js/multitool/PdfContainer.js
+++ b/src/main/resources/static/js/multitool/PdfContainer.js
@@ -446,7 +446,7 @@ function detectImageType(uint8Array) {
// Check for TIFF signature (little-endian and big-endian)
if ((uint8Array[0] === 73 && uint8Array[1] === 73 && uint8Array[2] === 42 && uint8Array[3] === 0) ||
- (uint8Array[0] === 77 && uint8Array[1] === 77 && uint8Array[2] === 0 && uint8Array[3] === 42)) {
+ (uint8Array[0] === 77 && uint8Array[1] === 77 && uint8Array[2] === 0 && uint8Array[3] === 42)) {
return 'TIFF';
}
diff --git a/src/main/resources/templates/fragments/common.html b/src/main/resources/templates/fragments/common.html
index 59a3b5f4..96d52157 100644
--- a/src/main/resources/templates/fragments/common.html
+++ b/src/main/resources/templates/fragments/common.html
@@ -24,7 +24,7 @@
-
+
@@ -35,10 +35,10 @@
-
+
-
+
@@ -58,17 +58,21 @@
-
+
+
+
+
+
-
+
-
+
diff --git a/src/main/resources/templates/fragments/footer.html b/src/main/resources/templates/fragments/footer.html
index 7d0c1a54..40f64419 100644
--- a/src/main/resources/templates/fragments/footer.html
+++ b/src/main/resources/templates/fragments/footer.html
@@ -5,6 +5,11 @@
diff --git a/src/main/resources/templates/misc/add-page-numbers.html b/src/main/resources/templates/misc/add-page-numbers.html
index eb9a87de..186253b6 100644
--- a/src/main/resources/templates/misc/add-page-numbers.html
+++ b/src/main/resources/templates/misc/add-page-numbers.html
@@ -94,10 +94,9 @@
diff --git a/src/main/resources/templates/multi-tool.html b/src/main/resources/templates/multi-tool.html
index 9f165014..61fcc28e 100644
--- a/src/main/resources/templates/multi-tool.html
+++ b/src/main/resources/templates/multi-tool.html
@@ -110,4 +110,4 @@