Google Cloud Print (GCP) is a service that enables you to print from any web-connected device. Google Cloud Print routes print jobs between your pc, smartphone, or tablet and sends them to an Internet-connected printer. The service additionally permits users to simply discover printers and print from their own device without the need for complex setup and driver installation.
The following diagram shows the various ways that Google Cloud Print works. Once users in your organization submit a print job, the Cloud Print service routes that job to the selected printer and formats it appropriately. Cloud Print works best with cloud-ready printers; however, it can work in parallel with nearly any existing print solution with the installation of Google Cloud Print Connector.
The setup you choose depends on the kind of printer you have.
Setup Google Print:
Note: Only Google Chrome Browser used to map Printer with Google Account.
1. Login to Google in Google Chrome.
2. Open this URL [chrome://devices/] in new tab. Now you can see screen like below image. Now, click on ‘Add printer’.
3. It will redirect to new screen like below. Just unselect other option and then click on ‘Add Printer(s)’. Here you can select more than one printer but our API will work on any one of that printer.
4. After that, it will redirect to you ‘Thank You’ Page. By clicking on ‘Manage your Printers’ you can see all registered Printer with Google Cloud Print.
5. Now, open this URL https://console.cloud.google.com. You can see screen like below. Select ‘Yes/No’ in first Radio Button Group based on your interest. Select ‘Yes’ in second Radio Button Group and click ‘AGREE AND CONTINUE’.
6. It will redirect you to Google Cloud Platform Dashboard.
7. Now, Click on ‘3 Bar Icon’ on left Side. It will open sidebar. Then open API & Services > Dashboard. It will redirect to Dashboard of API & Services.
8. Click on ‘Create Project’.
9. Click on ‘Create’.
10. Enter Project Name and click on Create.
11. It will redirect you to Dashboard with lots of enabled API.
12. Click on Credentials from Sidebar.
13. Then, click on Create Credentials. It will display dropdown. Select first Option ‘API key’.
14. It will display auto-generated API Key. Just save it in notepad or any other file for future reference.
15. Now, Click on Create Credentials. Select second Option ‘OAuth client ID’. It will open new screen.
16. Select ’Web Application’ Radio Option. Enter Client Name and click on Submit. Other textboxes are optional.
17. After that, it will display Pop up Box with Client ID and Client Secret. Save it to notepad file.
18. Now select ‘OAuth consent screen’ and enter ‘Homepage URL’. Put empty other text boxes and Save it.
Done. You did good job. You can use those Client ID and Client Secret to your code for Google Cloud Print.
The following two tabs change content below.
7 years of IT experience in development of enterprise solutions, specializing in GUI and Web based applications using Angular, Rect Js, Node Js, PHP, AWS. I am very passionate about Web Development, and strive to better myself as a web developer.