A non-transitory computer-readable storage medium storing a computer program for controlling a printing apparatus for printing an image on a sheet based on image data and conveying a sheet on which the image is printed to a post-processing apparatus configured to cut the sheet, which, when executed by a computer, cause the computer to perform operations comprising:
- displaying the image data;
- editing the displayed image data;
- obtaining information about a cut position at which the post-processing apparatus cuts the sheet;
- and
- executing control for permitting editing of a first region, which is a region to be cut off by the post-processing apparatus according to the obtained information and for restricting editing of a second region not to be cut off by the post-processing apparatus according to the obtained information.