Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support passing generic CUPS options to print jobs #6

Closed
huerlisi opened this issue Jul 17, 2012 · 1 comment
Closed

Support passing generic CUPS options to print jobs #6

huerlisi opened this issue Jul 17, 2012 · 1 comment

Comments

@huerlisi
Copy link
Contributor

First of all: great gem, loving it!

I've tried passing {'copies' => 40} to a .print_datacall, but got a message that this option is not supported by the printer.

Digging in the source code, I found out, that you validate the options against the PPD. But copies seems to be a generic option, available in all printers. Simply disabling the option validation did work: I've been able to pass the copies option and the printer respected it.

I'm no CUPS specialist and thus not sure if there are any other such generic options.

@huerlisi
Copy link
Contributor Author

Thanks for merging my fix:-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant