code: def findBookmark(self, bookmark):
          
          if self.isClosed or self.isEncrypted:
              raise ValueError("operation illegal for closed / encrypted doc")
  
          return _fitz.Document_findBookmark(self, bookmark)
docs: Find page number after layouting a document.