A macOS PDF Service to merge letterhead with printed documents
Project description
Mac-letterhead
A macOS PDF Service that automatically merges a letterhead template with printed documents.
Installation
Install the package:
uv pip install -e .
Usage
Installing a Letterhead Service
To create a PDF Service for a specific letterhead template:
uv run mac-letterhead install /path/to/your/letterhead.pdf
This will create a new PDF Service named "Letterhead " in your PDF Services directory.
Using the Letterhead Service
- Open any document you want to print with the letterhead
- Choose File > Print
- Click the PDF dropdown button
- Select "Letterhead " from the menu
- Choose where to save the merged PDF
Version Information
To check the current version:
uv run mac-letterhead --version
Features
- Easy installation of letterhead services
- Supports multiple letterhead templates
- Maintains original PDF metadata
- Preserves PDF quality
- Shows save dialog for output location
- Proper error handling
- Supports --version flag
- Type hints for better code maintainability
Development
To install in development mode:
uv pip install -e .
Publishing a New Release
-
Update the version in:
- pyproject.toml
- letterhead_pdf/init.py
- letterhead_pdf/main.py
-
Run the release script:
./tag_release.sh
This will:
- Create a git tag for the current version
- Push the tag to GitHub
- Trigger the GitHub workflow to publish to PyPI
License
MIT License
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file mac_letterhead-0.1.0.tar.gz.
File metadata
- Download URL: mac_letterhead-0.1.0.tar.gz
- Upload date:
- Size: 13.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
32925d3f8181d4d8e6e6d7fdfc0eca6f08db65d4b8f7db270f481eddc23235ef
|
|
| MD5 |
6efd6eedc5701db69e450f8be1b81f9a
|
|
| BLAKE2b-256 |
8ad7338027fac7d580be66b312f233d13b9f9714ee250c4251e2a4d96760c002
|
File details
Details for the file mac_letterhead-0.1.0-py3-none-any.whl.
File metadata
- Download URL: mac_letterhead-0.1.0-py3-none-any.whl
- Upload date:
- Size: 5.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5452c08981a77efedf25bf582aea4e4fb744645a002b4fdd50488f395c08561e
|
|
| MD5 |
58d4fb9bb9a3b4775dec565182457369
|
|
| BLAKE2b-256 |
0d341951534a9147771cc76f2ce87ebe3ddf22a890fd5083636fef6199acaced
|