Text extraction and skewing adjustment