Performing document layout analysis