Printers
Printers is not a lib for printer drivers or cups. Printers is a simple lib to call printers apis for unix (cups) and windows (winspool) systems.
Printer can provide a list of printers available on the system and perform document printing.
Behavior
Return a vector of available printers
get_printers
Request print of a temp file after write they
print .print
Request print of specific file from path
print_file .print_file
Try get and return a single printer by your name
get_printer_by_name
NOTE: get_printer_by_name is a simple utility, this functions just apply filters over call get_printers() result. They are improved on future to be more performatic
Example
use printers;
System Requiriments
Windows
For Windows printers will be use winspool apis to retrive printer and powershell to send a doc to printer
Note: For some complex reasons, the printing action stays doing using powershell. If you want collaborate to implement winspool for printing documents, your contribution will be greatly appreciated
Unix
For Unix is necessary cups service installed