摘要 |
One embodiment provides a system for facilitating document printing from a portable device (162). During operation, the system receives a document (164) at a server (168). Next, the system generates a document optical code corresponding to the document. Subsequently, the system communicates the document optical code to the portable device (162), thereby allowing the portable device to display the document optical code to a scanning mechanism associated with a printer (170). Next, the system receives a request, indicating the optical code, from the printer. Subsequently, the system retrieves the document in response to the request, and sends the document to the printer. |