For the purposes of an example, let's presume the user is logged into a Google or Google Apps account when accessing the App Engine application, and that account is attached to a cloud-aware printer (e.g. registered printers in Google Chrome with cloud print).
I'd like to print, for example, a PDF file that's stored in a blob on GAE. Let's call this blob
pdf_contents. I'd like a function:
def print_pdf(pdf_contents, printer, print_settings): """Prints `pdf_contents` (a blob conforming to the PDF standard) to `printer` (a Google Cloud Printer) with the given `print_settings`""" # what goes here?
I'd like to know how to go about doing this, and whether anyone else has made any efforts in this respect. Of course, I don't want to limit the printing to PDF files, but wanted to narrow down the example.
Thank you for reading.
According to the API FAQ, it's not out yet, but when it is, you should be able to print from an App Engine app or any other app:
Will non-Google products be able to use Google Cloud Print?
Yes, we will offer an API for any app to use Google Cloud Print
The content is written by members of the stackoverflow.com community.
It is licensed under cc-wiki