code: def _getXrefStream(self, xref):
          
          if self.isClosed or self.isEncrypted:
              raise ValueError("operation illegal for closed / encrypted doc")
  
          return _fitz.Document__getXrefStream(self, xref)
docs: _getXrefStream(self, xref) -> PyObject *