Spaces:
Sleeping
Sleeping
Update README.md
Browse files
README.md
CHANGED
|
@@ -1,80 +1,8 @@
|
|
| 1 |
-
# ✉️ ચાંદલા વિધી PDF Invitation Editor
|
| 2 |
-
|
| 3 |
-
A web-based app to add recipient names to Gujarati wedding invitation PDFs.
|
| 4 |
-
|
| 5 |
---
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
| `GujaratiFont.ttf` | Gujarati font (Lohit-Gujarati) |
|
| 13 |
-
|
| 14 |
---
|
| 15 |
-
|
| 16 |
-
## 🚀 Setup & Run
|
| 17 |
-
|
| 18 |
-
### 1. Install Python packages
|
| 19 |
-
```bash
|
| 20 |
-
pip install flask PyMuPDF
|
| 21 |
-
```
|
| 22 |
-
|
| 23 |
-
### 2. Place files together
|
| 24 |
-
```
|
| 25 |
-
your-folder/
|
| 26 |
-
├── app.py
|
| 27 |
-
└── GujaratiFont.ttf
|
| 28 |
-
```
|
| 29 |
-
|
| 30 |
-
### 3. Run the app
|
| 31 |
-
```bash
|
| 32 |
-
python app.py
|
| 33 |
-
```
|
| 34 |
-
|
| 35 |
-
### 4. Open in browser
|
| 36 |
-
- **Computer:** http://localhost:5050
|
| 37 |
-
- **Mobile (same WiFi):** http://YOUR-PC-IP:5050
|
| 38 |
-
|
| 39 |
-
---
|
| 40 |
-
|
| 41 |
-
## 📱 How to Use
|
| 42 |
-
|
| 43 |
-
1. **Upload** your PDF invitation file
|
| 44 |
-
2. **Type** the recipient's name (Gujarati or English)
|
| 45 |
-
3. **Adjust** font size (10–40)
|
| 46 |
-
4. **Pick** text color
|
| 47 |
-
5. **Set X/Y position** to place name on the dotted line
|
| 48 |
-
6. Click **Preview** to see result on Page 2
|
| 49 |
-
7. Click **Download** — PDF saves with the name as filename!
|
| 50 |
-
|
| 51 |
-
---
|
| 52 |
-
|
| 53 |
-
## 🎯 Position Tips
|
| 54 |
-
|
| 55 |
-
For the "સ્નેહીશ્રી,........" line:
|
| 56 |
-
- Default: **X=165, Y=340**
|
| 57 |
-
- If text appears too high → increase Y
|
| 58 |
-
- If text appears too far right → decrease X
|
| 59 |
-
- Use Preview button to check and adjust
|
| 60 |
-
|
| 61 |
-
---
|
| 62 |
-
|
| 63 |
-
## 📝 Filename Logic
|
| 64 |
-
|
| 65 |
-
PDF is saved with the recipient name as filename:
|
| 66 |
-
- Input: `ભૂષણભાઈ પટેલ`
|
| 67 |
-
- Output: `ભૂષણભાઈ_પટેલ.pdf`
|
| 68 |
-
|
| 69 |
-
---
|
| 70 |
-
|
| 71 |
-
## 🔧 Anek Gujarati Font (Optional)
|
| 72 |
-
|
| 73 |
-
To use the exact Anek Gujarati font from the invitation:
|
| 74 |
-
1. Download from: https://fonts.google.com/specimen/Anek+Gujarati
|
| 75 |
-
2. Save as `AnekGujarati.ttf` in the same folder as `app.py`
|
| 76 |
-
3. Edit `app.py` line: `FONT_PATH = "AnekGujarati.ttf"`
|
| 77 |
-
|
| 78 |
-
---
|
| 79 |
-
|
| 80 |
-
*Built with Flask + PyMuPDF*
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
---
|
| 2 |
+
title: Invitation Editor
|
| 3 |
+
emoji: ✉️
|
| 4 |
+
colorFrom: red
|
| 5 |
+
colorTo: pink
|
| 6 |
+
sdk: docker
|
| 7 |
+
pinned: false
|
|
|
|
|
|
|
| 8 |
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|