flutter_windows_print 1.0.2
flutter_windows_print: ^1.0.2 copied to clipboard
A Flutter plugin that provides direct access to Windows printing APIs, enabling printer selection, print job control, and integration with custom print dialogs.
Windows Printing API for Flutter
A Flutter plugin that gives you direct access to the Windows Printing API, allowing custom printer selection, capability querying, and programmatic print job submission. This plugin contains no UI, making it ideal for creating your own custom print dialogs.
✨ Features
• List installed Windows printers
• Retrieve printer capabilities & status
• Submit print jobs with customizable settings
• Pass raw page data (e.g., PDF-rendered images)
• Orientation, paper size, scaling & color mode controls
• Designed for Windows desktop only
• Fully UI-agnostic — build your own dialogs
📦 Installation dependencies: flutter_windows_print: ^1.0.2
Run: flutter pub get
🚀 Quick Start Get available printers final api = WindowsPrintingApi(); final printers = await api.getAvailablePrinters();
Fetch printer capabilities
final caps = await api.getPrinterCapabilities("HP LaserJet 1020");
Submit a print job
await api.printJob(
pages: myDocumentPages, // List<Uint8List>
settings: {
"paperSize": "A4",
"orientation": "portrait",
"colorMode": "color",
},
);
📚 API Summary
| Function | Description |
|---|---|
getAvailablePrinters() |
Returns list of installed printers |
getPrinterCapabilities(name) |
Gets supported paper sizes, color modes, etc. |
printJob(...) |
Sends a page list to Windows print spooler |
🗺 Roadmap
• Duplex options
• Paper tray / bin selection
• Print queue monitoring
• More print modes and DPI support
📝 Changelog
See CHANGELOG.md
📄 License
MIT License — free for commercial & open-source use.