Keep 22827 content on the sticker when Avery bleed guides or printer drift would otherwise print off the label. Co-authored-by: Cursor <cursoragent@cursor.com>
95 lines
2.7 KiB
Markdown
95 lines
2.7 KiB
Markdown
# Avery Label Studio
|
||
|
||
Open-source **Windows desktop** designer for Avery label templates (e.g. **60504**).
|
||
|
||
- Download official Avery Word blanks by product number
|
||
- Measure & install into AppData
|
||
- Design → print-ready **PDF** / direct print
|
||
|
||
Not affiliated with Avery Products Corporation. MIT licensed.
|
||
|
||
## Features (v0.2)
|
||
|
||
- **No templates shipped** — start on **Select a template**
|
||
- Remembers your **last used** template on next launch
|
||
- **Download from Avery.com** by product number (official Word blank)
|
||
- Import your own `.doc` / `.json` / `.pdf` blanks
|
||
- Templates live in `%LOCALAPPDATA%\AveryLabelStudio\templates`
|
||
- Import artwork (PDF/Word) with contain / cover / stretch
|
||
- Print / Print Preview / multi-sheet projects
|
||
- Detect die-cut vs bleed vs safe print area (print-to-edge templates like **22827**)
|
||
- Build a standalone **`.exe`** with PyInstaller
|
||
|
||
## Templates
|
||
|
||
1. **Download…** — enter a number like `60504` (pulls the Word blank from avery.com)
|
||
2. Or **Import…** — pick a blank you already downloaded
|
||
3. Layout is measured and saved under AppData
|
||
4. Toolbar dropdown switches among templates you installed
|
||
|
||
## Printing
|
||
|
||
- **File → Print…** (`Ctrl+P`) — Windows print dialog; use **Preferences / Properties** for tray, duplex, media, etc.
|
||
- Prints at **actual size** (does not fit/scale over your settings)
|
||
- **File → Print via System PDF (full settings)…** — opens the PDF in Edge/Adobe for the complete driver UI
|
||
- **File → Print Preview…** — preview before printing
|
||
- Always choose **100% / Actual size** — never Fit to page
|
||
|
||
## Run from source
|
||
|
||
```bat
|
||
pip install -r requirements.txt
|
||
run.bat
|
||
```
|
||
|
||
Or:
|
||
|
||
```bat
|
||
set PYTHONPATH=src
|
||
python -m avery_studio
|
||
```
|
||
|
||
## Build the EXE
|
||
|
||
Double-click `build_exe.bat`, or:
|
||
|
||
```bat
|
||
pip install -r requirements.txt
|
||
pyinstaller --noconfirm AveryLabelStudio.spec
|
||
```
|
||
|
||
Output: `dist\AveryLabelStudio.exe`
|
||
|
||
## Printing tips
|
||
|
||
1. Export PDF from the app
|
||
2. Print at **100% / Actual size** — do **not** “Fit to page”
|
||
3. Use Avery **60504** sheets (laser)
|
||
4. If labels are a little high/low/left/right, use **Offset X / Y** (in inches) and re-export
|
||
|
||
## Template geometry
|
||
|
||
Verified from your file
|
||
`TEMPLATES/Avery60504UltraDutyGHSLabelsLaser.doc` (Avery rectangle guides):
|
||
|
||
| Setting | Value |
|
||
|--------|--------|
|
||
| Page | 8.5″ × 11″ Letter |
|
||
| Design panel | ≈ **3.937″** |
|
||
| Left margin | ≈ **0.251″** |
|
||
| Top margin | ≈ **1.001″** |
|
||
| Horizontal gap | **0.125″** |
|
||
| Vertical gap | ≈ **1.126″** (was wrongly 0.125″ before) |
|
||
| Grid | 2 × 2 |
|
||
|
||
## Roadmap ideas
|
||
|
||
- GHS pictogram library + signal-word presets
|
||
- CSV / Excel mail-merge for batch labels
|
||
- More Avery templates
|
||
- Resize handles on canvas elements
|
||
|
||
## License
|
||
|
||
MIT — see [LICENSE](LICENSE).
|