SafePDF 1.0.15__tar.gz → 1.0.16__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.15/SafePDF.egg-info → safepdf-1.0.16}/PKG-INFO +1 -1
- {safepdf-1.0.15 → safepdf-1.0.16}/SafePDF/__init__.py +1 -1
- safepdf-1.0.16/SafePDF/assets/icon.png +0 -0
- safepdf-1.0.16/SafePDF/build_installer.py +159 -0
- {safepdf-1.0.15 → safepdf-1.0.16}/SafePDF/text/de/ui.json +5 -0
- {safepdf-1.0.15 → safepdf-1.0.16}/SafePDF/text/en/ui.json +5 -0
- {safepdf-1.0.15 → safepdf-1.0.16}/SafePDF/text/tr/ui.json +5 -0
- {safepdf-1.0.15 → safepdf-1.0.16}/SafePDF/ui/operation_settings.py +166 -17
- {safepdf-1.0.15 → safepdf-1.0.16}/SafePDF/ui/safe_pdf_ui.py +100 -34
- {safepdf-1.0.15 → safepdf-1.0.16}/SafePDF/version.txt +5 -5
- {safepdf-1.0.15 → safepdf-1.0.16/SafePDF.egg-info}/PKG-INFO +1 -1
- {safepdf-1.0.15 → safepdf-1.0.16}/SafePDF.egg-info/SOURCES.txt +2 -0
- {safepdf-1.0.15 → safepdf-1.0.16}/LICENSE +0 -0
- {safepdf-1.0.15 → safepdf-1.0.16}/MANIFEST.in +0 -0
- {safepdf-1.0.15 → safepdf-1.0.16}/README.md +0 -0
- {safepdf-1.0.15 → safepdf-1.0.16}/SafePDF/assets/back.png +0 -0
- {safepdf-1.0.15 → safepdf-1.0.16}/SafePDF/assets/compress.png +0 -0
- {safepdf-1.0.15 → safepdf-1.0.16}/SafePDF/assets/compression_err.gif +0 -0
- {safepdf-1.0.15 → safepdf-1.0.16}/SafePDF/assets/crown.svg +0 -0
- {safepdf-1.0.15 → safepdf-1.0.16}/SafePDF/assets/extract.png +0 -0
- {safepdf-1.0.15 → safepdf-1.0.16}/SafePDF/assets/icon.ico +0 -0
- {safepdf-1.0.15 → safepdf-1.0.16}/SafePDF/assets/jpg2pdf.png +0 -0
- {safepdf-1.0.15 → safepdf-1.0.16}/SafePDF/assets/merge.png +0 -0
- {safepdf-1.0.15 → safepdf-1.0.16}/SafePDF/assets/next.png +0 -0
- {safepdf-1.0.15 → safepdf-1.0.16}/SafePDF/assets/pdf2jpg.png +0 -0
- {safepdf-1.0.15 → safepdf-1.0.16}/SafePDF/assets/pdf2ocr.png +0 -0
- {safepdf-1.0.15 → safepdf-1.0.16}/SafePDF/assets/pdf2txt.png +0 -0
- {safepdf-1.0.15 → safepdf-1.0.16}/SafePDF/assets/pdf2word.png +0 -0
- {safepdf-1.0.15 → safepdf-1.0.16}/SafePDF/assets/repair.png +0 -0
- {safepdf-1.0.15 → safepdf-1.0.16}/SafePDF/assets/rotate.png +0 -0
- {safepdf-1.0.15 → safepdf-1.0.16}/SafePDF/assets/split.png +0 -0
- {safepdf-1.0.15 → safepdf-1.0.16}/SafePDF/ctrl/__init__.py +0 -0
- {safepdf-1.0.15 → safepdf-1.0.16}/SafePDF/ctrl/language_manager.py +0 -0
- {safepdf-1.0.15 → safepdf-1.0.16}/SafePDF/ctrl/safe_pdf_controller.py +0 -0
- {safepdf-1.0.15 → safepdf-1.0.16}/SafePDF/logger/__init__.py +0 -0
- {safepdf-1.0.15 → safepdf-1.0.16}/SafePDF/logger/logging_config.py +0 -0
- {safepdf-1.0.15 → safepdf-1.0.16}/SafePDF/ops/__init__.py +0 -0
- {safepdf-1.0.15 → safepdf-1.0.16}/SafePDF/ops/pdf2docx.py +0 -0
- {safepdf-1.0.15 → safepdf-1.0.16}/SafePDF/ops/pdf2jpeg.py +0 -0
- {safepdf-1.0.15 → safepdf-1.0.16}/SafePDF/ops/pdf_compress.py +0 -0
- {safepdf-1.0.15 → safepdf-1.0.16}/SafePDF/ops/pdf_merge.py +0 -0
- {safepdf-1.0.15 → safepdf-1.0.16}/SafePDF/ops/pdf_ocr.py +0 -0
- {safepdf-1.0.15 → safepdf-1.0.16}/SafePDF/ops/pdf_operations.py +0 -0
- {safepdf-1.0.15 → safepdf-1.0.16}/SafePDF/ops/pdf_rotate.py +0 -0
- {safepdf-1.0.15 → safepdf-1.0.16}/SafePDF/ops/pdf_split.py +0 -0
- {safepdf-1.0.15 → safepdf-1.0.16}/SafePDF/ops/updates.py +0 -0
- {safepdf-1.0.15 → safepdf-1.0.16}/SafePDF/safe_pdf_app.py +0 -0
- {safepdf-1.0.15 → safepdf-1.0.16}/SafePDF/test/__init__.py +0 -0
- {safepdf-1.0.15 → safepdf-1.0.16}/SafePDF/test/test_compression.py +0 -0
- {safepdf-1.0.15 → safepdf-1.0.16}/SafePDF/test/test_pro_dialog.py +0 -0
- {safepdf-1.0.15 → safepdf-1.0.16}/SafePDF/text/de/help_content.txt +0 -0
- {safepdf-1.0.15 → safepdf-1.0.16}/SafePDF/text/de/pro_features.txt +0 -0
- {safepdf-1.0.15 → safepdf-1.0.16}/SafePDF/text/de/welcome_content.txt +0 -0
- {safepdf-1.0.15 → safepdf-1.0.16}/SafePDF/text/en/help_content.txt +0 -0
- {safepdf-1.0.15 → safepdf-1.0.16}/SafePDF/text/en/pro_features.txt +0 -0
- {safepdf-1.0.15 → safepdf-1.0.16}/SafePDF/text/en/welcome_content.txt +0 -0
- {safepdf-1.0.15 → safepdf-1.0.16}/SafePDF/text/tr/help_content.txt +0 -0
- {safepdf-1.0.15 → safepdf-1.0.16}/SafePDF/text/tr/pro_features.txt +0 -0
- {safepdf-1.0.15 → safepdf-1.0.16}/SafePDF/text/tr/welcome_content.txt +0 -0
- {safepdf-1.0.15 → safepdf-1.0.16}/SafePDF/ui/__init__.py +0 -0
- {safepdf-1.0.15 → safepdf-1.0.16}/SafePDF/ui/common_elements.py +0 -0
- {safepdf-1.0.15 → safepdf-1.0.16}/SafePDF/ui/help_ui.py +0 -0
- {safepdf-1.0.15 → safepdf-1.0.16}/SafePDF/ui/language_elements.py +0 -0
- {safepdf-1.0.15 → safepdf-1.0.16}/SafePDF/ui/settings_ui.py +0 -0
- {safepdf-1.0.15 → safepdf-1.0.16}/SafePDF/ui/tabs_manager.py +0 -0
- {safepdf-1.0.15 → safepdf-1.0.16}/SafePDF/ui/update_ui.py +0 -0
- {safepdf-1.0.15 → safepdf-1.0.16}/SafePDF.egg-info/dependency_links.txt +0 -0
- {safepdf-1.0.15 → safepdf-1.0.16}/SafePDF.egg-info/entry_points.txt +0 -0
- {safepdf-1.0.15 → safepdf-1.0.16}/SafePDF.egg-info/requires.txt +0 -0
- {safepdf-1.0.15 → safepdf-1.0.16}/SafePDF.egg-info/top_level.txt +0 -0
- {safepdf-1.0.15 → safepdf-1.0.16}/pyproject.toml +0 -0
- {safepdf-1.0.15 → safepdf-1.0.16}/requirements.txt +0 -0
- {safepdf-1.0.15 → safepdf-1.0.16}/setup.cfg +0 -0
- {safepdf-1.0.15 → safepdf-1.0.16}/setup.py +0 -0
|
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.0.16" # 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="<LocalAppData>\\\\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="<main>"/>', modified_ifp)
|
|
121
|
+
modified_ifp = re.sub(r'<SplashScreen isDialogEnabled="[^"]*"[^>]*>[\s\S]*?</SplashScreen>',
|
|
122
|
+
'<SplashScreen isDialogEnabled="false" delayTime="2">\n <Image filePath="<main>"/>\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="<InstallPath>\\[^"]*"', 'targetFile="<InstallPath>\\\\SafePDF.exe"', modified_ifp)
|
|
134
|
+
modified_ifp = re.sub(r'executableFilePath="<InstallPath>\\[^"]*"', 'executableFilePath="<InstallPath>\\\\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()
|
|
@@ -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)",
|
|
@@ -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)",
|
|
@@ -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)",
|
|
@@ -155,16 +155,25 @@ class OperationSettingsUI:
|
|
|
155
155
|
self.compression_indicator.config(text=text)
|
|
156
156
|
self.compression_visual_frame.config(bg=CommonElements.BG_COLOR)
|
|
157
157
|
|
|
158
|
-
def create_rotate_settings(self, rotation_var):
|
|
158
|
+
def create_rotate_settings(self, rotation_var, on_change_callback=None):
|
|
159
159
|
"""Create settings for PDF rotation"""
|
|
160
160
|
self.rotation_var = rotation_var
|
|
161
161
|
|
|
162
|
-
ttk.Label(
|
|
162
|
+
ttk.Label(
|
|
163
|
+
self.settings_container,
|
|
164
|
+
text=self.lang_manager.get("settings_rotation", "Rotation Angle:"),
|
|
165
|
+
).pack(anchor="w", pady=5)
|
|
163
166
|
rotation_frame = ttk.Frame(self.settings_container)
|
|
164
167
|
rotation_frame.pack(anchor="w", pady=5)
|
|
165
168
|
|
|
166
169
|
for angle in ["90", "180", "270"]:
|
|
167
|
-
ttk.Radiobutton(
|
|
170
|
+
ttk.Radiobutton(
|
|
171
|
+
rotation_frame,
|
|
172
|
+
text=f"{angle}°",
|
|
173
|
+
variable=self.rotation_var,
|
|
174
|
+
value=angle,
|
|
175
|
+
command=on_change_callback,
|
|
176
|
+
).pack(anchor="w")
|
|
168
177
|
|
|
169
178
|
def create_to_jpg_settings(self, img_quality_var):
|
|
170
179
|
"""Create settings for PDF to JPG conversion"""
|
|
@@ -245,27 +254,167 @@ class OperationSettingsUI:
|
|
|
245
254
|
variable=self.repair_var,
|
|
246
255
|
).pack(anchor="w")
|
|
247
256
|
|
|
248
|
-
def create_merge_settings(self, merge_var, selected_files):
|
|
249
|
-
"""Create settings for PDF merging"""
|
|
257
|
+
def create_merge_settings(self, merge_var, selected_files, on_files_changed=None):
|
|
258
|
+
"""Create settings for PDF merging with interactive ordering, adding, and removing files"""
|
|
250
259
|
self.merge_var = merge_var
|
|
251
260
|
|
|
252
|
-
|
|
261
|
+
# Define custom style for smaller buttons
|
|
262
|
+
style = ttk.Style()
|
|
263
|
+
style.configure(
|
|
264
|
+
"Small.TButton",
|
|
265
|
+
font=(CommonElements.FONT, 9),
|
|
266
|
+
padding=4,
|
|
267
|
+
)
|
|
268
|
+
|
|
269
|
+
ttk.Label(
|
|
270
|
+
self.settings_container,
|
|
271
|
+
text=self.lang_manager.get("settings_merge_options", "Merge Options:"),
|
|
272
|
+
).pack(anchor="w", pady=5)
|
|
273
|
+
|
|
253
274
|
merge_frame = ttk.Frame(self.settings_container)
|
|
254
275
|
merge_frame.pack(anchor="w", pady=5)
|
|
255
276
|
|
|
256
|
-
ttk.Checkbutton(
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
277
|
+
ttk.Checkbutton(
|
|
278
|
+
merge_frame,
|
|
279
|
+
text=self.lang_manager.get("settings_merge_page_numbers", "Add page numbers to merged PDF"),
|
|
280
|
+
variable=self.merge_var,
|
|
281
|
+
).pack(anchor="w")
|
|
261
282
|
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
283
|
+
# Show selected files frame
|
|
284
|
+
files_frame = ttk.LabelFrame(
|
|
285
|
+
self.settings_container,
|
|
286
|
+
text=self.lang_manager.get("settings_files_to_merge", "Files to Merge (in order)"),
|
|
287
|
+
padding="10",
|
|
288
|
+
)
|
|
289
|
+
files_frame.pack(fill="both", expand=True, pady=(8, 6))
|
|
290
|
+
|
|
291
|
+
# Main layout frame inside files_frame: left is listbox, right is control buttons
|
|
292
|
+
layout_frame = ttk.Frame(files_frame)
|
|
293
|
+
layout_frame.pack(fill="both", expand=True)
|
|
294
|
+
|
|
295
|
+
# Listbox container (with scrollbars)
|
|
296
|
+
list_container = ttk.Frame(layout_frame)
|
|
297
|
+
list_container.pack(side="left", fill="both", expand=True, padx=(0, 10))
|
|
298
|
+
|
|
299
|
+
# Create Listbox
|
|
300
|
+
self.merge_listbox = tk.Listbox(
|
|
301
|
+
list_container,
|
|
302
|
+
bg=CommonElements.ENTRY_BG,
|
|
303
|
+
fg=CommonElements.TEXT_FG,
|
|
304
|
+
selectbackground=CommonElements.RED_COLOR,
|
|
305
|
+
selectforeground="#ffffff",
|
|
306
|
+
font=(CommonElements.FONT, 10),
|
|
307
|
+
height=6,
|
|
308
|
+
relief="solid",
|
|
309
|
+
bd=1,
|
|
310
|
+
highlightthickness=0,
|
|
311
|
+
)
|
|
312
|
+
self.merge_listbox.pack(side="left", fill="both", expand=True)
|
|
313
|
+
|
|
314
|
+
# Scrollbar for Listbox
|
|
315
|
+
scrollbar = ttk.Scrollbar(list_container, orient="vertical", command=self.merge_listbox.yview)
|
|
316
|
+
scrollbar.pack(side="right", fill="y")
|
|
317
|
+
self.merge_listbox.config(yscrollcommand=scrollbar.set)
|
|
318
|
+
|
|
319
|
+
# Control buttons frame
|
|
320
|
+
btn_frame = ttk.Frame(layout_frame)
|
|
321
|
+
btn_frame.pack(side="right", fill="y")
|
|
322
|
+
|
|
323
|
+
# Localized button labels
|
|
324
|
+
up_text = self.lang_manager.get("merge_move_up", "▲ Move Up")
|
|
325
|
+
down_text = self.lang_manager.get("merge_move_down", "▼ Move Down")
|
|
326
|
+
add_text = self.lang_manager.get("merge_add_file", "➕ Add File")
|
|
327
|
+
remove_text = self.lang_manager.get("merge_remove", "❌ Remove")
|
|
328
|
+
|
|
329
|
+
# Function to update Listbox and Controller
|
|
330
|
+
def update_listbox_from_controller():
|
|
331
|
+
self.merge_listbox.delete(0, tk.END)
|
|
332
|
+
for f in self.controller.selected_files:
|
|
333
|
+
self.merge_listbox.insert(tk.END, f)
|
|
334
|
+
|
|
335
|
+
# Initial populate
|
|
336
|
+
update_listbox_from_controller()
|
|
337
|
+
|
|
338
|
+
def move_up():
|
|
339
|
+
selected_indices = self.merge_listbox.curselection()
|
|
340
|
+
if not selected_indices:
|
|
341
|
+
return
|
|
342
|
+
index = selected_indices[0]
|
|
343
|
+
if index == 0:
|
|
344
|
+
return
|
|
345
|
+
# Swap in controller list
|
|
346
|
+
files = list(self.controller.selected_files)
|
|
347
|
+
files[index], files[index - 1] = files[index - 1], files[index]
|
|
348
|
+
self.controller.selected_files = files
|
|
349
|
+
self.controller.selected_file = files[0] if files else None
|
|
350
|
+
update_listbox_from_controller()
|
|
351
|
+
self.merge_listbox.select_set(index - 1)
|
|
352
|
+
self.merge_listbox.see(index - 1)
|
|
353
|
+
if on_files_changed:
|
|
354
|
+
on_files_changed()
|
|
355
|
+
|
|
356
|
+
def move_down():
|
|
357
|
+
selected_indices = self.merge_listbox.curselection()
|
|
358
|
+
if not selected_indices:
|
|
359
|
+
return
|
|
360
|
+
index = selected_indices[0]
|
|
361
|
+
if index == self.merge_listbox.size() - 1:
|
|
362
|
+
return
|
|
363
|
+
# Swap in controller list
|
|
364
|
+
files = list(self.controller.selected_files)
|
|
365
|
+
files[index], files[index + 1] = files[index + 1], files[index]
|
|
366
|
+
self.controller.selected_files = files
|
|
367
|
+
self.controller.selected_file = files[0] if files else None
|
|
368
|
+
update_listbox_from_controller()
|
|
369
|
+
self.merge_listbox.select_set(index + 1)
|
|
370
|
+
self.merge_listbox.see(index + 1)
|
|
371
|
+
if on_files_changed:
|
|
372
|
+
on_files_changed()
|
|
373
|
+
|
|
374
|
+
def add_file():
|
|
375
|
+
from tkinter import filedialog
|
|
376
|
+
file_paths = filedialog.askopenfilenames(
|
|
377
|
+
title=self.lang_manager.get("select_merge_files", "Select PDF Files to Merge"),
|
|
378
|
+
filetypes=[("PDF files", "*.pdf"), ("All files", "*.*")],
|
|
268
379
|
)
|
|
380
|
+
if file_paths:
|
|
381
|
+
files = list(self.controller.selected_files)
|
|
382
|
+
for f in file_paths:
|
|
383
|
+
if f not in files:
|
|
384
|
+
files.append(f)
|
|
385
|
+
self.controller.selected_files = files
|
|
386
|
+
self.controller.selected_file = files[0] if files else None
|
|
387
|
+
update_listbox_from_controller()
|
|
388
|
+
# Select the last added item
|
|
389
|
+
self.merge_listbox.select_set(tk.END)
|
|
390
|
+
self.merge_listbox.see(tk.END)
|
|
391
|
+
if on_files_changed:
|
|
392
|
+
on_files_changed()
|
|
393
|
+
|
|
394
|
+
def remove_file():
|
|
395
|
+
selected_indices = self.merge_listbox.curselection()
|
|
396
|
+
if not selected_indices:
|
|
397
|
+
return
|
|
398
|
+
index = selected_indices[0]
|
|
399
|
+
files = list(self.controller.selected_files)
|
|
400
|
+
if 0 <= index < len(files):
|
|
401
|
+
del files[index]
|
|
402
|
+
self.controller.selected_files = files
|
|
403
|
+
self.controller.selected_file = files[0] if files else None
|
|
404
|
+
update_listbox_from_controller()
|
|
405
|
+
# Select the next or previous item
|
|
406
|
+
new_len = len(files)
|
|
407
|
+
if new_len > 0:
|
|
408
|
+
new_idx = min(index, new_len - 1)
|
|
409
|
+
self.merge_listbox.select_set(new_idx)
|
|
410
|
+
if on_files_changed:
|
|
411
|
+
on_files_changed()
|
|
412
|
+
|
|
413
|
+
# Pack control buttons
|
|
414
|
+
ttk.Button(btn_frame, text=up_text, style="Small.TButton", width=15, command=move_up).pack(pady=2, fill="x")
|
|
415
|
+
ttk.Button(btn_frame, text=down_text, style="Small.TButton", width=15, command=move_down).pack(pady=2, fill="x")
|
|
416
|
+
ttk.Button(btn_frame, text=add_text, style="Small.TButton", width=15, command=add_file).pack(pady=2, fill="x")
|
|
417
|
+
ttk.Button(btn_frame, text=remove_text, style="Small.TButton", width=15, command=remove_file).pack(pady=2, fill="x")
|
|
269
418
|
|
|
270
419
|
def create_split_settings(self, split_var, page_range_var):
|
|
271
420
|
"""Create settings for PDF splitting"""
|
|
@@ -1278,21 +1278,25 @@ class SafePDFUI:
|
|
|
1278
1278
|
self.update_file_tab_ui()
|
|
1279
1279
|
|
|
1280
1280
|
def show_pdf_preview(self, pdf_path):
|
|
1281
|
-
"""Render and show a preview for the selected PDF or JPG image."""
|
|
1282
|
-
if not hasattr(self, "pdf_preview_canvas") or not self.pdf_preview_canvas:
|
|
1283
|
-
return
|
|
1284
|
-
|
|
1281
|
+
"""Render and show a preview for the selected PDF or JPG image on both file and settings tabs."""
|
|
1285
1282
|
canvas_w, canvas_h = 180, 240
|
|
1286
|
-
|
|
1283
|
+
|
|
1284
|
+
# Delete previous images
|
|
1285
|
+
if hasattr(self, "pdf_preview_canvas") and self.pdf_preview_canvas:
|
|
1286
|
+
self.pdf_preview_canvas.delete("all")
|
|
1287
|
+
if hasattr(self, "settings_preview_canvas") and self.settings_preview_canvas:
|
|
1288
|
+
self.settings_preview_canvas.delete("all")
|
|
1287
1289
|
|
|
1288
1290
|
if not pdf_path:
|
|
1289
|
-
self.
|
|
1290
|
-
|
|
1291
|
-
|
|
1292
|
-
|
|
1293
|
-
|
|
1294
|
-
|
|
1295
|
-
|
|
1291
|
+
no_file_text = self.lang_manager.get("preview_no_file_selected", "No file\nselected")
|
|
1292
|
+
if hasattr(self, "pdf_preview_canvas") and self.pdf_preview_canvas:
|
|
1293
|
+
self.pdf_preview_canvas.create_text(
|
|
1294
|
+
canvas_w // 2, canvas_h // 2, text=no_file_text, fill="#888", font=(CommonElements.FONT, 10)
|
|
1295
|
+
)
|
|
1296
|
+
if hasattr(self, "settings_preview_canvas") and self.settings_preview_canvas:
|
|
1297
|
+
self.settings_preview_canvas.create_text(
|
|
1298
|
+
canvas_w // 2, canvas_h // 2, text=no_file_text, fill="#888", font=(CommonElements.FONT, 10)
|
|
1299
|
+
)
|
|
1296
1300
|
return
|
|
1297
1301
|
|
|
1298
1302
|
try:
|
|
@@ -1322,19 +1326,39 @@ class SafePDFUI:
|
|
|
1322
1326
|
img = page.render(scale=scale).to_pil()
|
|
1323
1327
|
pdf.close()
|
|
1324
1328
|
|
|
1329
|
+
# Rotate preview in real-time if active operation is 'rotate'
|
|
1330
|
+
if getattr(self.controller, "selected_operation", None) == "rotate":
|
|
1331
|
+
try:
|
|
1332
|
+
angle_str = self.rotation_var.get()
|
|
1333
|
+
if angle_str:
|
|
1334
|
+
angle = int(angle_str)
|
|
1335
|
+
# Pillow rotates counter-clockwise, so clockwise is negative angle
|
|
1336
|
+
img = img.rotate(-angle, expand=True)
|
|
1337
|
+
except Exception:
|
|
1338
|
+
pass
|
|
1339
|
+
|
|
1325
1340
|
img.thumbnail((canvas_w, canvas_h), Image.LANCZOS)
|
|
1326
1341
|
|
|
1327
|
-
|
|
1328
|
-
|
|
1342
|
+
# Store image object reference to prevent garbage collection
|
|
1343
|
+
preview_img = ImageTk.PhotoImage(img)
|
|
1344
|
+
|
|
1345
|
+
if hasattr(self, "pdf_preview_canvas") and self.pdf_preview_canvas:
|
|
1346
|
+
self.pdf_preview_image = preview_img
|
|
1347
|
+
self.pdf_preview_canvas.create_image(canvas_w // 2, canvas_h // 2, image=self.pdf_preview_image)
|
|
1348
|
+
if hasattr(self, "settings_preview_canvas") and self.settings_preview_canvas:
|
|
1349
|
+
self.settings_preview_image = preview_img
|
|
1350
|
+
self.settings_preview_canvas.create_image(canvas_w // 2, canvas_h // 2, image=self.settings_preview_image)
|
|
1351
|
+
|
|
1329
1352
|
except Exception:
|
|
1330
|
-
self.
|
|
1331
|
-
self.pdf_preview_canvas
|
|
1332
|
-
|
|
1333
|
-
|
|
1334
|
-
|
|
1335
|
-
|
|
1336
|
-
|
|
1337
|
-
|
|
1353
|
+
err_text = self.lang_manager.get("preview_unavailable", "Preview\nUnavailable")
|
|
1354
|
+
if hasattr(self, "pdf_preview_canvas") and self.pdf_preview_canvas:
|
|
1355
|
+
self.pdf_preview_canvas.create_text(
|
|
1356
|
+
canvas_w // 2, canvas_h // 2, text=err_text, fill="#888", font=(CommonElements.FONT, 10)
|
|
1357
|
+
)
|
|
1358
|
+
if hasattr(self, "settings_preview_canvas") and self.settings_preview_canvas:
|
|
1359
|
+
self.settings_preview_canvas.create_text(
|
|
1360
|
+
canvas_w // 2, canvas_h // 2, text=err_text, fill="#888", font=(CommonElements.FONT, 10)
|
|
1361
|
+
)
|
|
1338
1362
|
|
|
1339
1363
|
def update_file_tab_ui(self):
|
|
1340
1364
|
"""Update file tab UI based on selected operation"""
|
|
@@ -1748,7 +1772,7 @@ class SafePDFUI:
|
|
|
1748
1772
|
messagebox.showinfo(title, message)
|
|
1749
1773
|
|
|
1750
1774
|
def create_settings_tab(self):
|
|
1751
|
-
"""Create the settings adjustment tab with modern design"""
|
|
1775
|
+
"""Create the settings adjustment tab with modern design and PDF preview"""
|
|
1752
1776
|
main_frame = ttk.Frame(self.settings_frame, style="TFrame")
|
|
1753
1777
|
main_frame.pack(fill="both", expand=True, padx=20, pady=20)
|
|
1754
1778
|
|
|
@@ -1762,9 +1786,39 @@ class SafePDFUI:
|
|
|
1762
1786
|
)
|
|
1763
1787
|
self.settings_label.pack(expand=True, pady=(0, 8))
|
|
1764
1788
|
|
|
1765
|
-
#
|
|
1766
|
-
|
|
1767
|
-
|
|
1789
|
+
# Horizontal layout container for settings and preview
|
|
1790
|
+
settings_layout_container = tk.Frame(main_frame, bg=CommonElements.BG_CARD)
|
|
1791
|
+
settings_layout_container.pack(fill="both", expand=True)
|
|
1792
|
+
|
|
1793
|
+
# Left: Settings container
|
|
1794
|
+
self.settings_container = ttk.Frame(settings_layout_container, style="TFrame")
|
|
1795
|
+
self.settings_container.pack(side="left", fill="both", expand=True)
|
|
1796
|
+
|
|
1797
|
+
# Right: PDF preview area on settings tab
|
|
1798
|
+
self.settings_preview_frame = tk.Frame(settings_layout_container, bg=CommonElements.BG_CARD, relief=tk.FLAT, bd=0)
|
|
1799
|
+
self.settings_preview_frame.pack(side="right", fill="y", padx=(16, 0), pady=(0, 12))
|
|
1800
|
+
|
|
1801
|
+
self.settings_preview_label = tk.Label(
|
|
1802
|
+
self.settings_preview_frame,
|
|
1803
|
+
text=self.lang_manager.get("preview", "Preview:"),
|
|
1804
|
+
font=(CommonElements.FONT, 11, "bold"),
|
|
1805
|
+
bg=CommonElements.BG_CARD,
|
|
1806
|
+
fg="#333",
|
|
1807
|
+
)
|
|
1808
|
+
self.settings_preview_label.pack(anchor="nw", pady=(0, 4))
|
|
1809
|
+
|
|
1810
|
+
self.settings_preview_canvas = tk.Canvas(
|
|
1811
|
+
self.settings_preview_frame,
|
|
1812
|
+
width=180,
|
|
1813
|
+
height=240,
|
|
1814
|
+
bg=CommonElements.BG_FRAME,
|
|
1815
|
+
bd=1,
|
|
1816
|
+
relief=tk.SOLID,
|
|
1817
|
+
highlightthickness=1,
|
|
1818
|
+
highlightbackground="#acb2bb",
|
|
1819
|
+
)
|
|
1820
|
+
self.settings_preview_canvas.pack(anchor="n", pady=(0, 8))
|
|
1821
|
+
self.settings_preview_image = None
|
|
1768
1822
|
|
|
1769
1823
|
def create_results_tab(self):
|
|
1770
1824
|
"""Create the results display tab with modern design"""
|
|
@@ -2645,6 +2699,9 @@ class SafePDFUI:
|
|
|
2645
2699
|
previous_tab = self._previous_tab
|
|
2646
2700
|
self._previous_tab = new_tab
|
|
2647
2701
|
self.controller.current_tab = new_tab
|
|
2702
|
+
if new_tab == 3:
|
|
2703
|
+
self.update_settings_for_operation()
|
|
2704
|
+
self.show_pdf_preview(self.controller.selected_file)
|
|
2648
2705
|
self.update_navigation_buttons()
|
|
2649
2706
|
self.animate_tab_change(previous_tab, new_tab)
|
|
2650
2707
|
|
|
@@ -3009,7 +3066,10 @@ class SafePDFUI:
|
|
|
3009
3066
|
False, self.use_default_output, self.output_path_var, self._on_browse_output
|
|
3010
3067
|
)
|
|
3011
3068
|
elif self.controller.selected_operation == "rotate":
|
|
3012
|
-
ops_ui.create_rotate_settings(
|
|
3069
|
+
ops_ui.create_rotate_settings(
|
|
3070
|
+
self.rotation_var,
|
|
3071
|
+
on_change_callback=lambda: self.show_pdf_preview(self.controller.selected_file)
|
|
3072
|
+
)
|
|
3013
3073
|
ops_ui.create_output_path_selection(
|
|
3014
3074
|
False, self.use_default_output, self.output_path_var, self._on_browse_output
|
|
3015
3075
|
)
|
|
@@ -3034,7 +3094,11 @@ class SafePDFUI:
|
|
|
3034
3094
|
False, self.use_default_output, self.output_path_var, self._on_browse_output
|
|
3035
3095
|
)
|
|
3036
3096
|
elif self.controller.selected_operation == "merge":
|
|
3037
|
-
ops_ui.create_merge_settings(
|
|
3097
|
+
ops_ui.create_merge_settings(
|
|
3098
|
+
self.merge_var,
|
|
3099
|
+
self.controller.selected_files,
|
|
3100
|
+
on_files_changed=self._on_merge_files_changed,
|
|
3101
|
+
)
|
|
3038
3102
|
ops_ui.create_output_path_selection(
|
|
3039
3103
|
False, self.use_default_output, self.output_path_var, self._on_browse_output
|
|
3040
3104
|
)
|
|
@@ -3493,13 +3557,10 @@ class SafePDFUI:
|
|
|
3493
3557
|
# Default: enable
|
|
3494
3558
|
enabled = True
|
|
3495
3559
|
if self.controller.selected_operation == "merge":
|
|
3496
|
-
# Require
|
|
3497
|
-
|
|
3498
|
-
self.merge_second_file_var.get().strip() if getattr(self, "merge_second_file_var", None) else ""
|
|
3499
|
-
)
|
|
3500
|
-
if not second:
|
|
3560
|
+
# Require at least 2 files to be selected
|
|
3561
|
+
if len(self.controller.selected_files) < 2:
|
|
3501
3562
|
enabled = False
|
|
3502
|
-
|
|
3563
|
+
|
|
3503
3564
|
# If results tab and output exists, Next becomes Open - leave it enabled
|
|
3504
3565
|
if self.controller.current_tab == 4 and self.controller.current_output:
|
|
3505
3566
|
enabled = True
|
|
@@ -3511,6 +3572,11 @@ class SafePDFUI:
|
|
|
3511
3572
|
logger.debug("Error updating execute button state", exc_info=True)
|
|
3512
3573
|
pass # Button may not exist during initialization, ignore
|
|
3513
3574
|
|
|
3575
|
+
def _on_merge_files_changed(self):
|
|
3576
|
+
"""Callback triggered when files in the merge settings list are modified"""
|
|
3577
|
+
self._update_execute_button_state()
|
|
3578
|
+
self.update_file_display()
|
|
3579
|
+
|
|
3514
3580
|
# Utility methods
|
|
3515
3581
|
def open_github(self, event):
|
|
3516
3582
|
"""Open GitHub repository"""
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
# For use with PyInstaller --version-file option
|
|
4
4
|
VSVersionInfo(
|
|
5
5
|
ffi=FixedFileInfo(
|
|
6
|
-
filevers=(1, 0,
|
|
7
|
-
prodvers=(1, 0,
|
|
6
|
+
filevers=(1, 0, 16, 0),
|
|
7
|
+
prodvers=(1, 0, 16, 0),
|
|
8
8
|
mask=0x3f,
|
|
9
9
|
flags=0x0,
|
|
10
10
|
OS=0x4,
|
|
@@ -19,13 +19,13 @@ VSVersionInfo(
|
|
|
19
19
|
[
|
|
20
20
|
StringStruct('CompanyName', 'github.com/mcagriaksoy'),
|
|
21
21
|
StringStruct('FileDescription', 'SafePDF - A privacy focused PDF Manipulation Tool'),
|
|
22
|
-
StringStruct('FileVersion', '1.0.
|
|
22
|
+
StringStruct('FileVersion', '1.0.16'),
|
|
23
23
|
StringStruct('InternalName', 'SafePDF'),
|
|
24
24
|
StringStruct('LegalCopyright', 'Copyright (C) 2025- 2026 by mcagriaksoy'),
|
|
25
25
|
StringStruct('LegalTrademarks', ''),
|
|
26
|
-
StringStruct('OriginalFilename', 'SafePdf_v1.0.
|
|
26
|
+
StringStruct('OriginalFilename', 'SafePdf_v1.0.16_iwin64.exe'),
|
|
27
27
|
StringStruct('ProductName', 'SafePDF'),
|
|
28
|
-
StringStruct('ProductVersion', '1.0.
|
|
28
|
+
StringStruct('ProductVersion', '1.0.16'),
|
|
29
29
|
StringStruct('License', 'GPL-V3.0')
|
|
30
30
|
])
|
|
31
31
|
]),
|
|
@@ -5,6 +5,7 @@ pyproject.toml
|
|
|
5
5
|
requirements.txt
|
|
6
6
|
setup.py
|
|
7
7
|
SafePDF/__init__.py
|
|
8
|
+
SafePDF/build_installer.py
|
|
8
9
|
SafePDF/safe_pdf_app.py
|
|
9
10
|
SafePDF/version.txt
|
|
10
11
|
SafePDF.egg-info/PKG-INFO
|
|
@@ -19,6 +20,7 @@ SafePDF/assets/compression_err.gif
|
|
|
19
20
|
SafePDF/assets/crown.svg
|
|
20
21
|
SafePDF/assets/extract.png
|
|
21
22
|
SafePDF/assets/icon.ico
|
|
23
|
+
SafePDF/assets/icon.png
|
|
22
24
|
SafePDF/assets/jpg2pdf.png
|
|
23
25
|
SafePDF/assets/merge.png
|
|
24
26
|
SafePDF/assets/next.png
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|