cloudprint icon indicating copy to clipboard operation
cloudprint copied to clipboard

Unable to print multiple copies

Open gbishop opened this issue 8 years ago • 4 comments

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?

gbishop avatar Feb 05 '17 21:02 gbishop

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.

armooo avatar Feb 06 '17 03:02 armooo

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

davesteele avatar Feb 06 '17 03:02 davesteele

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?

jemmyn avatar Nov 14 '19 20:11 jemmyn

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.

armooo avatar Nov 22 '19 03:11 armooo