I want to send print jobs to Google Cloud Print with JavaScript.
How i want
$.post(api_url, {printerId:1, data:"helloworld"}, function(res){
console.log(res);
})
Something like that works for me. But i am open to alternatives. Share your experience with me. Thanks.
i found it from Google Cloud Print Developer Page:
GCP Web Element:
"The Google Cloud Print Web Element is the simplest way to add GCP functionality to your web site or application. Pass in a document to print, either by content or by URL, and get a Google Cloud Print dialog. If the user is not logged in to GCP, they are first asked to log in with their Google Account. This element is optimized for both desktop and mobile browsers."
Load your JS:
Follow a example:
i hope it can help you. :)