def close(self):
if self.isClosed:<EOL><INDENT>raise ValueError("<STR_LIT>")<EOL><DEDENT>if hasattr(self, '<STR_LIT>') and self._outline:<EOL><INDENT>self._dropOutline(self._outline)<EOL>self._outline = None<EOL><DEDENT>self._reset_page_refs()<EOL>self.metadata    = None<EOL>self.stream      = None<EOL>self.isClosed    = True<EOL>self.openErrCode = <NUM_LIT:0><EOL>self.openErrMsg  = '<STR_LIT>'<EOL>self.FontInfos   = []<EOL>for gmap in self.Graftmaps:<EOL><INDENT>self.Graftmaps[gmap] = None<EOL><DEDENT>self.Graftmaps = {}<EOL>self.ShownPages = {}<EOL>val = _fitz.Document_close(self)<EOL>self.thisown = False<EOL>return val<EOL>
close(self)