A macOS utility to merge letterhead with PDF documents using a drag-and-drop interface
Project description
Mac-letterhead
A macOS utility that automatically merges a letterhead template with PDF documents using a simple drag-and-drop interface. Apply corporate letterhead designs to your documents effortlessly.
Usage
Mac-letterhead provides a simple and reliable way to apply letterhead to PDF documents using a drag-and-drop application.
Creating the Letterhead Applier App
Simply install the letterhead PDF as a drag-and-drop application:
uvx mac-letterhead install /path/to/your/letterhead.pdf
This will create a droplet application on your Desktop. The application will be named based on your letterhead file (e.g., "Letterhead CompanyLogo").
You can customize the name and location:
uvx mac-letterhead install /path/to/your/letterhead.pdf --name "Company Letterhead" --output-dir "~/Documents"
Using the Letterhead Applier App
- Print your document to PDF (using the standard "Save as PDF..." option)
- Drag and drop the PDF onto the Letterhead Applier app icon
- The letterhead will be applied automatically
- You'll be prompted to save the merged document
The application combines your letterhead and document in a way that preserves both document content and letterhead design.
Using Different Merge Strategies
If you already know which strategy works best for your letterhead, you can specify it directly:
uvx mac-letterhead merge /path/to/your/letterhead.pdf "Document Name" "/path/to/save" /path/to/document.pdf --strategy overlay
Available strategies:
multiply: Original strategy using multiply blend modereverse: Draws content first, then letterhead on top with blend modeoverlay: Uses overlay blend mode for better visibilitytransparency: Uses transparency layers for better blendingdarken: (Default) Uses darken blend mode which works well for light letterheads with dark text/logosall: Generates files using all strategies for comparison (the main output file will use the darken strategy)
Version Information
To check the current version:
uvx mac-letterhead --version
Error Logging
The tool logs all operations and errors to:
~/Library/Logs/Mac-letterhead/letterhead.log
If you encounter any issues while using the tool, check this log file for detailed error messages and stack traces.
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 with detailed logging
- Supports standard versioning with --version flag
- Comprehensive blend modes for different letterhead styles
- Integration with macOS application design standards
- Type hints for better code maintainability
Troubleshooting
If you encounter any issues:
- Check the log file at
~/Library/Logs/Mac-letterhead/letterhead.log - The log contains detailed information about:
- All operations performed
- Error messages with stack traces
- Input/output file paths
- PDF processing steps
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.4.3.tar.gz.
File metadata
- Download URL: mac_letterhead-0.4.3.tar.gz
- Upload date:
- Size: 2.4 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9e52ffb13dfd51b6911cf7bab5d6abdc245976a97d5f82fbe20658699ae4c1b2
|
|
| MD5 |
5e2e3f5fe838d3431281ac49d35f8b3f
|
|
| BLAKE2b-256 |
455725d921eb8ff2d99a73a4b5e65f094ac1b9efc5d9720d04f11e126a8062c0
|
File details
Details for the file mac_letterhead-0.4.3-py3-none-any.whl.
File metadata
- Download URL: mac_letterhead-0.4.3-py3-none-any.whl
- Upload date:
- Size: 2.4 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
26a1ec4ee1f74cc8374b4a5aaf4bb4996fbe577cb5197f3282a798ea01dad869
|
|
| MD5 |
5dc66a0f8d9ff3f70fdf5e496f84bbd4
|
|
| BLAKE2b-256 |
a4a4c073a2cc5d3bde414421724fd9fced614467d4f045c9fc618f22b3fbbde2
|