Document overwrite method