Sort the spinach, wash and drain well. Peel garlic and onion and chop finely. Heat the oil in a pan. Sauté the garlic and onion. Add the spinach and let it collapse while turning. Drain the spinach and squeeze out well. Chop the spinach and season with salt, pepper and nutmeg.
Unroll puff pastry together with baking paper. Line a greased tart tin (26 cm Ø) with the dough, dust it with flour and cut off the excess edge. Prick the base several times with a fork.
Whisk eggs, cream and cheese. Stir in pine nuts and diced ham. Season with salt, pepper and nutmeg. Spread the spinach on the dough. Pour egg cream over it. Bake the tart in the preheated oven (electric oven: 200 °C/circulating air: 180 °C/gas: see manufacturer) on the lowest shelf for approx. 30 minutes.