How rok-git/print_with_stamp works
Print With Stamp is a small macOS CLI that accepts a PDF and stamp/print options, generates a stamped PDF, and optionally submits it to lp. Its runtime is concentrated in one Swift source file, so the CLI, page-selection, rendering, PDF-output, and print responsibilities share that path. The README documents a separate Finder Quick Action script that reads configuration and invokes the CLI. The source excerpt is partial, so internal call details are limited; documented workflow links cite the README.
Main entry points: main.swift CLI options · print-with-stamp-finder.sh Finder helper
Components 10
CLI workflow
- CLI options
Sources/PrintWithStamp/main.swift
PDF stamping
- Page selection
Sources/PrintWithStamp/main.swift - Stamp rendering
Sources/PrintWithStamp/main.swift - Stamped PDF
Sources/PrintWithStamp/main.swift
Finder integration
- Finder helper
scripts/print-with-stamp-finder.sh - Options config
Other components
- CLI user
- Input PDF
- Saved PDF
- macOS lp
Connections 9
- CLI user → CLI options: supplies options
README.md - Input PDF → CLI options: provides PDF
README.md - CLI options → Page selection: selects pages
README.md - CLI options → Stamp rendering: configures stamp
README.md - CLI options → Stamped PDF: creates PDF
README.md - Stamped PDF → Saved PDF: saves as
README.md - CLI options → macOS lp: submits when enabled
README.md - Options config → Finder helper: provides options
README.md - Finder helper → CLI options: invokes
README.md