@classmethod
def loadPopplerDocument(cls, document, renderer=None, pageSlice=None):
    """Convenience class method yielding instances of this class.

        The Page instances are created from the document, in page number order.
        The specified Renderer is used, or else the global poppler renderer.
        If pageSlice is given, it should be a slice object and only those pages
        are then loaded.

        """
    it = range(document.numPages())
    if pageSlice is not None:
        it = it[pageSlice]
    for num in it:
        yield cls(document, num, renderer)
