https://github.com/elvismdev/merge-label-cli
A CLI tool to merge a 4x6 shipping label PDF and a logo image into a printable 4x8 PDF for thermal printers like MUNBYN.
https://github.com/elvismdev/merge-label-cli
Last synced: 8 months ago
JSON representation
A CLI tool to merge a 4x6 shipping label PDF and a logo image into a printable 4x8 PDF for thermal printers like MUNBYN.
- Host: GitHub
- URL: https://github.com/elvismdev/merge-label-cli
- Owner: elvismdev
- Created: 2025-06-14T07:28:42.000Z (12 months ago)
- Default Branch: main
- Last Pushed: 2025-06-14T07:37:30.000Z (12 months ago)
- Last Synced: 2025-06-14T08:33:37.905Z (12 months ago)
- Language: JavaScript
- Size: 42 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# merge-label-cli
A CLI tool to merge a logo and a 4×6 shipping label PDF into a 4×8 layout, perfect for printing with thermal printers like MUNBYN.
## ✨ Features
- Inserts your store's logo centered in the top 2" of a 4×8" label
- Places an existing 4×6" shipping label below
- Outputs a print-ready 4×8 PDF
- Maintains aspect ratio and applies left/right padding
- Ideal for custom-branded shipping labels
## 📦 Installation
```bash
npm install -g merge-label-cli
```
## 🛠️ Usage
```bash
merge-label --logo path/to/logo.jpg --label path/to/label.pdf --output path/to/output.pdf
```
### Options:
| Flag | Description |
| ---------- | --------------------------------------- |
| `--logo` | Path to logo image (JPG or PNG) |
| `--label` | Path to existing 4×6 shipping label PDF |
| `--output` | Output path for the merged 4×8 PDF |
### 🖨️ Example
```bash
merge-label --logo acme-logo.png --label usps-label.pdf --output label-4x8.pdf
```
This creates a new `label-4x8.pdf` with the logo on top and label on the bottom.