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