(self, page, x, y)
return (
            page >= 0 and page < self.num_pages and
            x >= 0 and x < self._pixel_width and
            y >= 0 and y < self._pixel_height
        )
Check if a page and coordinates are within limits.
Check if a page and coordinates are within limits.
Check if a page and coordinates are within limits .
def _coord_ok(self, page, x, y):
        """Check if a page and coordinates are within limits."""
        return (
            page >= 0 and page < self.num_pages and
            x >= 0 and x < self._pixel_width and
            y >= 0 and y < self._pixel_height
        )
def _coord_ok ( self , page , x , y ) : return ( page >= 0 and page < self . num_pages and x >= 0 and x < self . _pixel_width and y >= 0 and y < self . _pixel_height )