def _reset_page_refs(self):
if self.isClosed:<EOL><INDENT>return<EOL><DEDENT>for page in self._page_refs.values():<EOL><INDENT>if page:<EOL><INDENT>page._erase()<EOL>page = None<EOL><DEDENT><DEDENT>self._page_refs.clear()<EOL>
Invalidate all pages in document dictionary.