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

Unable to print multiple copies #133

Open
gbishop opened this issue Feb 5, 2017 · 4 comments
Open

Unable to print multiple copies #133

gbishop opened this issue Feb 5, 2017 · 4 comments

Comments

@gbishop
Copy link

gbishop commented Feb 5, 2017

The print dialog on my Chromebook does not include a box to specify the number of copies. It prints the single copy just fine.

I'm running David Steele's package on a Raspberry Pi connecting to my Brother DL-2280DW wirelessly.

I think Google Cloud Print isn't providing a box for multiple copies because the connector isn't communicating that it can handle them.

Is there something I need to change in the configuration to get it to communicate that it can do multiple copies?

@armooo
Copy link
Owner

armooo commented Feb 6, 2017

I am guessing the PPD for the printer is not exposing the copies option. It could also be that google made a change that requires CDD to show the copies option.

@davesteele
Copy link
Contributor

My Brother shows copies for the local print queue, but not through Cloud Print.

@jemmyn
Copy link

jemmyn commented Nov 14, 2019

We have been having this same issue. We are running Ubuntu 18.04 Desktop and installed with pkg manager. Can confirm it is not the PPD at least it does not seem to be because any PPD does this on our end. Your project gives us many more options under Advanced Settings in the print dialog (all of the default options that show up in CUPS) but copies immediately disappears as soon as I choose a printer shared with this. I have uninstalled and installed Google Cloud Print Connector and am able to get the copies to show up but unfortunately it does not push all the default options in CUPS to the Advanced Settings dialog as your app does. How can we better diagnose this? Would it help to reinstall from source perhaps?

@armooo
Copy link
Owner

armooo commented Nov 22, 2019

My working theory is that when google created GCP 2.0 they started to internally translate GCP 1.0 requests to GCP 2.0 requests. One of the big differences between 1.0 and 2.0 is that you no longer submit the PPD files when registering a printer. Instead you send a CDD, which is a protobuf serialized as JSON describing the printer.

Google provides a web UI to convert a PPD to a CDD and preview the printing UI here https://www.google.com/cloudprint/tools/cdd/cdd.html . I am guessing this uses the same backend as the GCP 1.0 to 2.0 translation layer. For all PPD files I have tried the copy selector was not shown. Looking at the CCD documentation there is a copies field in the printer which is never created from a PPD file. Manually adding "copies": {}, inside the printer block and then clicking the refresh button over the UI preview adds a copies selector. If anyone has a PPD file that previews with a copies selector selector I should be able to hack something into the PPD so all printers get a copies option.

The other option is to move to GCP 2.0 and create CDDs from the PPD files and make sure we et a copies value. This would be a large project and given that google has announced the end of life GCP on December 31, 2020 I don't feel like investing in the making large improvements. But a quick fix to how we send PPD files is on the table if we can discover what is needed.

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

4 participants