Sorry I probably explained that badly, I intend to build a small stud that the 90 degree bend would come through and the cistern would sit against.
I was more interested in how I would adapt that piping to fit a pan connector as the existing 90 bend appears to be part of the existing pan connector, but due to the spigot being recessed on the new toilet, would not be suitable to be reused in this situation