From fd93dad9a5cea29d097121d2f5cee137e2b0d80a Mon Sep 17 00:00:00 2001 From: reecebrowne <74901996+reecebrowne@users.noreply.github.com> Date: Fri, 15 Nov 2024 18:57:51 +0000 Subject: [PATCH 1/2] Multitool advertising (#2247) * Multi-tool advert on pages that share functionality * Update translation files Signed-off-by: GitHub Action --------- Signed-off-by: GitHub Action Co-authored-by: GitHub Action --- src/main/resources/messages_ar_AR.properties | 4 + src/main/resources/messages_bg_BG.properties | 4 + src/main/resources/messages_ca_CA.properties | 4 + src/main/resources/messages_cs_CZ.properties | 4 + src/main/resources/messages_da_DK.properties | 4 + src/main/resources/messages_de_DE.properties | 4 + src/main/resources/messages_el_GR.properties | 4 + src/main/resources/messages_en_GB.properties | 4 + src/main/resources/messages_en_US.properties | 4 + src/main/resources/messages_es_ES.properties | 4 + src/main/resources/messages_eu_ES.properties | 4 + src/main/resources/messages_fr_FR.properties | 4 + src/main/resources/messages_ga_IE.properties | 4 + src/main/resources/messages_hi_IN.properties | 4 + src/main/resources/messages_hr_HR.properties | 4 + src/main/resources/messages_hu_HU.properties | 4 + src/main/resources/messages_id_ID.properties | 4 + src/main/resources/messages_it_IT.properties | 4 + src/main/resources/messages_ja_JP.properties | 4 + src/main/resources/messages_ko_KR.properties | 4 + src/main/resources/messages_nl_NL.properties | 4 + src/main/resources/messages_no_NB.properties | 4 + src/main/resources/messages_pl_PL.properties | 4 + src/main/resources/messages_pt_BR.properties | 4 + src/main/resources/messages_pt_PT.properties | 4 + src/main/resources/messages_ro_RO.properties | 4 + src/main/resources/messages_ru_RU.properties | 4 + src/main/resources/messages_sk_SK.properties | 4 + .../resources/messages_sr_LATN_RS.properties | 4 + src/main/resources/messages_sv_SE.properties | 4 + src/main/resources/messages_th_TH.properties | 4 + src/main/resources/messages_tr_TR.properties | 4 + src/main/resources/messages_uk_UA.properties | 4 + src/main/resources/messages_vi_VN.properties | 4 + src/main/resources/messages_zh_CN.properties | 4 + src/main/resources/messages_zh_TW.properties | 4 + .../resources/templates/extract-page.html | 62 +++--- .../templates/fragments/multi-toolAdvert.html | 57 +++++ src/main/resources/templates/merge-pdfs.html | 1 + .../resources/templates/pdf-organizer.html | 111 +++++----- .../resources/templates/remove-pages.html | 72 +++--- src/main/resources/templates/rotate-pdf.html | 207 +++++++++--------- src/main/resources/templates/split-pdfs.html | 1 + 43 files changed, 447 insertions(+), 208 deletions(-) create mode 100644 src/main/resources/templates/fragments/multi-toolAdvert.html diff --git a/src/main/resources/messages_ar_AR.properties b/src/main/resources/messages_ar_AR.properties index bfc1bb96..be666419 100644 --- a/src/main/resources/messages_ar_AR.properties +++ b/src/main/resources/messages_ar_AR.properties @@ -942,6 +942,10 @@ multiTool.page=Page multiTool.deleteSelected=Delete Selected multiTool.downloadAll=Export multiTool.downloadSelected=Export Selected + +#multiTool-advert +multiTool-advert.message=This feature is also available in our multi-tool page. Check it out for enhanced page-by-page UI and additional features! + #view pdf viewPdf.title=عرض PDF viewPdf.header=عرض PDF diff --git a/src/main/resources/messages_bg_BG.properties b/src/main/resources/messages_bg_BG.properties index 34cf2b6d..f48333c0 100644 --- a/src/main/resources/messages_bg_BG.properties +++ b/src/main/resources/messages_bg_BG.properties @@ -942,6 +942,10 @@ multiTool.page=Page multiTool.deleteSelected=Delete Selected multiTool.downloadAll=Export multiTool.downloadSelected=Export Selected + +#multiTool-advert +multiTool-advert.message=This feature is also available in our multi-tool page. Check it out for enhanced page-by-page UI and additional features! + #view pdf viewPdf.title=Преглед на PDF viewPdf.header=Преглед на PDF diff --git a/src/main/resources/messages_ca_CA.properties b/src/main/resources/messages_ca_CA.properties index 45bcc122..39fe9c6b 100644 --- a/src/main/resources/messages_ca_CA.properties +++ b/src/main/resources/messages_ca_CA.properties @@ -942,6 +942,10 @@ multiTool.page=Page multiTool.deleteSelected=Delete Selected multiTool.downloadAll=Export multiTool.downloadSelected=Export Selected + +#multiTool-advert +multiTool-advert.message=This feature is also available in our multi-tool page. Check it out for enhanced page-by-page UI and additional features! + #view pdf viewPdf.title=Visualitza PDF viewPdf.header=Visualitza PDF diff --git a/src/main/resources/messages_cs_CZ.properties b/src/main/resources/messages_cs_CZ.properties index a6a91b61..40151c81 100644 --- a/src/main/resources/messages_cs_CZ.properties +++ b/src/main/resources/messages_cs_CZ.properties @@ -942,6 +942,10 @@ multiTool.page=Page multiTool.deleteSelected=Delete Selected multiTool.downloadAll=Export multiTool.downloadSelected=Export Selected + +#multiTool-advert +multiTool-advert.message=This feature is also available in our multi-tool page. Check it out for enhanced page-by-page UI and additional features! + #view pdf viewPdf.title=Zobrazit PDF viewPdf.header=Zobrazit PDF diff --git a/src/main/resources/messages_da_DK.properties b/src/main/resources/messages_da_DK.properties index 0844523d..f586b9e6 100644 --- a/src/main/resources/messages_da_DK.properties +++ b/src/main/resources/messages_da_DK.properties @@ -942,6 +942,10 @@ multiTool.page=Page multiTool.deleteSelected=Delete Selected multiTool.downloadAll=Export multiTool.downloadSelected=Export Selected + +#multiTool-advert +multiTool-advert.message=This feature is also available in our multi-tool page. Check it out for enhanced page-by-page UI and additional features! + #view pdf viewPdf.title=Se PDF viewPdf.header=Se PDF diff --git a/src/main/resources/messages_de_DE.properties b/src/main/resources/messages_de_DE.properties index af99617b..35447677 100644 --- a/src/main/resources/messages_de_DE.properties +++ b/src/main/resources/messages_de_DE.properties @@ -942,6 +942,10 @@ multiTool.page=Seite multiTool.deleteSelected=Auswahl löschen multiTool.downloadAll=Downloaden multiTool.downloadSelected=Auswahl downloaden + +#multiTool-advert +multiTool-advert.message=This feature is also available in our multi-tool page. Check it out for enhanced page-by-page UI and additional features! + #view pdf viewPdf.title=PDF anzeigen viewPdf.header=PDF anzeigen diff --git a/src/main/resources/messages_el_GR.properties b/src/main/resources/messages_el_GR.properties index 78f9d742..87c5fe4f 100644 --- a/src/main/resources/messages_el_GR.properties +++ b/src/main/resources/messages_el_GR.properties @@ -942,6 +942,10 @@ multiTool.page=Page multiTool.deleteSelected=Delete Selected multiTool.downloadAll=Export multiTool.downloadSelected=Export Selected + +#multiTool-advert +multiTool-advert.message=This feature is also available in our multi-tool page. Check it out for enhanced page-by-page UI and additional features! + #view pdf viewPdf.title=Προβολή PDF viewPdf.header=Προβολή PDF diff --git a/src/main/resources/messages_en_GB.properties b/src/main/resources/messages_en_GB.properties index d04c674f..6fcc5e48 100644 --- a/src/main/resources/messages_en_GB.properties +++ b/src/main/resources/messages_en_GB.properties @@ -942,6 +942,10 @@ multiTool.page=Page multiTool.deleteSelected=Delete Selected multiTool.downloadAll=Export multiTool.downloadSelected=Export Selected + +#multiTool-advert +multiTool-advert.message=This feature is also available in our multi-tool page. Check it out for enhanced page-by-page UI and additional features! + #view pdf viewPdf.title=View PDF viewPdf.header=View PDF diff --git a/src/main/resources/messages_en_US.properties b/src/main/resources/messages_en_US.properties index 0ca78048..c9f02344 100644 --- a/src/main/resources/messages_en_US.properties +++ b/src/main/resources/messages_en_US.properties @@ -942,6 +942,10 @@ multiTool.page=Page multiTool.deleteSelected=Delete Selected multiTool.downloadAll=Export multiTool.downloadSelected=Export Selected + +#multiTool-advert +multiTool-advert.message=This feature is also available in our multi-tool page. Check it out for enhanced page-by-page UI and additional features! + #view pdf viewPdf.title=View PDF viewPdf.header=View PDF diff --git a/src/main/resources/messages_es_ES.properties b/src/main/resources/messages_es_ES.properties index ac18e2ff..dd949963 100644 --- a/src/main/resources/messages_es_ES.properties +++ b/src/main/resources/messages_es_ES.properties @@ -942,6 +942,10 @@ multiTool.page=Page multiTool.deleteSelected=Delete Selected multiTool.downloadAll=Export multiTool.downloadSelected=Export Selected + +#multiTool-advert +multiTool-advert.message=This feature is also available in our multi-tool page. Check it out for enhanced page-by-page UI and additional features! + #view pdf viewPdf.title=Ver PDF viewPdf.header=Ver PDF diff --git a/src/main/resources/messages_eu_ES.properties b/src/main/resources/messages_eu_ES.properties index 9e05c04e..31c6b394 100644 --- a/src/main/resources/messages_eu_ES.properties +++ b/src/main/resources/messages_eu_ES.properties @@ -942,6 +942,10 @@ multiTool.page=Page multiTool.deleteSelected=Delete Selected multiTool.downloadAll=Export multiTool.downloadSelected=Export Selected + +#multiTool-advert +multiTool-advert.message=This feature is also available in our multi-tool page. Check it out for enhanced page-by-page UI and additional features! + #view pdf viewPdf.title=View PDF viewPdf.header=View PDF diff --git a/src/main/resources/messages_fr_FR.properties b/src/main/resources/messages_fr_FR.properties index 35873b9c..d03d6ec6 100644 --- a/src/main/resources/messages_fr_FR.properties +++ b/src/main/resources/messages_fr_FR.properties @@ -942,6 +942,10 @@ multiTool.page=Page multiTool.deleteSelected=Delete Selected multiTool.downloadAll=Export multiTool.downloadSelected=Export Selected + +#multiTool-advert +multiTool-advert.message=This feature is also available in our multi-tool page. Check it out for enhanced page-by-page UI and additional features! + #view pdf viewPdf.title=Visualiser un PDF viewPdf.header=Visualiser un PDF diff --git a/src/main/resources/messages_ga_IE.properties b/src/main/resources/messages_ga_IE.properties index e2b0c03f..5799f47f 100644 --- a/src/main/resources/messages_ga_IE.properties +++ b/src/main/resources/messages_ga_IE.properties @@ -942,6 +942,10 @@ multiTool.page=Page multiTool.deleteSelected=Delete Selected multiTool.downloadAll=Export multiTool.downloadSelected=Export Selected + +#multiTool-advert +multiTool-advert.message=This feature is also available in our multi-tool page. Check it out for enhanced page-by-page UI and additional features! + #view pdf viewPdf.title=Féach PDF viewPdf.header=Féach PDF diff --git a/src/main/resources/messages_hi_IN.properties b/src/main/resources/messages_hi_IN.properties index 5c1de12e..b53fab2b 100644 --- a/src/main/resources/messages_hi_IN.properties +++ b/src/main/resources/messages_hi_IN.properties @@ -942,6 +942,10 @@ multiTool.page=Page multiTool.deleteSelected=Delete Selected multiTool.downloadAll=Export multiTool.downloadSelected=Export Selected + +#multiTool-advert +multiTool-advert.message=This feature is also available in our multi-tool page. Check it out for enhanced page-by-page UI and additional features! + #view pdf viewPdf.title=पीडीएफ देखें viewPdf.header=पीडीएफ देखें diff --git a/src/main/resources/messages_hr_HR.properties b/src/main/resources/messages_hr_HR.properties index f5566900..8bed6a17 100644 --- a/src/main/resources/messages_hr_HR.properties +++ b/src/main/resources/messages_hr_HR.properties @@ -942,6 +942,10 @@ multiTool.page=Page multiTool.deleteSelected=Delete Selected multiTool.downloadAll=Export multiTool.downloadSelected=Export Selected + +#multiTool-advert +multiTool-advert.message=This feature is also available in our multi-tool page. Check it out for enhanced page-by-page UI and additional features! + #view pdf viewPdf.title=Pogledaj viewPdf.header=Pogledaj PDF diff --git a/src/main/resources/messages_hu_HU.properties b/src/main/resources/messages_hu_HU.properties index 8732213b..8c133ccb 100644 --- a/src/main/resources/messages_hu_HU.properties +++ b/src/main/resources/messages_hu_HU.properties @@ -942,6 +942,10 @@ multiTool.page=Page multiTool.deleteSelected=Delete Selected multiTool.downloadAll=Export multiTool.downloadSelected=Export Selected + +#multiTool-advert +multiTool-advert.message=This feature is also available in our multi-tool page. Check it out for enhanced page-by-page UI and additional features! + #view pdf viewPdf.title=PDF megtekintése viewPdf.header=PDF megtekintése diff --git a/src/main/resources/messages_id_ID.properties b/src/main/resources/messages_id_ID.properties index 95a9d41e..b9845cc2 100644 --- a/src/main/resources/messages_id_ID.properties +++ b/src/main/resources/messages_id_ID.properties @@ -942,6 +942,10 @@ multiTool.page=Page multiTool.deleteSelected=Delete Selected multiTool.downloadAll=Export multiTool.downloadSelected=Export Selected + +#multiTool-advert +multiTool-advert.message=This feature is also available in our multi-tool page. Check it out for enhanced page-by-page UI and additional features! + #view pdf viewPdf.title=Lihat PDF viewPdf.header=Lihat PDF diff --git a/src/main/resources/messages_it_IT.properties b/src/main/resources/messages_it_IT.properties index 2ec95615..6d1324d8 100644 --- a/src/main/resources/messages_it_IT.properties +++ b/src/main/resources/messages_it_IT.properties @@ -942,6 +942,10 @@ multiTool.page=Pagina multiTool.deleteSelected=Elimina selezionata multiTool.downloadAll=Esporta multiTool.downloadSelected=Esporta selezionata + +#multiTool-advert +multiTool-advert.message=This feature is also available in our multi-tool page. Check it out for enhanced page-by-page UI and additional features! + #view pdf viewPdf.title=Visualizza PDF viewPdf.header=Visualizza PDF diff --git a/src/main/resources/messages_ja_JP.properties b/src/main/resources/messages_ja_JP.properties index 39ad7925..562718d2 100644 --- a/src/main/resources/messages_ja_JP.properties +++ b/src/main/resources/messages_ja_JP.properties @@ -942,6 +942,10 @@ multiTool.page=Page multiTool.deleteSelected=Delete Selected multiTool.downloadAll=Export multiTool.downloadSelected=Export Selected + +#multiTool-advert +multiTool-advert.message=This feature is also available in our multi-tool page. Check it out for enhanced page-by-page UI and additional features! + #view pdf viewPdf.title=PDFを表示 viewPdf.header=PDFを表示 diff --git a/src/main/resources/messages_ko_KR.properties b/src/main/resources/messages_ko_KR.properties index d0f00808..5dbba7df 100644 --- a/src/main/resources/messages_ko_KR.properties +++ b/src/main/resources/messages_ko_KR.properties @@ -942,6 +942,10 @@ multiTool.page=Page multiTool.deleteSelected=Delete Selected multiTool.downloadAll=Export multiTool.downloadSelected=Export Selected + +#multiTool-advert +multiTool-advert.message=This feature is also available in our multi-tool page. Check it out for enhanced page-by-page UI and additional features! + #view pdf viewPdf.title=PDF 뷰어 viewPdf.header=PDF 뷰어 diff --git a/src/main/resources/messages_nl_NL.properties b/src/main/resources/messages_nl_NL.properties index f563c634..27c66022 100644 --- a/src/main/resources/messages_nl_NL.properties +++ b/src/main/resources/messages_nl_NL.properties @@ -942,6 +942,10 @@ multiTool.page=Page multiTool.deleteSelected=Delete Selected multiTool.downloadAll=Export multiTool.downloadSelected=Export Selected + +#multiTool-advert +multiTool-advert.message=This feature is also available in our multi-tool page. Check it out for enhanced page-by-page UI and additional features! + #view pdf viewPdf.title=PDF bekijken viewPdf.header=PDF bekijken diff --git a/src/main/resources/messages_no_NB.properties b/src/main/resources/messages_no_NB.properties index d7c2c1e4..ee2c17ad 100644 --- a/src/main/resources/messages_no_NB.properties +++ b/src/main/resources/messages_no_NB.properties @@ -942,6 +942,10 @@ multiTool.page=Page multiTool.deleteSelected=Delete Selected multiTool.downloadAll=Export multiTool.downloadSelected=Export Selected + +#multiTool-advert +multiTool-advert.message=This feature is also available in our multi-tool page. Check it out for enhanced page-by-page UI and additional features! + #view pdf viewPdf.title=Vis PDF viewPdf.header=Vis PDF diff --git a/src/main/resources/messages_pl_PL.properties b/src/main/resources/messages_pl_PL.properties index 1c997329..5f843c21 100755 --- a/src/main/resources/messages_pl_PL.properties +++ b/src/main/resources/messages_pl_PL.properties @@ -942,6 +942,10 @@ multiTool.page=Page multiTool.deleteSelected=Delete Selected multiTool.downloadAll=Export multiTool.downloadSelected=Export Selected + +#multiTool-advert +multiTool-advert.message=This feature is also available in our multi-tool page. Check it out for enhanced page-by-page UI and additional features! + #view pdf viewPdf.title=Podejrzyj PDF viewPdf.header=Podejrzyj PDF diff --git a/src/main/resources/messages_pt_BR.properties b/src/main/resources/messages_pt_BR.properties index 79fbfa20..ed662ef3 100644 --- a/src/main/resources/messages_pt_BR.properties +++ b/src/main/resources/messages_pt_BR.properties @@ -942,6 +942,10 @@ multiTool.page=Page multiTool.deleteSelected=Delete Selected multiTool.downloadAll=Export multiTool.downloadSelected=Export Selected + +#multiTool-advert +multiTool-advert.message=This feature is also available in our multi-tool page. Check it out for enhanced page-by-page UI and additional features! + #view pdf viewPdf.title=Visualizar PDF viewPdf.header=Visualizar PDF diff --git a/src/main/resources/messages_pt_PT.properties b/src/main/resources/messages_pt_PT.properties index 09ef384e..9e672c39 100644 --- a/src/main/resources/messages_pt_PT.properties +++ b/src/main/resources/messages_pt_PT.properties @@ -942,6 +942,10 @@ multiTool.page=Page multiTool.deleteSelected=Delete Selected multiTool.downloadAll=Export multiTool.downloadSelected=Export Selected + +#multiTool-advert +multiTool-advert.message=This feature is also available in our multi-tool page. Check it out for enhanced page-by-page UI and additional features! + #view pdf viewPdf.title=Visualizar PDF viewPdf.header=Visualizar PDF diff --git a/src/main/resources/messages_ro_RO.properties b/src/main/resources/messages_ro_RO.properties index f8caf9d2..2ca6c1e6 100644 --- a/src/main/resources/messages_ro_RO.properties +++ b/src/main/resources/messages_ro_RO.properties @@ -942,6 +942,10 @@ multiTool.page=Page multiTool.deleteSelected=Delete Selected multiTool.downloadAll=Export multiTool.downloadSelected=Export Selected + +#multiTool-advert +multiTool-advert.message=This feature is also available in our multi-tool page. Check it out for enhanced page-by-page UI and additional features! + #view pdf viewPdf.title=Vizualizează PDF viewPdf.header=Vizualizează PDF diff --git a/src/main/resources/messages_ru_RU.properties b/src/main/resources/messages_ru_RU.properties index ea753427..60fe0181 100644 --- a/src/main/resources/messages_ru_RU.properties +++ b/src/main/resources/messages_ru_RU.properties @@ -942,6 +942,10 @@ multiTool.page=Page multiTool.deleteSelected=Delete Selected multiTool.downloadAll=Export multiTool.downloadSelected=Export Selected + +#multiTool-advert +multiTool-advert.message=This feature is also available in our multi-tool page. Check it out for enhanced page-by-page UI and additional features! + #view pdf viewPdf.title=Просмотреть PDF viewPdf.header=Просмотреть PDF diff --git a/src/main/resources/messages_sk_SK.properties b/src/main/resources/messages_sk_SK.properties index bfc0b04c..82cd941c 100644 --- a/src/main/resources/messages_sk_SK.properties +++ b/src/main/resources/messages_sk_SK.properties @@ -942,6 +942,10 @@ multiTool.page=Page multiTool.deleteSelected=Delete Selected multiTool.downloadAll=Export multiTool.downloadSelected=Export Selected + +#multiTool-advert +multiTool-advert.message=This feature is also available in our multi-tool page. Check it out for enhanced page-by-page UI and additional features! + #view pdf viewPdf.title=Zobraziť PDF viewPdf.header=Zobraziť PDF diff --git a/src/main/resources/messages_sr_LATN_RS.properties b/src/main/resources/messages_sr_LATN_RS.properties index 9f5a8d6e..d5162298 100644 --- a/src/main/resources/messages_sr_LATN_RS.properties +++ b/src/main/resources/messages_sr_LATN_RS.properties @@ -942,6 +942,10 @@ multiTool.page=Page multiTool.deleteSelected=Delete Selected multiTool.downloadAll=Export multiTool.downloadSelected=Export Selected + +#multiTool-advert +multiTool-advert.message=This feature is also available in our multi-tool page. Check it out for enhanced page-by-page UI and additional features! + #view pdf viewPdf.title=Prikaz viewPdf.header=Prikaz PDF-a diff --git a/src/main/resources/messages_sv_SE.properties b/src/main/resources/messages_sv_SE.properties index 9cb280dd..ad92e0fb 100644 --- a/src/main/resources/messages_sv_SE.properties +++ b/src/main/resources/messages_sv_SE.properties @@ -942,6 +942,10 @@ multiTool.page=Page multiTool.deleteSelected=Delete Selected multiTool.downloadAll=Export multiTool.downloadSelected=Export Selected + +#multiTool-advert +multiTool-advert.message=This feature is also available in our multi-tool page. Check it out for enhanced page-by-page UI and additional features! + #view pdf viewPdf.title=Visa PDF viewPdf.header=Visa PDF diff --git a/src/main/resources/messages_th_TH.properties b/src/main/resources/messages_th_TH.properties index e1e90bd4..73dca14a 100644 --- a/src/main/resources/messages_th_TH.properties +++ b/src/main/resources/messages_th_TH.properties @@ -942,6 +942,10 @@ multiTool.page=Page multiTool.deleteSelected=Delete Selected multiTool.downloadAll=Export multiTool.downloadSelected=Export Selected + +#multiTool-advert +multiTool-advert.message=This feature is also available in our multi-tool page. Check it out for enhanced page-by-page UI and additional features! + #view pdf viewPdf.title=ดู PDF viewPdf.header=ดู PDF diff --git a/src/main/resources/messages_tr_TR.properties b/src/main/resources/messages_tr_TR.properties index 4d7048d6..f75f1ce6 100644 --- a/src/main/resources/messages_tr_TR.properties +++ b/src/main/resources/messages_tr_TR.properties @@ -942,6 +942,10 @@ multiTool.page=Page multiTool.deleteSelected=Delete Selected multiTool.downloadAll=Export multiTool.downloadSelected=Export Selected + +#multiTool-advert +multiTool-advert.message=This feature is also available in our multi-tool page. Check it out for enhanced page-by-page UI and additional features! + #view pdf viewPdf.title=PDF Görüntüle viewPdf.header=PDF Görüntüle diff --git a/src/main/resources/messages_uk_UA.properties b/src/main/resources/messages_uk_UA.properties index aee6943b..331d3aab 100644 --- a/src/main/resources/messages_uk_UA.properties +++ b/src/main/resources/messages_uk_UA.properties @@ -942,6 +942,10 @@ multiTool.page=Page multiTool.deleteSelected=Delete Selected multiTool.downloadAll=Export multiTool.downloadSelected=Export Selected + +#multiTool-advert +multiTool-advert.message=This feature is also available in our multi-tool page. Check it out for enhanced page-by-page UI and additional features! + #view pdf viewPdf.title=Переглянути PDF viewPdf.header=Переглянути PDF diff --git a/src/main/resources/messages_vi_VN.properties b/src/main/resources/messages_vi_VN.properties index 3e26c406..05907bf3 100644 --- a/src/main/resources/messages_vi_VN.properties +++ b/src/main/resources/messages_vi_VN.properties @@ -942,6 +942,10 @@ multiTool.page=Page multiTool.deleteSelected=Delete Selected multiTool.downloadAll=Export multiTool.downloadSelected=Export Selected + +#multiTool-advert +multiTool-advert.message=This feature is also available in our multi-tool page. Check it out for enhanced page-by-page UI and additional features! + #view pdf viewPdf.title=Xem PDF viewPdf.header=Xem PDF diff --git a/src/main/resources/messages_zh_CN.properties b/src/main/resources/messages_zh_CN.properties index d8cac5db..312532fc 100644 --- a/src/main/resources/messages_zh_CN.properties +++ b/src/main/resources/messages_zh_CN.properties @@ -942,6 +942,10 @@ multiTool.page=Page multiTool.deleteSelected=Delete Selected multiTool.downloadAll=Export multiTool.downloadSelected=Export Selected + +#multiTool-advert +multiTool-advert.message=This feature is also available in our multi-tool page. Check it out for enhanced page-by-page UI and additional features! + #view pdf viewPdf.title=浏览PDF viewPdf.header=浏览PDF diff --git a/src/main/resources/messages_zh_TW.properties b/src/main/resources/messages_zh_TW.properties index 9ec0f2d8..3afb485a 100644 --- a/src/main/resources/messages_zh_TW.properties +++ b/src/main/resources/messages_zh_TW.properties @@ -942,6 +942,10 @@ multiTool.page=Page multiTool.deleteSelected=Delete Selected multiTool.downloadAll=Export multiTool.downloadSelected=Export Selected + +#multiTool-advert +multiTool-advert.message=This feature is also available in our multi-tool page. Check it out for enhanced page-by-page UI and additional features! + #view pdf viewPdf.title=檢視 PDF viewPdf.header=檢視 PDF diff --git a/src/main/resources/templates/extract-page.html b/src/main/resources/templates/extract-page.html index 47db4400..c01d2c7e 100644 --- a/src/main/resources/templates/extract-page.html +++ b/src/main/resources/templates/extract-page.html @@ -1,36 +1,44 @@ - - - - + - -
-
- -

-
-
-
-
- upload - -
-
-
- -
- - -
+ + + + - -
+ +
+
+ +

+ +
+
+
+
+ upload +
+
+
+
+ +
+ + +
+ + +
-
- + +
+ + \ No newline at end of file diff --git a/src/main/resources/templates/fragments/multi-toolAdvert.html b/src/main/resources/templates/fragments/multi-toolAdvert.html new file mode 100644 index 00000000..b3156e68 --- /dev/null +++ b/src/main/resources/templates/fragments/multi-toolAdvert.html @@ -0,0 +1,57 @@ +
+
+
+ + +
+
+ + +
\ No newline at end of file diff --git a/src/main/resources/templates/merge-pdfs.html b/src/main/resources/templates/merge-pdfs.html index 3bd58e27..7b76ad50 100644 --- a/src/main/resources/templates/merge-pdfs.html +++ b/src/main/resources/templates/merge-pdfs.html @@ -12,6 +12,7 @@


+
diff --git a/src/main/resources/templates/pdf-organizer.html b/src/main/resources/templates/pdf-organizer.html index fbaf16e8..8d698869 100644 --- a/src/main/resources/templates/pdf-organizer.html +++ b/src/main/resources/templates/pdf-organizer.html @@ -1,60 +1,69 @@ - - - - + - -
-
- -

-
-
-
-
- format_list_bulleted - -
+ + + + -
-
-
- - -
-
- - -
- -
- + +
+
+ +

+ +
+
+
+
+ format_list_bulleted +
+ +
+
+
+
+ + +
+
+ + +
+ +
+
-
- + +
+ + \ No newline at end of file diff --git a/src/main/resources/templates/remove-pages.html b/src/main/resources/templates/remove-pages.html index 6377db26..ea728d96 100644 --- a/src/main/resources/templates/remove-pages.html +++ b/src/main/resources/templates/remove-pages.html @@ -1,40 +1,48 @@ - - - - + - -
-
- -

-
-
-
-
- delete - -
+ + + + -
-
-
- - -
- -
+ +
+
+ +

+ +
+
+
+
+ delete +
+ +
+
+
+
+ + +
+ +
-
- - - + +
+ + + + \ No newline at end of file diff --git a/src/main/resources/templates/rotate-pdf.html b/src/main/resources/templates/rotate-pdf.html index 5886ec61..d32836d2 100644 --- a/src/main/resources/templates/rotate-pdf.html +++ b/src/main/resources/templates/rotate-pdf.html @@ -1,110 +1,121 @@ - - + + + - + - -
-
- -

-
-
-
-
- rotate_right - -
- -
-
- - - -
+ +
+
+ +

+ +
+
+
+
+ rotate_right +
+ +
+
+
+ + + +
-
- - + - + var url = URL.createObjectURL(fileInput.files[0]) + pdfjsLib.GlobalWorkerOptions.workerSrc = './pdfjs-legacy/pdf.worker.mjs' + const pdf = await pdfjsLib.getDocument(url).promise; + const page = await pdf.getPage(1); + + const canvas = document.createElement("canvas"); + + // set the canvas size to the size of the page + if (page.rotate == 90 || page.rotate == 270) { + canvas.width = page.view[3]; + canvas.height = page.view[2]; + } else { + canvas.width = page.view[2]; + canvas.height = page.view[3]; + } + + // render the page onto the canvas + var renderContext = { + canvasContext: canvas.getContext("2d"), + viewport: page.getViewport({ scale: 1 }) + }; + + await page.render(renderContext).promise; + const preview = document.createElement("img"); + preview.id = "pdf-preview"; + preview.alt = "preview"; + preview.src = canvas.toDataURL(); + previewContainer.appendChild(preview); + }); + + function rotate(deg) { + const preview = document.getElementById("pdf-preview"); + var lastTransform = preview.style.rotate; + if (!lastTransform) { + lastTransform = "0"; + } + const lastAngle = parseInt(lastTransform.replace(/[^\d-]/g, '')); + const newAngle = lastAngle + deg; + preview.style.rotate = newAngle + "deg"; + angleInput.value = newAngle; + } + + + \ No newline at end of file diff --git a/src/main/resources/templates/split-pdfs.html b/src/main/resources/templates/split-pdfs.html index 7af9ce7e..75dbb21c 100644 --- a/src/main/resources/templates/split-pdfs.html +++ b/src/main/resources/templates/split-pdfs.html @@ -11,6 +11,7 @@


+
From 1833d7cd7388304221fe5b0a3f1803366922b8a0 Mon Sep 17 00:00:00 2001 From: Rafael Encinas Date: Fri, 15 Nov 2024 13:21:23 -0700 Subject: [PATCH 2/2] Clear file inputs after jobs (#2248) --- src/main/resources/messages_en_GB.properties | 1 + src/main/resources/static/js/downloader.js | 30 +++++++++++++++++++ src/main/resources/static/js/merge.js | 17 ++++++++++- .../static/js/multitool/PdfContainer.js | 12 ++++++++ src/main/resources/templates/merge-pdfs.html | 3 ++ src/main/resources/templates/multi-tool.html | 3 ++ src/main/resources/templates/rotate-pdf.html | 2 +- 7 files changed, 66 insertions(+), 2 deletions(-) diff --git a/src/main/resources/messages_en_GB.properties b/src/main/resources/messages_en_GB.properties index 6fcc5e48..d9f71870 100644 --- a/src/main/resources/messages_en_GB.properties +++ b/src/main/resources/messages_en_GB.properties @@ -81,6 +81,7 @@ page=Page pages=Pages loading=Loading... addToDoc=Add to Document +reset=Reset legal.privacy=Privacy Policy legal.terms=Terms and Conditions diff --git a/src/main/resources/static/js/downloader.js b/src/main/resources/static/js/downloader.js index 1933c4fb..e447c373 100644 --- a/src/main/resources/static/js/downloader.js +++ b/src/main/resources/static/js/downloader.js @@ -64,6 +64,8 @@ await handleSingleDownload(url, formData); } } + + clearFileInput(); clearTimeout(timeoutId); $("#submitBtn").text(originalButtonText); @@ -85,6 +87,7 @@ } } catch (error) { + clearFileInput(); clearTimeout(timeoutId); handleDownloadError(error); $("#submitBtn").text(originalButtonText); @@ -116,11 +119,15 @@ const blob = await response.blob(); if (contentType.includes("application/pdf") || contentType.includes("image/")) { + clearFileInput(); return handleResponse(blob, filename, !isMulti, isZip); } else { + clearFileInput(); return handleResponse(blob, filename, false, isZip); } + } catch (error) { + clearFileInput(); console.error("Error in handleSingleDownload:", error); throw error; } @@ -291,4 +298,27 @@ } }); + // Clear file input after job + function clearFileInput(){ + let pathname = document.location.pathname; + if(pathname != "/merge-pdfs"){ + let formElement = document.querySelector("#fileInput-input"); + formElement.value = ''; + let editSectionElement = document.querySelector("#editSection"); + if(editSectionElement){ + editSectionElement.style.display = "none"; + } + let cropPdfCanvas = document.querySelector("#crop-pdf-canvas"); + let overlayCanvas = document.querySelector("#overlayCanvas"); + if(cropPdfCanvas && overlayCanvas){ + cropPdfCanvas.width = 0; + cropPdfCanvas.heigth = 0; + + overlayCanvas.width = 0; + overlayCanvas.heigth = 0; + } + } else{ + console.log("Disabled for 'Merge'"); + } + } })(); diff --git a/src/main/resources/static/js/merge.js b/src/main/resources/static/js/merge.js index 2c9a3939..8c263da6 100644 --- a/src/main/resources/static/js/merge.js +++ b/src/main/resources/static/js/merge.js @@ -21,7 +21,7 @@ async function displayFiles(files) { for (let i = 0; i < files.length; i++) { const pageCount = await getPDFPageCount(files[i]); const pageLabel = pageCount === 1 ? pageTranslation : pagesTranslation; - + // Create list item const item = document.createElement("li"); item.className = "list-group-item"; @@ -173,3 +173,18 @@ function updateFiles() { } document.getElementById("fileInput-input").files = dataTransfer.files; } + +document.querySelector("#resetFileInputBtn").addEventListener("click", ()=>{ + let formElement = document.querySelector("#fileInput-input"); + formElement.value = ''; + clearLiElements(); + updateFiles(); + +}); + +function clearLiElements(){ + let listGroupItemNodeList = document.querySelectorAll(".list-group-item"); + for (let i = 0; i < listGroupItemNodeList.length; i++) { + listGroupItemNodeList[i].remove(); + }; + } diff --git a/src/main/resources/static/js/multitool/PdfContainer.js b/src/main/resources/static/js/multitool/PdfContainer.js index a9642bb4..809e8532 100644 --- a/src/main/resources/static/js/multitool/PdfContainer.js +++ b/src/main/resources/static/js/multitool/PdfContainer.js @@ -28,6 +28,7 @@ class PdfContainer { this.toggleSelectPageVisibility = this.toggleSelectPageVisibility.bind(this); this.updatePagesFromCSV = this.updatePagesFromCSV.bind(this); this.addFilesBlankAll = this.addFilesBlankAll.bind(this) + this.removeAllElements = this.removeAllElements.bind(this); this.pdfAdapters = pdfAdapters; @@ -53,6 +54,7 @@ class PdfContainer { window.updateSelectedPagesDisplay = this.updateSelectedPagesDisplay; window.updatePageNumbersAndCheckboxes = this.updatePageNumbersAndCheckboxes; window.addFilesBlankAll = this.addFilesBlankAll + window.removeAllElements = this.removeAllElements; const filenameInput = document.getElementById("filename-input"); const downloadBtn = document.getElementById("export-button"); @@ -294,6 +296,16 @@ class PdfContainer { } } + removeAllElements(){ + let pageContainerNodeList = document.querySelectorAll(".page-container"); + for (var i = 0; i < pageContainerNodeList.length; i++) { + pageContainerNodeList[i].remove(); + } + document.querySelectorAll(".enable-on-file").forEach((element) => { + element.disabled = true; + }); + } + deleteSelected() { window.selectedPages.sort((a, b) => a - b); let deletions = 0; diff --git a/src/main/resources/templates/merge-pdfs.html b/src/main/resources/templates/merge-pdfs.html index 7b76ad50..f6ace6d7 100644 --- a/src/main/resources/templates/merge-pdfs.html +++ b/src/main/resources/templates/merge-pdfs.html @@ -40,6 +40,9 @@
+
+ +
diff --git a/src/main/resources/templates/multi-tool.html b/src/main/resources/templates/multi-tool.html index 400f0b10..3e8e59fc 100644 --- a/src/main/resources/templates/multi-tool.html +++ b/src/main/resources/templates/multi-tool.html @@ -83,6 +83,9 @@
+
+ +