SafePDF 1.1.0__tar.gz → 1.2.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {safepdf-1.1.0/SafePDF.egg-info → safepdf-1.2.0}/PKG-INFO +81 -18
- safepdf-1.2.0/README.md +222 -0
- {safepdf-1.1.0 → safepdf-1.2.0}/SafePDF/__init__.py +1 -1
- safepdf-1.2.0/SafePDF/assets/account_circle.svg +1 -0
- safepdf-1.2.0/SafePDF/assets/notifications.svg +1 -0
- safepdf-1.2.0/SafePDF/assets/settings.svg +1 -0
- {safepdf-1.1.0 → safepdf-1.2.0}/SafePDF/build_installer.py +1 -1
- {safepdf-1.1.0 → safepdf-1.2.0}/SafePDF/ctrl/safe_pdf_controller.py +150 -101
- safepdf-1.2.0/SafePDF/generate_test_keys.py +110 -0
- safepdf-1.2.0/SafePDF/licensing/__init__.py +17 -0
- safepdf-1.2.0/SafePDF/licensing/license_manager.py +245 -0
- {safepdf-1.1.0 → safepdf-1.2.0}/SafePDF/ops/pdf_compress.py +1 -0
- {safepdf-1.1.0 → safepdf-1.2.0}/SafePDF/ops/pdf_operations.py +64 -0
- {safepdf-1.1.0 → safepdf-1.2.0}/SafePDF/ops/updates.py +4 -6
- safepdf-1.2.0/SafePDF/ops/watch_folder.py +95 -0
- {safepdf-1.1.0 → safepdf-1.2.0}/SafePDF/safe_pdf_app.py +32 -1
- safepdf-1.2.0/SafePDF/test/test_licensing.py +159 -0
- {safepdf-1.1.0 → safepdf-1.2.0}/SafePDF/text/de/ui.json +36 -3
- {safepdf-1.1.0 → safepdf-1.2.0}/SafePDF/text/de/welcome_content.txt +0 -1
- {safepdf-1.1.0 → safepdf-1.2.0}/SafePDF/text/en/ui.json +36 -3
- {safepdf-1.1.0 → safepdf-1.2.0}/SafePDF/text/en/welcome_content.txt +0 -1
- {safepdf-1.1.0 → safepdf-1.2.0}/SafePDF/text/tr/ui.json +36 -3
- {safepdf-1.1.0 → safepdf-1.2.0}/SafePDF/text/tr/welcome_content.txt +0 -1
- {safepdf-1.1.0 → safepdf-1.2.0}/SafePDF/ui/common_elements.py +20 -0
- {safepdf-1.1.0 → safepdf-1.2.0}/SafePDF/ui/help_ui.py +107 -14
- {safepdf-1.1.0 → safepdf-1.2.0}/SafePDF/ui/operation_settings.py +49 -1
- {safepdf-1.1.0 → safepdf-1.2.0}/SafePDF/ui/safe_pdf_ui.py +740 -249
- {safepdf-1.1.0 → safepdf-1.2.0}/SafePDF/ui/settings_ui.py +2 -0
- {safepdf-1.1.0 → safepdf-1.2.0}/SafePDF/ui/theme.py +91 -5
- {safepdf-1.1.0 → safepdf-1.2.0}/SafePDF/ui/update_ui.py +255 -78
- {safepdf-1.1.0 → safepdf-1.2.0}/SafePDF/version.txt +5 -5
- {safepdf-1.1.0 → safepdf-1.2.0/SafePDF.egg-info}/PKG-INFO +81 -18
- {safepdf-1.1.0 → safepdf-1.2.0}/SafePDF.egg-info/SOURCES.txt +8 -0
- safepdf-1.1.0/README.md +0 -159
- {safepdf-1.1.0 → safepdf-1.2.0}/LICENSE +0 -0
- {safepdf-1.1.0 → safepdf-1.2.0}/MANIFEST.in +0 -0
- {safepdf-1.1.0 → safepdf-1.2.0}/SafePDF/assets/back.png +0 -0
- {safepdf-1.1.0 → safepdf-1.2.0}/SafePDF/assets/compress.png +0 -0
- {safepdf-1.1.0 → safepdf-1.2.0}/SafePDF/assets/compression_err.gif +0 -0
- {safepdf-1.1.0 → safepdf-1.2.0}/SafePDF/assets/crown.svg +0 -0
- {safepdf-1.1.0 → safepdf-1.2.0}/SafePDF/assets/extract.png +0 -0
- {safepdf-1.1.0 → safepdf-1.2.0}/SafePDF/assets/icon.ico +0 -0
- {safepdf-1.1.0 → safepdf-1.2.0}/SafePDF/assets/icon.png +0 -0
- {safepdf-1.1.0 → safepdf-1.2.0}/SafePDF/assets/jpg2pdf.png +0 -0
- {safepdf-1.1.0 → safepdf-1.2.0}/SafePDF/assets/merge.png +0 -0
- {safepdf-1.1.0 → safepdf-1.2.0}/SafePDF/assets/next.png +0 -0
- {safepdf-1.1.0 → safepdf-1.2.0}/SafePDF/assets/pdf2jpg.png +0 -0
- {safepdf-1.1.0 → safepdf-1.2.0}/SafePDF/assets/pdf2ocr.png +0 -0
- {safepdf-1.1.0 → safepdf-1.2.0}/SafePDF/assets/pdf2txt.png +0 -0
- {safepdf-1.1.0 → safepdf-1.2.0}/SafePDF/assets/pdf2word.png +0 -0
- {safepdf-1.1.0 → safepdf-1.2.0}/SafePDF/assets/repair.png +0 -0
- {safepdf-1.1.0 → safepdf-1.2.0}/SafePDF/assets/rotate.png +0 -0
- {safepdf-1.1.0 → safepdf-1.2.0}/SafePDF/assets/split.png +0 -0
- {safepdf-1.1.0 → safepdf-1.2.0}/SafePDF/ctrl/__init__.py +0 -0
- {safepdf-1.1.0 → safepdf-1.2.0}/SafePDF/ctrl/language_manager.py +0 -0
- {safepdf-1.1.0 → safepdf-1.2.0}/SafePDF/logger/__init__.py +0 -0
- {safepdf-1.1.0 → safepdf-1.2.0}/SafePDF/logger/logging_config.py +0 -0
- {safepdf-1.1.0 → safepdf-1.2.0}/SafePDF/ops/__init__.py +0 -0
- {safepdf-1.1.0 → safepdf-1.2.0}/SafePDF/ops/pdf2docx.py +0 -0
- {safepdf-1.1.0 → safepdf-1.2.0}/SafePDF/ops/pdf2jpeg.py +0 -0
- {safepdf-1.1.0 → safepdf-1.2.0}/SafePDF/ops/pdf_merge.py +0 -0
- {safepdf-1.1.0 → safepdf-1.2.0}/SafePDF/ops/pdf_ocr.py +0 -0
- {safepdf-1.1.0 → safepdf-1.2.0}/SafePDF/ops/pdf_rotate.py +0 -0
- {safepdf-1.1.0 → safepdf-1.2.0}/SafePDF/ops/pdf_split.py +0 -0
- {safepdf-1.1.0 → safepdf-1.2.0}/SafePDF/test/__init__.py +0 -0
- {safepdf-1.1.0 → safepdf-1.2.0}/SafePDF/test/test_compression.py +0 -0
- {safepdf-1.1.0 → safepdf-1.2.0}/SafePDF/test/test_pro_dialog.py +0 -0
- {safepdf-1.1.0 → safepdf-1.2.0}/SafePDF/text/de/help_content.txt +0 -0
- {safepdf-1.1.0 → safepdf-1.2.0}/SafePDF/text/de/pro_features.txt +0 -0
- {safepdf-1.1.0 → safepdf-1.2.0}/SafePDF/text/en/help_content.txt +0 -0
- {safepdf-1.1.0 → safepdf-1.2.0}/SafePDF/text/en/pro_features.txt +0 -0
- {safepdf-1.1.0 → safepdf-1.2.0}/SafePDF/text/tr/help_content.txt +0 -0
- {safepdf-1.1.0 → safepdf-1.2.0}/SafePDF/text/tr/pro_features.txt +0 -0
- {safepdf-1.1.0 → safepdf-1.2.0}/SafePDF/ui/__init__.py +0 -0
- {safepdf-1.1.0 → safepdf-1.2.0}/SafePDF/ui/language_elements.py +0 -0
- {safepdf-1.1.0 → safepdf-1.2.0}/SafePDF/ui/tabs_manager.py +0 -0
- {safepdf-1.1.0 → safepdf-1.2.0}/SafePDF.egg-info/dependency_links.txt +0 -0
- {safepdf-1.1.0 → safepdf-1.2.0}/SafePDF.egg-info/entry_points.txt +0 -0
- {safepdf-1.1.0 → safepdf-1.2.0}/SafePDF.egg-info/requires.txt +0 -0
- {safepdf-1.1.0 → safepdf-1.2.0}/SafePDF.egg-info/top_level.txt +0 -0
- {safepdf-1.1.0 → safepdf-1.2.0}/pyproject.toml +0 -0
- {safepdf-1.1.0 → safepdf-1.2.0}/requirements.txt +0 -0
- {safepdf-1.1.0 → safepdf-1.2.0}/setup.cfg +0 -0
- {safepdf-1.1.0 → safepdf-1.2.0}/setup.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: SafePDF
|
|
3
|
-
Version: 1.
|
|
3
|
+
Version: 1.2.0
|
|
4
4
|
Summary: A safe PDF manipulation tool
|
|
5
5
|
Home-page: https://github.com/mcagriaksoy/safepdf
|
|
6
6
|
Author: Mehmet Cagri Aksoy
|
|
@@ -64,34 +64,47 @@ Dynamic: summary
|
|
|
64
64
|
|
|
65
65
|

|
|
66
66
|
|
|
67
|
+
## What's New in v1.2.0
|
|
68
|
+
|
|
69
|
+
- **Offline Pro & B2B Licensing (Ed25519):** 100% offline asymmetric license verification (`pro_annual`, `pro_lifetime`, `b2b_team`, `b2b_enterprise`) with zero telemetry or network calls.
|
|
70
|
+
- **New Pro/B2B PDF Workflows:** AES-256 PDF Encryption, Text Watermarking, Unlimited OCR Scan, Batch Processing (2+ files), and background **Watch Folder** automation.
|
|
71
|
+
- **Enterprise Silent Deployment:** Automatic license discovery in user (`~/.safepdf/license.key`, `%APPDATA%\SafePDF\license.key`) and system directories (`C:\ProgramData\SafePDF\license.key`, `/etc/safepdf/license.key`), plus `--activate-key` CLI and Inno Setup `/LICENSEKEY=` support.
|
|
72
|
+
- **Refreshed Desktop UI:** 5-column operation grid, top-right Notification Center 🔔, Settings shortcut ⚙, License/B2B profile pill, Preview filename indicator & 🔍 Magnifier modal, and a local 4-step offline guide.
|
|
73
|
+
|
|
67
74
|
## Features
|
|
68
75
|
|
|
76
|
+
**Free (Unlimited Single-File Tools):**
|
|
69
77
|
- **Compress** - Reduce PDF file size with quality control
|
|
70
78
|
- **Split** - Separate PDFs by pages or custom ranges
|
|
71
|
-
- **Merge** - Combine
|
|
72
|
-
- **Convert to Images** - Export PDF pages as JPG
|
|
79
|
+
- **Merge** - Combine two PDF files into one
|
|
80
|
+
- **Convert to Images / JPG to PDF** - Export PDF pages as JPG or create PDFs from images
|
|
73
81
|
- **Rotate** - Rotate pages (90°, 180°, 270°)
|
|
74
82
|
- **Repair** - Fix corrupted PDF files
|
|
75
|
-
- **Convert to Word** - Export
|
|
76
|
-
- **Extract Text** - Extract plain text from PDFs
|
|
77
|
-
- **Extract Info** - View PDF metadata and properties
|
|
83
|
+
- **Convert to Word / Extract Text / Extract Info** - Export DOCX, plain text, or PDF metadata
|
|
78
84
|
|
|
79
|
-
**
|
|
80
|
-
-
|
|
81
|
-
-
|
|
82
|
-
-
|
|
83
|
-
-
|
|
85
|
+
**Pro & B2B:**
|
|
86
|
+
- **Batch Processing** - Process multiple PDFs at once
|
|
87
|
+
- **Ultra Compression & Unlimited OCR** - Maximum quality compression and local Tesseract OCR
|
|
88
|
+
- **AES-256 Encryption & Watermark** - Password-protect or stamp PDFs locally
|
|
89
|
+
- **Watch Folder** - Auto-compress newly dropped PDFs in a monitored directory
|
|
84
90
|
|
|
85
|
-
|
|
91
|
+
**Interface Features:**
|
|
92
|
+
- Drag & drop file selection with live PDF preview & 🔍 magnifier zoom
|
|
93
|
+
- In-app Notification Center & real-time progress tracking
|
|
94
|
+
- Multi-language UI (English, German, Turkish)
|
|
95
|
+
- Light and dark themes
|
|
96
|
+
- Native window frame with a compact, modern layout
|
|
86
97
|
|
|
87
|
-

|
|
88
99
|
|
|
89
100
|
## Quick Start
|
|
90
101
|
|
|
91
102
|
### Option 1: Download Executable (Recommended)
|
|
92
103
|
1. Download the latest release from [Releases](https://github.com/mcagriaksoy/SafePDF/releases/)
|
|
93
|
-
2.
|
|
94
|
-
3.
|
|
104
|
+
2. Run `SafePdf_v<version>_iwin64.exe` to install, or `SafePdf_v<version>_portable_win64.exe` for the portable build
|
|
105
|
+
3. Start **SafePDF** from the Start menu or the portable executable
|
|
106
|
+
|
|
107
|
+
> Linux and macOS users can install the package from PyPI or run the app from source (see below).
|
|
95
108
|
|
|
96
109
|
### Option 2: Install from PyPI
|
|
97
110
|
|
|
@@ -114,12 +127,22 @@ safepdf
|
|
|
114
127
|
|
|
115
128
|
### Option 3: Run from Source
|
|
116
129
|
|
|
130
|
+
**Requirements:**
|
|
131
|
+
- Python 3.8+ with `venv`
|
|
132
|
+
- pip
|
|
133
|
+
- On Linux, Tk is also required (for Debian/Ubuntu: `sudo apt install python3-tk`)
|
|
134
|
+
|
|
117
135
|
```bash
|
|
118
136
|
# Clone the repository
|
|
119
137
|
git clone https://github.com/mcagriaksoy/SafePDF.git
|
|
120
138
|
cd SafePDF
|
|
121
139
|
|
|
140
|
+
# Create and activate a virtual environment
|
|
141
|
+
python3 -m venv .venv
|
|
142
|
+
source .venv/bin/activate # Windows: .venv\Scripts\activate
|
|
143
|
+
|
|
122
144
|
# Install core dependencies
|
|
145
|
+
python -m pip install --upgrade pip
|
|
123
146
|
pip install -r requirements.txt
|
|
124
147
|
|
|
125
148
|
# Optional extras
|
|
@@ -130,6 +153,8 @@ pip install -r requirements.txt
|
|
|
130
153
|
python run_safe_pdf.py
|
|
131
154
|
```
|
|
132
155
|
|
|
156
|
+
> **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.
|
|
157
|
+
|
|
133
158
|
**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
159
|
|
|
135
160
|
## How to Use
|
|
@@ -146,12 +171,18 @@ python run_safe_pdf.py
|
|
|
146
171
|
```
|
|
147
172
|
SafePDF/
|
|
148
173
|
├── SafePDF/
|
|
174
|
+
│ ├── assets/ # Icons and operation graphics
|
|
149
175
|
│ ├── ctrl/ # Controllers
|
|
150
|
-
│ ├──
|
|
151
|
-
│ ├──
|
|
176
|
+
│ ├── installer/ # Inno Setup / InstallForge scripts (Windows)
|
|
177
|
+
│ ├── licensing/ # Offline Ed25519 Pro & B2B license verifier
|
|
152
178
|
│ ├── logger/ # Logging
|
|
153
|
-
│
|
|
179
|
+
│ ├── ops/ # PDF operations & Watch Folder service
|
|
180
|
+
│ ├── test/ # Test suite
|
|
181
|
+
│ ├── text/ # Localized UI content (en, de, tr)
|
|
182
|
+
│ └── ui/ # User interface
|
|
154
183
|
├── docs/ # Marketing website (safepdf.de)
|
|
184
|
+
├── img/ # README screenshots
|
|
185
|
+
├── scripts/ # CI/release build helpers
|
|
155
186
|
├── run_safe_pdf.py # Main launcher
|
|
156
187
|
└── requirements.txt # Dependencies
|
|
157
188
|
```
|
|
@@ -168,6 +199,38 @@ python3 -m http.server 8000
|
|
|
168
199
|
|
|
169
200
|
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
201
|
|
|
202
|
+
### Releasing
|
|
203
|
+
|
|
204
|
+
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**.
|
|
205
|
+
|
|
206
|
+
```bash
|
|
207
|
+
# 1. Bump __version__ in SafePDF/__init__.py (and SafePDF/version.txt)
|
|
208
|
+
# 2. Commit, then create and push a matching tag
|
|
209
|
+
git tag v1.2.0
|
|
210
|
+
git push origin v1.2.0
|
|
211
|
+
```
|
|
212
|
+
|
|
213
|
+
Pushing a `v*` tag triggers two GitHub Actions workflows:
|
|
214
|
+
|
|
215
|
+
- **[`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`.
|
|
216
|
+
- **[`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`.
|
|
217
|
+
|
|
218
|
+
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:
|
|
219
|
+
|
|
220
|
+
```bash
|
|
221
|
+
gh attestation verify SafePdf_v1.2.0_iwin64.exe --repo mcagriaksoy/SafePDF
|
|
222
|
+
```
|
|
223
|
+
|
|
224
|
+
Build the Windows artifacts locally with:
|
|
225
|
+
|
|
226
|
+
```bash
|
|
227
|
+
pip install -r requirements.txt pyinstaller
|
|
228
|
+
python scripts/build_windows.py # -> SafePDF/dist/SafePdf_v<version>_portable_win64.exe
|
|
229
|
+
# then compile the installer with Inno Setup's ISCC.exe and SafePDF/installer/safepdf.iss
|
|
230
|
+
```
|
|
231
|
+
|
|
232
|
+
The legacy InstallForge flow (`python SafePDF/build_installer.py`) still works for local Windows builds that use InstallForge.
|
|
233
|
+
|
|
171
234
|
### Contributing
|
|
172
235
|
|
|
173
236
|
Contributions are welcome! Please:
|
safepdf-1.2.0/README.md
ADDED
|
@@ -0,0 +1,222 @@
|
|
|
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
|
+
## What's New in v1.2.0
|
|
29
|
+
|
|
30
|
+
- **Offline Pro & B2B Licensing (Ed25519):** 100% offline asymmetric license verification (`pro_annual`, `pro_lifetime`, `b2b_team`, `b2b_enterprise`) with zero telemetry or network calls.
|
|
31
|
+
- **New Pro/B2B PDF Workflows:** AES-256 PDF Encryption, Text Watermarking, Unlimited OCR Scan, Batch Processing (2+ files), and background **Watch Folder** automation.
|
|
32
|
+
- **Enterprise Silent Deployment:** Automatic license discovery in user (`~/.safepdf/license.key`, `%APPDATA%\SafePDF\license.key`) and system directories (`C:\ProgramData\SafePDF\license.key`, `/etc/safepdf/license.key`), plus `--activate-key` CLI and Inno Setup `/LICENSEKEY=` support.
|
|
33
|
+
- **Refreshed Desktop UI:** 5-column operation grid, top-right Notification Center 🔔, Settings shortcut ⚙, License/B2B profile pill, Preview filename indicator & 🔍 Magnifier modal, and a local 4-step offline guide.
|
|
34
|
+
|
|
35
|
+
## Features
|
|
36
|
+
|
|
37
|
+
**Free (Unlimited Single-File Tools):**
|
|
38
|
+
- **Compress** - Reduce PDF file size with quality control
|
|
39
|
+
- **Split** - Separate PDFs by pages or custom ranges
|
|
40
|
+
- **Merge** - Combine two PDF files into one
|
|
41
|
+
- **Convert to Images / JPG to PDF** - Export PDF pages as JPG or create PDFs from images
|
|
42
|
+
- **Rotate** - Rotate pages (90°, 180°, 270°)
|
|
43
|
+
- **Repair** - Fix corrupted PDF files
|
|
44
|
+
- **Convert to Word / Extract Text / Extract Info** - Export DOCX, plain text, or PDF metadata
|
|
45
|
+
|
|
46
|
+
**Pro & B2B:**
|
|
47
|
+
- **Batch Processing** - Process multiple PDFs at once
|
|
48
|
+
- **Ultra Compression & Unlimited OCR** - Maximum quality compression and local Tesseract OCR
|
|
49
|
+
- **AES-256 Encryption & Watermark** - Password-protect or stamp PDFs locally
|
|
50
|
+
- **Watch Folder** - Auto-compress newly dropped PDFs in a monitored directory
|
|
51
|
+
|
|
52
|
+
**Interface Features:**
|
|
53
|
+
- Drag & drop file selection with live PDF preview & 🔍 magnifier zoom
|
|
54
|
+
- In-app Notification Center & real-time progress tracking
|
|
55
|
+
- Multi-language UI (English, German, Turkish)
|
|
56
|
+
- Light and dark themes
|
|
57
|
+
- Native window frame with a compact, modern layout
|
|
58
|
+
|
|
59
|
+

|
|
60
|
+
|
|
61
|
+
## Quick Start
|
|
62
|
+
|
|
63
|
+
### Option 1: Download Executable (Recommended)
|
|
64
|
+
1. Download the latest release from [Releases](https://github.com/mcagriaksoy/SafePDF/releases/)
|
|
65
|
+
2. Run `SafePdf_v<version>_iwin64.exe` to install, or `SafePdf_v<version>_portable_win64.exe` for the portable build
|
|
66
|
+
3. Start **SafePDF** from the Start menu or the portable executable
|
|
67
|
+
|
|
68
|
+
> Linux and macOS users can install the package from PyPI or run the app from source (see below).
|
|
69
|
+
|
|
70
|
+
### Option 2: Install from PyPI
|
|
71
|
+
|
|
72
|
+
**Requirements:**
|
|
73
|
+
- Python 3.8+
|
|
74
|
+
- pip
|
|
75
|
+
|
|
76
|
+
**Installation:**
|
|
77
|
+
```bash
|
|
78
|
+
# Install from PyPI
|
|
79
|
+
pip install SafePDF
|
|
80
|
+
|
|
81
|
+
# Optional extras
|
|
82
|
+
# OCR support: pip install "SafePDF[ocr]"
|
|
83
|
+
# All optional extras: pip install "SafePDF[full]"
|
|
84
|
+
|
|
85
|
+
# Run the app
|
|
86
|
+
safepdf
|
|
87
|
+
```
|
|
88
|
+
|
|
89
|
+
### Option 3: Run from Source
|
|
90
|
+
|
|
91
|
+
**Requirements:**
|
|
92
|
+
- Python 3.8+ with `venv`
|
|
93
|
+
- pip
|
|
94
|
+
- On Linux, Tk is also required (for Debian/Ubuntu: `sudo apt install python3-tk`)
|
|
95
|
+
|
|
96
|
+
```bash
|
|
97
|
+
# Clone the repository
|
|
98
|
+
git clone https://github.com/mcagriaksoy/SafePDF.git
|
|
99
|
+
cd SafePDF
|
|
100
|
+
|
|
101
|
+
# Create and activate a virtual environment
|
|
102
|
+
python3 -m venv .venv
|
|
103
|
+
source .venv/bin/activate # Windows: .venv\Scripts\activate
|
|
104
|
+
|
|
105
|
+
# Install core dependencies
|
|
106
|
+
python -m pip install --upgrade pip
|
|
107
|
+
pip install -r requirements.txt
|
|
108
|
+
|
|
109
|
+
# Optional extras
|
|
110
|
+
# OCR support: pip install ".[ocr]"
|
|
111
|
+
# All optional extras: pip install ".[full]"
|
|
112
|
+
|
|
113
|
+
# Run the application
|
|
114
|
+
python run_safe_pdf.py
|
|
115
|
+
```
|
|
116
|
+
|
|
117
|
+
> **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.
|
|
118
|
+
|
|
119
|
+
**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.
|
|
120
|
+
|
|
121
|
+
## How to Use
|
|
122
|
+
|
|
123
|
+
1. **Select Operation** - Choose what you want to do (compress, split, merge, etc.)
|
|
124
|
+
2. **Select File** - Drag & drop your PDF or click to browse
|
|
125
|
+
3. **Adjust Settings** - Configure operation-specific options
|
|
126
|
+
4. **Execute** - Click to process your file
|
|
127
|
+
5. **View Results** - See output and open the processed file
|
|
128
|
+
|
|
129
|
+
## Development
|
|
130
|
+
|
|
131
|
+
### Project Structure
|
|
132
|
+
```
|
|
133
|
+
SafePDF/
|
|
134
|
+
├── SafePDF/
|
|
135
|
+
│ ├── assets/ # Icons and operation graphics
|
|
136
|
+
│ ├── ctrl/ # Controllers
|
|
137
|
+
│ ├── installer/ # Inno Setup / InstallForge scripts (Windows)
|
|
138
|
+
│ ├── licensing/ # Offline Ed25519 Pro & B2B license verifier
|
|
139
|
+
│ ├── logger/ # Logging
|
|
140
|
+
│ ├── ops/ # PDF operations & Watch Folder service
|
|
141
|
+
│ ├── test/ # Test suite
|
|
142
|
+
│ ├── text/ # Localized UI content (en, de, tr)
|
|
143
|
+
│ └── ui/ # User interface
|
|
144
|
+
├── docs/ # Marketing website (safepdf.de)
|
|
145
|
+
├── img/ # README screenshots
|
|
146
|
+
├── scripts/ # CI/release build helpers
|
|
147
|
+
├── run_safe_pdf.py # Main launcher
|
|
148
|
+
└── requirements.txt # Dependencies
|
|
149
|
+
```
|
|
150
|
+
|
|
151
|
+
### Website
|
|
152
|
+
|
|
153
|
+
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:
|
|
154
|
+
|
|
155
|
+
```bash
|
|
156
|
+
cd docs
|
|
157
|
+
python3 -m http.server 8000
|
|
158
|
+
# open http://localhost:8000
|
|
159
|
+
```
|
|
160
|
+
|
|
161
|
+
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.
|
|
162
|
+
|
|
163
|
+
### Releasing
|
|
164
|
+
|
|
165
|
+
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**.
|
|
166
|
+
|
|
167
|
+
```bash
|
|
168
|
+
# 1. Bump __version__ in SafePDF/__init__.py (and SafePDF/version.txt)
|
|
169
|
+
# 2. Commit, then create and push a matching tag
|
|
170
|
+
git tag v1.2.0
|
|
171
|
+
git push origin v1.2.0
|
|
172
|
+
```
|
|
173
|
+
|
|
174
|
+
Pushing a `v*` tag triggers two GitHub Actions workflows:
|
|
175
|
+
|
|
176
|
+
- **[`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`.
|
|
177
|
+
- **[`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`.
|
|
178
|
+
|
|
179
|
+
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:
|
|
180
|
+
|
|
181
|
+
```bash
|
|
182
|
+
gh attestation verify SafePdf_v1.2.0_iwin64.exe --repo mcagriaksoy/SafePDF
|
|
183
|
+
```
|
|
184
|
+
|
|
185
|
+
Build the Windows artifacts locally with:
|
|
186
|
+
|
|
187
|
+
```bash
|
|
188
|
+
pip install -r requirements.txt pyinstaller
|
|
189
|
+
python scripts/build_windows.py # -> SafePDF/dist/SafePdf_v<version>_portable_win64.exe
|
|
190
|
+
# then compile the installer with Inno Setup's ISCC.exe and SafePDF/installer/safepdf.iss
|
|
191
|
+
```
|
|
192
|
+
|
|
193
|
+
The legacy InstallForge flow (`python SafePDF/build_installer.py`) still works for local Windows builds that use InstallForge.
|
|
194
|
+
|
|
195
|
+
### Contributing
|
|
196
|
+
|
|
197
|
+
Contributions are welcome! Please:
|
|
198
|
+
- Report bugs via [Issues](https://github.com/mcagriaksoy/SafePDF/issues)
|
|
199
|
+
- Submit pull requests for improvements
|
|
200
|
+
- Follow existing code style
|
|
201
|
+
|
|
202
|
+
## Support
|
|
203
|
+
|
|
204
|
+
- **Website:** [safepdf.de](https://safepdf.de) · [Deutsch](https://safepdf.de/de/) · [Türkçe](https://safepdf.de/tr/)
|
|
205
|
+
- **Guides:** [Offline PDF tools](https://safepdf.de/offline-pdf-tools.html) · [Secure PDF processing](https://safepdf.de/secure-pdf-processing.html)
|
|
206
|
+
- **Email:** [info@safepdf.de](mailto:info@safepdf.de)
|
|
207
|
+
- **Bug reports & feature requests:** [GitHub Issues](https://github.com/mcagriaksoy/SafePDF/issues)
|
|
208
|
+
|
|
209
|
+
## License
|
|
210
|
+
|
|
211
|
+
Released under [GPL-3.0](/LICENSE) by [@mcagriaksoy](https://github.com/mcagriaksoy).
|
|
212
|
+
|
|
213
|
+
## Support the Project
|
|
214
|
+
|
|
215
|
+
<a href="https://www.buymeacoffee.com/mcagriaksoy">
|
|
216
|
+
<img src="https://img.shields.io/badge/-buy_me_a%C2%A0coffee-gray?logo=buy-me-a-coffee" alt="Buy Me A Coffee">
|
|
217
|
+
</a>
|
|
218
|
+
|
|
219
|
+
---
|
|
220
|
+
|
|
221
|
+
Made for privacy-conscious users
|
|
222
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" height="24px" width="24px" fill="#434343"><path d="M5.85,17.1q1.27-0.98 2.85-1.54T12,15t3.3,0.56t2.85,1.54q0.88-1.03 1.36-2.33T20,12q0-3.33-2.34-5.66T12,4Q8.68,4 6.34,6.34T4,12q0,1.47 0.49,2.78q0.49,1.3 1.36,2.33Zm3.66-5.11Q8.5,10.98 8.5,9.5q0-1.48 1.01-2.49T12,6t2.49,1.01T15.5,9.5t-1.01,2.49T12,13q-1.47,0-2.49-1.01ZM12,22q-2.07,0-3.9-0.79q-1.82-0.79-3.17-2.14Q3.58,17.73 2.79,15.9T2,12Q2,9.92 2.79,8.1Q3.58,6.27 4.93,4.93Q6.28,3.57 8.1,2.79Q9.93,2 12,2t3.9,0.79t3.17,2.14q1.35,1.35 2.14,3.17Q22,9.92 22,12t-0.79,3.9t-2.14,3.17q-1.35,1.35-3.17,2.14T12,22Zm2.5-2.39q1.18-0.39 2.15-1.11q-0.98-0.73-2.15-1.11T12,17T9.5,17.39Q8.33,17.77 7.35,18.5q0.98,0.73 2.15,1.11T12,20t2.5-0.39Zm-1.42-9.04Q13.5,10.15 13.5,9.5T13.08,8.42T12,8T10.93,8.42T10.5,9.5t0.43,1.07T12,11t1.08-0.43ZM12,9.5Zm0,9Z"/></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" height="24px" width="24px" fill="#434343"><path d="M4,19V17H6V10Q6,7.93 7.25,6.31T10.5,4.2V3.5q0-0.63 0.44-1.06T12,2t1.06,0.44T13.5,3.5V4.2q2,0.5 3.25,2.11T18,10v7h2v2H4Zm8-7.5ZM12,22q-0.82,0-1.41-0.59T10,20h4q0,0.82-0.59,1.41T12,22ZM8,17h8V10q0-1.65-1.17-2.82T12,6T9.18,7.18T8,10v7Z"/></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" height="24px" width="24px" fill="#434343"><path d="M9.25,22l-0.4-3.2q-0.32-0.13-0.61-0.3T7.68,18.13L4.7,19.38L1.95,14.63l2.58-1.95Q4.5,12.5 4.5,12.34q0-0.16 0-0.34t0-0.34t0.03-0.34L1.95,9.38L4.7,4.63L7.68,5.88Q7.95,5.68 8.25,5.5t0.6-0.3L9.25,2h5.5l0.4,3.2q0.33,0.13 0.61,0.3t0.56,0.38L19.3,4.63l2.75,4.75l-2.57,1.95q0.02,0.18 0.02,0.34t0,0.34t0,0.34t-0.05,0.34l2.57,1.95l-2.75,4.75l-2.95-1.25q-0.27,0.2-0.57,0.38t-0.6,0.3L14.75,22H9.25ZM11,20h1.98l0.35-2.65q0.78-0.2 1.44-0.59t1.21-0.94l2.47,1.03l0.98-1.7l-2.15-1.63q0.13-0.35 0.17-0.74T17.5,12t-0.05-0.79q-0.05-0.39-0.17-0.74l2.15-1.63l-0.98-1.7L15.98,8.2q-0.55-0.57-1.21-0.96T13.33,6.65L13,4H11.03L10.68,6.65Q9.9,6.85 9.24,7.24T8.03,8.17L5.55,7.15L4.58,8.85l2.15,1.6Q6.6,10.83 6.55,11.2T6.5,12q0,0.4 0.05,0.77t0.17,0.75L4.58,15.15l0.98,1.7L8.03,15.8q0.55,0.58 1.21,0.96t1.44,0.59L11,20Zm1.05-4.5q1.45,0 2.47-1.03T15.55,12T14.53,9.52T12.05,8.5q-1.47,0-2.49,1.02T8.55,12t1.01,2.47t2.49,1.03ZM12,12Z"/></svg>
|
|
@@ -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.2.0" # fallback
|
|
15
15
|
|
|
16
16
|
def build_executable(version, safe_pdf_dir, dist_dir):
|
|
17
17
|
portable_name = f"SafePdf_v{version}_portable_win64"
|