def end_figure(self, A): curBox = list(self.cur_item.bbox) PDFPageAggregator.end_figure(self, A) showfigure = self.intersect(curBox) self.showfigure = [x[0] or x[1] for x in zip(self.showfigure, showfigure)] self.inFigure = False