Preheat the oven to gas 6, 200°C, fan 180°C. With a little flour, roll the pastry out to roughly fit a 36x27cm (14x11in) baking tray. Chill in the fridge.
Pan-fry the bacon until it's crisp. Drain on kitchen paper. Thinly slice the leeks, using some of the green tops as well. Add to the bacon pan along with the butter. Season. Sauté for 5 minutes or until softened.
In a bowl, mix the egg yolks with the crème fraîche. Season. Sprinkle the grated Gruyère over the pastry, then top with the bacon and leeks. Pour the cream mixture over the tart, scatter with the onion slices and season with black pepper.
Bake for 20 minutes until the pastry is crisp. Serve with a dressed green salad.
See more bacon recipes
For top tips on protecting you and your family when preparing raw meat and poultry, visit Food Safety in the Home.
Freezing and defrosting guidelines
In order to enjoy optimum flavour and quality, frozen items are best used within 3 months of their freezing date. Always defrost and heat thoroughly before eating. For more tips on freezing and defrosting food, read our article Love Your Freezer.