Automatic Table Detection in Document Images