Finely cut the ham and pineapple. Mix with cream cheese, salt, pepper and herbs.
Preheat the oven to 220 ° C. Unroll the puff pastry, spread half of the cream cheese and pineapple mixture on top and spread on it. Roll up and cut into approx. 20 slices. Transfer the snails to a baking sheet lined with baking paper and sprinkle with grated cheese if necessary. Do the same with the second sheet of puff pastry and the remaining half of the mixture.
Bake the snails in the oven for 19-20 minutes. The snails can be eaten hot and cold.