"As long as the toilet is vented,"
That's what I'm wondering about. A 2" vent line would tie into the horizontal-running waste line 4 feet away from the toilet. The toilet would sit on the closet flange, which makes a 90, then runs horizontally 4 feet, at which point a 2" vent line ties in from the top of the waste line, and then the waste line continues another 8 feet, or so, where it does another 90 and goes vertically down and out.
Is venting the toilet 4 feet from the closet flange OK?
DG