Reward while the person is still at a 'safe' distance. So when that person is not close enough to cause a reaction. Have this person totally ignore her, even with their back turned towards the dog, if necessary. Then with a tiny step at a time have the person come closer. So one step, reward untill the dog ignores and stays in position. If she moves towards the person, have the person walk away. That way she will get it. Going towards the person means no reward!
Then when you get to the point where the person can stand next to her, don't have the person bend over to touch her right away. Just reward the fact your dog is still in position.
When you do have the person touch your dog, keep the touch short. And then build up the touching with tiny steps. As soon as your dog displays exitement, person walks away, or turns their back towards the dog.
It is a slow process, but it is how we train this with overexited dogs

Jinx used to jump up at everybody(still does

) but not when she needs to be examenend.
Good luck! It is great when you have a people friendly dog, but a curse when you don't want the jumping


