Thaw the puff pastry. Cook the vanilla pudding from milk and sugar according to the instructions on the packet and let it cool.
Cut the puff pastry into squares (12 x 12 cm). Stir the pudding until smooth and divide it into the middle of the dough pieces. Place one pineapple slice per puff pastry on top of the pudding and place on a baking tray lined with baking paper. Brush the puff pastry with the beaten egg.
Bake in the preheated oven at 175 ° C for about 15 minutes. Brush the hot pastries with the apricot jam.