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

    Parameters

    • surface: Surface
    • Optional id: string

    Returns PrintHandler