Register a print handler for the given surface, optionally with the given id. An id will be generated if not provided.
Optional
Register a print handler for the given surface, optionally with the given id. An id will be generated if not provided.