SafePDF 1.0.16__tar.gz → 1.1.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {safepdf-1.0.16/SafePDF.egg-info → safepdf-1.1.0}/PKG-INFO +19 -7
- {safepdf-1.0.16 → safepdf-1.1.0}/README.md +18 -6
- {safepdf-1.0.16 → safepdf-1.1.0}/SafePDF/__init__.py +1 -1
- {safepdf-1.0.16 → safepdf-1.1.0}/SafePDF/build_installer.py +1 -1
- {safepdf-1.0.16 → safepdf-1.1.0}/SafePDF/ctrl/safe_pdf_controller.py +1 -1
- {safepdf-1.0.16 → safepdf-1.1.0}/SafePDF/ops/updates.py +1 -1
- {safepdf-1.0.16 → safepdf-1.1.0}/SafePDF/text/de/ui.json +6 -6
- {safepdf-1.0.16 → safepdf-1.1.0}/SafePDF/text/en/ui.json +6 -6
- {safepdf-1.0.16 → safepdf-1.1.0}/SafePDF/text/en/welcome_content.txt +1 -1
- {safepdf-1.0.16 → safepdf-1.1.0}/SafePDF/text/tr/ui.json +6 -6
- {safepdf-1.0.16 → safepdf-1.1.0}/SafePDF/text/tr/welcome_content.txt +1 -1
- safepdf-1.1.0/SafePDF/ui/common_elements.py +47 -0
- {safepdf-1.0.16 → safepdf-1.1.0}/SafePDF/ui/operation_settings.py +22 -22
- {safepdf-1.0.16 → safepdf-1.1.0}/SafePDF/ui/safe_pdf_ui.py +306 -685
- safepdf-1.1.0/SafePDF/ui/theme.py +267 -0
- {safepdf-1.0.16 → safepdf-1.1.0}/SafePDF/version.txt +6 -6
- {safepdf-1.0.16 → safepdf-1.1.0/SafePDF.egg-info}/PKG-INFO +19 -7
- {safepdf-1.0.16 → safepdf-1.1.0}/SafePDF.egg-info/SOURCES.txt +1 -0
- safepdf-1.0.16/SafePDF/ui/common_elements.py +0 -42
- {safepdf-1.0.16 → safepdf-1.1.0}/LICENSE +0 -0
- {safepdf-1.0.16 → safepdf-1.1.0}/MANIFEST.in +0 -0
- {safepdf-1.0.16 → safepdf-1.1.0}/SafePDF/assets/back.png +0 -0
- {safepdf-1.0.16 → safepdf-1.1.0}/SafePDF/assets/compress.png +0 -0
- {safepdf-1.0.16 → safepdf-1.1.0}/SafePDF/assets/compression_err.gif +0 -0
- {safepdf-1.0.16 → safepdf-1.1.0}/SafePDF/assets/crown.svg +0 -0
- {safepdf-1.0.16 → safepdf-1.1.0}/SafePDF/assets/extract.png +0 -0
- {safepdf-1.0.16 → safepdf-1.1.0}/SafePDF/assets/icon.ico +0 -0
- {safepdf-1.0.16 → safepdf-1.1.0}/SafePDF/assets/icon.png +0 -0
- {safepdf-1.0.16 → safepdf-1.1.0}/SafePDF/assets/jpg2pdf.png +0 -0
- {safepdf-1.0.16 → safepdf-1.1.0}/SafePDF/assets/merge.png +0 -0
- {safepdf-1.0.16 → safepdf-1.1.0}/SafePDF/assets/next.png +0 -0
- {safepdf-1.0.16 → safepdf-1.1.0}/SafePDF/assets/pdf2jpg.png +0 -0
- {safepdf-1.0.16 → safepdf-1.1.0}/SafePDF/assets/pdf2ocr.png +0 -0
- {safepdf-1.0.16 → safepdf-1.1.0}/SafePDF/assets/pdf2txt.png +0 -0
- {safepdf-1.0.16 → safepdf-1.1.0}/SafePDF/assets/pdf2word.png +0 -0
- {safepdf-1.0.16 → safepdf-1.1.0}/SafePDF/assets/repair.png +0 -0
- {safepdf-1.0.16 → safepdf-1.1.0}/SafePDF/assets/rotate.png +0 -0
- {safepdf-1.0.16 → safepdf-1.1.0}/SafePDF/assets/split.png +0 -0
- {safepdf-1.0.16 → safepdf-1.1.0}/SafePDF/ctrl/__init__.py +0 -0
- {safepdf-1.0.16 → safepdf-1.1.0}/SafePDF/ctrl/language_manager.py +0 -0
- {safepdf-1.0.16 → safepdf-1.1.0}/SafePDF/logger/__init__.py +0 -0
- {safepdf-1.0.16 → safepdf-1.1.0}/SafePDF/logger/logging_config.py +0 -0
- {safepdf-1.0.16 → safepdf-1.1.0}/SafePDF/ops/__init__.py +0 -0
- {safepdf-1.0.16 → safepdf-1.1.0}/SafePDF/ops/pdf2docx.py +0 -0
- {safepdf-1.0.16 → safepdf-1.1.0}/SafePDF/ops/pdf2jpeg.py +0 -0
- {safepdf-1.0.16 → safepdf-1.1.0}/SafePDF/ops/pdf_compress.py +0 -0
- {safepdf-1.0.16 → safepdf-1.1.0}/SafePDF/ops/pdf_merge.py +0 -0
- {safepdf-1.0.16 → safepdf-1.1.0}/SafePDF/ops/pdf_ocr.py +0 -0
- {safepdf-1.0.16 → safepdf-1.1.0}/SafePDF/ops/pdf_operations.py +0 -0
- {safepdf-1.0.16 → safepdf-1.1.0}/SafePDF/ops/pdf_rotate.py +0 -0
- {safepdf-1.0.16 → safepdf-1.1.0}/SafePDF/ops/pdf_split.py +0 -0
- {safepdf-1.0.16 → safepdf-1.1.0}/SafePDF/safe_pdf_app.py +0 -0
- {safepdf-1.0.16 → safepdf-1.1.0}/SafePDF/test/__init__.py +0 -0
- {safepdf-1.0.16 → safepdf-1.1.0}/SafePDF/test/test_compression.py +0 -0
- {safepdf-1.0.16 → safepdf-1.1.0}/SafePDF/test/test_pro_dialog.py +0 -0
- {safepdf-1.0.16 → safepdf-1.1.0}/SafePDF/text/de/help_content.txt +0 -0
- {safepdf-1.0.16 → safepdf-1.1.0}/SafePDF/text/de/pro_features.txt +0 -0
- {safepdf-1.0.16 → safepdf-1.1.0}/SafePDF/text/de/welcome_content.txt +0 -0
- {safepdf-1.0.16 → safepdf-1.1.0}/SafePDF/text/en/help_content.txt +0 -0
- {safepdf-1.0.16 → safepdf-1.1.0}/SafePDF/text/en/pro_features.txt +0 -0
- {safepdf-1.0.16 → safepdf-1.1.0}/SafePDF/text/tr/help_content.txt +0 -0
- {safepdf-1.0.16 → safepdf-1.1.0}/SafePDF/text/tr/pro_features.txt +0 -0
- {safepdf-1.0.16 → safepdf-1.1.0}/SafePDF/ui/__init__.py +0 -0
- {safepdf-1.0.16 → safepdf-1.1.0}/SafePDF/ui/help_ui.py +0 -0
- {safepdf-1.0.16 → safepdf-1.1.0}/SafePDF/ui/language_elements.py +0 -0
- {safepdf-1.0.16 → safepdf-1.1.0}/SafePDF/ui/settings_ui.py +0 -0
- {safepdf-1.0.16 → safepdf-1.1.0}/SafePDF/ui/tabs_manager.py +0 -0
- {safepdf-1.0.16 → safepdf-1.1.0}/SafePDF/ui/update_ui.py +0 -0
- {safepdf-1.0.16 → safepdf-1.1.0}/SafePDF.egg-info/dependency_links.txt +0 -0
- {safepdf-1.0.16 → safepdf-1.1.0}/SafePDF.egg-info/entry_points.txt +0 -0
- {safepdf-1.0.16 → safepdf-1.1.0}/SafePDF.egg-info/requires.txt +0 -0
- {safepdf-1.0.16 → safepdf-1.1.0}/SafePDF.egg-info/top_level.txt +0 -0
- {safepdf-1.0.16 → safepdf-1.1.0}/pyproject.toml +0 -0
- {safepdf-1.0.16 → safepdf-1.1.0}/requirements.txt +0 -0
- {safepdf-1.0.16 → safepdf-1.1.0}/setup.cfg +0 -0
- {safepdf-1.0.16 → safepdf-1.1.0}/setup.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: SafePDF
|
|
3
|
-
Version: 1.0
|
|
3
|
+
Version: 1.1.0
|
|
4
4
|
Summary: A safe PDF manipulation tool
|
|
5
5
|
Home-page: https://github.com/mcagriaksoy/safepdf
|
|
6
6
|
Author: Mehmet Cagri Aksoy
|
|
@@ -47,7 +47,7 @@ Dynamic: summary
|
|
|
47
47
|
[](#license)
|
|
48
48
|
[](https://github.com/mcagriaksoy/SafePDF)
|
|
49
49
|
|
|
50
|
-
**SafePDF** is a
|
|
50
|
+
**SafePDF** is a free, open-source desktop app for Windows, macOS and Linux. It merges, splits, compresses, converts, rotates and repairs PDFs entirely on your own device — your sensitive documents never leave your computer.
|
|
51
51
|
|
|
52
52
|
<a href="https://github.com/mcagriaksoy/SafePDF/releases/" download>
|
|
53
53
|
<img src="https://img.shields.io/badge/Download-Windows_Installer-blue?style=for-the-badge" alt="Download SafePDF">
|
|
@@ -151,10 +151,23 @@ SafePDF/
|
|
|
151
151
|
│ ├── ops/ # PDF operations
|
|
152
152
|
│ ├── logger/ # Logging
|
|
153
153
|
│ └── text/ # Localization files
|
|
154
|
+
├── docs/ # Marketing website (safepdf.de)
|
|
154
155
|
├── run_safe_pdf.py # Main launcher
|
|
155
156
|
└── requirements.txt # Dependencies
|
|
156
157
|
```
|
|
157
158
|
|
|
159
|
+
### Website
|
|
160
|
+
|
|
161
|
+
The marketing site lives in [`docs/`](docs/) and is published at [safepdf.de](https://safepdf.de). It is plain HTML, CSS and JavaScript with no build step:
|
|
162
|
+
|
|
163
|
+
```bash
|
|
164
|
+
cd docs
|
|
165
|
+
python3 -m http.server 8000
|
|
166
|
+
# open http://localhost:8000
|
|
167
|
+
```
|
|
168
|
+
|
|
169
|
+
The homepage and the converter pages are also available in German ([`docs/de/`](docs/de/)) and Turkish ([`docs/tr/`](docs/tr/)). Language switching uses real, static URLs so search engines index each language separately — no client-side machine translation.
|
|
170
|
+
|
|
158
171
|
### Contributing
|
|
159
172
|
|
|
160
173
|
Contributions are welcome! Please:
|
|
@@ -164,11 +177,10 @@ Contributions are welcome! Please:
|
|
|
164
177
|
|
|
165
178
|
## Support
|
|
166
179
|
|
|
167
|
-
- Website
|
|
168
|
-
-
|
|
169
|
-
- Email
|
|
170
|
-
-
|
|
171
|
-
- Documentation: [safepdf.com](https://safepdf.com)
|
|
180
|
+
- **Website:** [safepdf.de](https://safepdf.de) · [Deutsch](https://safepdf.de/de/) · [Türkçe](https://safepdf.de/tr/)
|
|
181
|
+
- **Guides:** [Offline PDF tools](https://safepdf.de/offline-pdf-tools.html) · [Secure PDF processing](https://safepdf.de/secure-pdf-processing.html)
|
|
182
|
+
- **Email:** [info@safepdf.de](mailto:info@safepdf.de)
|
|
183
|
+
- **Bug reports & feature requests:** [GitHub Issues](https://github.com/mcagriaksoy/SafePDF/issues)
|
|
172
184
|
|
|
173
185
|
## License
|
|
174
186
|
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
[](#license)
|
|
9
9
|
[](https://github.com/mcagriaksoy/SafePDF)
|
|
10
10
|
|
|
11
|
-
**SafePDF** is a
|
|
11
|
+
**SafePDF** is a free, open-source desktop app for Windows, macOS and Linux. It merges, splits, compresses, converts, rotates and repairs PDFs entirely on your own device — your sensitive documents never leave your computer.
|
|
12
12
|
|
|
13
13
|
<a href="https://github.com/mcagriaksoy/SafePDF/releases/" download>
|
|
14
14
|
<img src="https://img.shields.io/badge/Download-Windows_Installer-blue?style=for-the-badge" alt="Download SafePDF">
|
|
@@ -112,10 +112,23 @@ SafePDF/
|
|
|
112
112
|
│ ├── ops/ # PDF operations
|
|
113
113
|
│ ├── logger/ # Logging
|
|
114
114
|
│ └── text/ # Localization files
|
|
115
|
+
├── docs/ # Marketing website (safepdf.de)
|
|
115
116
|
├── run_safe_pdf.py # Main launcher
|
|
116
117
|
└── requirements.txt # Dependencies
|
|
117
118
|
```
|
|
118
119
|
|
|
120
|
+
### Website
|
|
121
|
+
|
|
122
|
+
The marketing site lives in [`docs/`](docs/) and is published at [safepdf.de](https://safepdf.de). It is plain HTML, CSS and JavaScript with no build step:
|
|
123
|
+
|
|
124
|
+
```bash
|
|
125
|
+
cd docs
|
|
126
|
+
python3 -m http.server 8000
|
|
127
|
+
# open http://localhost:8000
|
|
128
|
+
```
|
|
129
|
+
|
|
130
|
+
The homepage and the converter pages are also available in German ([`docs/de/`](docs/de/)) and Turkish ([`docs/tr/`](docs/tr/)). Language switching uses real, static URLs so search engines index each language separately — no client-side machine translation.
|
|
131
|
+
|
|
119
132
|
### Contributing
|
|
120
133
|
|
|
121
134
|
Contributions are welcome! Please:
|
|
@@ -125,11 +138,10 @@ Contributions are welcome! Please:
|
|
|
125
138
|
|
|
126
139
|
## Support
|
|
127
140
|
|
|
128
|
-
- Website
|
|
129
|
-
-
|
|
130
|
-
- Email
|
|
131
|
-
-
|
|
132
|
-
- Documentation: [safepdf.com](https://safepdf.com)
|
|
141
|
+
- **Website:** [safepdf.de](https://safepdf.de) · [Deutsch](https://safepdf.de/de/) · [Türkçe](https://safepdf.de/tr/)
|
|
142
|
+
- **Guides:** [Offline PDF tools](https://safepdf.de/offline-pdf-tools.html) · [Secure PDF processing](https://safepdf.de/secure-pdf-processing.html)
|
|
143
|
+
- **Email:** [info@safepdf.de](mailto:info@safepdf.de)
|
|
144
|
+
- **Bug reports & feature requests:** [GitHub Issues](https://github.com/mcagriaksoy/SafePDF/issues)
|
|
133
145
|
|
|
134
146
|
## License
|
|
135
147
|
|
|
@@ -11,7 +11,7 @@ def get_version():
|
|
|
11
11
|
match = re.search(r'__version__\s*=\s*["\']([^"\']+)["\']', content)
|
|
12
12
|
if match:
|
|
13
13
|
return match.group(1)
|
|
14
|
-
return "1.0
|
|
14
|
+
return "1.1.0" # fallback
|
|
15
15
|
|
|
16
16
|
def build_executable(version, safe_pdf_dir, dist_dir):
|
|
17
17
|
portable_name = f"SafePdf_v{version}_portable_win64"
|
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
"app_title": "SafePDF™",
|
|
3
3
|
"pro_badge_pro": "PRO",
|
|
4
4
|
"pro_badge_free": "KOSTENLOS",
|
|
5
|
-
"tab_welcome": "
|
|
6
|
-
"tab_operation": "
|
|
7
|
-
"tab_file": "
|
|
8
|
-
"tab_settings": "
|
|
9
|
-
"tab_results": "
|
|
10
|
-
"tab_app_settings": "
|
|
5
|
+
"tab_welcome": "Start",
|
|
6
|
+
"tab_operation": "Vorgang",
|
|
7
|
+
"tab_file": "Datei",
|
|
8
|
+
"tab_settings": "Einstellungen",
|
|
9
|
+
"tab_results": "Ergebnisse",
|
|
10
|
+
"tab_app_settings": "Voreinstellungen",
|
|
11
11
|
"tab_help": "Hilfe",
|
|
12
12
|
"status_pro": "✓ PRO Version",
|
|
13
13
|
"status_free": "KOSTENLOS - Jetzt upgraden!",
|
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
"app_title": "SafePDF™",
|
|
3
3
|
"pro_badge_pro": "PRO",
|
|
4
4
|
"pro_badge_free": "FREE",
|
|
5
|
-
"tab_welcome": "
|
|
6
|
-
"tab_operation": "
|
|
7
|
-
"tab_file": "
|
|
8
|
-
"tab_settings": "
|
|
9
|
-
"tab_results": "
|
|
10
|
-
"tab_app_settings": "
|
|
5
|
+
"tab_welcome": "Home",
|
|
6
|
+
"tab_operation": "Operation",
|
|
7
|
+
"tab_file": "File",
|
|
8
|
+
"tab_settings": "Settings",
|
|
9
|
+
"tab_results": "Results",
|
|
10
|
+
"tab_app_settings": "Preferences",
|
|
11
11
|
"tab_help": "Help",
|
|
12
12
|
"status_pro": "✓ PRO Version",
|
|
13
13
|
"status_free": "FREE Version - Upgrade now!",
|
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
"app_title": "SafePDF™",
|
|
3
3
|
"pro_badge_pro": "PRO",
|
|
4
4
|
"pro_badge_free": "ÜCRETSİZ",
|
|
5
|
-
"tab_welcome": "
|
|
6
|
-
"tab_operation": "
|
|
7
|
-
"tab_file": "
|
|
8
|
-
"tab_settings": "
|
|
9
|
-
"tab_results": "
|
|
10
|
-
"tab_app_settings": "
|
|
5
|
+
"tab_welcome": "Başlangıç",
|
|
6
|
+
"tab_operation": "İşlem",
|
|
7
|
+
"tab_file": "Dosya",
|
|
8
|
+
"tab_settings": "Ayarlar",
|
|
9
|
+
"tab_results": "Sonuçlar",
|
|
10
|
+
"tab_app_settings": "Tercihler",
|
|
11
11
|
"tab_help": "Yardım",
|
|
12
12
|
"status_pro": "✓ PRO Sürümü",
|
|
13
13
|
"status_free": "ÜCRETSİZ Sürüm - Yükseltin!",
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
# define color, font, size, and layout for common UI elements
|
|
2
|
+
# Values are sourced from SafePDF.ui.theme so the look stays consistent.
|
|
3
|
+
# Attribute names are kept unchanged for backwards compatibility.
|
|
4
|
+
|
|
5
|
+
from typing import ClassVar
|
|
6
|
+
|
|
7
|
+
from .theme import FONT_SIZES, LIGHT, SPACING, resolve_font_family
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class CommonElements:
|
|
11
|
+
# Colors (light-theme defaults; apply_theme overrides the active values)
|
|
12
|
+
BG_COLOR = LIGHT["bg_main"]
|
|
13
|
+
FG_COLOR = LIGHT["fg_text"]
|
|
14
|
+
RED_COLOR = LIGHT["accent"]
|
|
15
|
+
BG_MAIN = LIGHT["bg_main"]
|
|
16
|
+
BG_CARD = LIGHT["bg_card"]
|
|
17
|
+
BG_FRAME = LIGHT["bg_frame"]
|
|
18
|
+
FG_TEXT = LIGHT["fg_text"]
|
|
19
|
+
FG_SECONDARY = LIGHT["fg_secondary"]
|
|
20
|
+
TAB_BG = LIGHT["tab_bg"]
|
|
21
|
+
TAB_SELECTED = LIGHT["tab_selected"]
|
|
22
|
+
HIGHLIGHT_COLOR = LIGHT["highlight"]
|
|
23
|
+
TEXT_BG = LIGHT["text_bg"]
|
|
24
|
+
TEXT_FG = LIGHT["text_fg"]
|
|
25
|
+
BUTTON_BG = LIGHT["button_bg"]
|
|
26
|
+
BUTTON_FG = LIGHT["button_fg"]
|
|
27
|
+
BUTTON_TEXT_DARK = LIGHT["fg_text"]
|
|
28
|
+
ENTRY_BG = LIGHT["entry_bg"]
|
|
29
|
+
ENTRY_FG = LIGHT["entry_fg"]
|
|
30
|
+
|
|
31
|
+
URL_COLOR = LIGHT["success"]
|
|
32
|
+
|
|
33
|
+
# Font (FONT is re-resolved at runtime once a Tk root exists)
|
|
34
|
+
FONT = resolve_font_family()
|
|
35
|
+
FONT_SIZE = FONT_SIZES["base"]
|
|
36
|
+
|
|
37
|
+
# Sizes
|
|
38
|
+
SIZE_STR = "1000x640"
|
|
39
|
+
SIZE_LIST = (1000, 640)
|
|
40
|
+
PADDING = SPACING["md"]
|
|
41
|
+
|
|
42
|
+
PRO_POPUP_SIZE = "550x550"
|
|
43
|
+
PRO_POPUP_SIZE_LIST = (550, 550)
|
|
44
|
+
|
|
45
|
+
# Default Language
|
|
46
|
+
DEFAULT_LANGUAGE = "en"
|
|
47
|
+
SELECTED_LANGUAGE: ClassVar[str] = "en"
|
|
@@ -101,7 +101,7 @@ class OperationSettingsUI:
|
|
|
101
101
|
self.ultra_radio.config(state="normal" if self.controller.is_pro_activated else "disabled")
|
|
102
102
|
|
|
103
103
|
# Right side - visual indicator
|
|
104
|
-
self.compression_visual_frame = tk.Frame(quality_frame, bg=
|
|
104
|
+
self.compression_visual_frame = tk.Frame(quality_frame, bg=CommonElements.BG_CARD, relief=tk.RIDGE, bd=1)
|
|
105
105
|
self.compression_visual_frame.pack(side="right", padx=(20, 0), fill="both", expand=True)
|
|
106
106
|
|
|
107
107
|
# Create visual indicator label
|
|
@@ -109,7 +109,7 @@ class OperationSettingsUI:
|
|
|
109
109
|
self.compression_visual_frame,
|
|
110
110
|
text=self.lang_manager.get("settings_preview", "📊 Compression Preview"),
|
|
111
111
|
font=(CommonElements.FONT, 10, "bold"),
|
|
112
|
-
bg=
|
|
112
|
+
bg=CommonElements.BG_CARD,
|
|
113
113
|
fg=CommonElements.RED_COLOR,
|
|
114
114
|
pady=CommonElements.PADDING,
|
|
115
115
|
)
|
|
@@ -221,7 +221,7 @@ class OperationSettingsUI:
|
|
|
221
221
|
"settings_jpg_to_pdf_bullet_single",
|
|
222
222
|
"• Creates one PDF page from the selected image",
|
|
223
223
|
),
|
|
224
|
-
foreground=
|
|
224
|
+
foreground=CommonElements.FG_SECONDARY,
|
|
225
225
|
).pack(anchor="w")
|
|
226
226
|
ttk.Label(
|
|
227
227
|
info_frame,
|
|
@@ -229,7 +229,7 @@ class OperationSettingsUI:
|
|
|
229
229
|
"settings_jpg_to_pdf_bullet_quality",
|
|
230
230
|
"• Keeps the original image appearance as closely as possible",
|
|
231
231
|
),
|
|
232
|
-
foreground=
|
|
232
|
+
foreground=CommonElements.FG_SECONDARY,
|
|
233
233
|
).pack(anchor="w")
|
|
234
234
|
ttk.Label(
|
|
235
235
|
info_frame,
|
|
@@ -237,7 +237,7 @@ class OperationSettingsUI:
|
|
|
237
237
|
"settings_jpg_to_pdf_bullet_output",
|
|
238
238
|
"• Saves as a standard PDF file",
|
|
239
239
|
),
|
|
240
|
-
foreground=
|
|
240
|
+
foreground=CommonElements.FG_SECONDARY,
|
|
241
241
|
).pack(anchor="w")
|
|
242
242
|
|
|
243
243
|
def create_repair_settings(self, repair_var):
|
|
@@ -455,7 +455,7 @@ class OperationSettingsUI:
|
|
|
455
455
|
"settings_to_word_bullet_extracts",
|
|
456
456
|
"• Extracts embedded text from PDF",
|
|
457
457
|
),
|
|
458
|
-
foreground=
|
|
458
|
+
foreground=CommonElements.FG_SECONDARY,
|
|
459
459
|
).pack(anchor="w")
|
|
460
460
|
ttk.Label(
|
|
461
461
|
info_frame,
|
|
@@ -463,7 +463,7 @@ class OperationSettingsUI:
|
|
|
463
463
|
"settings_to_word_bullet_formatting",
|
|
464
464
|
"• Attempts to preserve basic formatting",
|
|
465
465
|
),
|
|
466
|
-
foreground=
|
|
466
|
+
foreground=CommonElements.FG_SECONDARY,
|
|
467
467
|
).pack(anchor="w")
|
|
468
468
|
ttk.Label(
|
|
469
469
|
info_frame,
|
|
@@ -471,7 +471,7 @@ class OperationSettingsUI:
|
|
|
471
471
|
"settings_to_word_bullet_images",
|
|
472
472
|
"• Includes images where possible",
|
|
473
473
|
),
|
|
474
|
-
foreground=
|
|
474
|
+
foreground=CommonElements.FG_SECONDARY,
|
|
475
475
|
).pack(anchor="w")
|
|
476
476
|
ttk.Label(
|
|
477
477
|
info_frame,
|
|
@@ -479,7 +479,7 @@ class OperationSettingsUI:
|
|
|
479
479
|
"settings_to_word_bullet_requires",
|
|
480
480
|
"• Requires python-docx and pypdfium2",
|
|
481
481
|
),
|
|
482
|
-
foreground=
|
|
482
|
+
foreground=CommonElements.FG_SECONDARY,
|
|
483
483
|
).pack(anchor="w")
|
|
484
484
|
|
|
485
485
|
def create_to_txt_settings(self):
|
|
@@ -501,7 +501,7 @@ class OperationSettingsUI:
|
|
|
501
501
|
"settings_to_txt_bullet_extracts",
|
|
502
502
|
"• Extracts all readable text from PDF",
|
|
503
503
|
),
|
|
504
|
-
foreground=
|
|
504
|
+
foreground=CommonElements.FG_SECONDARY,
|
|
505
505
|
).pack(anchor="w")
|
|
506
506
|
ttk.Label(
|
|
507
507
|
info_frame,
|
|
@@ -509,7 +509,7 @@ class OperationSettingsUI:
|
|
|
509
509
|
"settings_to_txt_bullet_selectable",
|
|
510
510
|
"• Works on PDFs that already contain selectable text",
|
|
511
511
|
),
|
|
512
|
-
foreground=
|
|
512
|
+
foreground=CommonElements.FG_SECONDARY,
|
|
513
513
|
).pack(anchor="w")
|
|
514
514
|
ttk.Label(
|
|
515
515
|
info_frame,
|
|
@@ -517,7 +517,7 @@ class OperationSettingsUI:
|
|
|
517
517
|
"settings_to_txt_bullet_no_ocr",
|
|
518
518
|
"• Does not perform OCR on scanned/image-only PDFs",
|
|
519
519
|
),
|
|
520
|
-
foreground=
|
|
520
|
+
foreground=CommonElements.FG_SECONDARY,
|
|
521
521
|
).pack(anchor="w")
|
|
522
522
|
ttk.Label(
|
|
523
523
|
info_frame,
|
|
@@ -525,7 +525,7 @@ class OperationSettingsUI:
|
|
|
525
525
|
"settings_to_txt_bullet_utf8",
|
|
526
526
|
"• UTF-8 encoded output",
|
|
527
527
|
),
|
|
528
|
-
foreground=
|
|
528
|
+
foreground=CommonElements.FG_SECONDARY,
|
|
529
529
|
).pack(anchor="w")
|
|
530
530
|
|
|
531
531
|
def create_to_ocr_settings(self, ocr_output_format_var):
|
|
@@ -548,7 +548,7 @@ class OperationSettingsUI:
|
|
|
548
548
|
"settings_to_ocr_bullet_best",
|
|
549
549
|
"• Best for scanned or image-only PDFs",
|
|
550
550
|
),
|
|
551
|
-
foreground=
|
|
551
|
+
foreground=CommonElements.FG_SECONDARY,
|
|
552
552
|
).pack(anchor="w")
|
|
553
553
|
ttk.Label(
|
|
554
554
|
info_frame,
|
|
@@ -556,7 +556,7 @@ class OperationSettingsUI:
|
|
|
556
556
|
"settings_to_ocr_bullet_language",
|
|
557
557
|
"• Uses the app language when an OCR language pack is available",
|
|
558
558
|
),
|
|
559
|
-
foreground=
|
|
559
|
+
foreground=CommonElements.FG_SECONDARY,
|
|
560
560
|
).pack(anchor="w")
|
|
561
561
|
ttk.Label(
|
|
562
562
|
info_frame,
|
|
@@ -564,7 +564,7 @@ class OperationSettingsUI:
|
|
|
564
564
|
"settings_to_ocr_bullet_output_hint",
|
|
565
565
|
"• TXT is best for quick copy/edit, DOCX is better for sharing",
|
|
566
566
|
),
|
|
567
|
-
foreground=
|
|
567
|
+
foreground=CommonElements.FG_SECONDARY,
|
|
568
568
|
).pack(anchor="w")
|
|
569
569
|
ttk.Label(
|
|
570
570
|
info_frame,
|
|
@@ -572,7 +572,7 @@ class OperationSettingsUI:
|
|
|
572
572
|
"settings_to_ocr_bullet_future_pdf",
|
|
573
573
|
"• Searchable OCR PDF can be added later as a separate export option",
|
|
574
574
|
),
|
|
575
|
-
foreground=
|
|
575
|
+
foreground=CommonElements.FG_SECONDARY,
|
|
576
576
|
).pack(anchor="w")
|
|
577
577
|
ttk.Label(
|
|
578
578
|
info_frame,
|
|
@@ -580,7 +580,7 @@ class OperationSettingsUI:
|
|
|
580
580
|
"settings_to_ocr_bullet_requires",
|
|
581
581
|
"• Requires Tesseract OCR and pypdfium2",
|
|
582
582
|
),
|
|
583
|
-
foreground=
|
|
583
|
+
foreground=CommonElements.FG_SECONDARY,
|
|
584
584
|
).pack(anchor="w")
|
|
585
585
|
|
|
586
586
|
format_frame = ttk.LabelFrame(
|
|
@@ -615,17 +615,17 @@ class OperationSettingsUI:
|
|
|
615
615
|
ttk.Label(
|
|
616
616
|
info_frame,
|
|
617
617
|
text="• Extracts PDF metadata (title, author, etc.)",
|
|
618
|
-
foreground=
|
|
618
|
+
foreground=CommonElements.FG_SECONDARY,
|
|
619
619
|
).pack(anchor="w")
|
|
620
620
|
ttk.Label(
|
|
621
621
|
info_frame,
|
|
622
622
|
text="• Includes file properties and creation info",
|
|
623
|
-
foreground=
|
|
623
|
+
foreground=CommonElements.FG_SECONDARY,
|
|
624
624
|
).pack(anchor="w")
|
|
625
625
|
ttk.Label(
|
|
626
626
|
info_frame,
|
|
627
627
|
text="• Saves detailed information to text file",
|
|
628
|
-
foreground=
|
|
628
|
+
foreground=CommonElements.FG_SECONDARY,
|
|
629
629
|
).pack(anchor="w")
|
|
630
630
|
|
|
631
631
|
def create_output_path_selection(self, is_directory, use_default_output, output_path_var, browse_callback):
|
|
@@ -666,7 +666,7 @@ class OperationSettingsUI:
|
|
|
666
666
|
path_label = ttk.Label(
|
|
667
667
|
path_frame,
|
|
668
668
|
text=output_path_var.get() or self.lang_manager.get("settings_no_path_selected", "No path selected"),
|
|
669
|
-
foreground=
|
|
669
|
+
foreground=CommonElements.FG_SECONDARY,
|
|
670
670
|
)
|
|
671
671
|
path_label.pack(side="left", fill="x", expand=True)
|
|
672
672
|
|