The invention relates to a pharmaceutical dosage form having a density below the density of gastric fluid, wherein the dosage form comprises a pharmacologically active ingredient and a cavity. The invention also relates to a process for the preparation of said dosage form comprising a three-dimensional printing step.