Cut the cabbage into approx. 1 cm wide strips and sauté with onions (peeled and also cut into strips) for approx. 25 minutes in a little salted water. Drain well.
Spread out the puff pastry on a baking sheet according to the instructions on the package and press up on the edge. Sprinkle the dough base with grated cheese. Spread the leftover ham on top and top with the cabbage.
Pour a mixture of eggs, cream, caraway seeds, salt, pepper and flour over them. Sprinkle with the rest of the cheese.
Bake in the oven preheated to 180 ° C for approx. 40 - 60 minutes. Simply hearty with wine and beer.