A printer, comprising: a printing head which prints on a roll paper; a cutting unit, disposed on a downstream side in a conveyance direction of the roll paper from the printing head, and which cuts the roll paper; a first input unit which sequentially receives an input of printing information to be printed by the printing head; and a storage control unit which sequentially stores the printing information received by the first input unit in a storage medium; characterized in that the printer comprises: a first printing control unit which causes the printing head to sequentially print the printing information of an excess portion stored in the storage medium while leaving the printing information of a length indicated by a setting value when cut request of the roll paper is received, on condition that a total sum of lengths in the conveyance direction of pieces of the printing information stored in the storage medium is equal to or more than the setting value; a cutting control unit which causes the cutting unit to cut the roll paper on condition that a total sum of lengths in the conveyance direction of the printing information which is stored in the storage medium but not printed is the setting value when a cut request of the roll paper is received; and a second printing control unit which causes the printing head to print the printing information which is stored in the storage medium but not printed on condition that the cutting control unit causes the cutting unit to cut the roll paper. a printing head which prints on a roll paper; a cutting unit, disposed on a downstream side in a conveyance direction of the roll paper from the printing head, and which cuts the roll paper; a first input unit which sequentially receives an input of printing information to be printed by the printing head; and a storage control unit which sequentially stores the printing information received by the first input unit in a storage medium; characterized in that the printer comprises: a first printing control unit which causes the printing head to sequentially print the printing information of an excess portion stored in the storage medium while leaving the printing information of a length indicated by a setting value when cut request of the roll paper is received, on condition that a total sum of lengths in the conveyance direction of pieces of the printing information stored in the storage medium is equal to or more than the setting value; a cutting control unit which causes the cutting unit to cut the roll paper on condition that a total sum of lengths in the conveyance direction of the printing information which is stored in the storage medium but not printed is the setting value when a cut request of the roll paper is received; and a second printing control unit which causes the printing head to print the printing information which is stored in the storage medium but not printed on condition that the cutting control unit causes the cutting unit to cut the roll paper. a first printing control unit which causes the printing head to sequentially print the printing information of an excess portion stored in the storage medium while leaving the printing information of a length indicated by a setting value when cut request of the roll paper is received, on condition that a total sum of lengths in the conveyance direction of pieces of the printing information stored in the storage medium is equal to or more than the setting value; a cutting control unit which causes the cutting unit to cut the roll paper on condition that a total sum of lengths in the conveyance direction of the printing information which is stored in the storage medium but not printed is the setting value when a cut request of the roll paper is received; and a second printing control unit which causes the printing head to print the printing information which is stored in the storage medium but not printed on condition that the cutting control unit causes the cutting unit to cut the roll paper.