SafePDF 1.0.15__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.
Files changed (76) hide show
  1. {safepdf-1.0.15/SafePDF.egg-info → safepdf-1.1.0}/PKG-INFO +19 -7
  2. {safepdf-1.0.15 → safepdf-1.1.0}/README.md +18 -6
  3. {safepdf-1.0.15 → safepdf-1.1.0}/SafePDF/__init__.py +1 -1
  4. safepdf-1.1.0/SafePDF/assets/icon.png +0 -0
  5. safepdf-1.1.0/SafePDF/build_installer.py +159 -0
  6. {safepdf-1.0.15 → safepdf-1.1.0}/SafePDF/ctrl/safe_pdf_controller.py +1 -1
  7. {safepdf-1.0.15 → safepdf-1.1.0}/SafePDF/ops/updates.py +1 -1
  8. {safepdf-1.0.15 → safepdf-1.1.0}/SafePDF/text/de/ui.json +11 -6
  9. {safepdf-1.0.15 → safepdf-1.1.0}/SafePDF/text/en/ui.json +11 -6
  10. {safepdf-1.0.15 → safepdf-1.1.0}/SafePDF/text/en/welcome_content.txt +1 -1
  11. {safepdf-1.0.15 → safepdf-1.1.0}/SafePDF/text/tr/ui.json +11 -6
  12. {safepdf-1.0.15 → safepdf-1.1.0}/SafePDF/text/tr/welcome_content.txt +1 -1
  13. safepdf-1.1.0/SafePDF/ui/common_elements.py +47 -0
  14. {safepdf-1.0.15 → safepdf-1.1.0}/SafePDF/ui/operation_settings.py +188 -39
  15. {safepdf-1.0.15 → safepdf-1.1.0}/SafePDF/ui/safe_pdf_ui.py +356 -669
  16. safepdf-1.1.0/SafePDF/ui/theme.py +267 -0
  17. {safepdf-1.0.15 → safepdf-1.1.0}/SafePDF/version.txt +6 -6
  18. {safepdf-1.0.15 → safepdf-1.1.0/SafePDF.egg-info}/PKG-INFO +19 -7
  19. {safepdf-1.0.15 → safepdf-1.1.0}/SafePDF.egg-info/SOURCES.txt +3 -0
  20. safepdf-1.0.15/SafePDF/ui/common_elements.py +0 -42
  21. {safepdf-1.0.15 → safepdf-1.1.0}/LICENSE +0 -0
  22. {safepdf-1.0.15 → safepdf-1.1.0}/MANIFEST.in +0 -0
  23. {safepdf-1.0.15 → safepdf-1.1.0}/SafePDF/assets/back.png +0 -0
  24. {safepdf-1.0.15 → safepdf-1.1.0}/SafePDF/assets/compress.png +0 -0
  25. {safepdf-1.0.15 → safepdf-1.1.0}/SafePDF/assets/compression_err.gif +0 -0
  26. {safepdf-1.0.15 → safepdf-1.1.0}/SafePDF/assets/crown.svg +0 -0
  27. {safepdf-1.0.15 → safepdf-1.1.0}/SafePDF/assets/extract.png +0 -0
  28. {safepdf-1.0.15 → safepdf-1.1.0}/SafePDF/assets/icon.ico +0 -0
  29. {safepdf-1.0.15 → safepdf-1.1.0}/SafePDF/assets/jpg2pdf.png +0 -0
  30. {safepdf-1.0.15 → safepdf-1.1.0}/SafePDF/assets/merge.png +0 -0
  31. {safepdf-1.0.15 → safepdf-1.1.0}/SafePDF/assets/next.png +0 -0
  32. {safepdf-1.0.15 → safepdf-1.1.0}/SafePDF/assets/pdf2jpg.png +0 -0
  33. {safepdf-1.0.15 → safepdf-1.1.0}/SafePDF/assets/pdf2ocr.png +0 -0
  34. {safepdf-1.0.15 → safepdf-1.1.0}/SafePDF/assets/pdf2txt.png +0 -0
  35. {safepdf-1.0.15 → safepdf-1.1.0}/SafePDF/assets/pdf2word.png +0 -0
  36. {safepdf-1.0.15 → safepdf-1.1.0}/SafePDF/assets/repair.png +0 -0
  37. {safepdf-1.0.15 → safepdf-1.1.0}/SafePDF/assets/rotate.png +0 -0
  38. {safepdf-1.0.15 → safepdf-1.1.0}/SafePDF/assets/split.png +0 -0
  39. {safepdf-1.0.15 → safepdf-1.1.0}/SafePDF/ctrl/__init__.py +0 -0
  40. {safepdf-1.0.15 → safepdf-1.1.0}/SafePDF/ctrl/language_manager.py +0 -0
  41. {safepdf-1.0.15 → safepdf-1.1.0}/SafePDF/logger/__init__.py +0 -0
  42. {safepdf-1.0.15 → safepdf-1.1.0}/SafePDF/logger/logging_config.py +0 -0
  43. {safepdf-1.0.15 → safepdf-1.1.0}/SafePDF/ops/__init__.py +0 -0
  44. {safepdf-1.0.15 → safepdf-1.1.0}/SafePDF/ops/pdf2docx.py +0 -0
  45. {safepdf-1.0.15 → safepdf-1.1.0}/SafePDF/ops/pdf2jpeg.py +0 -0
  46. {safepdf-1.0.15 → safepdf-1.1.0}/SafePDF/ops/pdf_compress.py +0 -0
  47. {safepdf-1.0.15 → safepdf-1.1.0}/SafePDF/ops/pdf_merge.py +0 -0
  48. {safepdf-1.0.15 → safepdf-1.1.0}/SafePDF/ops/pdf_ocr.py +0 -0
  49. {safepdf-1.0.15 → safepdf-1.1.0}/SafePDF/ops/pdf_operations.py +0 -0
  50. {safepdf-1.0.15 → safepdf-1.1.0}/SafePDF/ops/pdf_rotate.py +0 -0
  51. {safepdf-1.0.15 → safepdf-1.1.0}/SafePDF/ops/pdf_split.py +0 -0
  52. {safepdf-1.0.15 → safepdf-1.1.0}/SafePDF/safe_pdf_app.py +0 -0
  53. {safepdf-1.0.15 → safepdf-1.1.0}/SafePDF/test/__init__.py +0 -0
  54. {safepdf-1.0.15 → safepdf-1.1.0}/SafePDF/test/test_compression.py +0 -0
  55. {safepdf-1.0.15 → safepdf-1.1.0}/SafePDF/test/test_pro_dialog.py +0 -0
  56. {safepdf-1.0.15 → safepdf-1.1.0}/SafePDF/text/de/help_content.txt +0 -0
  57. {safepdf-1.0.15 → safepdf-1.1.0}/SafePDF/text/de/pro_features.txt +0 -0
  58. {safepdf-1.0.15 → safepdf-1.1.0}/SafePDF/text/de/welcome_content.txt +0 -0
  59. {safepdf-1.0.15 → safepdf-1.1.0}/SafePDF/text/en/help_content.txt +0 -0
  60. {safepdf-1.0.15 → safepdf-1.1.0}/SafePDF/text/en/pro_features.txt +0 -0
  61. {safepdf-1.0.15 → safepdf-1.1.0}/SafePDF/text/tr/help_content.txt +0 -0
  62. {safepdf-1.0.15 → safepdf-1.1.0}/SafePDF/text/tr/pro_features.txt +0 -0
  63. {safepdf-1.0.15 → safepdf-1.1.0}/SafePDF/ui/__init__.py +0 -0
  64. {safepdf-1.0.15 → safepdf-1.1.0}/SafePDF/ui/help_ui.py +0 -0
  65. {safepdf-1.0.15 → safepdf-1.1.0}/SafePDF/ui/language_elements.py +0 -0
  66. {safepdf-1.0.15 → safepdf-1.1.0}/SafePDF/ui/settings_ui.py +0 -0
  67. {safepdf-1.0.15 → safepdf-1.1.0}/SafePDF/ui/tabs_manager.py +0 -0
  68. {safepdf-1.0.15 → safepdf-1.1.0}/SafePDF/ui/update_ui.py +0 -0
  69. {safepdf-1.0.15 → safepdf-1.1.0}/SafePDF.egg-info/dependency_links.txt +0 -0
  70. {safepdf-1.0.15 → safepdf-1.1.0}/SafePDF.egg-info/entry_points.txt +0 -0
  71. {safepdf-1.0.15 → safepdf-1.1.0}/SafePDF.egg-info/requires.txt +0 -0
  72. {safepdf-1.0.15 → safepdf-1.1.0}/SafePDF.egg-info/top_level.txt +0 -0
  73. {safepdf-1.0.15 → safepdf-1.1.0}/pyproject.toml +0 -0
  74. {safepdf-1.0.15 → safepdf-1.1.0}/requirements.txt +0 -0
  75. {safepdf-1.0.15 → safepdf-1.1.0}/setup.cfg +0 -0
  76. {safepdf-1.0.15 → 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.15
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](https://img.shields.io/badge/License-GPL--3.0-red)](#license)
48
48
  [![stars - SafePDF](https://img.shields.io/github/stars/mcagriaksoy/SafePDF?style=social)](https://github.com/mcagriaksoy/SafePDF)
49
49
 
50
- **SafePDF** is a privacy-focused, offline PDF manipulation tool. All operations are performed locally on your device—your sensitive documents never leave your computer.
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: [safepdf.com](https://safepdf.com)
168
- - More information is available at [safepdf.com](https://safepdf.com)
169
- - Email: [info@safepdf.com](mailto:info@safepdf.com)
170
- - Report Issues: [GitHub Issues](https://github.com/mcagriaksoy/SafePDF/issues)
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](https://img.shields.io/badge/License-GPL--3.0-red)](#license)
9
9
  [![stars - SafePDF](https://img.shields.io/github/stars/mcagriaksoy/SafePDF?style=social)](https://github.com/mcagriaksoy/SafePDF)
10
10
 
11
- **SafePDF** is a privacy-focused, offline PDF manipulation tool. All operations are performed locally on your device—your sensitive documents never leave your computer.
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: [safepdf.com](https://safepdf.com)
129
- - More information is available at [safepdf.com](https://safepdf.com)
130
- - Email: [info@safepdf.com](mailto:info@safepdf.com)
131
- - Report Issues: [GitHub Issues](https://github.com/mcagriaksoy/SafePDF/issues)
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
 
@@ -5,6 +5,6 @@ This file makes the `SafePDF` directory a proper Python package so
5
5
  absolute imports like `from SafePDF.ui...` work consistently.
6
6
  """
7
7
 
8
- __version__ = "1.0.15"
8
+ __version__ = "1.1.0"
9
9
 
10
10
  __all__ = []
Binary file
@@ -0,0 +1,159 @@
1
+ import os
2
+ import sys
3
+ import subprocess
4
+ import shutil
5
+ import re
6
+
7
+ def get_version():
8
+ init_path = os.path.join(os.path.dirname(__file__), "__init__.py")
9
+ with open(init_path, 'r', encoding='utf-8') as f:
10
+ content = f.read()
11
+ match = re.search(r'__version__\s*=\s*["\']([^"\']+)["\']', content)
12
+ if match:
13
+ return match.group(1)
14
+ return "1.1.0" # fallback
15
+
16
+ def build_executable(version, safe_pdf_dir, dist_dir):
17
+ portable_name = f"SafePdf_v{version}_portable_win64"
18
+ print(f"\n--- COMPILING PORTABLE SINGLE-FILE BUILD (onefile: {portable_name}.exe) ---")
19
+ pyinstaller_onefile_cmd = [
20
+ "pyinstaller",
21
+ "--noconfirm",
22
+ "--windowed",
23
+ "--onefile",
24
+ "--name", portable_name,
25
+ "--icon", os.path.join(safe_pdf_dir, "assets", "icon.ico"),
26
+ "--version-file", os.path.join(safe_pdf_dir, "version.txt"),
27
+ "--add-data", f"{os.path.join(safe_pdf_dir, 'assets')};assets/",
28
+ "--add-data", f"{os.path.join(safe_pdf_dir, 'ui')};ui/",
29
+ "--add-data", f"{os.path.join(safe_pdf_dir, 'ops')};ops/",
30
+ "--add-data", f"{os.path.join(safe_pdf_dir, 'ctrl')};ctrl/",
31
+ "--add-data", f"{os.path.join(safe_pdf_dir, 'logger')};logger/",
32
+ "--add-data", f"{os.path.join(safe_pdf_dir, 'text')};text/",
33
+ "--add-data", f"{os.path.join(safe_pdf_dir, 'keys')};keys/",
34
+ "--exclude-module", "scipy",
35
+ "--exclude-module", "networkx",
36
+ os.path.join(safe_pdf_dir, "safe_pdf_app.py")
37
+ ]
38
+
39
+ res = subprocess.run(pyinstaller_onefile_cmd, cwd=safe_pdf_dir)
40
+ if res.returncode != 0:
41
+ print("Error: PyInstaller onefile compilation failed.")
42
+ sys.exit(1)
43
+ print(" Portable onefile compilation successful.")
44
+ return os.path.join(dist_dir, f"{portable_name}.exe")
45
+
46
+ def main():
47
+ safe_pdf_dir = os.path.dirname(os.path.abspath(__file__))
48
+ user_desktop = os.path.join(os.environ['USERPROFILE'], 'Desktop')
49
+
50
+ version = get_version()
51
+ print(f"Detected SafePDF version: {version}")
52
+
53
+ portable_name = f"SafePdf_v{version}_portable_win64"
54
+ dest_portable = os.path.join(user_desktop, f"{portable_name}.exe")
55
+ final_setup_path = os.path.join(user_desktop, f"SafePdf_v{version}_iwin64.exe")
56
+
57
+ # Check PyInstaller
58
+ try:
59
+ subprocess.run(["pyinstaller", "--version"], stdout=subprocess.PIPE, stderr=subprocess.PIPE, check=True)
60
+ except (subprocess.CalledProcessError, FileNotFoundError):
61
+ print("Error: PyInstaller not found.")
62
+ sys.exit(1)
63
+
64
+ # Clean previous build artifacts
65
+ dist_dir = os.path.join(safe_pdf_dir, "dist")
66
+ build_dir = os.path.join(safe_pdf_dir, "build")
67
+ for folder in [dist_dir, build_dir]:
68
+ if os.path.exists(folder):
69
+ try:
70
+ shutil.rmtree(folder)
71
+ except Exception as e:
72
+ print(f"Warning: Could not delete {folder}: {e}")
73
+
74
+ os.makedirs(dist_dir, exist_ok=True)
75
+
76
+ # 1. Build portable executable directly into dist
77
+ src_portable = build_executable(version, safe_pdf_dir, dist_dir)
78
+
79
+ # Copy standalone portable build to Desktop
80
+ try:
81
+ shutil.copy2(src_portable, dest_portable)
82
+ print(f"Copied portable build to Desktop: {dest_portable}")
83
+ except Exception as e:
84
+ print(f"Warning: Could not copy portable build to Desktop: {e}")
85
+
86
+ # Name the executable to package as SafePDF.exe
87
+ setup_target_exe = os.path.join(dist_dir, "SafePDF.exe")
88
+ shutil.copy2(src_portable, setup_target_exe)
89
+
90
+ # 2. Check InstallForge
91
+ ifbuild_exe = r"C:\Program Files (x86)\solicus\InstallForge\bin\ifbuildx86.exe"
92
+ if not os.path.exists(ifbuild_exe):
93
+ print(f"Error: InstallForge compiler not found at: {ifbuild_exe}")
94
+ sys.exit(1)
95
+
96
+ # 3. Read and adapt script.ifp
97
+ ifp_path = os.path.join(safe_pdf_dir, "installer", "script.ifp")
98
+ with open(ifp_path, 'r', encoding='utf-8') as f:
99
+ ifp_content = f.read()
100
+
101
+ app_icon_path = os.path.join(safe_pdf_dir, "assets", "icon.ico")
102
+ uninstaller_icon = r"C:\Program Files (x86)\solicus\InstallForge\bin\ifbuildx86.exe" # fallback or standard
103
+ if not os.path.exists(uninstaller_icon):
104
+ uninstaller_icon = app_icon_path
105
+
106
+ escaped_target_exe = setup_target_exe.replace('\\', '\\\\')
107
+ escaped_output_setup = final_setup_path.replace('\\', '\\\\')
108
+ escaped_app_icon = app_icon_path.replace('\\', '\\\\')
109
+
110
+ modified_ifp = ifp_content
111
+ # Per-user execution & uninstallation privileges (zero admin rights required)
112
+ if '<Privileges' not in modified_ifp:
113
+ modified_ifp = modified_ifp.replace('<InstallerConfiguration>', '<InstallerConfiguration>\n <Privileges level="user"/>')
114
+ else:
115
+ modified_ifp = re.sub(r'<Privileges level="[^"]*"/>', '<Privileges level="user"/>', modified_ifp)
116
+
117
+ # Per-user installation path (%LocalAppData%\Programs\SafePDF)
118
+ modified_ifp = re.sub(r'defaultInstallationPath="[^"]*"', 'defaultInstallationPath="&lt;LocalAppData&gt;\\\\Programs\\\\SafePDF\\\\"', modified_ifp)
119
+ modified_ifp = re.sub(r'<Version>[^<]*</Version>', f'<Version>v{version}</Version>', modified_ifp)
120
+ modified_ifp = re.sub(r'<HeaderImage filePath="[^"]*"/>', '<HeaderImage filePath="&lt;main&gt;"/>', modified_ifp)
121
+ modified_ifp = re.sub(r'<SplashScreen isDialogEnabled="[^"]*"[^>]*>[\s\S]*?</SplashScreen>',
122
+ '<SplashScreen isDialogEnabled="false" delayTime="2">\n <Image filePath="&lt;main&gt;"/>\n <Sound isEnabled="false" filePath=""/>\n </SplashScreen>',
123
+ modified_ifp)
124
+ # Package single executable file directly
125
+ modified_ifp = re.sub(r'<InstallationFile size="[^"]*" type="\[(Folder|File)\]">[^<]*</InstallationFile>',
126
+ f'<InstallationFile size="N/A" type="[File]">{escaped_target_exe}</InstallationFile>',
127
+ modified_ifp)
128
+ modified_ifp = re.sub(r'<SetupFilePath>[^<]*</SetupFilePath>', f'<SetupFilePath>{escaped_output_setup}</SetupFilePath>', modified_ifp)
129
+ modified_ifp = re.sub(r'<SetupIconPath>[^<]*</SetupIconPath>', f'<SetupIconPath>{escaped_app_icon}</SetupIconPath>', modified_ifp)
130
+ modified_ifp = re.sub(r'<UninstallerIconPath>[^<]*</UninstallerIconPath>', f'<UninstallerIconPath>{escaped_app_icon}</UninstallerIconPath>', modified_ifp)
131
+ modified_ifp = re.sub(r'<UninstallerConfiguration isPackaged="[^"]*">', '<UninstallerConfiguration isPackaged="true">', modified_ifp)
132
+ # Shortcut points directly to <InstallPath>\SafePDF.exe
133
+ modified_ifp = re.sub(r'targetFile="&lt;InstallPath&gt;\\[^"]*"', 'targetFile="&lt;InstallPath&gt;\\\\SafePDF.exe"', modified_ifp)
134
+ modified_ifp = re.sub(r'executableFilePath="&lt;InstallPath&gt;\\[^"]*"', 'executableFilePath="&lt;InstallPath&gt;\\\\SafePDF.exe"', modified_ifp)
135
+
136
+ temp_ifp_path = os.path.join(safe_pdf_dir, "installer", "temp_script.ifp")
137
+ with open(temp_ifp_path, 'w', encoding='utf-8') as f:
138
+ f.write(modified_ifp)
139
+
140
+ print("Compiling installer package with InstallForge...")
141
+ res = subprocess.run([ifbuild_exe, "-i", temp_ifp_path], stdout=subprocess.PIPE, stderr=subprocess.PIPE)
142
+
143
+ if os.path.exists(temp_ifp_path):
144
+ os.remove(temp_ifp_path)
145
+
146
+ if res.returncode != 0 or b"[err]" in res.stdout:
147
+ print("Error: InstallForge compilation failed.")
148
+ print(res.stdout.decode('utf-8', errors='ignore'))
149
+ print(res.stderr.decode('utf-8', errors='ignore'))
150
+ sys.exit(1)
151
+
152
+ print("\n" + "="*50)
153
+ print("SUCCESS: Installer package and portable build created successfully!")
154
+ print(f"Installer path: {final_setup_path}")
155
+ print(f"Portable path: {dest_portable}")
156
+ print("="*50)
157
+
158
+ if __name__ == "__main__":
159
+ main()
@@ -1,6 +1,6 @@
1
1
  """
2
2
  SafePDF Controller - Core Logic
3
- by mcagriaksoy - 2025
3
+ by mcagriaksoy - 2026
4
4
 
5
5
  This module handles the core application logic, state management,
6
6
  and coordination of PDF operations.
@@ -1,6 +1,6 @@
1
1
  """
2
2
  SafePDF Updates Module - GitHub Releases and Signed Keys
3
- by mcagriaksoy - 2025
3
+ by mcagriaksoy - 2026
4
4
 
5
5
  This module handles checking for updates from GitHub Releases,
6
6
  downloading and verifying releases using GPG signatures.
@@ -2,12 +2,12 @@
2
2
  "app_title": "SafePDF™",
3
3
  "pro_badge_pro": "PRO",
4
4
  "pro_badge_free": "KOSTENLOS",
5
- "tab_welcome": "1. Willkommen",
6
- "tab_operation": "2. Vorgang auswählen",
7
- "tab_file": "3. Datei auswählen",
8
- "tab_settings": "4. Einstellungen anpassen",
9
- "tab_results": "5. Ergebnisse",
10
- "tab_app_settings": "Einstellungen",
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!",
@@ -156,6 +156,11 @@
156
156
  "settings_repair_structure": "Versuchen, beschädigte Struktur wiederherzustellen",
157
157
  "settings_merge_options": "Zusammenführungsoptionen:",
158
158
  "settings_merge_page_numbers": "Seitenzahlen zum zusammengeführten PDF hinzufügen",
159
+ "merge_move_up": "▲ Nach oben",
160
+ "merge_move_down": "▼ Nach unten",
161
+ "merge_add_file": "➕ Datei hinzufügen",
162
+ "merge_remove": "❌ Entfernen",
163
+ "settings_files_to_merge": "Dateien zusammenführen (in Reihenfolge)",
159
164
  "settings_rotation": "Rotationswinkel:",
160
165
  "settings_image_quality": "Bildqualität:",
161
166
  "settings_img_low": "Niedrig (Kleinere Größe)",
@@ -2,12 +2,12 @@
2
2
  "app_title": "SafePDF™",
3
3
  "pro_badge_pro": "PRO",
4
4
  "pro_badge_free": "FREE",
5
- "tab_welcome": "1. Welcome",
6
- "tab_operation": "2. Select Operation",
7
- "tab_file": "3. Select File",
8
- "tab_settings": "4. Adjust Settings",
9
- "tab_results": "5. Results",
10
- "tab_app_settings": "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!",
@@ -156,6 +156,11 @@
156
156
  "settings_repair_structure": "Attempt to recover corrupted structure",
157
157
  "settings_merge_options": "Merge Options:",
158
158
  "settings_merge_page_numbers": "Add page numbers to merged PDF",
159
+ "merge_move_up": "▲ Move Up",
160
+ "merge_move_down": "▼ Move Down",
161
+ "merge_add_file": "➕ Add File",
162
+ "merge_remove": "❌ Remove",
163
+ "settings_files_to_merge": "Files to Merge (in order)",
159
164
  "settings_rotation": "Rotation Angle:",
160
165
  "settings_image_quality": "Image Quality:",
161
166
  "settings_img_low": "Low (Smaller size)",
@@ -22,4 +22,4 @@ Version: {VERSION}
22
22
 
23
23
 
24
24
 
25
- For more information and updates contact us. SafePdf™ - 2025
25
+ For more information and updates contact us. SafePdf™ - 2026
@@ -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": "1. Hoşgeldiniz",
6
- "tab_operation": "2. İşlem Seç",
7
- "tab_file": "3. Dosya Seç",
8
- "tab_settings": "4. Ayarları Değiştir",
9
- "tab_results": "5. Sonuçlar",
10
- "tab_app_settings": "Ayarlar",
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!",
@@ -156,6 +156,11 @@
156
156
  "settings_repair_structure": "Hasarlı yapıyı kurtarmayı dene",
157
157
  "settings_merge_options": "Birleştirme Seçenekleri:",
158
158
  "settings_merge_page_numbers": "Birleştirilmiş PDF'ye sayfa numaraları ekle",
159
+ "merge_move_up": "▲ Yukarı Taşı",
160
+ "merge_move_down": "▼ Aşağı Taşı",
161
+ "merge_add_file": "➕ Dosya Ekle",
162
+ "merge_remove": "❌ Kaldır",
163
+ "settings_files_to_merge": "Birleştirilecek Dosyalar (sırayla)",
159
164
  "settings_rotation": "Döndürme Açısı:",
160
165
  "settings_image_quality": "Görüntü Kalitesi:",
161
166
  "settings_img_low": "Düşük (Daha Küçük Boyut)",
@@ -21,4 +21,4 @@ Sürüm: {VERSION}
21
21
 
22
22
 
23
23
 
24
- Daha fazla bilgi ve güncellemeler için bizimle iletişime geçin. SafePdf™ - 2025
24
+ Daha fazla bilgi ve güncellemeler için bizimle iletişime geçin. SafePdf™ - 2026
@@ -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"