code: def mapToLineCol(self, absPosition):
          
          block = self.document().findBlock(absPosition)
          if not block.isValid():
              raise IndexError("Invalid absolute position %d" % absPosition)
  
          return (block.blockNumber(),
                  absPosition - block.position())
docs: Convert absolute position to ``(line, column)``