Has to be in CDG. The TXL-CDG leg is an intra-Schengen flight.
I don't see an airside customs office in CDG 2 E/F departures level. There may be one but I don't see it. That would be your best bet. FRA has or had an airside customs office good for this.