From d2b39118c81b11840c7ed72468e5fecf175b6cf9 Mon Sep 17 00:00:00 2001 From: Lukas <38840142+lukasstorck@users.noreply.github.com> Date: Fri, 1 Aug 2025 12:28:08 +0200 Subject: [PATCH 1/6] feat: add copy to clipboard functionality to bookmarks editor --- .../src/main/resources/messages_en_US.properties | 2 ++ .../static/js/pages/edit-table-of-contents.js | 14 ++++++++++++++ .../templates/edit-table-of-contents.html | 6 ++++++ 3 files changed, 22 insertions(+) diff --git a/app/core/src/main/resources/messages_en_US.properties b/app/core/src/main/resources/messages_en_US.properties index eb8a9236c..1a8961098 100644 --- a/app/core/src/main/resources/messages_en_US.properties +++ b/app/core/src/main/resources/messages_en_US.properties @@ -1859,6 +1859,8 @@ editTableOfContents.replaceExisting=Replace existing bookmarks (uncheck to appen editTableOfContents.editorTitle=Bookmark Editor editTableOfContents.editorDesc=Add and arrange bookmarks below. Click + to add child bookmarks. editTableOfContents.addBookmark=Add New Bookmark +editTableOfContents.copyBookmarks=Copy +editTableOfContents.copyBookmarksHint=Copy bookmark data as string editTableOfContents.desc.1=This tool allows you to add or edit the table of contents (bookmarks) in a PDF document. editTableOfContents.desc.2=You can create a hierarchical structure by adding child bookmarks to parent bookmarks. editTableOfContents.desc.3=Each bookmark requires a title and target page number. diff --git a/app/core/src/main/resources/static/js/pages/edit-table-of-contents.js b/app/core/src/main/resources/static/js/pages/edit-table-of-contents.js index de7fe30db..52955dc4b 100644 --- a/app/core/src/main/resources/static/js/pages/edit-table-of-contents.js +++ b/app/core/src/main/resources/static/js/pages/edit-table-of-contents.js @@ -597,6 +597,20 @@ document.addEventListener('DOMContentLoaded', function() { updateEmptyStateButton(); } + // Add copy bookmarks to clipboard functionality + async function copyBookmarksStringToClipboard() { + const bookmarkData = bookmarkDataInput.value; + try { + await navigator.clipboard.writeText(bookmarkData); + } catch (error) { + throw new Error(`Failed to copy bookmarks: ${error.message}`); + } + } + + // Add event listener to the copy bookmarks button + const copyBookmarksBtn = document.getElementById('copyBookmarksBtn'); + copyBookmarksBtn.addEventListener('click', copyBookmarksStringToClipboard); + // Listen for theme changes to update badge colors const observer = new MutationObserver(function(mutations) { mutations.forEach(function(mutation) { diff --git a/app/core/src/main/resources/templates/edit-table-of-contents.html b/app/core/src/main/resources/templates/edit-table-of-contents.html index 99ab02c1d..8935ae67e 100644 --- a/app/core/src/main/resources/templates/edit-table-of-contents.html +++ b/app/core/src/main/resources/templates/edit-table-of-contents.html @@ -51,6 +51,12 @@

+

From 198928cb4b8459b000e7873d305b7f5f43f90d52 Mon Sep 17 00:00:00 2001 From: Lukas <38840142+lukasstorck@users.noreply.github.com> Date: Fri, 1 Aug 2025 12:30:00 +0200 Subject: [PATCH 2/6] add translations for British English and German --- app/core/src/main/resources/messages_de_DE.properties | 2 ++ app/core/src/main/resources/messages_en_GB.properties | 2 ++ 2 files changed, 4 insertions(+) diff --git a/app/core/src/main/resources/messages_de_DE.properties b/app/core/src/main/resources/messages_de_DE.properties index 5f01823f1..a0e8d7d4e 100644 --- a/app/core/src/main/resources/messages_de_DE.properties +++ b/app/core/src/main/resources/messages_de_DE.properties @@ -1859,6 +1859,8 @@ editTableOfContents.replaceExisting=Vorhandene Lesezeichen ersetzen (deaktiviere editTableOfContents.editorTitle=Lesezeichen-Editor editTableOfContents.editorDesc=Fügen unten Lesezeichen hinzu und ordne sie an. Klicke auf +, um das untergeordnete Lesezeichen hinzuzufügen. editTableOfContents.addBookmark=Neues Lesezeichen hinzufügen +editTableOfContents.copyBookmarks=Kopieren +editTableOfContents.copyBookmarksHint=Kopiere Lesezeichendaten als Text editTableOfContents.desc.1=Mit diesem Werkzeug können Sie das Inhaltsverzeichnis (Lesezeichen) eines PDF-Dokuments hinzufügen oder bearbeiten. editTableOfContents.desc.2=Sie können eine hierarchische Struktur erstellen, indem Sie untergeordnete Lesezeichen zu übergeordneten hinzufügen. editTableOfContents.desc.3=Jedes Lesezeichen benötigt einen Titel und eine Seitenzahl. diff --git a/app/core/src/main/resources/messages_en_GB.properties b/app/core/src/main/resources/messages_en_GB.properties index f78e80b65..5d8549f9d 100644 --- a/app/core/src/main/resources/messages_en_GB.properties +++ b/app/core/src/main/resources/messages_en_GB.properties @@ -1859,6 +1859,8 @@ editTableOfContents.replaceExisting=Replace existing bookmarks (uncheck to appen editTableOfContents.editorTitle=Bookmark Editor editTableOfContents.editorDesc=Add and arrange bookmarks below. Click + to add child bookmarks. editTableOfContents.addBookmark=Add New Bookmark +editTableOfContents.copyBookmarks=Copy +editTableOfContents.copyBookmarksHint=Copy bookmark data as string editTableOfContents.desc.1=This tool allows you to add or edit the table of contents (bookmarks) in a PDF document. editTableOfContents.desc.2=You can create a hierarchical structure by adding child bookmarks to parent bookmarks. editTableOfContents.desc.3=Each bookmark requires a title and target page number. From b595a9b8c3d39283835073eb5416dd3ab28be441 Mon Sep 17 00:00:00 2001 From: Lukas <38840142+lukasstorck@users.noreply.github.com> Date: Fri, 1 Aug 2025 18:11:50 +0200 Subject: [PATCH 3/6] add import/export functionality for bookmarks in the editor --- .../main/resources/messages_de_DE.properties | 6 ++-- .../main/resources/messages_en_GB.properties | 6 ++-- .../main/resources/messages_en_US.properties | 6 ++-- .../static/css/edit-table-of-contents.css | 2 +- .../static/js/pages/edit-table-of-contents.js | 29 +++++++++++++++---- .../templates/edit-table-of-contents.html | 24 +++++++++++---- 6 files changed, 54 insertions(+), 19 deletions(-) diff --git a/app/core/src/main/resources/messages_de_DE.properties b/app/core/src/main/resources/messages_de_DE.properties index a0e8d7d4e..2b4ece097 100644 --- a/app/core/src/main/resources/messages_de_DE.properties +++ b/app/core/src/main/resources/messages_de_DE.properties @@ -1859,8 +1859,10 @@ editTableOfContents.replaceExisting=Vorhandene Lesezeichen ersetzen (deaktiviere editTableOfContents.editorTitle=Lesezeichen-Editor editTableOfContents.editorDesc=Fügen unten Lesezeichen hinzu und ordne sie an. Klicke auf +, um das untergeordnete Lesezeichen hinzuzufügen. editTableOfContents.addBookmark=Neues Lesezeichen hinzufügen -editTableOfContents.copyBookmarks=Kopieren -editTableOfContents.copyBookmarksHint=Kopiere Lesezeichendaten als Text +editTableOfContents.importBookmarks=Import +editTableOfContents.exportBookmarks=Export +editTableOfContents.importBookmarksHint=Lade Lesezeichendaten aus der Zwischenablage +editTableOfContents.exportBookmarksHint=Exportiere Lesezeichendaten als Text in die Zwischenablage editTableOfContents.desc.1=Mit diesem Werkzeug können Sie das Inhaltsverzeichnis (Lesezeichen) eines PDF-Dokuments hinzufügen oder bearbeiten. editTableOfContents.desc.2=Sie können eine hierarchische Struktur erstellen, indem Sie untergeordnete Lesezeichen zu übergeordneten hinzufügen. editTableOfContents.desc.3=Jedes Lesezeichen benötigt einen Titel und eine Seitenzahl. diff --git a/app/core/src/main/resources/messages_en_GB.properties b/app/core/src/main/resources/messages_en_GB.properties index 5d8549f9d..51adf45b1 100644 --- a/app/core/src/main/resources/messages_en_GB.properties +++ b/app/core/src/main/resources/messages_en_GB.properties @@ -1859,8 +1859,10 @@ editTableOfContents.replaceExisting=Replace existing bookmarks (uncheck to appen editTableOfContents.editorTitle=Bookmark Editor editTableOfContents.editorDesc=Add and arrange bookmarks below. Click + to add child bookmarks. editTableOfContents.addBookmark=Add New Bookmark -editTableOfContents.copyBookmarks=Copy -editTableOfContents.copyBookmarksHint=Copy bookmark data as string +editTableOfContents.importBookmarks=Import +editTableOfContents.exportBookmarks=Export +editTableOfContents.importBookmarksHint=Load bookmark data from clipboard +editTableOfContents.exportBookmarksHint=Export bookmark data as string to clipboard editTableOfContents.desc.1=This tool allows you to add or edit the table of contents (bookmarks) in a PDF document. editTableOfContents.desc.2=You can create a hierarchical structure by adding child bookmarks to parent bookmarks. editTableOfContents.desc.3=Each bookmark requires a title and target page number. diff --git a/app/core/src/main/resources/messages_en_US.properties b/app/core/src/main/resources/messages_en_US.properties index 1a8961098..384db46e2 100644 --- a/app/core/src/main/resources/messages_en_US.properties +++ b/app/core/src/main/resources/messages_en_US.properties @@ -1859,8 +1859,10 @@ editTableOfContents.replaceExisting=Replace existing bookmarks (uncheck to appen editTableOfContents.editorTitle=Bookmark Editor editTableOfContents.editorDesc=Add and arrange bookmarks below. Click + to add child bookmarks. editTableOfContents.addBookmark=Add New Bookmark -editTableOfContents.copyBookmarks=Copy -editTableOfContents.copyBookmarksHint=Copy bookmark data as string +editTableOfContents.importBookmarks=Import +editTableOfContents.exportBookmarks=Export +editTableOfContents.importBookmarksHint=Load bookmark data from clipboard +editTableOfContents.exportBookmarksHint=Export bookmark data as string to clipboard editTableOfContents.desc.1=This tool allows you to add or edit the table of contents (bookmarks) in a PDF document. editTableOfContents.desc.2=You can create a hierarchical structure by adding child bookmarks to parent bookmarks. editTableOfContents.desc.3=Each bookmark requires a title and target page number. diff --git a/app/core/src/main/resources/static/css/edit-table-of-contents.css b/app/core/src/main/resources/static/css/edit-table-of-contents.css index d85813a73..b82b6c4df 100644 --- a/app/core/src/main/resources/static/css/edit-table-of-contents.css +++ b/app/core/src/main/resources/static/css/edit-table-of-contents.css @@ -156,7 +156,7 @@ .bookmark-actions { margin-top: 20px; display: flex; - justify-content: flex-start; + justify-content: space-between; } /* Collapse/expand icons */ diff --git a/app/core/src/main/resources/static/js/pages/edit-table-of-contents.js b/app/core/src/main/resources/static/js/pages/edit-table-of-contents.js index 52955dc4b..3b561b8b8 100644 --- a/app/core/src/main/resources/static/js/pages/edit-table-of-contents.js +++ b/app/core/src/main/resources/static/js/pages/edit-table-of-contents.js @@ -597,19 +597,36 @@ document.addEventListener('DOMContentLoaded', function() { updateEmptyStateButton(); } - // Add copy bookmarks to clipboard functionality - async function copyBookmarksStringToClipboard() { + // Add import/export bookmarks to clipboard functionality + async function importBookmarkStringFromClipboard() { + try { + const newBookmarkDataString = await navigator.clipboard.readText(); + const newBookmarkData = JSON.parse(newBookmarkDataString); + + if (!newBookmarkData || newBookmarkData.length === 0) { + // don't change bookmarks for empty import data + return; + } + + bookmarks = newBookmarkData.map(convertExtractedBookmark); + updateBookmarksUI(); + } catch (error) { + throw new Error(`Failed to import bookmarks: ${error.message}`); + } + } + + async function exportBookmarkStringToClipboard() { const bookmarkData = bookmarkDataInput.value; try { await navigator.clipboard.writeText(bookmarkData); } catch (error) { - throw new Error(`Failed to copy bookmarks: ${error.message}`); + throw new Error(`Failed to export bookmarks: ${error.message}`); } } - // Add event listener to the copy bookmarks button - const copyBookmarksBtn = document.getElementById('copyBookmarksBtn'); - copyBookmarksBtn.addEventListener('click', copyBookmarksStringToClipboard); + // Add event listeners for import/export buttons + document.getElementById('importBookmarksBtn').addEventListener('click', importBookmarkStringFromClipboard); + document.getElementById('exportBookmarksBtn').addEventListener('click', exportBookmarkStringToClipboard); // Listen for theme changes to update badge colors const observer = new MutationObserver(function(mutations) { diff --git a/app/core/src/main/resources/templates/edit-table-of-contents.html b/app/core/src/main/resources/templates/edit-table-of-contents.html index 8935ae67e..c9f00e411 100644 --- a/app/core/src/main/resources/templates/edit-table-of-contents.html +++ b/app/core/src/main/resources/templates/edit-table-of-contents.html @@ -42,6 +42,24 @@
+
+ + +
@@ -51,12 +69,6 @@

-

From 1c11c760818a81be166d5ea41075c7261c56cb6f Mon Sep 17 00:00:00 2001 From: Lukas <38840142+lukasstorck@users.noreply.github.com> Date: Fri, 1 Aug 2025 18:25:43 +0200 Subject: [PATCH 4/6] add visual feedback on successful bookmark import/export --- .../static/css/edit-table-of-contents.css | 22 +++++++++++++++++++ .../static/js/pages/edit-table-of-contents.js | 15 +++++++++++++ 2 files changed, 37 insertions(+) diff --git a/app/core/src/main/resources/static/css/edit-table-of-contents.css b/app/core/src/main/resources/static/css/edit-table-of-contents.css index b82b6c4df..74ee98b3c 100644 --- a/app/core/src/main/resources/static/css/edit-table-of-contents.css +++ b/app/core/src/main/resources/static/css/edit-table-of-contents.css @@ -274,3 +274,25 @@ --bg-empty: var(--md-sys-color-surface-container-low, #24282e); --border-empty: var(--md-sys-color-outline, #495057); } + +.success-flash { + position: relative; +} + +.success-flash::after { + content: "✓"; + position: absolute; + top: 50%; + left: 50%; + transform: translate(-50%, -50%); + font-weight: bold; + font-size: 1.2em; + color: white; + opacity: 0; + animation: fadeOut 1s ease-in-out; +} + +@keyframes fadeOut { + 0% { opacity: 1; } + 100% { opacity: 0; } +} diff --git a/app/core/src/main/resources/static/js/pages/edit-table-of-contents.js b/app/core/src/main/resources/static/js/pages/edit-table-of-contents.js index 3b561b8b8..3852fadb0 100644 --- a/app/core/src/main/resources/static/js/pages/edit-table-of-contents.js +++ b/app/core/src/main/resources/static/js/pages/edit-table-of-contents.js @@ -598,7 +598,19 @@ document.addEventListener('DOMContentLoaded', function() { } // Add import/export bookmarks to clipboard functionality + function flashButtonSuccess(button) { + const originalClass = button.className; + + button.classList.remove('btn-outline-primary'); + button.classList.add('btn-success', 'success-flash'); + + setTimeout(() => { + button.className = originalClass; + }, 1000); + } + async function importBookmarkStringFromClipboard() { + const button = document.getElementById('importBookmarksBtn'); try { const newBookmarkDataString = await navigator.clipboard.readText(); const newBookmarkData = JSON.parse(newBookmarkDataString); @@ -610,15 +622,18 @@ document.addEventListener('DOMContentLoaded', function() { bookmarks = newBookmarkData.map(convertExtractedBookmark); updateBookmarksUI(); + flashButtonSuccess(button); } catch (error) { throw new Error(`Failed to import bookmarks: ${error.message}`); } } async function exportBookmarkStringToClipboard() { + const button = document.getElementById('exportBookmarksBtn'); const bookmarkData = bookmarkDataInput.value; try { await navigator.clipboard.writeText(bookmarkData); + flashButtonSuccess(button); } catch (error) { throw new Error(`Failed to export bookmarks: ${error.message}`); } From 2fdeca7074c56685e44301a01cce1a343a449802 Mon Sep 17 00:00:00 2001 From: Lukas <38840142+lukasstorck@users.noreply.github.com> Date: Fri, 1 Aug 2025 21:36:28 +0200 Subject: [PATCH 5/6] add fallback english text to all remaining languages --- app/core/src/main/resources/messages_ar_AR.properties | 4 ++++ app/core/src/main/resources/messages_az_AZ.properties | 4 ++++ app/core/src/main/resources/messages_bg_BG.properties | 4 ++++ app/core/src/main/resources/messages_bo_CN.properties | 4 ++++ app/core/src/main/resources/messages_ca_CA.properties | 4 ++++ app/core/src/main/resources/messages_cs_CZ.properties | 4 ++++ app/core/src/main/resources/messages_da_DK.properties | 4 ++++ app/core/src/main/resources/messages_el_GR.properties | 4 ++++ app/core/src/main/resources/messages_es_ES.properties | 4 ++++ app/core/src/main/resources/messages_eu_ES.properties | 4 ++++ app/core/src/main/resources/messages_fa_IR.properties | 4 ++++ app/core/src/main/resources/messages_fr_FR.properties | 4 ++++ app/core/src/main/resources/messages_ga_IE.properties | 4 ++++ app/core/src/main/resources/messages_hi_IN.properties | 4 ++++ app/core/src/main/resources/messages_hr_HR.properties | 4 ++++ app/core/src/main/resources/messages_hu_HU.properties | 4 ++++ app/core/src/main/resources/messages_id_ID.properties | 4 ++++ app/core/src/main/resources/messages_it_IT.properties | 4 ++++ app/core/src/main/resources/messages_ja_JP.properties | 4 ++++ app/core/src/main/resources/messages_ko_KR.properties | 4 ++++ app/core/src/main/resources/messages_ml_IN.properties | 4 ++++ app/core/src/main/resources/messages_nl_NL.properties | 4 ++++ app/core/src/main/resources/messages_no_NB.properties | 4 ++++ app/core/src/main/resources/messages_pl_PL.properties | 4 ++++ app/core/src/main/resources/messages_pt_BR.properties | 4 ++++ app/core/src/main/resources/messages_pt_PT.properties | 4 ++++ app/core/src/main/resources/messages_ro_RO.properties | 4 ++++ app/core/src/main/resources/messages_ru_RU.properties | 4 ++++ app/core/src/main/resources/messages_sk_SK.properties | 4 ++++ app/core/src/main/resources/messages_sl_SI.properties | 4 ++++ app/core/src/main/resources/messages_sr_LATN_RS.properties | 4 ++++ app/core/src/main/resources/messages_sv_SE.properties | 4 ++++ app/core/src/main/resources/messages_th_TH.properties | 4 ++++ app/core/src/main/resources/messages_tr_TR.properties | 4 ++++ app/core/src/main/resources/messages_uk_UA.properties | 4 ++++ app/core/src/main/resources/messages_vi_VN.properties | 4 ++++ app/core/src/main/resources/messages_zh_CN.properties | 4 ++++ app/core/src/main/resources/messages_zh_TW.properties | 4 ++++ 38 files changed, 152 insertions(+) diff --git a/app/core/src/main/resources/messages_ar_AR.properties b/app/core/src/main/resources/messages_ar_AR.properties index 2993800ac..089af56e4 100644 --- a/app/core/src/main/resources/messages_ar_AR.properties +++ b/app/core/src/main/resources/messages_ar_AR.properties @@ -1859,6 +1859,10 @@ editTableOfContents.replaceExisting=Replace existing bookmarks (uncheck to appen editTableOfContents.editorTitle=Bookmark Editor editTableOfContents.editorDesc=Add and arrange bookmarks below. Click + to add child bookmarks. editTableOfContents.addBookmark=Add New Bookmark +editTableOfContents.importBookmarks=Import +editTableOfContents.exportBookmarks=Export +editTableOfContents.importBookmarksHint=Load bookmark data from clipboard +editTableOfContents.exportBookmarksHint=Export bookmark data as string to clipboard editTableOfContents.desc.1=This tool allows you to add or edit the table of contents (bookmarks) in a PDF document. editTableOfContents.desc.2=You can create a hierarchical structure by adding child bookmarks to parent bookmarks. editTableOfContents.desc.3=Each bookmark requires a title and target page number. diff --git a/app/core/src/main/resources/messages_az_AZ.properties b/app/core/src/main/resources/messages_az_AZ.properties index c719d7139..997b10eac 100644 --- a/app/core/src/main/resources/messages_az_AZ.properties +++ b/app/core/src/main/resources/messages_az_AZ.properties @@ -1859,6 +1859,10 @@ editTableOfContents.replaceExisting=Replace existing bookmarks (uncheck to appen editTableOfContents.editorTitle=Bookmark Editor editTableOfContents.editorDesc=Add and arrange bookmarks below. Click + to add child bookmarks. editTableOfContents.addBookmark=Add New Bookmark +editTableOfContents.importBookmarks=Import +editTableOfContents.exportBookmarks=Export +editTableOfContents.importBookmarksHint=Load bookmark data from clipboard +editTableOfContents.exportBookmarksHint=Export bookmark data as string to clipboard editTableOfContents.desc.1=This tool allows you to add or edit the table of contents (bookmarks) in a PDF document. editTableOfContents.desc.2=You can create a hierarchical structure by adding child bookmarks to parent bookmarks. editTableOfContents.desc.3=Each bookmark requires a title and target page number. diff --git a/app/core/src/main/resources/messages_bg_BG.properties b/app/core/src/main/resources/messages_bg_BG.properties index eaaeb5d95..38d539aa3 100644 --- a/app/core/src/main/resources/messages_bg_BG.properties +++ b/app/core/src/main/resources/messages_bg_BG.properties @@ -1859,6 +1859,10 @@ editTableOfContents.replaceExisting=Replace existing bookmarks (uncheck to appen editTableOfContents.editorTitle=Bookmark Editor editTableOfContents.editorDesc=Add and arrange bookmarks below. Click + to add child bookmarks. editTableOfContents.addBookmark=Add New Bookmark +editTableOfContents.importBookmarks=Import +editTableOfContents.exportBookmarks=Export +editTableOfContents.importBookmarksHint=Load bookmark data from clipboard +editTableOfContents.exportBookmarksHint=Export bookmark data as string to clipboard editTableOfContents.desc.1=This tool allows you to add or edit the table of contents (bookmarks) in a PDF document. editTableOfContents.desc.2=You can create a hierarchical structure by adding child bookmarks to parent bookmarks. editTableOfContents.desc.3=Each bookmark requires a title and target page number. diff --git a/app/core/src/main/resources/messages_bo_CN.properties b/app/core/src/main/resources/messages_bo_CN.properties index d84b4a387..4d915656b 100644 --- a/app/core/src/main/resources/messages_bo_CN.properties +++ b/app/core/src/main/resources/messages_bo_CN.properties @@ -1859,6 +1859,10 @@ editTableOfContents.replaceExisting=Replace existing bookmarks (uncheck to appen editTableOfContents.editorTitle=Bookmark Editor editTableOfContents.editorDesc=Add and arrange bookmarks below. Click + to add child bookmarks. editTableOfContents.addBookmark=Add New Bookmark +editTableOfContents.importBookmarks=Import +editTableOfContents.exportBookmarks=Export +editTableOfContents.importBookmarksHint=Load bookmark data from clipboard +editTableOfContents.exportBookmarksHint=Export bookmark data as string to clipboard editTableOfContents.desc.1=This tool allows you to add or edit the table of contents (bookmarks) in a PDF document. editTableOfContents.desc.2=You can create a hierarchical structure by adding child bookmarks to parent bookmarks. editTableOfContents.desc.3=Each bookmark requires a title and target page number. diff --git a/app/core/src/main/resources/messages_ca_CA.properties b/app/core/src/main/resources/messages_ca_CA.properties index 30a7f7624..352fdc761 100644 --- a/app/core/src/main/resources/messages_ca_CA.properties +++ b/app/core/src/main/resources/messages_ca_CA.properties @@ -1859,6 +1859,10 @@ editTableOfContents.replaceExisting=Replace existing bookmarks (uncheck to appen editTableOfContents.editorTitle=Bookmark Editor editTableOfContents.editorDesc=Add and arrange bookmarks below. Click + to add child bookmarks. editTableOfContents.addBookmark=Add New Bookmark +editTableOfContents.importBookmarks=Import +editTableOfContents.exportBookmarks=Export +editTableOfContents.importBookmarksHint=Load bookmark data from clipboard +editTableOfContents.exportBookmarksHint=Export bookmark data as string to clipboard editTableOfContents.desc.1=This tool allows you to add or edit the table of contents (bookmarks) in a PDF document. editTableOfContents.desc.2=You can create a hierarchical structure by adding child bookmarks to parent bookmarks. editTableOfContents.desc.3=Each bookmark requires a title and target page number. diff --git a/app/core/src/main/resources/messages_cs_CZ.properties b/app/core/src/main/resources/messages_cs_CZ.properties index 7eb854aaa..291324a0d 100644 --- a/app/core/src/main/resources/messages_cs_CZ.properties +++ b/app/core/src/main/resources/messages_cs_CZ.properties @@ -1859,6 +1859,10 @@ editTableOfContents.replaceExisting=Replace existing bookmarks (uncheck to appen editTableOfContents.editorTitle=Bookmark Editor editTableOfContents.editorDesc=Add and arrange bookmarks below. Click + to add child bookmarks. editTableOfContents.addBookmark=Add New Bookmark +editTableOfContents.importBookmarks=Import +editTableOfContents.exportBookmarks=Export +editTableOfContents.importBookmarksHint=Load bookmark data from clipboard +editTableOfContents.exportBookmarksHint=Export bookmark data as string to clipboard editTableOfContents.desc.1=This tool allows you to add or edit the table of contents (bookmarks) in a PDF document. editTableOfContents.desc.2=You can create a hierarchical structure by adding child bookmarks to parent bookmarks. editTableOfContents.desc.3=Each bookmark requires a title and target page number. diff --git a/app/core/src/main/resources/messages_da_DK.properties b/app/core/src/main/resources/messages_da_DK.properties index 118e545e6..8b239766f 100644 --- a/app/core/src/main/resources/messages_da_DK.properties +++ b/app/core/src/main/resources/messages_da_DK.properties @@ -1859,6 +1859,10 @@ editTableOfContents.replaceExisting=Replace existing bookmarks (uncheck to appen editTableOfContents.editorTitle=Bookmark Editor editTableOfContents.editorDesc=Add and arrange bookmarks below. Click + to add child bookmarks. editTableOfContents.addBookmark=Add New Bookmark +editTableOfContents.importBookmarks=Import +editTableOfContents.exportBookmarks=Export +editTableOfContents.importBookmarksHint=Load bookmark data from clipboard +editTableOfContents.exportBookmarksHint=Export bookmark data as string to clipboard editTableOfContents.desc.1=This tool allows you to add or edit the table of contents (bookmarks) in a PDF document. editTableOfContents.desc.2=You can create a hierarchical structure by adding child bookmarks to parent bookmarks. editTableOfContents.desc.3=Each bookmark requires a title and target page number. diff --git a/app/core/src/main/resources/messages_el_GR.properties b/app/core/src/main/resources/messages_el_GR.properties index 82fc98ef9..5a4afcd61 100644 --- a/app/core/src/main/resources/messages_el_GR.properties +++ b/app/core/src/main/resources/messages_el_GR.properties @@ -1859,6 +1859,10 @@ editTableOfContents.replaceExisting=Replace existing bookmarks (uncheck to appen editTableOfContents.editorTitle=Bookmark Editor editTableOfContents.editorDesc=Add and arrange bookmarks below. Click + to add child bookmarks. editTableOfContents.addBookmark=Add New Bookmark +editTableOfContents.importBookmarks=Import +editTableOfContents.exportBookmarks=Export +editTableOfContents.importBookmarksHint=Load bookmark data from clipboard +editTableOfContents.exportBookmarksHint=Export bookmark data as string to clipboard editTableOfContents.desc.1=This tool allows you to add or edit the table of contents (bookmarks) in a PDF document. editTableOfContents.desc.2=You can create a hierarchical structure by adding child bookmarks to parent bookmarks. editTableOfContents.desc.3=Each bookmark requires a title and target page number. diff --git a/app/core/src/main/resources/messages_es_ES.properties b/app/core/src/main/resources/messages_es_ES.properties index 5601e76c0..fa44564ce 100644 --- a/app/core/src/main/resources/messages_es_ES.properties +++ b/app/core/src/main/resources/messages_es_ES.properties @@ -1859,6 +1859,10 @@ editTableOfContents.replaceExisting=Replace existing bookmarks (uncheck to appen editTableOfContents.editorTitle=Bookmark Editor editTableOfContents.editorDesc=Add and arrange bookmarks below. Click + to add child bookmarks. editTableOfContents.addBookmark=Add New Bookmark +editTableOfContents.importBookmarks=Import +editTableOfContents.exportBookmarks=Export +editTableOfContents.importBookmarksHint=Load bookmark data from clipboard +editTableOfContents.exportBookmarksHint=Export bookmark data as string to clipboard editTableOfContents.desc.1=This tool allows you to add or edit the table of contents (bookmarks) in a PDF document. editTableOfContents.desc.2=You can create a hierarchical structure by adding child bookmarks to parent bookmarks. editTableOfContents.desc.3=Each bookmark requires a title and target page number. diff --git a/app/core/src/main/resources/messages_eu_ES.properties b/app/core/src/main/resources/messages_eu_ES.properties index bda28227f..840f0fca4 100644 --- a/app/core/src/main/resources/messages_eu_ES.properties +++ b/app/core/src/main/resources/messages_eu_ES.properties @@ -1859,6 +1859,10 @@ editTableOfContents.replaceExisting=Replace existing bookmarks (uncheck to appen editTableOfContents.editorTitle=Bookmark Editor editTableOfContents.editorDesc=Add and arrange bookmarks below. Click + to add child bookmarks. editTableOfContents.addBookmark=Add New Bookmark +editTableOfContents.importBookmarks=Import +editTableOfContents.exportBookmarks=Export +editTableOfContents.importBookmarksHint=Load bookmark data from clipboard +editTableOfContents.exportBookmarksHint=Export bookmark data as string to clipboard editTableOfContents.desc.1=This tool allows you to add or edit the table of contents (bookmarks) in a PDF document. editTableOfContents.desc.2=You can create a hierarchical structure by adding child bookmarks to parent bookmarks. editTableOfContents.desc.3=Each bookmark requires a title and target page number. diff --git a/app/core/src/main/resources/messages_fa_IR.properties b/app/core/src/main/resources/messages_fa_IR.properties index a1cfbe5b5..8661c6fa1 100644 --- a/app/core/src/main/resources/messages_fa_IR.properties +++ b/app/core/src/main/resources/messages_fa_IR.properties @@ -1859,6 +1859,10 @@ editTableOfContents.replaceExisting=Replace existing bookmarks (uncheck to appen editTableOfContents.editorTitle=Bookmark Editor editTableOfContents.editorDesc=Add and arrange bookmarks below. Click + to add child bookmarks. editTableOfContents.addBookmark=Add New Bookmark +editTableOfContents.importBookmarks=Import +editTableOfContents.exportBookmarks=Export +editTableOfContents.importBookmarksHint=Load bookmark data from clipboard +editTableOfContents.exportBookmarksHint=Export bookmark data as string to clipboard editTableOfContents.desc.1=This tool allows you to add or edit the table of contents (bookmarks) in a PDF document. editTableOfContents.desc.2=You can create a hierarchical structure by adding child bookmarks to parent bookmarks. editTableOfContents.desc.3=Each bookmark requires a title and target page number. diff --git a/app/core/src/main/resources/messages_fr_FR.properties b/app/core/src/main/resources/messages_fr_FR.properties index 2a3a7c6b5..51f224958 100644 --- a/app/core/src/main/resources/messages_fr_FR.properties +++ b/app/core/src/main/resources/messages_fr_FR.properties @@ -1859,6 +1859,10 @@ editTableOfContents.replaceExisting=Remplacer les signets existants (décocher p editTableOfContents.editorTitle=Éditeur de signets editTableOfContents.editorDesc=Ajoutez et organisez les signets ci-dessous. Cliquez sur + pour ajouter des signets enfants. editTableOfContents.addBookmark=Ajouter un nouveau signet +editTableOfContents.importBookmarks=Import +editTableOfContents.exportBookmarks=Export +editTableOfContents.importBookmarksHint=Load bookmark data from clipboard +editTableOfContents.exportBookmarksHint=Export bookmark data as string to clipboard editTableOfContents.desc.1=Cet outil vous permet d'ajouter ou de modifier la table des matières (signets) dans un document PDF. editTableOfContents.desc.2=Vous pouvez créer une structure hiérarchique en ajoutant des signets enfants à des signets parents. editTableOfContents.desc.3=Chaque signet nécessite un titre et un numéro de page cible. diff --git a/app/core/src/main/resources/messages_ga_IE.properties b/app/core/src/main/resources/messages_ga_IE.properties index 7a5d87de3..b21c21fe3 100644 --- a/app/core/src/main/resources/messages_ga_IE.properties +++ b/app/core/src/main/resources/messages_ga_IE.properties @@ -1859,6 +1859,10 @@ editTableOfContents.replaceExisting=Replace existing bookmarks (uncheck to appen editTableOfContents.editorTitle=Bookmark Editor editTableOfContents.editorDesc=Add and arrange bookmarks below. Click + to add child bookmarks. editTableOfContents.addBookmark=Add New Bookmark +editTableOfContents.importBookmarks=Import +editTableOfContents.exportBookmarks=Export +editTableOfContents.importBookmarksHint=Load bookmark data from clipboard +editTableOfContents.exportBookmarksHint=Export bookmark data as string to clipboard editTableOfContents.desc.1=This tool allows you to add or edit the table of contents (bookmarks) in a PDF document. editTableOfContents.desc.2=You can create a hierarchical structure by adding child bookmarks to parent bookmarks. editTableOfContents.desc.3=Each bookmark requires a title and target page number. diff --git a/app/core/src/main/resources/messages_hi_IN.properties b/app/core/src/main/resources/messages_hi_IN.properties index ced3f3300..f902a42d4 100644 --- a/app/core/src/main/resources/messages_hi_IN.properties +++ b/app/core/src/main/resources/messages_hi_IN.properties @@ -1859,6 +1859,10 @@ editTableOfContents.replaceExisting=Replace existing bookmarks (uncheck to appen editTableOfContents.editorTitle=Bookmark Editor editTableOfContents.editorDesc=Add and arrange bookmarks below. Click + to add child bookmarks. editTableOfContents.addBookmark=Add New Bookmark +editTableOfContents.importBookmarks=Import +editTableOfContents.exportBookmarks=Export +editTableOfContents.importBookmarksHint=Load bookmark data from clipboard +editTableOfContents.exportBookmarksHint=Export bookmark data as string to clipboard editTableOfContents.desc.1=This tool allows you to add or edit the table of contents (bookmarks) in a PDF document. editTableOfContents.desc.2=You can create a hierarchical structure by adding child bookmarks to parent bookmarks. editTableOfContents.desc.3=Each bookmark requires a title and target page number. diff --git a/app/core/src/main/resources/messages_hr_HR.properties b/app/core/src/main/resources/messages_hr_HR.properties index f311a93dd..b173bb3cf 100644 --- a/app/core/src/main/resources/messages_hr_HR.properties +++ b/app/core/src/main/resources/messages_hr_HR.properties @@ -1859,6 +1859,10 @@ editTableOfContents.replaceExisting=Replace existing bookmarks (uncheck to appen editTableOfContents.editorTitle=Bookmark Editor editTableOfContents.editorDesc=Add and arrange bookmarks below. Click + to add child bookmarks. editTableOfContents.addBookmark=Add New Bookmark +editTableOfContents.importBookmarks=Import +editTableOfContents.exportBookmarks=Export +editTableOfContents.importBookmarksHint=Load bookmark data from clipboard +editTableOfContents.exportBookmarksHint=Export bookmark data as string to clipboard editTableOfContents.desc.1=This tool allows you to add or edit the table of contents (bookmarks) in a PDF document. editTableOfContents.desc.2=You can create a hierarchical structure by adding child bookmarks to parent bookmarks. editTableOfContents.desc.3=Each bookmark requires a title and target page number. diff --git a/app/core/src/main/resources/messages_hu_HU.properties b/app/core/src/main/resources/messages_hu_HU.properties index f04440968..4d7897aad 100644 --- a/app/core/src/main/resources/messages_hu_HU.properties +++ b/app/core/src/main/resources/messages_hu_HU.properties @@ -1859,6 +1859,10 @@ editTableOfContents.replaceExisting=Meglévő könyvjelzők cseréje (törölje editTableOfContents.editorTitle=Könyvjelző szerkesztő editTableOfContents.editorDesc=Könyvjelzők hozzáadása és rendezése lent. Kattintson a + gombra gyermek könyvjelzők hozzáadásához. editTableOfContents.addBookmark=Új könyvjelző hozzáadása +editTableOfContents.importBookmarks=Import +editTableOfContents.exportBookmarks=Export +editTableOfContents.importBookmarksHint=Load bookmark data from clipboard +editTableOfContents.exportBookmarksHint=Export bookmark data as string to clipboard editTableOfContents.desc.1=Ez az eszköz lehetővé teszi a tartalomjegyzék (könyvjelzők) hozzáadását vagy szerkesztését egy PDF dokumentumban. editTableOfContents.desc.2=Hierarchikus struktúrákat hozhat létre, ha gyermek könyvjelzőket ad a szülő könyvjelzőkhöz. editTableOfContents.desc.3=Minden könyvjelzőhöz szükséges egy cím és egy céloldalszám. diff --git a/app/core/src/main/resources/messages_id_ID.properties b/app/core/src/main/resources/messages_id_ID.properties index 3a706535a..dc84a46a6 100644 --- a/app/core/src/main/resources/messages_id_ID.properties +++ b/app/core/src/main/resources/messages_id_ID.properties @@ -1859,6 +1859,10 @@ editTableOfContents.replaceExisting=Replace existing bookmarks (uncheck to appen editTableOfContents.editorTitle=Bookmark Editor editTableOfContents.editorDesc=Add and arrange bookmarks below. Click + to add child bookmarks. editTableOfContents.addBookmark=Add New Bookmark +editTableOfContents.importBookmarks=Import +editTableOfContents.exportBookmarks=Export +editTableOfContents.importBookmarksHint=Load bookmark data from clipboard +editTableOfContents.exportBookmarksHint=Export bookmark data as string to clipboard editTableOfContents.desc.1=This tool allows you to add or edit the table of contents (bookmarks) in a PDF document. editTableOfContents.desc.2=You can create a hierarchical structure by adding child bookmarks to parent bookmarks. editTableOfContents.desc.3=Each bookmark requires a title and target page number. diff --git a/app/core/src/main/resources/messages_it_IT.properties b/app/core/src/main/resources/messages_it_IT.properties index bba74394b..762320d16 100644 --- a/app/core/src/main/resources/messages_it_IT.properties +++ b/app/core/src/main/resources/messages_it_IT.properties @@ -1859,6 +1859,10 @@ editTableOfContents.replaceExisting=Sostituisci i segnalibri esistenti (deselezi editTableOfContents.editorTitle=Editor segnalibri editTableOfContents.editorDesc=Aggiungi e disponi i segnalibri qui sotto. Fai clic su + per aggiungere segnalibri secondari. editTableOfContents.addBookmark=Aggiungi nuovo segnalibro +editTableOfContents.importBookmarks=Import +editTableOfContents.exportBookmarks=Export +editTableOfContents.importBookmarksHint=Load bookmark data from clipboard +editTableOfContents.exportBookmarksHint=Export bookmark data as string to clipboard editTableOfContents.desc.1=Questo strumento consente di aggiungere o modificare il sommario (segnalibri) in un documento PDF. editTableOfContents.desc.2=È possibile creare una struttura gerarchica aggiungendo segnalibri secondari a quelli principali. editTableOfContents.desc.3=Ogni segnalibro richiede un titolo e un numero di pagina di destinazione. diff --git a/app/core/src/main/resources/messages_ja_JP.properties b/app/core/src/main/resources/messages_ja_JP.properties index bdb30dc7b..1ba900399 100644 --- a/app/core/src/main/resources/messages_ja_JP.properties +++ b/app/core/src/main/resources/messages_ja_JP.properties @@ -1859,6 +1859,10 @@ editTableOfContents.replaceExisting=既存のしおりを置き換える(既 editTableOfContents.editorTitle=しおりエディター editTableOfContents.editorDesc=以下にしおりを追加して配置します。+をクリックして、子のしおりを追加します。 editTableOfContents.addBookmark=新しいしおりを追加 +editTableOfContents.importBookmarks=Import +editTableOfContents.exportBookmarks=Export +editTableOfContents.importBookmarksHint=Load bookmark data from clipboard +editTableOfContents.exportBookmarksHint=Export bookmark data as string to clipboard editTableOfContents.desc.1=このツールを使用すると、PDFドキュメントに目次(しおり)を追加または編集できます。 editTableOfContents.desc.2=親しおりに子しおりを追加することで階層構造を作成できます。 editTableOfContents.desc.3=各しおりにはタイトルと対象のページ番号が必要です。 diff --git a/app/core/src/main/resources/messages_ko_KR.properties b/app/core/src/main/resources/messages_ko_KR.properties index 76f7ca715..69b849523 100644 --- a/app/core/src/main/resources/messages_ko_KR.properties +++ b/app/core/src/main/resources/messages_ko_KR.properties @@ -1859,6 +1859,10 @@ editTableOfContents.replaceExisting=Replace existing bookmarks (uncheck to appen editTableOfContents.editorTitle=Bookmark Editor editTableOfContents.editorDesc=Add and arrange bookmarks below. Click + to add child bookmarks. editTableOfContents.addBookmark=Add New Bookmark +editTableOfContents.importBookmarks=Import +editTableOfContents.exportBookmarks=Export +editTableOfContents.importBookmarksHint=Load bookmark data from clipboard +editTableOfContents.exportBookmarksHint=Export bookmark data as string to clipboard editTableOfContents.desc.1=This tool allows you to add or edit the table of contents (bookmarks) in a PDF document. editTableOfContents.desc.2=You can create a hierarchical structure by adding child bookmarks to parent bookmarks. editTableOfContents.desc.3=Each bookmark requires a title and target page number. diff --git a/app/core/src/main/resources/messages_ml_IN.properties b/app/core/src/main/resources/messages_ml_IN.properties index 164209212..aec0d185b 100644 --- a/app/core/src/main/resources/messages_ml_IN.properties +++ b/app/core/src/main/resources/messages_ml_IN.properties @@ -1859,6 +1859,10 @@ editTableOfContents.replaceExisting=Replace existing bookmarks (uncheck to appen editTableOfContents.editorTitle=Bookmark Editor editTableOfContents.editorDesc=Add and arrange bookmarks below. Click + to add child bookmarks. editTableOfContents.addBookmark=Add New Bookmark +editTableOfContents.importBookmarks=Import +editTableOfContents.exportBookmarks=Export +editTableOfContents.importBookmarksHint=Load bookmark data from clipboard +editTableOfContents.exportBookmarksHint=Export bookmark data as string to clipboard editTableOfContents.desc.1=This tool allows you to add or edit the table of contents (bookmarks) in a PDF document. editTableOfContents.desc.2=You can create a hierarchical structure by adding child bookmarks to parent bookmarks. editTableOfContents.desc.3=Each bookmark requires a title and target page number. diff --git a/app/core/src/main/resources/messages_nl_NL.properties b/app/core/src/main/resources/messages_nl_NL.properties index 9a1af6e0a..d108bb255 100644 --- a/app/core/src/main/resources/messages_nl_NL.properties +++ b/app/core/src/main/resources/messages_nl_NL.properties @@ -1859,6 +1859,10 @@ editTableOfContents.replaceExisting=Replace existing bookmarks (uncheck to appen editTableOfContents.editorTitle=Bookmark Editor editTableOfContents.editorDesc=Add and arrange bookmarks below. Click + to add child bookmarks. editTableOfContents.addBookmark=Add New Bookmark +editTableOfContents.importBookmarks=Import +editTableOfContents.exportBookmarks=Export +editTableOfContents.importBookmarksHint=Load bookmark data from clipboard +editTableOfContents.exportBookmarksHint=Export bookmark data as string to clipboard editTableOfContents.desc.1=This tool allows you to add or edit the table of contents (bookmarks) in a PDF document. editTableOfContents.desc.2=You can create a hierarchical structure by adding child bookmarks to parent bookmarks. editTableOfContents.desc.3=Each bookmark requires a title and target page number. diff --git a/app/core/src/main/resources/messages_no_NB.properties b/app/core/src/main/resources/messages_no_NB.properties index 03d42816d..ed568846a 100644 --- a/app/core/src/main/resources/messages_no_NB.properties +++ b/app/core/src/main/resources/messages_no_NB.properties @@ -1859,6 +1859,10 @@ editTableOfContents.replaceExisting=Replace existing bookmarks (uncheck to appen editTableOfContents.editorTitle=Bookmark Editor editTableOfContents.editorDesc=Add and arrange bookmarks below. Click + to add child bookmarks. editTableOfContents.addBookmark=Add New Bookmark +editTableOfContents.importBookmarks=Import +editTableOfContents.exportBookmarks=Export +editTableOfContents.importBookmarksHint=Load bookmark data from clipboard +editTableOfContents.exportBookmarksHint=Export bookmark data as string to clipboard editTableOfContents.desc.1=This tool allows you to add or edit the table of contents (bookmarks) in a PDF document. editTableOfContents.desc.2=You can create a hierarchical structure by adding child bookmarks to parent bookmarks. editTableOfContents.desc.3=Each bookmark requires a title and target page number. diff --git a/app/core/src/main/resources/messages_pl_PL.properties b/app/core/src/main/resources/messages_pl_PL.properties index 4963d7bc6..06a1384eb 100644 --- a/app/core/src/main/resources/messages_pl_PL.properties +++ b/app/core/src/main/resources/messages_pl_PL.properties @@ -1859,6 +1859,10 @@ editTableOfContents.replaceExisting=Replace existing bookmarks (uncheck to appen editTableOfContents.editorTitle=Bookmark Editor editTableOfContents.editorDesc=Add and arrange bookmarks below. Click + to add child bookmarks. editTableOfContents.addBookmark=Add New Bookmark +editTableOfContents.importBookmarks=Import +editTableOfContents.exportBookmarks=Export +editTableOfContents.importBookmarksHint=Load bookmark data from clipboard +editTableOfContents.exportBookmarksHint=Export bookmark data as string to clipboard editTableOfContents.desc.1=This tool allows you to add or edit the table of contents (bookmarks) in a PDF document. editTableOfContents.desc.2=You can create a hierarchical structure by adding child bookmarks to parent bookmarks. editTableOfContents.desc.3=Each bookmark requires a title and target page number. diff --git a/app/core/src/main/resources/messages_pt_BR.properties b/app/core/src/main/resources/messages_pt_BR.properties index 552139b52..20b3743e3 100644 --- a/app/core/src/main/resources/messages_pt_BR.properties +++ b/app/core/src/main/resources/messages_pt_BR.properties @@ -1859,6 +1859,10 @@ editTableOfContents.replaceExisting=Replace existing bookmarks (uncheck to appen editTableOfContents.editorTitle=Bookmark Editor editTableOfContents.editorDesc=Add and arrange bookmarks below. Click + to add child bookmarks. editTableOfContents.addBookmark=Add New Bookmark +editTableOfContents.importBookmarks=Import +editTableOfContents.exportBookmarks=Export +editTableOfContents.importBookmarksHint=Load bookmark data from clipboard +editTableOfContents.exportBookmarksHint=Export bookmark data as string to clipboard editTableOfContents.desc.1=This tool allows you to add or edit the table of contents (bookmarks) in a PDF document. editTableOfContents.desc.2=You can create a hierarchical structure by adding child bookmarks to parent bookmarks. editTableOfContents.desc.3=Each bookmark requires a title and target page number. diff --git a/app/core/src/main/resources/messages_pt_PT.properties b/app/core/src/main/resources/messages_pt_PT.properties index dc99a45c9..8ccd8a926 100644 --- a/app/core/src/main/resources/messages_pt_PT.properties +++ b/app/core/src/main/resources/messages_pt_PT.properties @@ -1859,6 +1859,10 @@ editTableOfContents.replaceExisting=Replace existing bookmarks (uncheck to appen editTableOfContents.editorTitle=Bookmark Editor editTableOfContents.editorDesc=Add and arrange bookmarks below. Click + to add child bookmarks. editTableOfContents.addBookmark=Add New Bookmark +editTableOfContents.importBookmarks=Import +editTableOfContents.exportBookmarks=Export +editTableOfContents.importBookmarksHint=Load bookmark data from clipboard +editTableOfContents.exportBookmarksHint=Export bookmark data as string to clipboard editTableOfContents.desc.1=This tool allows you to add or edit the table of contents (bookmarks) in a PDF document. editTableOfContents.desc.2=You can create a hierarchical structure by adding child bookmarks to parent bookmarks. editTableOfContents.desc.3=Each bookmark requires a title and target page number. diff --git a/app/core/src/main/resources/messages_ro_RO.properties b/app/core/src/main/resources/messages_ro_RO.properties index 25bc477b1..feb1ddf26 100644 --- a/app/core/src/main/resources/messages_ro_RO.properties +++ b/app/core/src/main/resources/messages_ro_RO.properties @@ -1859,6 +1859,10 @@ editTableOfContents.replaceExisting=Replace existing bookmarks (uncheck to appen editTableOfContents.editorTitle=Bookmark Editor editTableOfContents.editorDesc=Add and arrange bookmarks below. Click + to add child bookmarks. editTableOfContents.addBookmark=Add New Bookmark +editTableOfContents.importBookmarks=Import +editTableOfContents.exportBookmarks=Export +editTableOfContents.importBookmarksHint=Load bookmark data from clipboard +editTableOfContents.exportBookmarksHint=Export bookmark data as string to clipboard editTableOfContents.desc.1=This tool allows you to add or edit the table of contents (bookmarks) in a PDF document. editTableOfContents.desc.2=You can create a hierarchical structure by adding child bookmarks to parent bookmarks. editTableOfContents.desc.3=Each bookmark requires a title and target page number. diff --git a/app/core/src/main/resources/messages_ru_RU.properties b/app/core/src/main/resources/messages_ru_RU.properties index e414408f1..cd3b09cc8 100644 --- a/app/core/src/main/resources/messages_ru_RU.properties +++ b/app/core/src/main/resources/messages_ru_RU.properties @@ -1859,6 +1859,10 @@ editTableOfContents.replaceExisting=Заменить существующие з editTableOfContents.editorTitle=Редактор закладок editTableOfContents.editorDesc=Добавьте и упорядочьте закладки ниже. Нажмите «+», чтобы добавить дочерние закладки. editTableOfContents.addBookmark=Добавить новую закладку +editTableOfContents.importBookmarks=Import +editTableOfContents.exportBookmarks=Export +editTableOfContents.importBookmarksHint=Load bookmark data from clipboard +editTableOfContents.exportBookmarksHint=Export bookmark data as string to clipboard editTableOfContents.desc.1=Этот инструмент позволяет вам добавлять или редактировать оглавление (закладки) в PDF-документе. editTableOfContents.desc.2=Вы можете создать иерархическую структуру, добавив дочерние закладки к родительским. editTableOfContents.desc.3=Для каждой закладки требуется название и номер целевой страницы. diff --git a/app/core/src/main/resources/messages_sk_SK.properties b/app/core/src/main/resources/messages_sk_SK.properties index 094265d29..056082f99 100644 --- a/app/core/src/main/resources/messages_sk_SK.properties +++ b/app/core/src/main/resources/messages_sk_SK.properties @@ -1859,6 +1859,10 @@ editTableOfContents.replaceExisting=Replace existing bookmarks (uncheck to appen editTableOfContents.editorTitle=Bookmark Editor editTableOfContents.editorDesc=Add and arrange bookmarks below. Click + to add child bookmarks. editTableOfContents.addBookmark=Add New Bookmark +editTableOfContents.importBookmarks=Import +editTableOfContents.exportBookmarks=Export +editTableOfContents.importBookmarksHint=Load bookmark data from clipboard +editTableOfContents.exportBookmarksHint=Export bookmark data as string to clipboard editTableOfContents.desc.1=This tool allows you to add or edit the table of contents (bookmarks) in a PDF document. editTableOfContents.desc.2=You can create a hierarchical structure by adding child bookmarks to parent bookmarks. editTableOfContents.desc.3=Each bookmark requires a title and target page number. diff --git a/app/core/src/main/resources/messages_sl_SI.properties b/app/core/src/main/resources/messages_sl_SI.properties index f75e714af..3ab921c5f 100644 --- a/app/core/src/main/resources/messages_sl_SI.properties +++ b/app/core/src/main/resources/messages_sl_SI.properties @@ -1859,6 +1859,10 @@ editTableOfContents.replaceExisting=Replace existing bookmarks (uncheck to appen editTableOfContents.editorTitle=Bookmark Editor editTableOfContents.editorDesc=Add and arrange bookmarks below. Click + to add child bookmarks. editTableOfContents.addBookmark=Add New Bookmark +editTableOfContents.importBookmarks=Import +editTableOfContents.exportBookmarks=Export +editTableOfContents.importBookmarksHint=Load bookmark data from clipboard +editTableOfContents.exportBookmarksHint=Export bookmark data as string to clipboard editTableOfContents.desc.1=This tool allows you to add or edit the table of contents (bookmarks) in a PDF document. editTableOfContents.desc.2=You can create a hierarchical structure by adding child bookmarks to parent bookmarks. editTableOfContents.desc.3=Each bookmark requires a title and target page number. diff --git a/app/core/src/main/resources/messages_sr_LATN_RS.properties b/app/core/src/main/resources/messages_sr_LATN_RS.properties index 809a785ee..c7e0a7e6a 100644 --- a/app/core/src/main/resources/messages_sr_LATN_RS.properties +++ b/app/core/src/main/resources/messages_sr_LATN_RS.properties @@ -1859,6 +1859,10 @@ editTableOfContents.replaceExisting=Zameni postojeće obeleživače (isključi d editTableOfContents.editorTitle=Editor obeleživača editTableOfContents.editorDesc=Dodaj i rasporedi obeleživače ispod. Klikni + za dodavanje podređenih obeleživača. editTableOfContents.addBookmark=Dodaj novi obeleživač +editTableOfContents.importBookmarks=Import +editTableOfContents.exportBookmarks=Export +editTableOfContents.importBookmarksHint=Load bookmark data from clipboard +editTableOfContents.exportBookmarksHint=Export bookmark data as string to clipboard editTableOfContents.desc.1=Ovaj alat omogućava dodavanje ili izmenu sadržaja (obeleživača) u PDF dokumentu. editTableOfContents.desc.2=Moguće je kreirati hijerarhijsku strukturu dodavanjem podređenih obeleživača nadređenim obeleživačima. editTableOfContents.desc.3=Svaki obeleživač zahteva naslov i broj ciljne strane. diff --git a/app/core/src/main/resources/messages_sv_SE.properties b/app/core/src/main/resources/messages_sv_SE.properties index 086789fcd..f463b78d5 100644 --- a/app/core/src/main/resources/messages_sv_SE.properties +++ b/app/core/src/main/resources/messages_sv_SE.properties @@ -1859,6 +1859,10 @@ editTableOfContents.replaceExisting=Replace existing bookmarks (uncheck to appen editTableOfContents.editorTitle=Bookmark Editor editTableOfContents.editorDesc=Add and arrange bookmarks below. Click + to add child bookmarks. editTableOfContents.addBookmark=Add New Bookmark +editTableOfContents.importBookmarks=Import +editTableOfContents.exportBookmarks=Export +editTableOfContents.importBookmarksHint=Load bookmark data from clipboard +editTableOfContents.exportBookmarksHint=Export bookmark data as string to clipboard editTableOfContents.desc.1=This tool allows you to add or edit the table of contents (bookmarks) in a PDF document. editTableOfContents.desc.2=You can create a hierarchical structure by adding child bookmarks to parent bookmarks. editTableOfContents.desc.3=Each bookmark requires a title and target page number. diff --git a/app/core/src/main/resources/messages_th_TH.properties b/app/core/src/main/resources/messages_th_TH.properties index 2637eadf2..5bd68c6c9 100644 --- a/app/core/src/main/resources/messages_th_TH.properties +++ b/app/core/src/main/resources/messages_th_TH.properties @@ -1859,6 +1859,10 @@ editTableOfContents.replaceExisting=Replace existing bookmarks (uncheck to appen editTableOfContents.editorTitle=Bookmark Editor editTableOfContents.editorDesc=Add and arrange bookmarks below. Click + to add child bookmarks. editTableOfContents.addBookmark=Add New Bookmark +editTableOfContents.importBookmarks=Import +editTableOfContents.exportBookmarks=Export +editTableOfContents.importBookmarksHint=Load bookmark data from clipboard +editTableOfContents.exportBookmarksHint=Export bookmark data as string to clipboard editTableOfContents.desc.1=This tool allows you to add or edit the table of contents (bookmarks) in a PDF document. editTableOfContents.desc.2=You can create a hierarchical structure by adding child bookmarks to parent bookmarks. editTableOfContents.desc.3=Each bookmark requires a title and target page number. diff --git a/app/core/src/main/resources/messages_tr_TR.properties b/app/core/src/main/resources/messages_tr_TR.properties index 2da6244ff..c068c12b5 100644 --- a/app/core/src/main/resources/messages_tr_TR.properties +++ b/app/core/src/main/resources/messages_tr_TR.properties @@ -1859,6 +1859,10 @@ editTableOfContents.replaceExisting=Mevcut yer işaretlerini değiştir (var ola editTableOfContents.editorTitle=Yer İşareti Düzenleyici editTableOfContents.editorDesc=Aşağıdan yer işaretleri ekleyin ve düzenleyin. Alt yer işareti eklemek için + simgesine tıklayın. editTableOfContents.addBookmark=Yeni Yer İşareti Ekle +editTableOfContents.importBookmarks=Import +editTableOfContents.exportBookmarks=Export +editTableOfContents.importBookmarksHint=Load bookmark data from clipboard +editTableOfContents.exportBookmarksHint=Export bookmark data as string to clipboard editTableOfContents.desc.1=Bu araç, bir PDF belgesine içindekiler tablosu (yer işaretleri) eklemenizi veya mevcut olanları düzenlemenizi sağlar. editTableOfContents.desc.2=Alt yer işaretleri ekleyerek hiyerarşik bir yapı oluşturabilirsiniz. editTableOfContents.desc.3=Her yer işareti bir başlık ve hedef sayfa numarası gerektirir. diff --git a/app/core/src/main/resources/messages_uk_UA.properties b/app/core/src/main/resources/messages_uk_UA.properties index 89518dca8..720464acc 100644 --- a/app/core/src/main/resources/messages_uk_UA.properties +++ b/app/core/src/main/resources/messages_uk_UA.properties @@ -1859,6 +1859,10 @@ editTableOfContents.replaceExisting=Replace existing bookmarks (uncheck to appen editTableOfContents.editorTitle=Bookmark Editor editTableOfContents.editorDesc=Add and arrange bookmarks below. Click + to add child bookmarks. editTableOfContents.addBookmark=Add New Bookmark +editTableOfContents.importBookmarks=Import +editTableOfContents.exportBookmarks=Export +editTableOfContents.importBookmarksHint=Load bookmark data from clipboard +editTableOfContents.exportBookmarksHint=Export bookmark data as string to clipboard editTableOfContents.desc.1=This tool allows you to add or edit the table of contents (bookmarks) in a PDF document. editTableOfContents.desc.2=You can create a hierarchical structure by adding child bookmarks to parent bookmarks. editTableOfContents.desc.3=Each bookmark requires a title and target page number. diff --git a/app/core/src/main/resources/messages_vi_VN.properties b/app/core/src/main/resources/messages_vi_VN.properties index dcf69cce8..ad7e857a9 100644 --- a/app/core/src/main/resources/messages_vi_VN.properties +++ b/app/core/src/main/resources/messages_vi_VN.properties @@ -1859,6 +1859,10 @@ editTableOfContents.replaceExisting=Replace existing bookmarks (uncheck to appen editTableOfContents.editorTitle=Bookmark Editor editTableOfContents.editorDesc=Add and arrange bookmarks below. Click + to add child bookmarks. editTableOfContents.addBookmark=Add New Bookmark +editTableOfContents.importBookmarks=Import +editTableOfContents.exportBookmarks=Export +editTableOfContents.importBookmarksHint=Load bookmark data from clipboard +editTableOfContents.exportBookmarksHint=Export bookmark data as string to clipboard editTableOfContents.desc.1=This tool allows you to add or edit the table of contents (bookmarks) in a PDF document. editTableOfContents.desc.2=You can create a hierarchical structure by adding child bookmarks to parent bookmarks. editTableOfContents.desc.3=Each bookmark requires a title and target page number. diff --git a/app/core/src/main/resources/messages_zh_CN.properties b/app/core/src/main/resources/messages_zh_CN.properties index 247b6ea70..4fbf44759 100644 --- a/app/core/src/main/resources/messages_zh_CN.properties +++ b/app/core/src/main/resources/messages_zh_CN.properties @@ -1859,6 +1859,10 @@ editTableOfContents.replaceExisting=替换现有书签(取消勾选则追加 editTableOfContents.editorTitle=书签编辑器 editTableOfContents.editorDesc=在下方添加并排列书签,点击 + 可添加子书签 editTableOfContents.addBookmark=添加书签 +editTableOfContents.importBookmarks=Import +editTableOfContents.exportBookmarks=Export +editTableOfContents.importBookmarksHint=Load bookmark data from clipboard +editTableOfContents.exportBookmarksHint=Export bookmark data as string to clipboard editTableOfContents.desc.1=此工具可用于在 PDF 文档中添加或编辑目录(书签) editTableOfContents.desc.2=您可以通过为父书签添加子书签来构建层级结构 editTableOfContents.desc.3=每个书签需填写标题和目标页码 diff --git a/app/core/src/main/resources/messages_zh_TW.properties b/app/core/src/main/resources/messages_zh_TW.properties index 95c9bf20e..d005a3d41 100644 --- a/app/core/src/main/resources/messages_zh_TW.properties +++ b/app/core/src/main/resources/messages_zh_TW.properties @@ -1859,6 +1859,10 @@ editTableOfContents.replaceExisting=取代現有書籤 (取消勾選以附加到 editTableOfContents.editorTitle=書籤編輯器 editTableOfContents.editorDesc=在下方新增和排列書籤。點選 + 新增子書籤。 editTableOfContents.addBookmark=新增書籤 +editTableOfContents.importBookmarks=Import +editTableOfContents.exportBookmarks=Export +editTableOfContents.importBookmarksHint=Load bookmark data from clipboard +editTableOfContents.exportBookmarksHint=Export bookmark data as string to clipboard editTableOfContents.desc.1=此工具可讓您在 PDF 文件中新增或編輯目錄 (書籤)。 editTableOfContents.desc.2=您可以透過將子書籤新增至父書籤來建立階層式結構。 editTableOfContents.desc.3=每個書籤都需要標題和目標頁碼。 From 538e1534d5f597599a0343c9d9495cfd0503d008 Mon Sep 17 00:00:00 2001 From: Lukas <38840142+lukasstorck@users.noreply.github.com> Date: Sat, 2 Aug 2025 11:11:36 +0200 Subject: [PATCH 6/6] fix: hide import/export buttons when clipboard is not available --- .../static/js/pages/edit-table-of-contents.js | 12 ++++++++++-- .../resources/templates/edit-table-of-contents.html | 4 ++-- 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/app/core/src/main/resources/static/js/pages/edit-table-of-contents.js b/app/core/src/main/resources/static/js/pages/edit-table-of-contents.js index 3852fadb0..3c1991182 100644 --- a/app/core/src/main/resources/static/js/pages/edit-table-of-contents.js +++ b/app/core/src/main/resources/static/js/pages/edit-table-of-contents.js @@ -640,8 +640,16 @@ document.addEventListener('DOMContentLoaded', function() { } // Add event listeners for import/export buttons - document.getElementById('importBookmarksBtn').addEventListener('click', importBookmarkStringFromClipboard); - document.getElementById('exportBookmarksBtn').addEventListener('click', exportBookmarkStringToClipboard); + const importBookmarksBtn = document.getElementById('importBookmarksBtn'); + const exportBookmarksBtn = document.getElementById('exportBookmarksBtn'); + importBookmarksBtn.addEventListener('click', importBookmarkStringFromClipboard); + exportBookmarksBtn.addEventListener('click', exportBookmarkStringToClipboard); + + // display import/export buttons if supported + if (navigator.clipboard && navigator.clipboard.writeText && navigator.clipboard.readText) { + importBookmarksBtn.classList.remove('d-none'); + exportBookmarksBtn.classList.remove('d-none'); + } // Listen for theme changes to update badge colors const observer = new MutationObserver(function(mutations) { diff --git a/app/core/src/main/resources/templates/edit-table-of-contents.html b/app/core/src/main/resources/templates/edit-table-of-contents.html index c9f00e411..43ae26fae 100644 --- a/app/core/src/main/resources/templates/edit-table-of-contents.html +++ b/app/core/src/main/resources/templates/edit-table-of-contents.html @@ -45,7 +45,7 @@