alfianlensundev / tauri-plugin-printer

Plugin Printer For Tauri
MIT License
52 stars 20 forks source link

-print-to fix #19

Open joshinat0r opened 6 months ago

joshinat0r commented 6 months ago

First of all, thanks for creating this crate, saved me a bunch of time already.

But the example from the readme isn't working properly if you give it a printer id.

await print_file({
    id: "idfromlistprinter",
    path: 'F:/path/to/file.pdf',
})

The print always gets send to the default printer, regardless of the id passed through.

The issue seems to be the ==, right now it only sets -print-to if the printer id is empty.