The flange issue should of been addressed before the floor was even installed. This will make for a much more difficult task, working within the confines of the inside of the pipe instead of the surrounding outside.
Spacers of that many is a leak, someday. That flange needs to be brought up to industry standard like they all are when they are installed in new construction........on top the finished floor surface. GOOD LUCK