How salmanasmat/windows-airprint-bridge works
Windows AirPrint Bridge shares a Windows printer over the local network: mobile devices discover it through mDNS, send IPP print requests over HTTP, and receive jobs rendered and printed by the bridge. Its single main script implements discovery, protocol handling, job processing, and Windows printer access. The README documents PDF rendering, paper sizing, copies, page ordering, and rotation. Source excerpts show parts of those implementations but omit much of the main script; links based on documented behavior cite the README. The response decoder is a separate diagnostic client, not part of the runtime workflow.
Main entry points: airprint_bridge.py IPP request handler · decode_ipp.py IPP response decoder
Components 15
Network access
- mDNS discovery
airprint_bridge.py - HTTP transport
airprint_bridge.py
IPP protocol
- IPP request handler
airprint_bridge.py - IPP attributes
airprint_bridge.py - IPP responses
airprint_bridge.py
Print processing
- Job options
airprint_bridge.py - PDF rendering
airprint_bridge.py - URF handling
airprint_bridge.py - Page layout
airprint_bridge.py - Copy and order
airprint_bridge.py
Printer operations
- Job configuration
airprint_bridge.py - Windows printer
- Bridge service
airprint_bridge.py - IPP response decoder
decode_ipp.py
Other components
- Mobile print client
Connections 18
- Mobile print client → mDNS discovery: discovers printer
README.md - Mobile print client → HTTP transport: sends print job
README.md - Bridge service → mDNS discovery: advertises services
README.md - Bridge service → HTTP transport: binds IPP port
README.md - HTTP transport → IPP request handler: routes requests
README.md - IPP request handler → IPP attributes: parses attributes
airprint_bridge.py - IPP request handler → IPP responses: sends responses
airprint_bridge.py - IPP request handler → Job options: extracts job options
airprint_bridge.py - IPP request handler → PDF rendering: renders documents
README.md - IPP request handler → URF handling: handles URF jobs
README.md - IPP request handler → Page layout: sets paper layout
README.md - IPP request handler → Copy and order: applies job settings
README.md - Job options → Job configuration: reads settings
airprint_bridge.py - PDF rendering → Windows printer: prints pages
README.md - Page layout → Windows printer: sets printer mode
airprint_bridge.py - Copy and order → Windows printer: submits copies
README.md - IPP response decoder → HTTP transport: probes endpoint
decode_ipp.py - IPP response decoder → IPP responses: decodes IPP data
decode_ipp.py