You can change a door and dress the frame without removing it.
Remove the old door.
Fix the new frame on the old one by sticking it.
You only lose a few inches of passage.
Place the new door on its hinges.
The operation is finished without repainting or masonry work.