SafePDF 1.0.16__tar.gz → 1.1.1__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.1}/PKG-INFO +79 -15
- safepdf-1.1.1/README.md +211 -0
- {safepdf-1.0.16 → safepdf-1.1.1}/SafePDF/__init__.py +1 -1
- {safepdf-1.0.16 → safepdf-1.1.1}/SafePDF/build_installer.py +1 -1
- {safepdf-1.0.16 → safepdf-1.1.1}/SafePDF/ctrl/safe_pdf_controller.py +1 -1
- {safepdf-1.0.16 → safepdf-1.1.1}/SafePDF/ops/updates.py +5 -7
- {safepdf-1.0.16 → safepdf-1.1.1}/SafePDF/text/de/ui.json +6 -6
- {safepdf-1.0.16 → safepdf-1.1.1}/SafePDF/text/en/ui.json +6 -6
- {safepdf-1.0.16 → safepdf-1.1.1}/SafePDF/text/en/welcome_content.txt +1 -1
- {safepdf-1.0.16 → safepdf-1.1.1}/SafePDF/text/tr/ui.json +6 -6
- {safepdf-1.0.16 → safepdf-1.1.1}/SafePDF/text/tr/welcome_content.txt +1 -1
- safepdf-1.1.1/SafePDF/ui/common_elements.py +47 -0
- {safepdf-1.0.16 → safepdf-1.1.1}/SafePDF/ui/operation_settings.py +22 -22
- {safepdf-1.0.16 → safepdf-1.1.1}/SafePDF/ui/safe_pdf_ui.py +266 -827
- safepdf-1.1.1/SafePDF/ui/theme.py +335 -0
- {safepdf-1.0.16 → safepdf-1.1.1}/SafePDF/version.txt +6 -6
- {safepdf-1.0.16 → safepdf-1.1.1/SafePDF.egg-info}/PKG-INFO +79 -15
- {safepdf-1.0.16 → safepdf-1.1.1}/SafePDF.egg-info/SOURCES.txt +1 -0
- safepdf-1.0.16/README.md +0 -147
- safepdf-1.0.16/SafePDF/ui/common_elements.py +0 -42
- {safepdf-1.0.16 → safepdf-1.1.1}/LICENSE +0 -0
- {safepdf-1.0.16 → safepdf-1.1.1}/MANIFEST.in +0 -0
- {safepdf-1.0.16 → safepdf-1.1.1}/SafePDF/assets/back.png +0 -0
- {safepdf-1.0.16 → safepdf-1.1.1}/SafePDF/assets/compress.png +0 -0
- {safepdf-1.0.16 → safepdf-1.1.1}/SafePDF/assets/compression_err.gif +0 -0
- {safepdf-1.0.16 → safepdf-1.1.1}/SafePDF/assets/crown.svg +0 -0
- {safepdf-1.0.16 → safepdf-1.1.1}/SafePDF/assets/extract.png +0 -0
- {safepdf-1.0.16 → safepdf-1.1.1}/SafePDF/assets/icon.ico +0 -0
- {safepdf-1.0.16 → safepdf-1.1.1}/SafePDF/assets/icon.png +0 -0
- {safepdf-1.0.16 → safepdf-1.1.1}/SafePDF/assets/jpg2pdf.png +0 -0
- {safepdf-1.0.16 → safepdf-1.1.1}/SafePDF/assets/merge.png +0 -0
- {safepdf-1.0.16 → safepdf-1.1.1}/SafePDF/assets/next.png +0 -0
- {safepdf-1.0.16 → safepdf-1.1.1}/SafePDF/assets/pdf2jpg.png +0 -0
- {safepdf-1.0.16 → safepdf-1.1.1}/SafePDF/assets/pdf2ocr.png +0 -0
- {safepdf-1.0.16 → safepdf-1.1.1}/SafePDF/assets/pdf2txt.png +0 -0
- {safepdf-1.0.16 → safepdf-1.1.1}/SafePDF/assets/pdf2word.png +0 -0
- {safepdf-1.0.16 → safepdf-1.1.1}/SafePDF/assets/repair.png +0 -0
- {safepdf-1.0.16 → safepdf-1.1.1}/SafePDF/assets/rotate.png +0 -0
- {safepdf-1.0.16 → safepdf-1.1.1}/SafePDF/assets/split.png +0 -0
- {safepdf-1.0.16 → safepdf-1.1.1}/SafePDF/ctrl/__init__.py +0 -0
- {safepdf-1.0.16 → safepdf-1.1.1}/SafePDF/ctrl/language_manager.py +0 -0
- {safepdf-1.0.16 → safepdf-1.1.1}/SafePDF/logger/__init__.py +0 -0
- {safepdf-1.0.16 → safepdf-1.1.1}/SafePDF/logger/logging_config.py +0 -0
- {safepdf-1.0.16 → safepdf-1.1.1}/SafePDF/ops/__init__.py +0 -0
- {safepdf-1.0.16 → safepdf-1.1.1}/SafePDF/ops/pdf2docx.py +0 -0
- {safepdf-1.0.16 → safepdf-1.1.1}/SafePDF/ops/pdf2jpeg.py +0 -0
- {safepdf-1.0.16 → safepdf-1.1.1}/SafePDF/ops/pdf_compress.py +0 -0
- {safepdf-1.0.16 → safepdf-1.1.1}/SafePDF/ops/pdf_merge.py +0 -0
- {safepdf-1.0.16 → safepdf-1.1.1}/SafePDF/ops/pdf_ocr.py +0 -0
- {safepdf-1.0.16 → safepdf-1.1.1}/SafePDF/ops/pdf_operations.py +0 -0
- {safepdf-1.0.16 → safepdf-1.1.1}/SafePDF/ops/pdf_rotate.py +0 -0
- {safepdf-1.0.16 → safepdf-1.1.1}/SafePDF/ops/pdf_split.py +0 -0
- {safepdf-1.0.16 → safepdf-1.1.1}/SafePDF/safe_pdf_app.py +0 -0
- {safepdf-1.0.16 → safepdf-1.1.1}/SafePDF/test/__init__.py +0 -0
- {safepdf-1.0.16 → safepdf-1.1.1}/SafePDF/test/test_compression.py +0 -0
- {safepdf-1.0.16 → safepdf-1.1.1}/SafePDF/test/test_pro_dialog.py +0 -0
- {safepdf-1.0.16 → safepdf-1.1.1}/SafePDF/text/de/help_content.txt +0 -0
- {safepdf-1.0.16 → safepdf-1.1.1}/SafePDF/text/de/pro_features.txt +0 -0
- {safepdf-1.0.16 → safepdf-1.1.1}/SafePDF/text/de/welcome_content.txt +0 -0
- {safepdf-1.0.16 → safepdf-1.1.1}/SafePDF/text/en/help_content.txt +0 -0
- {safepdf-1.0.16 → safepdf-1.1.1}/SafePDF/text/en/pro_features.txt +0 -0
- {safepdf-1.0.16 → safepdf-1.1.1}/SafePDF/text/tr/help_content.txt +0 -0
- {safepdf-1.0.16 → safepdf-1.1.1}/SafePDF/text/tr/pro_features.txt +0 -0
- {safepdf-1.0.16 → safepdf-1.1.1}/SafePDF/ui/__init__.py +0 -0
- {safepdf-1.0.16 → safepdf-1.1.1}/SafePDF/ui/help_ui.py +0 -0
- {safepdf-1.0.16 → safepdf-1.1.1}/SafePDF/ui/language_elements.py +0 -0
- {safepdf-1.0.16 → safepdf-1.1.1}/SafePDF/ui/settings_ui.py +0 -0
- {safepdf-1.0.16 → safepdf-1.1.1}/SafePDF/ui/tabs_manager.py +0 -0
- {safepdf-1.0.16 → safepdf-1.1.1}/SafePDF/ui/update_ui.py +0 -0
- {safepdf-1.0.16 → safepdf-1.1.1}/SafePDF.egg-info/dependency_links.txt +0 -0
- {safepdf-1.0.16 → safepdf-1.1.1}/SafePDF.egg-info/entry_points.txt +0 -0
- {safepdf-1.0.16 → safepdf-1.1.1}/SafePDF.egg-info/requires.txt +0 -0
- {safepdf-1.0.16 → safepdf-1.1.1}/SafePDF.egg-info/top_level.txt +0 -0
- {safepdf-1.0.16 → safepdf-1.1.1}/pyproject.toml +0 -0
- {safepdf-1.0.16 → safepdf-1.1.1}/requirements.txt +0 -0
- {safepdf-1.0.16 → safepdf-1.1.1}/setup.cfg +0 -0
- {safepdf-1.0.16 → safepdf-1.1.1}/setup.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: SafePDF
|
|
3
|
-
Version: 1.
|
|
3
|
+
Version: 1.1.1
|
|
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">
|
|
@@ -79,10 +79,11 @@ Dynamic: summary
|
|
|
79
79
|
**Interface Features:**
|
|
80
80
|
- Drag & drop file selection
|
|
81
81
|
- Real-time progress tracking
|
|
82
|
-
- Multi-language UI
|
|
83
|
-
-
|
|
82
|
+
- Multi-language UI (English, German, Turkish)
|
|
83
|
+
- Light and dark themes
|
|
84
|
+
- Native window frame with a compact, modern layout
|
|
84
85
|
|
|
85
|
-

|
|
86
87
|
|
|
87
88
|

|
|
88
89
|
|
|
@@ -90,8 +91,10 @@ Dynamic: summary
|
|
|
90
91
|
|
|
91
92
|
### Option 1: Download Executable (Recommended)
|
|
92
93
|
1. Download the latest release from [Releases](https://github.com/mcagriaksoy/SafePDF/releases/)
|
|
93
|
-
2.
|
|
94
|
-
3.
|
|
94
|
+
2. Run `SafePdf_v<version>_iwin64.exe` to install, or `SafePdf_v<version>_portable_win64.exe` for the portable build
|
|
95
|
+
3. Start **SafePDF** from the Start menu or the portable executable
|
|
96
|
+
|
|
97
|
+
> Linux and macOS users can install the package from PyPI or run the app from source (see below).
|
|
95
98
|
|
|
96
99
|
### Option 2: Install from PyPI
|
|
97
100
|
|
|
@@ -114,12 +117,22 @@ safepdf
|
|
|
114
117
|
|
|
115
118
|
### Option 3: Run from Source
|
|
116
119
|
|
|
120
|
+
**Requirements:**
|
|
121
|
+
- Python 3.8+ with `venv`
|
|
122
|
+
- pip
|
|
123
|
+
- On Linux, Tk is also required (for Debian/Ubuntu: `sudo apt install python3-tk`)
|
|
124
|
+
|
|
117
125
|
```bash
|
|
118
126
|
# Clone the repository
|
|
119
127
|
git clone https://github.com/mcagriaksoy/SafePDF.git
|
|
120
128
|
cd SafePDF
|
|
121
129
|
|
|
130
|
+
# Create and activate a virtual environment
|
|
131
|
+
python3 -m venv .venv
|
|
132
|
+
source .venv/bin/activate # Windows: .venv\Scripts\activate
|
|
133
|
+
|
|
122
134
|
# Install core dependencies
|
|
135
|
+
python -m pip install --upgrade pip
|
|
123
136
|
pip install -r requirements.txt
|
|
124
137
|
|
|
125
138
|
# Optional extras
|
|
@@ -130,6 +143,8 @@ pip install -r requirements.txt
|
|
|
130
143
|
python run_safe_pdf.py
|
|
131
144
|
```
|
|
132
145
|
|
|
146
|
+
> **Troubleshooting:** If you get `ModuleNotFoundError` (for example `No module named 'pypdfium2'`), the system Python is being used instead of the project virtual environment. Activate the venv first (`source .venv/bin/activate`) or run `.venv/bin/python run_safe_pdf.py`. The `safepdf` command installed by `pip`/`pipx` may point to a separate installation, so run the source checkout explicitly when testing local changes.
|
|
147
|
+
|
|
133
148
|
**OCR note:** OCR uses Tesseract. Install the Python extra with `SafePDF[ocr]` and make sure the Tesseract OCR application is installed on your system as well.
|
|
134
149
|
|
|
135
150
|
## How to Use
|
|
@@ -146,15 +161,65 @@ python run_safe_pdf.py
|
|
|
146
161
|
```
|
|
147
162
|
SafePDF/
|
|
148
163
|
├── SafePDF/
|
|
164
|
+
│ ├── assets/ # Icons and operation graphics
|
|
149
165
|
│ ├── ctrl/ # Controllers
|
|
150
|
-
│ ├──
|
|
151
|
-
│ ├── ops/ # PDF operations
|
|
166
|
+
│ ├── installer/ # Inno Setup / InstallForge scripts (Windows)
|
|
152
167
|
│ ├── logger/ # Logging
|
|
153
|
-
│
|
|
168
|
+
│ ├── ops/ # PDF operations
|
|
169
|
+
│ ├── test/ # Test suite
|
|
170
|
+
│ ├── text/ # Localized UI content
|
|
171
|
+
│ └── ui/ # User interface
|
|
172
|
+
├── docs/ # Marketing website (safepdf.de)
|
|
173
|
+
├── img/ # README screenshots
|
|
174
|
+
├── scripts/ # CI/release build helpers
|
|
154
175
|
├── run_safe_pdf.py # Main launcher
|
|
155
176
|
└── requirements.txt # Dependencies
|
|
156
177
|
```
|
|
157
178
|
|
|
179
|
+
### Website
|
|
180
|
+
|
|
181
|
+
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:
|
|
182
|
+
|
|
183
|
+
```bash
|
|
184
|
+
cd docs
|
|
185
|
+
python3 -m http.server 8000
|
|
186
|
+
# open http://localhost:8000
|
|
187
|
+
```
|
|
188
|
+
|
|
189
|
+
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.
|
|
190
|
+
|
|
191
|
+
### Releasing
|
|
192
|
+
|
|
193
|
+
Releases are driven by version tags. The version in [`SafePDF/__init__.py`](SafePDF/__init__.py) (`__version__`) is the single source of truth and **must match the tag**.
|
|
194
|
+
|
|
195
|
+
```bash
|
|
196
|
+
# 1. Bump __version__ in SafePDF/__init__.py (and SafePDF/version.txt)
|
|
197
|
+
# 2. Commit, then create and push a matching tag
|
|
198
|
+
git tag v1.2.0
|
|
199
|
+
git push origin v1.2.0
|
|
200
|
+
```
|
|
201
|
+
|
|
202
|
+
Pushing a `v*` tag triggers two GitHub Actions workflows:
|
|
203
|
+
|
|
204
|
+
- **[`release.yml`](.github/workflows/release.yml)** — verifies the tag matches `__version__`, builds the Windows portable executable with PyInstaller, packages the per-user installer with Inno Setup ([`SafePDF/installer/safepdf.iss`](SafePDF/installer/safepdf.iss)), and publishes a GitHub Release with `SafePdf_v<version>_iwin64.exe` and `SafePdf_v<version>_portable_win64.exe`.
|
|
205
|
+
- **[`publish-pypi.yml`](.github/workflows/publish-pypi.yml)** — publishes the sdist and wheel to PyPI (Trusted Publishing), which is how Linux and macOS users get SafePDF via `pip install SafePDF`.
|
|
206
|
+
|
|
207
|
+
Each released executable is also given a signed **build-provenance attestation** (via `actions/attest-build-provenance`). Anyone can verify that a downloaded file was produced by this repository's release workflow:
|
|
208
|
+
|
|
209
|
+
```bash
|
|
210
|
+
gh attestation verify SafePdf_v1.2.0_iwin64.exe --repo mcagriaksoy/SafePDF
|
|
211
|
+
```
|
|
212
|
+
|
|
213
|
+
Build the Windows artifacts locally with:
|
|
214
|
+
|
|
215
|
+
```bash
|
|
216
|
+
pip install -r requirements.txt pyinstaller
|
|
217
|
+
python scripts/build_windows.py # -> SafePDF/dist/SafePdf_v<version>_portable_win64.exe
|
|
218
|
+
# then compile the installer with Inno Setup's ISCC.exe and SafePDF/installer/safepdf.iss
|
|
219
|
+
```
|
|
220
|
+
|
|
221
|
+
The legacy InstallForge flow (`python SafePDF/build_installer.py`) still works for local Windows builds that use InstallForge.
|
|
222
|
+
|
|
158
223
|
### Contributing
|
|
159
224
|
|
|
160
225
|
Contributions are welcome! Please:
|
|
@@ -164,11 +229,10 @@ Contributions are welcome! Please:
|
|
|
164
229
|
|
|
165
230
|
## Support
|
|
166
231
|
|
|
167
|
-
- Website
|
|
168
|
-
-
|
|
169
|
-
- Email
|
|
170
|
-
-
|
|
171
|
-
- Documentation: [safepdf.com](https://safepdf.com)
|
|
232
|
+
- **Website:** [safepdf.de](https://safepdf.de) · [Deutsch](https://safepdf.de/de/) · [Türkçe](https://safepdf.de/tr/)
|
|
233
|
+
- **Guides:** [Offline PDF tools](https://safepdf.de/offline-pdf-tools.html) · [Secure PDF processing](https://safepdf.de/secure-pdf-processing.html)
|
|
234
|
+
- **Email:** [info@safepdf.de](mailto:info@safepdf.de)
|
|
235
|
+
- **Bug reports & feature requests:** [GitHub Issues](https://github.com/mcagriaksoy/SafePDF/issues)
|
|
172
236
|
|
|
173
237
|
## License
|
|
174
238
|
|
safepdf-1.1.1/README.md
ADDED
|
@@ -0,0 +1,211 @@
|
|
|
1
|
+
# SafePDF - Privacy-First PDF Toolkit
|
|
2
|
+
|
|
3
|
+
<p align="center">
|
|
4
|
+
<img src="img/SafePDF_small.avif" alt="SafePDF Banner" />
|
|
5
|
+
</p>
|
|
6
|
+
|
|
7
|
+
[](https://github.com/mcagriaksoy/SafePDF/releases/)
|
|
8
|
+
[](#license)
|
|
9
|
+
[](https://github.com/mcagriaksoy/SafePDF)
|
|
10
|
+
|
|
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
|
+
|
|
13
|
+
<a href="https://github.com/mcagriaksoy/SafePDF/releases/" download>
|
|
14
|
+
<img src="https://img.shields.io/badge/Download-Windows_Installer-blue?style=for-the-badge" alt="Download SafePDF">
|
|
15
|
+
</a>
|
|
16
|
+
|
|
17
|
+
## Why SafePDF?
|
|
18
|
+
|
|
19
|
+
**100% Offline** - No cloud uploads, no internet required
|
|
20
|
+
**Fast & Lightweight** - Operations run directly on your device
|
|
21
|
+
**Privacy First** - Ideal for sensitive documents (legal, healthcare, financial)
|
|
22
|
+
**Multi-language** - English, German, Turkish support
|
|
23
|
+
|
|
24
|
+
> **Read more:** [The Security Concerns of Online PDF Tools](https://medium.com/dev-genius/the-untold-security-concerns-of-online-pdf-editing-tools-6ee1d83facd6)
|
|
25
|
+
|
|
26
|
+

|
|
27
|
+
|
|
28
|
+
## Features
|
|
29
|
+
|
|
30
|
+
- **Compress** - Reduce PDF file size with quality control
|
|
31
|
+
- **Split** - Separate PDFs by pages or custom ranges
|
|
32
|
+
- **Merge** - Combine multiple PDF files into one
|
|
33
|
+
- **Convert to Images** - Export PDF pages as JPG/JPEG
|
|
34
|
+
- **Rotate** - Rotate pages (90°, 180°, 270°)
|
|
35
|
+
- **Repair** - Fix corrupted PDF files
|
|
36
|
+
- **Convert to Word** - Export PDF as DOCX documents
|
|
37
|
+
- **Extract Text** - Extract plain text from PDFs
|
|
38
|
+
- **Extract Info** - View PDF metadata and properties
|
|
39
|
+
|
|
40
|
+
**Interface Features:**
|
|
41
|
+
- Drag & drop file selection
|
|
42
|
+
- Real-time progress tracking
|
|
43
|
+
- Multi-language UI (English, German, Turkish)
|
|
44
|
+
- Light and dark themes
|
|
45
|
+
- Native window frame with a compact, modern layout
|
|
46
|
+
|
|
47
|
+

|
|
48
|
+
|
|
49
|
+

|
|
50
|
+
|
|
51
|
+
## Quick Start
|
|
52
|
+
|
|
53
|
+
### Option 1: Download Executable (Recommended)
|
|
54
|
+
1. Download the latest release from [Releases](https://github.com/mcagriaksoy/SafePDF/releases/)
|
|
55
|
+
2. Run `SafePdf_v<version>_iwin64.exe` to install, or `SafePdf_v<version>_portable_win64.exe` for the portable build
|
|
56
|
+
3. Start **SafePDF** from the Start menu or the portable executable
|
|
57
|
+
|
|
58
|
+
> Linux and macOS users can install the package from PyPI or run the app from source (see below).
|
|
59
|
+
|
|
60
|
+
### Option 2: Install from PyPI
|
|
61
|
+
|
|
62
|
+
**Requirements:**
|
|
63
|
+
- Python 3.8+
|
|
64
|
+
- pip
|
|
65
|
+
|
|
66
|
+
**Installation:**
|
|
67
|
+
```bash
|
|
68
|
+
# Install from PyPI
|
|
69
|
+
pip install SafePDF
|
|
70
|
+
|
|
71
|
+
# Optional extras
|
|
72
|
+
# OCR support: pip install "SafePDF[ocr]"
|
|
73
|
+
# All optional extras: pip install "SafePDF[full]"
|
|
74
|
+
|
|
75
|
+
# Run the app
|
|
76
|
+
safepdf
|
|
77
|
+
```
|
|
78
|
+
|
|
79
|
+
### Option 3: Run from Source
|
|
80
|
+
|
|
81
|
+
**Requirements:**
|
|
82
|
+
- Python 3.8+ with `venv`
|
|
83
|
+
- pip
|
|
84
|
+
- On Linux, Tk is also required (for Debian/Ubuntu: `sudo apt install python3-tk`)
|
|
85
|
+
|
|
86
|
+
```bash
|
|
87
|
+
# Clone the repository
|
|
88
|
+
git clone https://github.com/mcagriaksoy/SafePDF.git
|
|
89
|
+
cd SafePDF
|
|
90
|
+
|
|
91
|
+
# Create and activate a virtual environment
|
|
92
|
+
python3 -m venv .venv
|
|
93
|
+
source .venv/bin/activate # Windows: .venv\Scripts\activate
|
|
94
|
+
|
|
95
|
+
# Install core dependencies
|
|
96
|
+
python -m pip install --upgrade pip
|
|
97
|
+
pip install -r requirements.txt
|
|
98
|
+
|
|
99
|
+
# Optional extras
|
|
100
|
+
# OCR support: pip install ".[ocr]"
|
|
101
|
+
# All optional extras: pip install ".[full]"
|
|
102
|
+
|
|
103
|
+
# Run the application
|
|
104
|
+
python run_safe_pdf.py
|
|
105
|
+
```
|
|
106
|
+
|
|
107
|
+
> **Troubleshooting:** If you get `ModuleNotFoundError` (for example `No module named 'pypdfium2'`), the system Python is being used instead of the project virtual environment. Activate the venv first (`source .venv/bin/activate`) or run `.venv/bin/python run_safe_pdf.py`. The `safepdf` command installed by `pip`/`pipx` may point to a separate installation, so run the source checkout explicitly when testing local changes.
|
|
108
|
+
|
|
109
|
+
**OCR note:** OCR uses Tesseract. Install the Python extra with `SafePDF[ocr]` and make sure the Tesseract OCR application is installed on your system as well.
|
|
110
|
+
|
|
111
|
+
## How to Use
|
|
112
|
+
|
|
113
|
+
1. **Select Operation** - Choose what you want to do (compress, split, merge, etc.)
|
|
114
|
+
2. **Select File** - Drag & drop your PDF or click to browse
|
|
115
|
+
3. **Adjust Settings** - Configure operation-specific options
|
|
116
|
+
4. **Execute** - Click to process your file
|
|
117
|
+
5. **View Results** - See output and open the processed file
|
|
118
|
+
|
|
119
|
+
## Development
|
|
120
|
+
|
|
121
|
+
### Project Structure
|
|
122
|
+
```
|
|
123
|
+
SafePDF/
|
|
124
|
+
├── SafePDF/
|
|
125
|
+
│ ├── assets/ # Icons and operation graphics
|
|
126
|
+
│ ├── ctrl/ # Controllers
|
|
127
|
+
│ ├── installer/ # Inno Setup / InstallForge scripts (Windows)
|
|
128
|
+
│ ├── logger/ # Logging
|
|
129
|
+
│ ├── ops/ # PDF operations
|
|
130
|
+
│ ├── test/ # Test suite
|
|
131
|
+
│ ├── text/ # Localized UI content
|
|
132
|
+
│ └── ui/ # User interface
|
|
133
|
+
├── docs/ # Marketing website (safepdf.de)
|
|
134
|
+
├── img/ # README screenshots
|
|
135
|
+
├── scripts/ # CI/release build helpers
|
|
136
|
+
├── run_safe_pdf.py # Main launcher
|
|
137
|
+
└── requirements.txt # Dependencies
|
|
138
|
+
```
|
|
139
|
+
|
|
140
|
+
### Website
|
|
141
|
+
|
|
142
|
+
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:
|
|
143
|
+
|
|
144
|
+
```bash
|
|
145
|
+
cd docs
|
|
146
|
+
python3 -m http.server 8000
|
|
147
|
+
# open http://localhost:8000
|
|
148
|
+
```
|
|
149
|
+
|
|
150
|
+
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.
|
|
151
|
+
|
|
152
|
+
### Releasing
|
|
153
|
+
|
|
154
|
+
Releases are driven by version tags. The version in [`SafePDF/__init__.py`](SafePDF/__init__.py) (`__version__`) is the single source of truth and **must match the tag**.
|
|
155
|
+
|
|
156
|
+
```bash
|
|
157
|
+
# 1. Bump __version__ in SafePDF/__init__.py (and SafePDF/version.txt)
|
|
158
|
+
# 2. Commit, then create and push a matching tag
|
|
159
|
+
git tag v1.2.0
|
|
160
|
+
git push origin v1.2.0
|
|
161
|
+
```
|
|
162
|
+
|
|
163
|
+
Pushing a `v*` tag triggers two GitHub Actions workflows:
|
|
164
|
+
|
|
165
|
+
- **[`release.yml`](.github/workflows/release.yml)** — verifies the tag matches `__version__`, builds the Windows portable executable with PyInstaller, packages the per-user installer with Inno Setup ([`SafePDF/installer/safepdf.iss`](SafePDF/installer/safepdf.iss)), and publishes a GitHub Release with `SafePdf_v<version>_iwin64.exe` and `SafePdf_v<version>_portable_win64.exe`.
|
|
166
|
+
- **[`publish-pypi.yml`](.github/workflows/publish-pypi.yml)** — publishes the sdist and wheel to PyPI (Trusted Publishing), which is how Linux and macOS users get SafePDF via `pip install SafePDF`.
|
|
167
|
+
|
|
168
|
+
Each released executable is also given a signed **build-provenance attestation** (via `actions/attest-build-provenance`). Anyone can verify that a downloaded file was produced by this repository's release workflow:
|
|
169
|
+
|
|
170
|
+
```bash
|
|
171
|
+
gh attestation verify SafePdf_v1.2.0_iwin64.exe --repo mcagriaksoy/SafePDF
|
|
172
|
+
```
|
|
173
|
+
|
|
174
|
+
Build the Windows artifacts locally with:
|
|
175
|
+
|
|
176
|
+
```bash
|
|
177
|
+
pip install -r requirements.txt pyinstaller
|
|
178
|
+
python scripts/build_windows.py # -> SafePDF/dist/SafePdf_v<version>_portable_win64.exe
|
|
179
|
+
# then compile the installer with Inno Setup's ISCC.exe and SafePDF/installer/safepdf.iss
|
|
180
|
+
```
|
|
181
|
+
|
|
182
|
+
The legacy InstallForge flow (`python SafePDF/build_installer.py`) still works for local Windows builds that use InstallForge.
|
|
183
|
+
|
|
184
|
+
### Contributing
|
|
185
|
+
|
|
186
|
+
Contributions are welcome! Please:
|
|
187
|
+
- Report bugs via [Issues](https://github.com/mcagriaksoy/SafePDF/issues)
|
|
188
|
+
- Submit pull requests for improvements
|
|
189
|
+
- Follow existing code style
|
|
190
|
+
|
|
191
|
+
## Support
|
|
192
|
+
|
|
193
|
+
- **Website:** [safepdf.de](https://safepdf.de) · [Deutsch](https://safepdf.de/de/) · [Türkçe](https://safepdf.de/tr/)
|
|
194
|
+
- **Guides:** [Offline PDF tools](https://safepdf.de/offline-pdf-tools.html) · [Secure PDF processing](https://safepdf.de/secure-pdf-processing.html)
|
|
195
|
+
- **Email:** [info@safepdf.de](mailto:info@safepdf.de)
|
|
196
|
+
- **Bug reports & feature requests:** [GitHub Issues](https://github.com/mcagriaksoy/SafePDF/issues)
|
|
197
|
+
|
|
198
|
+
## License
|
|
199
|
+
|
|
200
|
+
Released under [GPL-3.0](/LICENSE) by [@mcagriaksoy](https://github.com/mcagriaksoy).
|
|
201
|
+
|
|
202
|
+
## Support the Project
|
|
203
|
+
|
|
204
|
+
<a href="https://www.buymeacoffee.com/mcagriaksoy">
|
|
205
|
+
<img src="https://img.shields.io/badge/-buy_me_a%C2%A0coffee-gray?logo=buy-me-a-coffee" alt="Buy Me A Coffee">
|
|
206
|
+
</a>
|
|
207
|
+
|
|
208
|
+
---
|
|
209
|
+
|
|
210
|
+
Made for privacy-conscious users
|
|
211
|
+
|
|
@@ -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.
|
|
14
|
+
return "1.1.1" # fallback
|
|
15
15
|
|
|
16
16
|
def build_executable(version, safe_pdf_dir, dist_dir):
|
|
17
17
|
portable_name = f"SafePdf_v{version}_portable_win64"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"""
|
|
2
2
|
SafePDF Updates Module - GitHub Releases and Signed Keys
|
|
3
|
-
by mcagriaksoy -
|
|
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.
|
|
@@ -66,13 +66,11 @@ class SafePDFUpdates:
|
|
|
66
66
|
return None
|
|
67
67
|
|
|
68
68
|
def _get_current_version(self):
|
|
69
|
-
"""Get current application version"""
|
|
69
|
+
"""Get the current application version from the SafePDF package."""
|
|
70
70
|
try:
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
return f.read().strip()
|
|
75
|
-
return "0.0.0"
|
|
71
|
+
from SafePDF import __version__
|
|
72
|
+
|
|
73
|
+
return str(__version__)
|
|
76
74
|
except Exception as e:
|
|
77
75
|
self.logger.error(f"Error reading version: {e}")
|
|
78
76
|
return "0.0.0"
|
|
@@ -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"
|