Closed rootedsoftware closed 7 years ago
I think it should be options: { InputSlot: "SideDeck" }
, at least I could get duplex to work on my printer via options: { Duplex: "DuplexTumble" }
.
I couldn't find any documentation about this. The only thing I found was https://github.com/tojocky/node-printer/blob/master/examples/cancelJob.js where options
is specified. media
and fit-to-page
are basically lp
options. They either have a value
lp -o media=a4 ... -> options: { media: "A4" }
or are just enabled or disabled
lp -o fit-to-page ... -> option: { fit-to-page: true }
I am still guessing, basically. It would be good to have this clarified and properly documented by @tojocky.
I ended up using a different tray with special paper. This Canon would always ask me to confirm the setting on the printer every time I tried to print to the SideDeck, but wouldn't if I used a different tray.
Also, it didn't seem to care if I selected CNSelectBy
and used the option PaperSource
when I used the SideDeck, but it did work for the other trays...
This is what I ended up using. Now when I put the pre-printed paper into a tray I go into the printer panel and tell it that this is "Recycled" paper. Seems kinda hackey, but it works just fine.
options: {
CNSelectBy: "PaperType",
MediaType: "RECYCLED"
}
Is there a way to see a list of commands I can use on a specific printer using CUPS?
When I run
node getPrinterDriverOptions.js
I get a huge list (included below) of options, but no matter what I set they don't see to make any effect on the printing. I'm trying to only print from the MultiPurpose (SideDeck) and also only one-sided.Any help or direction is much appreciated.
Here is one way I've set the options
Here is the output of
node getPrinterDriverOptions.js