A method for automatically forming packaging boxes and packaging at least one article (67,68) therein, said method comprising the steps of: conveying said at least one article by means of an input conveyor in a conveying direction; obtaining the overall length, width and height dimensions of said at least one article; from a device providing said data; by means of a feeding conveyor feeding blank material in a feeding direction from a storage of blank material to a blank forming station comprising a blank forming apparatus for forming a custom sized blank and by means of said blank forming apparatus forming a custom sized blank having a rectangular bottom panel and rectangular side (42,43) and end panels (44,45) based on the length, width and height dimensions; providing at least four folding units at a supporting station downstream of the conveyor in conveying direction; feeding the custom sized blank into the supporting station and feeding the custom sized blank onto the at least four folding units such that the folding units support the rectangular bottom panel; and conveying the at least one article onto the bottom panel supported by the folding units; wherein the at least four folding units comprise a front pair (82,83) of folding units and a rear pair (80,81) of folding units positioned upstream at a longitudinal distance from the front pair of folding units seen in conveying direction, wherein the folding units of the front pair are positioned at a transverse distance from each other, and wherein the folding units of the rear pair are positioned at a transverse distance from each other; wherein the method comprises the step of adjusting said longitudinal distance and/or said transverse distances based on the length and width dimensions, respectively; and wherein the step of adjusting the longitudinal distance between the rear and front folding units is performed during feeding of the custom sized blank into the supporting station. conveying said at least one article by means of an input conveyor in a conveying direction; obtaining the overall length, width and height dimensions of said at least one article; from a device providing said data; by means of a feeding conveyor feeding blank material in a feeding direction from a storage of blank material to a blank forming station comprising a blank forming apparatus for forming a custom sized blank and by means of said blank forming apparatus forming a custom sized blank having a rectangular bottom panel and rectangular side (42,43) and end panels (44,45) based on the length, width and height dimensions; providing at least four folding units at a supporting station downstream of the conveyor in conveying direction; feeding the custom sized blank into the supporting station and feeding the custom sized blank onto the at least four folding units such that the folding units support the rectangular bottom panel; and conveying the at least one article onto the bottom panel supported by the folding units; wherein the at least four folding units comprise a front pair (82,83) of folding units and a rear pair (80,81) of folding units positioned upstream at a longitudinal distance from the front pair of folding units seen in conveying direction, wherein the folding units of the front pair are positioned at a transverse distance from each other, and wherein the folding units of the rear pair are positioned at a transverse distance from each other; wherein the method comprises the step of adjusting said longitudinal distance and/or said transverse distances based on the length and width dimensions, respectively; and wherein the step of adjusting the longitudinal distance between the rear and front folding units is performed during feeding of the custom sized blank into the supporting station.