The device comprises an assembly (a) of imprints (a1) disposed perimetrically on a rotational apparatus (b) around a vertical axis (b2). The assembly is present in a filling position and then in a deposit position, where the filling and depositing operations are carried out by gravity. The different imprints of the same assembly are disposed side by side of the determined distance. The bottom of the imprint is an automatically activated slide valve. A pressing unit is arranged inside the imprints, and is constituted of a piston to be vertically displaced and engaged in the imprint. The device comprises an assembly (a) of imprints (a1) disposed perimetrically on a rotational apparatus (b) around a vertical axis (b2). The assembly is present in a filling position and then in a deposit position, where the filling and depositing operations are carried out by gravity. The different imprints of the same assembly are disposed side by side of the determined distance. The bottom of the imprint is an automatically activated slide valve. A pressing unit is arranged inside the imprints, and is constituted of a piston to be vertically displaced and engaged in the imprint under the rolling of pebble. The rotation of the apparatus takes place on a cam fixed itself on a perimeter of the apparatus. The imprint is subjected to a pressure lower than the atmospheric pressure, and manually or automatically filled with a malleable or pastry product, a portion comprising segments or non-divided little products using a slicer machine pump.