Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JP7600826B2 - Programs and Printers - Google Patents
[go: Go Back, main page]

JP7600826B2 - Programs and Printers - Google Patents

Programs and Printers Download PDF

Info

Publication number
JP7600826B2
JP7600826B2 JP2021059350A JP2021059350A JP7600826B2 JP 7600826 B2 JP7600826 B2 JP 7600826B2 JP 2021059350 A JP2021059350 A JP 2021059350A JP 2021059350 A JP2021059350 A JP 2021059350A JP 7600826 B2 JP7600826 B2 JP 7600826B2
Authority
JP
Japan
Prior art keywords
paper
print
margin
printer
shortening
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
JP2021059350A
Other languages
Japanese (ja)
Other versions
JP2022155907A (en
Inventor
裕詞 市川
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Brother Industries Ltd
Original Assignee
Brother Industries Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Brother Industries Ltd filed Critical Brother Industries Ltd
Priority to JP2021059350A priority Critical patent/JP7600826B2/en
Publication of JP2022155907A publication Critical patent/JP2022155907A/en
Application granted granted Critical
Publication of JP7600826B2 publication Critical patent/JP7600826B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Accessory Devices And Overall Control Thereof (AREA)
  • Facsimiles In General (AREA)
  • Editing Of Facsimile Originals (AREA)

Description

本明細書に開示される技術分野は、印刷設定を受け付けるプログラムおよびプリンタに関する。 The technical field disclosed in this specification relates to a program and a printer that accepts print settings.

パーソナルコンピュータ等の情報処理装置に組み込まれたプリンタドライバによって、用紙サイズおよび給紙方法の設定を受け付ける技術が知られている。用紙サイズにて設定可能な選択肢には、一般的な定形紙の他、ユーザによって定義されるユーザ定義サイズが含まれる場合がある。また、給紙方法にて選択可能な選択肢には、例えば特許文献1に開示されているように、定形紙を給紙可能な給紙トレイの他、ロール紙を給紙可能なトレイが含まれる場合がある。 There is known technology that accepts settings for paper size and paper feed method using a printer driver built into an information processing device such as a personal computer. Options that can be set for paper size may include common standard paper sizes as well as user-defined sizes defined by the user. Also, options that can be selected for paper feed method may include paper feed trays that can feed standard paper as well as trays that can feed roll paper, as disclosed in Patent Document 1, for example.

特開2004-102961号公報JP 2004-102961 A

用紙サイズとして定形紙が選択された印刷ジョブを実行する場合、その定形紙のサイズに対して余白が大きくなる画像の印刷を行うと、余白分の紙の無駄が大きい。特許文献1には、プリンタにおける給紙状態とプリンタドライバにおける印刷設定とのミスマッチを警告する技術が開示されているが、余白の大きさに対する技術は開示されていない。そのため、資源を有効活用する上で改善の余地がある。 When executing a print job in which standard paper has been selected as the paper size, if an image is printed with large margins relative to the size of that standard paper, a large amount of paper is wasted due to the margins. Patent Document 1 discloses a technology that warns of a mismatch between the paper feed state in the printer and the print settings in the printer driver, but does not disclose any technology for the size of the margins. Therefore, there is room for improvement in terms of making effective use of resources.

本明細書は、定形紙およびロール紙への印刷が可能なプリンタを制御するためのプログラムにおいて、画像を印刷する際の余白による無駄を低減させる技術を開示する。 This specification discloses a technology that reduces waste due to margins when printing an image in a program for controlling a printer capable of printing on standard paper and roll paper.

上述した課題の解決を目的としてなされたプログラムは、情報処理装置のコンピュータによって実行可能なプログラムであって、前記コンピュータに、プリンタでの印刷に用いる印刷設定を、前記情報処理装置のユーザインタフェースを介して受け付ける受付処理を実行させ、前記印刷設定には、用紙サイズと給紙方法とが含まれ、前記給紙方法で選択可能な選択肢には、ロール紙を搬送可能な特定トレイが含まれ、前記プリンタは、前記特定のトレイを含む複数のトレイを有するものであり、さらに前記コンピュータに、前記印刷設定のうち前記用紙サイズに定形紙を示すサイズが設定されている状態で、印刷指示を受け付けた場合に、前記印刷指示にて印刷対象となる画像を示す印刷データに基づいて、前記プリンタでの用紙の搬送方向の後端側の余白である後端余白についての、前記搬送方向の長さを特定する余白特定処理と、前記余白特定処理にて特定された前記後端余白についての前記搬送方向の長さに基づく第1判定値が第1閾値よりも大きいか否かを判定する第1判定処理と、前記第1判定処理にて前記第1判定値が前記第1閾値よりも大きいと判定された場合に、前記印刷設定のうち前記給紙方法を前記特定トレイに変更する変更処理と、前記変更処理による前記給紙方法の変更が行われた場合に、前記印刷データのうち前記後端余白の少なくとも一部を除去することで、前記後端余白の前記搬送方向の長さを短縮する短縮処理と、を実行させる。 The program made for the purpose of solving the above-mentioned problem is a program executable by a computer of an information processing device, and causes the computer to execute a reception process for receiving print settings to be used for printing on a printer via a user interface of the information processing device, the print settings include a paper size and a paper feed method, and the options selectable for the paper feed method include a specific tray capable of transporting roll paper, the printer has multiple trays including the specific tray, and further causes the computer to execute a process for receiving a print instruction when a size indicating a standard size paper is set as the paper size in the print settings, and the print instruction indicates an image to be printed. The printer executes a margin identification process that identifies the length of the trailing margin, which is the margin on the trailing end side of the paper in the transport direction on the printer, based on the print data; a first determination process that determines whether a first determination value based on the length of the trailing margin in the transport direction identified in the margin identification process is greater than a first threshold value; a change process that changes the paper feed method in the print settings to the specific tray when it is determined in the first determination process that the first determination value is greater than the first threshold value; and a shortening process that shortens the length of the trailing margin in the transport direction by removing at least a portion of the trailing margin in the print data when the paper feed method is changed by the change process.

上述の構成によれば、後端余白の搬送方向の長さに基づく第1判定値が第1閾値よりも大きい場合に、給紙方法を特定トレイに変更することで、印刷指示に対応する画像についてロール紙に印刷されることになり、さらに後端余白の搬送方向の長さを短縮することで、プリンタでは、後端余白を短縮しない場合と比較して、そのロール紙への印刷において印刷指示に対応する画像の印刷に必要なロール紙のフィード量が少なくなり、紙の無駄を低減することができる。 According to the above-mentioned configuration, when the first judgment value based on the length of the trailing margin in the transport direction is greater than the first threshold value, the paper feed method is changed to a specific tray, so that the image corresponding to the print instruction is printed on the roll paper. Furthermore, by shortening the length of the trailing margin in the transport direction, the printer is able to reduce the amount of roll paper feed required to print the image corresponding to the print instruction when printing on that roll paper, compared to when the trailing margin is not shortened, thereby reducing paper waste.

上記装置の機能を実現するためのプリンタも、新規で有用である。 A printer that realizes the functions of the above device is also new and useful.

本明細書に開示される技術によれば、定形紙およびロール紙への印刷が可能なプリンタを制御するためのプログラムにおいて、画像を印刷する際の余白による無駄を低減させる技術が実現される。 The technology disclosed in this specification realizes a technology that reduces waste due to margins when printing an image in a program for controlling a printer capable of printing on standard paper and roll paper.

(A)実施の形態にかかるパーソナルコンピュータの電気的な概略構成図である。(B)ユーザインタフェースの一例を示す外観図である。1A is a schematic diagram illustrating an electrical configuration of a personal computer according to an embodiment of the present invention, and FIG. 印刷設定を設定するための印刷設定画面の例を示す説明図である。FIG. 11 is an explanatory diagram showing an example of a print setting screen for setting print settings. 特殊機能設定画面の例を示す説明図である。FIG. 13 is an explanatory diagram showing an example of a special function setting screen. プリンタの概略的な外観図である。FIG. 1 is a schematic external view of a printer. プリンタの電気的構成を示すブロック図である。FIG. 2 is a block diagram showing the electrical configuration of the printer. パーソナルコンピュータでの印刷処理の手順を示すフローチャートである。6 is a flowchart showing a procedure of a printing process in a personal computer. (A)印刷領域における余白の状態と、用紙への印刷状況との関係を説明するための説明図である。(B)印刷領域における余白の状態と、用紙への印刷状況との関係を説明するための説明図である。(C)印刷領域における余白の状態と、用紙への印刷状況との関係を説明するための説明図である。(A) An explanatory diagram for explaining the relationship between the state of the margins in the print area and the printing status on the paper. (B) An explanatory diagram for explaining the relationship between the state of the margins in the print area and the printing status on the paper. (C) An explanatory diagram for explaining the relationship between the state of the margins in the print area and the printing status on the paper. (A)プレビュー画面の例を示す説明図である。(B)プレビュー画面の例を示す説明図である。1A and 1B are explanatory diagrams showing an example of a preview screen; パーソナルコンピュータの印刷処理の手順を示すフローチャートである。6 is a flowchart showing a procedure of a printing process of a personal computer. プリンタの印刷処理の手順を示すフローチャートである。4 is a flowchart showing the procedure of a printing process of a printer.

(第1実施形態)
以下、プログラムを具体化した実施の形態について、添付図面を参照しつつ詳細に説明する。本形態は、印刷機能を有する装置であるプリンタに接続可能なパーソナルコンピュータ(以下、「PC」とする)にて実行されるプログラムを開示するものである。
First Embodiment
Hereinafter, an embodiment of a program embodied in the program will be described in detail with reference to the accompanying drawings. The embodiment discloses a program executed on a personal computer (hereinafter, referred to as a "PC") that can be connected to a printer, which is a device having a printing function.

本形態のPC2は、プリンタ3に各種の機能を行わせるために、各種のアプリケーションプログラム(以下、「アプリ」とする)を実行可能な装置である。PC2は、情報処理装置の一例である。PC2に代えて、例えば、スマートフォン、タブレットコンピュータであっても良い。 The PC 2 in this embodiment is a device capable of executing various application programs (hereinafter, referred to as "apps") to cause the printer 3 to perform various functions. The PC 2 is an example of an information processing device. Instead of the PC 2, for example, a smartphone or a tablet computer may be used.

PC2は、図1(A)に示すように、CPU21と、メモリ24と、を含む制御部20を備えている。さらに、PC2は、通信インタフェース(以下、「通信IF」とする)26と、ユーザインタフェース(以下、「ユーザIF」とする)28と、を備え、これらが制御部20に電気的に接続されている。なお、図1(A)中の制御部20は、PC2の制御に利用されるハードウェアやソフトウェアを纏めた総称であって、実際にPC2に存在する単一のハードウェアを表すとは限らない。 As shown in FIG. 1(A), PC 2 is equipped with a control unit 20 including a CPU 21 and a memory 24. Furthermore, PC 2 is equipped with a communication interface (hereinafter referred to as "communication IF") 26 and a user interface (hereinafter referred to as "user IF") 28, which are electrically connected to the control unit 20. Note that the control unit 20 in FIG. 1(A) is a general term for the hardware and software used to control PC 2, and does not necessarily represent a single piece of hardware that actually exists in PC 2.

CPU21は、メモリ24から読み出したプログラムに従って、また、ユーザの操作に基づいて、各種の処理を実行する。なお、CPU21は、コンピュータの一例である。メモリ24は、例えば、HDD、フラッシュメモリであり、各種のプログラム、画像データや文書データ等のデータ、各種設定を記憶する領域として利用される。CPU21が備えるバッファも、メモリの一例である。 The CPU 21 executes various processes according to the programs read from the memory 24 and based on the user's operations. The CPU 21 is an example of a computer. The memory 24 is, for example, a HDD or a flash memory, and is used as an area for storing various programs, data such as image data and document data, and various settings. The buffer provided in the CPU 21 is also an example of a memory.

メモリの一例は、コンピュータが読み取り可能なストレージ媒体であってもよい。コンピュータが読み取り可能なストレージ媒体とは、non-transitoryな媒体である。non-transitoryな媒体には、上記の例の他に、CD-ROM、DVD-ROM等の記録媒体も含まれる。 An example of memory may be a computer-readable storage medium. A computer-readable storage medium is a non-transitory medium. In addition to the above examples, non-transitory media also include recording media such as CD-ROMs and DVD-ROMs.

通信IF26は、プリンタ3等の外部装置との通信を行うためのハードウェアを含む。通信IF26の通信方式は、無線でも有線でもよく、Wi-Fi(登録商標)、Bluetooth(登録商標)、USB、LAN等、どのような規格の方式でもよい。 The communication IF 26 includes hardware for communicating with an external device such as the printer 3. The communication method of the communication IF 26 may be wireless or wired, and may be any standard method such as Wi-Fi (registered trademark), Bluetooth (registered trademark), USB, LAN, etc.

ユーザIF28は、情報を画面に表示するハードウェアと、ユーザによる入力操作を受け付けるハードウェアと、を含む。ユーザIF28は、例えば、図1(B)に示すように、情報を画面に表示するためのディスプレイ28Aと、ユーザによる入力操作を受け付けるキーボード28Bおよびマウス28C等との組み合わせであっても良いし、表示機能と入力受付機能とを備えるタッチパネルであっても良い。 The user IF 28 includes hardware that displays information on a screen and hardware that accepts input operations by the user. For example, as shown in FIG. 1(B), the user IF 28 may be a combination of a display 28A for displaying information on a screen and a keyboard 28B and a mouse 28C for accepting input operations by the user, or may be a touch panel equipped with a display function and an input acceptance function.

本形態のPC2のメモリ24には、図1(A)に示すように、オペレーティングシステム(以下、「OS」とする)41と、印刷アプリ42と、プリンタドライバ43と、が組み込まれている。OS41は、例えば、Windows(登録商標)、macOS(登録商標)、iOS(登録商標)、Android(登録商標)、Linux(登録商標)である。 As shown in FIG. 1A, the memory 24 of the PC 2 of this embodiment incorporates an operating system (hereinafter, "OS") 41, a print application 42, and a printer driver 43. The OS 41 is, for example, Windows (registered trademark), MacOS (registered trademark), iOS (registered trademark), Android (registered trademark), or Linux (registered trademark).

印刷アプリ42は、印刷に関する各種の指示を受け付けるプログラムである。印刷アプリ42は、例えば、印刷を行わせるプリンタ3の指定、印刷部数の指定、印刷範囲の指定、印刷実行の指示、を受け付ける。さらに、印刷対象の用紙の種類やサイズの指定、両面印刷の指示等を受け付けてもよい。 The print application 42 is a program that accepts various instructions related to printing. For example, the print application 42 accepts the specification of the printer 3 to be used for printing, the specification of the number of copies to be printed, the specification of the print range, and an instruction to execute printing. In addition, the print application 42 may also accept the specification of the type and size of paper to be printed on, an instruction to print on both sides, etc.

プリンタドライバ43は、プリンタ3に対応するプログラムであり、通信IF26を介してプリンタ3と通信を行って、プリンタ3の動作を制御するプログラムである。プリンタドライバ43は、例えば、印刷アプリ42等にてプリンタ3が指定された状態で、プリンタ3のプロパティ設定の指示を受け付けた場合に起動される。 The printer driver 43 is a program corresponding to the printer 3, and communicates with the printer 3 via the communication IF 26 to control the operation of the printer 3. The printer driver 43 is started, for example, when the printer 3 is specified in the print application 42 or the like and an instruction to set the properties of the printer 3 is received.

プリンタドライバ43が起動されると、CPU21は、ディスプレイ28A上に、例えば、図2に一例として示す印刷設定画面51を表示する。印刷設定画面51の基本タブ51A上には、例えば、用紙種類の選択欄511、印刷品質の選択欄512、用紙サイズの選択欄513と、ふちなし印刷の選択欄514と、部数の選択欄515と、給紙方法の選択欄516と、その他特殊機能の選択欄517と、OKボタン518と、キャンセルボタン519と、印刷プレビューの選択欄520と、が表示される。CPU21は、ユーザの、キーボード28Bやマウス28Cの操作を通じて印刷設定画面51に表示した各選択欄や各ボタンへの操作を受け付ける。したがって、ユーザは、プリンタ3での印刷に用いる印刷設定を設定することができる。 When the printer driver 43 is started, the CPU 21 displays a print setting screen 51, for example, shown as an example in FIG. 2, on the display 28A. On the basic tab 51A of the print setting screen 51, for example, a paper type selection field 511, a print quality selection field 512, a paper size selection field 513, a borderless printing selection field 514, a number of copies selection field 515, a paper feed method selection field 516, a selection field for other special functions 517, an OK button 518, a cancel button 519, and a print preview selection field 520 are displayed. The CPU 21 accepts user operations on each selection field and each button displayed on the print setting screen 51 through operation of the keyboard 28B or mouse 28C. Thus, the user can set the print settings to be used for printing on the printer 3.

具体的には、用紙種類の選択欄511では、ユーザは、普通紙、光沢紙、インクジェット紙、ロール紙などの何れか1つを選択することができる。 Specifically, in the paper type selection field 511, the user can select one of plain paper, glossy paper, inkjet paper, roll paper, etc.

また、用紙サイズの選択欄513では、ユーザは、プレカットされた定形サイズの用紙名、例えば、A4、B4、A5、B5、A6、Letter、Legal、A3、などの何れか1つを選択することができる。また、用紙サイズの選択欄513では、ユーザは、ロール紙を選択することができる。また、用紙サイズの選択欄513では、ユーザが用紙の用紙幅および用紙高さを任意で指定したユーザ定義サイズを選択することができる。 In addition, in the paper size selection field 513, the user can select one of the names of pre-cut standard size paper, for example, A4, B4, A5, B5, A6, Letter, Legal, A3, etc. In addition, in the paper size selection field 513, the user can select roll paper. In addition, in the paper size selection field 513, the user can select a user-defined size in which the user arbitrarily specifies the paper width and paper height.

また、給紙方法の選択欄516では、ユーザは、プリンタ3の給紙トレイ、すなわち、後述する、図4に示すところの、多目的トレイ3A、第1トレイ3Bおよび第2トレイ3Cの何れか1つの選択、もしくは、給紙トレイの選択をプリンタ3で行う「自動選択」を選択することができる。 In addition, in the paper feed method selection field 516, the user can select the paper feed tray of the printer 3, i.e., one of the multipurpose tray 3A, the first tray 3B, and the second tray 3C shown in FIG. 4, which will be described later, or select "automatic selection," which allows the printer 3 to select the paper feed tray.

また、ふちなし印刷の選択欄514では、ユーザは、用紙の周辺において余白が発生しない、所謂、ふちなし印刷を実行するか否かを選択することができる。 In addition, in the borderless printing selection field 514, the user can select whether or not to perform borderless printing, which means that there are no margins around the edges of the paper.

また、その他特殊機能の選択欄517では、ユーザは、例えば、図3に一例を示すところの特殊機能設定画面52をディスプレイ28A上に表示するか否かを選択することができる。 In addition, in the other special functions selection field 517, the user can select whether or not to display the special functions setting screen 52, an example of which is shown in FIG. 3, on the display 28A.

ユーザが、その他特殊機能の選択欄517において特殊機能設定画面52の表示を選択すると、CPU21は、ディスプレイ28A上に、例えば、図3に示す、特殊機能選択欄521を備える特殊機能設定画面52を表示する。図3に示す特殊機能設定画面52は、特殊機能選択欄521において、ユーザが「ロール紙を用いて余白を削除する」欄527を選択した状態を示す。この状態では、CPU21は、特殊機能設定画面52に、例えば、余白削除選択欄522、余白確認選択欄523、余白の閾値選択欄524、OKボタン525およびキャンセルボタン526などを表示する。CPU21は、ユーザの、キーボード28Bやマウス28Cの操作を通じて特殊機能設定画面52上に表示した各選択欄や各ボタンへの操作を受け付ける。したがって、ユーザは、プリンタ3での印刷に用いる、印刷設定の一部であるところの、特殊機能設定を設定することができる。 When the user selects to display the special function setting screen 52 in the other special function selection field 517, the CPU 21 displays the special function setting screen 52, which includes the special function selection field 521 shown in FIG. 3, on the display 28A. The special function setting screen 52 shown in FIG. 3 shows a state in which the user has selected the "Delete margins using roll paper" field 527 in the special function selection field 521. In this state, the CPU 21 displays, for example, a margin deletion selection field 522, a margin confirmation selection field 523, a margin threshold selection field 524, an OK button 525, and a cancel button 526 on the special function setting screen 52. The CPU 21 accepts the user's operation of each selection field and each button displayed on the special function setting screen 52 through the operation of the keyboard 28B or the mouse 28C. Thus, the user can set the special function settings, which are part of the print settings used for printing on the printer 3.

具体的には、余白削除選択欄522では、ユーザは、ロール紙を用いて余白を削除するか否かを選択することができる。また、余白確認選択欄523では、ユーザは、「頁ごとに余白を確認」か、または、「末尾の頁のみ余白を確認」を選択することができる。また、余白の閾値選択欄524では、ユーザは、余白を削除するか否かの決定に用いる、余白の閾値を選択することができる。 Specifically, in the margin deletion selection field 522, the user can select whether or not to delete margins using roll paper. In addition, in the margin confirmation selection field 523, the user can select either "check margins for each page" or "check margins only on the last page." In addition, in the margin threshold selection field 524, the user can select the margin threshold used to determine whether or not to delete margins.

また、プリンタドライバ43は、OS41から印刷指示情報を受け付けた場合、印刷指示情報にて指定されている画像データに基づいて、印刷データを生成する。また、プリンタドライバ43は、生成した印刷データ、印刷設定画面51などにおいて設定された印刷設定などを含む印刷ジョブをプリンタ3に送信する。 When the printer driver 43 receives print instruction information from the OS 41, the printer driver 43 generates print data based on the image data specified in the print instruction information. The printer driver 43 also transmits a print job including the generated print data and the print settings set on the print setting screen 51, etc., to the printer 3.

プリンタ3は、少なくともインクジェット方式の印刷機能と、PC2との通信を行う通信機能と、を有する装置であり、PC2から送信された印刷ジョブに基づいて印刷が可能である。プリンタ3の印刷機能にて印刷可能な用紙サイズの範囲には、所定の制限がある。なお、以下では、用紙サイズのうち、プリンタ3での用紙の搬送方向のサイズを「用紙高さ」、用紙高さに直交する方向のサイズを「用紙幅」とする。また、用紙サイズの範囲は、用紙高さの範囲と用紙幅の範囲とを含み、プリンタ3は、用紙高さと用紙幅とのいずれもが範囲内である用紙への印刷が可能である。 Printer 3 is a device that has at least an inkjet printing function and a communication function for communicating with PC 2, and is capable of printing based on a print job sent from PC 2. There are certain limitations on the range of paper sizes that can be printed using the printing function of Printer 3. In the following, the size of the paper in the direction in which the paper is transported by Printer 3 is referred to as the "paper height," and the size in the direction perpendicular to the paper height is referred to as the "paper width." The range of paper sizes includes the range of paper heights and the range of paper widths, and Printer 3 is capable of printing on paper that is within both the paper height and paper width ranges.

図4は、プリンタの概略的な外観図である。すなわち、本形態のプリンタ3は、3つのタイプのトレイから成る給紙トレイを備える。具体的には、給紙トレイの3つのタイプのトレイとして、多目的トレイ3Aと、第1トレイ3Bと、第2トレイ3Cを備える。また、プリンタ3は、排紙トレイ3Dを備え、給紙トレイの各トレイから給紙された用紙は、搬送機構によって、プリンタ3の印刷機能を担う印刷機構61(図5に示す)を通って排紙トレイ3D上に排出される。 Figure 4 is a schematic external view of the printer. That is, the printer 3 of this embodiment has a paper feed tray consisting of three types of trays. Specifically, the three types of paper feed trays are a multipurpose tray 3A, a first tray 3B, and a second tray 3C. The printer 3 also has a paper output tray 3D, and paper fed from each tray of the paper feed tray is discharged onto the paper output tray 3D by a transport mechanism through a printing mechanism 61 (shown in Figure 5) that handles the printing function of the printer 3.

具体的には、プリンタ3において、多目的トレイ3Aから排紙トレイ3Dに至る第1搬送機構62(図5に示す)は、略ストレートに配置された、所謂、ストレートパスによって構成されている。したがって、多目的トレイ3Aは、例えば、A4、B4、A5、B5、A6、Letter、Legal、A3、長尺紙(297mm×600mm)および長尺紙(297mm×1200mm)などの多種類の用紙サイズの用紙を供給可能である。 Specifically, in the printer 3, the first transport mechanism 62 (shown in FIG. 5) from the multipurpose tray 3A to the paper discharge tray 3D is configured with a so-called straight path that is arranged in a substantially straight line. Therefore, the multipurpose tray 3A can supply paper of many different paper sizes, such as A4, B4, A5, B5, A6, Letter, Legal, A3, long paper (297mm x 600mm), and long paper (297mm x 1200mm).

一方、プリンタ3において、第1トレイ3Bから排紙トレイ3Dに至る第2搬送機構63(図5に示す)は、その途中において搬送方向が略180度大きく反転する、所謂、U字状パスによって構成されている。したがって、第1トレイ3Bは、用紙サイズとして長尺紙(297mm×600mm)および長尺紙(297mm×1200mm)というサイズの印刷媒体を給紙することができない。 On the other hand, in the printer 3, the second transport mechanism 63 (shown in FIG. 5) that runs from the first tray 3B to the discharge tray 3D is configured with a so-called U-shaped path, in which the transport direction is reversed by approximately 180 degrees along the way. Therefore, the first tray 3B cannot feed print media with paper sizes of long paper (297 mm x 600 mm) and long paper (297 mm x 1200 mm).

また、第2トレイ3Cは、ロール状に巻かれた長尺状(例えば、長さ5m)のロール紙を供給可能なロール紙用のトレイである。また、第2トレイ3Cから排紙トレイ3Dに至る第3搬送機構64(図5に示す)は、ロール状の長尺状の用紙を、搬送方向の所定の寸法(用紙高さ)で切断するための切断機構65(図5に示す)を備えている。また、第3搬送機構64は、ロール紙の巻き癖、すなわち、カールを補正するためのカール補正機構(図示せず)を備える。また、第2トレイ3Cは、定型サイズの用紙、つまり定型用紙の用紙幅と同じ寸法の用紙幅を有する長尺状のロール紙を収容することができる。例えば、A4サイズの用紙幅と同じ用紙幅のロール紙であれば、用紙幅が210mmである。 The second tray 3C is a tray for roll paper that can supply rolled, long (e.g., 5 m long) roll paper. The third transport mechanism 64 (shown in FIG. 5) that runs from the second tray 3C to the paper output tray 3D is equipped with a cutting mechanism 65 (shown in FIG. 5) for cutting the rolled, long paper to a specified dimension (paper height) in the transport direction. The third transport mechanism 64 is also equipped with a curl correction mechanism (not shown) for correcting the curl of the roll paper. The second tray 3C can also store standard-sized paper, that is, long roll paper with a paper width the same as that of standard-sized paper. For example, the roll paper with the same paper width as A4 size paper has a paper width of 210 mm.

また、本形態のプリンタ3は、多目的トレイ3A、第1トレイ3Bおよび第2トレイ3Cに、用紙サイズセンサ38(図5に示す)をそれぞれ備える。したがって、プリンタ3は、各トレイごとに、用紙サイズセンサ38によって、そのトレイに用紙がセットされているか否か、さらには、そのトレイにセットされている用紙の用紙サイズを検出することができる。そして、プリンタ3は、給紙トレイの各トレイごとに、検出された用紙の用紙サイズを記憶している。また、ユーザは、プリンタ3の操作パネルを操作することにより、給紙トレイのトレイごとに、そこにセットされている用紙の用紙サイズを記憶させることができる。なお、プリンタ3は、第2トレイ3Cについては、収容するロール紙の用紙幅のみを記憶する。 The printer 3 of this embodiment also includes a paper size sensor 38 (shown in FIG. 5) on each of the multipurpose tray 3A, the first tray 3B, and the second tray 3C. Therefore, the printer 3 can use the paper size sensor 38 for each tray to detect whether paper is set in that tray and the size of the paper set in that tray. The printer 3 stores the detected paper size for each paper feed tray. The user can also store the paper size of the paper set in each paper feed tray by operating the operation panel of the printer 3. Note that the printer 3 stores only the paper width of the roll paper stored in the second tray 3C.

したがって、本形態のプリンタ3は、PC2から印刷ジョブを受信した場合には、印刷ジョブに含まれる印刷設定に基づいて給紙トレイの1つトレイを選択する。つまり、印刷設定に含まれる給紙方法により指定された給紙トレイの1つトレイを選択する。そして、選択した給紙トレイのトレイから用紙を給紙し、印刷を可能としている。また、PC2から受信した印刷ジョブに含まれる印刷設定に、給紙方法として自動選択が含まれる場合には、給紙トレイの各トレイごとに記憶された用紙の用紙サイズに基づいて、給紙トレイの1つのトレイを選択し、そして、選択したトレイから、印刷設定に設定された用紙サイズの用紙を給紙することが可能である。 Therefore, when the printer 3 of this embodiment receives a print job from the PC 2, it selects one of the paper feed trays based on the print settings included in the print job. In other words, it selects one of the paper feed trays specified by the paper feed method included in the print settings. Then, it feeds paper from the selected paper feed tray, making it possible to print. Also, if the print settings included in the print job received from the PC 2 include automatic selection as the paper feed method, it is possible to select one of the paper feed trays based on the paper size stored for each paper feed tray, and feed paper of the paper size set in the print settings from the selected tray.

図5は、プリンタの電気的構成を示すブロック図であり、続いて、プリンタ3の電気的構成について、図5を参照しながら説明する。 Figure 5 is a block diagram showing the electrical configuration of the printer. Next, the electrical configuration of printer 3 will be explained with reference to Figure 5.

すなわち、プリンタ3は、CPU31と、ROM32と、RAM33と、NVRAM(不揮発性RAM)34とを含むコントローラ30を備えている。また、プリンタ3は、ユーザインタフェース(以下、「ユーザIF」とする)35と、通信インターフェース(以下、「通信IF」とする)36と、USBインターフェース(以下、「USBIF」とする)37と、用紙サイズセンサ38と、を備え、これらがコントローラ30に電気的に接続されている。 That is, the printer 3 has a controller 30 including a CPU 31, a ROM 32, a RAM 33, and an NVRAM (non-volatile RAM) 34. The printer 3 also has a user interface (hereinafter referred to as "user IF") 35, a communication interface (hereinafter referred to as "communication IF") 36, a USB interface (hereinafter referred to as "USB IF") 37, and a paper size sensor 38, which are electrically connected to the controller 30.

ROM32には、プリンタ3を制御するための各種制御プログラムや各種設定、初期値等が記憶されている。RAM33は、各種制御プログラムが読み出される作業領域として、あるいは、データを一時的に記憶する記憶領域として利用される。CPU31は、ROM32から読み出した制御プログラムに従って、その処理結果をRAM33またはNVRAM34に記憶させながら、プリンタ3の各構成要素を制御する。なお、RAM33またはNVRAM34によって記憶部が構成される。 The ROM 32 stores various control programs for controlling the printer 3, various settings, initial values, etc. The RAM 33 is used as a working area from which the various control programs are read, or as a storage area for temporarily storing data. The CPU 31 controls each component of the printer 3 according to the control programs read from the ROM 32, while storing the processing results in the RAM 33 or the NVRAM 34. The RAM 33 or the NVRAM 34 constitutes the storage unit.

CPU31は、制御部の一例である。コントローラ30が制御部の一例であってもよい。なお、図5中のコントローラ30は、CPU31等、プリンタ3の制御に利用されるハードウェアを纏めた総称であって、実際にプリンタ3に存在する単一のハードウェアを表すとは限らない。 The CPU 31 is an example of a control unit. The controller 30 may also be an example of a control unit. Note that the controller 30 in FIG. 5 is a general term for hardware used to control the printer 3, such as the CPU 31, and does not necessarily represent a single piece of hardware that actually exists in the printer 3.

ユーザIF35は、ユーザに対する報知の表示と、ユーザによる指示入力の受け付けとを担うハードウェアである。具体的には、図4に示すように、ユーザIF35は、情報を画面に表示するためのディスプレイ35Aと、ユーザによる入力操作を受け付ける多数のキー35Bとから構成される。 The user IF 35 is hardware that displays notifications to the user and accepts user input instructions. Specifically, as shown in FIG. 4, the user IF 35 is composed of a display 35A for displaying information on the screen and a number of keys 35B for accepting input operations by the user.

通信IF36は、ネットワークを介して接続されたPC2と通信を行うためのハードウェアである。USBIF37は、USB規格に基づいて接続された装置と通信を行うためのハードウェアであり、プリンタ3の通信機能を担っている。 The communication IF 36 is hardware for communicating with the PC 2 connected via a network. The USB IF 37 is hardware for communicating with devices connected based on the USB standard, and is responsible for the communication function of the printer 3.

印刷機構61、第1搬送機構62、第2搬送機構63、第3搬送機構64および切断機構65は、コントローラ30に電気的に接続されている。したがって、コントローラ30は、それらの動作を制御することが可能である。 The printing mechanism 61, the first conveying mechanism 62, the second conveying mechanism 63, the third conveying mechanism 64 and the cutting mechanism 65 are electrically connected to the controller 30. Therefore, the controller 30 is capable of controlling their operations.

続いて、本形態のプリンタドライバ43による処理について説明する。なお、以下の処理およびフローチャートの各処理ステップは、基本的に、各プログラムに記述された命令に従ったCPU21の処理を示す。すなわち、CPU21による処理は、PC2のOS41のAPIを用いたハードウェア制御も含む。本明細書では、OS41の記載を省略して各プログラムの動作を説明する。すなわち、以下の説明において、「プログラムBがハードウェアCを制御する」という趣旨の記載は、「プログラムBがOS41のAPIを用いてハードウェアCを制御する」ことを指してもよい。また、プログラムに記述された命令に従ったCPU21の処理を、省略した文言で記載することがある。例えば、「CPU21が行う」、「プログラムが行う」のように記載することがある。 Next, the processing by the printer driver 43 of this embodiment will be described. Note that the following processing and each processing step of the flowchart basically indicate the processing by the CPU 21 according to the instructions written in each program. In other words, the processing by the CPU 21 also includes hardware control using the API of the OS 41 of the PC 2. In this specification, the operation of each program will be described without mentioning the OS 41. In other words, in the following description, a statement to the effect that "program B controls hardware C" may also mean that "program B controls hardware C using the API of the OS 41." Also, the processing of the CPU 21 according to the instructions written in the program may be described in abbreviated terms. For example, it may be described as "performed by the CPU 21" or "performed by the program."

以下、本形態のプリンタドライバ43による印刷処理の手順について、図6のフローチャートを参照して説明する。 The steps of the printing process performed by the printer driver 43 in this embodiment are described below with reference to the flowchart in Figure 6.

まず、ステップ10(以下、S10と称す)において、CPU21は、OS41から印刷指示情報を受け付たか否かを判断する。そして、印刷指示情報を受け付ていないと判断した場合には(S10:NO)、次のS11移行して、CPU21は、その他の処理を実行した後、S10へ戻る。 First, in step 10 (hereinafter referred to as S10), the CPU 21 determines whether or not print instruction information has been received from the OS 41. If it is determined that print instruction information has not been received (S10: NO), the process proceeds to S11, where the CPU 21 executes other processes and then returns to S10.

一方、ここで、ユーザが印刷アプリ42上において印刷実行の指示を入力すると、S10において、CPU21は、印刷指示情報を受け付たと判断し(S10:YES)、次のS12に移行して、CPU21は、余白削除モードが選択されているか否かを判断する。 On the other hand, if the user inputs an instruction to print on the print application 42, in S10, the CPU 21 determines that the print instruction information has been accepted (S10: YES), and proceeds to the next step S12, where the CPU 21 determines whether the margin deletion mode has been selected.

ここで、ユーザが、現在、図3に示す特殊機能設定画面52の余白削除選択欄522において余白削除を選択していると、CPU21が、余白削除モードが選択されていると判断し(S12:YES)、次のS13へ移行する。 Here, if the user currently selects margin deletion in the margin deletion selection field 522 of the special function setting screen 52 shown in FIG. 3, the CPU 21 determines that the margin deletion mode is selected (S12: YES) and proceeds to the next step S13.

また、ここで、ユーザが、特殊機能設定画面52の余白削除選択欄522において余白削除を選択していないと、S12において、CPU21は、余白削除モードが選択されていないと判断し(S12:NO)、次のS25移行して、CPU21は、通常の印刷処理を実行する。 If the user does not select margin deletion in the margin deletion selection field 522 on the special function setting screen 52, the CPU 21 determines in S12 that the margin deletion mode has not been selected (S12: NO), and proceeds to the next step S25, where the CPU 21 executes normal printing processing.

次に、S13において、CPU21は、特殊機能設定画面52の余白確認選択欄523において、「ページごとに余白を確認」および「末尾の頁のみ余白を確認」の何れが選択されているかを判断する。なお、この「ページごとに余白を確認」が短縮態様設定の第1選択肢の一例であり、また、「末尾の頁のみ余白を確認」が短縮態様設定の第2選択肢の一例である。 Next, in S13, the CPU 21 determines whether "Check margins for each page" or "Check margins only on last page" is selected in the margin confirmation selection field 523 on the special function setting screen 52. Note that "Check margins for each page" is an example of a first option for the shortening mode setting, and "Check margins only on last page" is an example of a second option for the shortening mode setting.

ここで、ユーザが、特殊機能設定画面52において「頁ごとに余白を確認」を選択していると、S13において、CPU21は、「頁ごとに余白を確認」が選択されていると判断し(S13:頁ごと)、次のS14へ移行する。 Here, if the user selects "Check margins for each page" on the special function setting screen 52, in S13, the CPU 21 determines that "Check margins for each page" has been selected (S13: each page), and proceeds to the next step S14.

次に、S14において、CPU21は、印刷指示情報にて指定されている画像データおよび印刷設定に基づいて、メモリ24の記憶領域に確保された印刷領域に1頁分の画像を描画する。 Next, in S14, the CPU 21 draws one page of image in the print area secured in the storage area of the memory 24 based on the image data and print settings specified in the print instruction information.

具体的には、図7(A)および(B)に示すように、印刷領域71の用紙幅W1と用紙高さH1は、ユーザが印刷設定画面51の用紙サイズの選択欄513において選択した用紙サイズに基づいている。例えば、ユーザが、用紙サイズとしてA4を選択していると、印刷領域71の用紙幅W1は、210mmとなり、また、用紙高さH1は、297mmとなる。そして、その印刷領域71に、印刷指示情報にて指定されている画像データに基づいて、1頁分の画像72を描画する。 Specifically, as shown in Figures 7(A) and (B), the paper width W1 and paper height H1 of the print area 71 are based on the paper size selected by the user in the paper size selection field 513 of the print setting screen 51. For example, if the user selects A4 as the paper size, the paper width W1 of the print area 71 will be 210 mm, and the paper height H1 will be 297 mm. Then, one page of image 72 is drawn in the print area 71 based on the image data specified in the print instruction information.

なお、用紙サイズは、A4に限定されることはなく、定形用紙である、B4、A5、B5、A6、A3などの何れのサイズであっても良い。何れのサイズの場合でも、印刷設定画面51の用紙サイズの選択欄513において選択した定型用紙の用紙幅と同じ用紙幅を有するロール紙を第2トレイ3Cに収容するのが望ましいが、必ずしも定型用紙の用紙幅と同じ用紙幅を有するロール紙を第2トレイ3Cに収容する必要はなく、両者の用紙幅が異なっていても差し支えない。なお、第2トレイ3Cが特定トレイの一例である。 The paper size is not limited to A4, and may be any size of standard paper such as B4, A5, B5, A6, A3, etc. In any case, it is preferable to store roll paper having the same paper width as the standard paper selected in the paper size selection field 513 of the print setting screen 51 in the second tray 3C, but it is not necessary to store roll paper having the same paper width as the standard paper in the second tray 3C, and it is acceptable for the two paper widths to be different. The second tray 3C is an example of a specific tray.

次に、S15において、CPU21は、印刷領域71における下余白の長さを検証する。具体的には、図7(A)に示す状態では、下側の画像72の下端と印刷領域71の下端との間には、用紙高さH1の40%を超えない搬送方向の長さH2を有する余白D1が生じている。また、図7(B)に示す状態では、画像72の下端と印刷領域71の下端との間には、用紙高さH1の40%以上の搬送方向の長さH3を有する余白D2が生じている。なお、余白D1および余白D2が後端余白の一例である。また、余白の搬送方向の長さH2およびH3が第1判定値の一例である。 Next, in S15, the CPU 21 verifies the length of the bottom margin in the print area 71. Specifically, in the state shown in FIG. 7(A), a margin D1 having a transport direction length H2 that does not exceed 40% of the paper height H1 is generated between the bottom end of the lower image 72 and the bottom end of the print area 71. Also, in the state shown in FIG. 7(B), a margin D2 having a transport direction length H3 that is 40% or more of the paper height H1 is generated between the bottom end of the image 72 and the bottom end of the print area 71. Note that the margins D1 and D2 are examples of trailing edge margins. Also, the transport direction lengths H2 and H3 of the margins are examples of a first determination value.

次に、S16において、CPU21は、余白の搬送方向の長さH2およびH3が、用紙サイズ、すなわち、印刷領域73の用紙高さH1と比較して閾値以上か否かを判断する。本形態では、余白の閾値として、印刷領域73の用紙高さH1に対する割合で設定する。なお、この処理が第1判定処理の一例である。また、余白の閾値選択欄524において設定された余白の閾値が第1閾値の一例である。 Next, in S16, the CPU 21 compares the margin lengths H2 and H3 in the transport direction with the paper size, i.e., the paper height H1 of the print area 73, to determine whether they are equal to or greater than a threshold value. In this embodiment, the margin threshold value is set as a ratio to the paper height H1 of the print area 73. This process is an example of a first determination process. Also, the margin threshold value set in the margin threshold selection field 524 is an example of a first threshold value.

なお、本形態では、余白の閾値として、印刷領域73の用紙高さH1に対する割合で設定するようにしたが、これに限定されことはない。例えば、印字した際の余白の物理的な長さ(cm単位やmm単位、インチ単位でもよい)として設定するようにしても差し支えない。ただ、用紙高さH1に対する割合で設定した方が、用紙サイズが変わった場合にでも適用性が良い。また、余白の閾値として、固定値を用いるようにしても差し支えない。 In this embodiment, the margin threshold is set as a percentage of the paper height H1 of the print area 73, but this is not limited to this. For example, it may be set as the physical length of the margin when printed (which may be in centimeters, millimeters, or inches). However, setting it as a percentage of the paper height H1 provides better applicability even when the paper size changes. It is also possible to use a fixed value as the margin threshold.

ここで、例えば、ユーザが、特殊機能設定画面52の余白の閾値選択欄524において余白の閾値として40%を選択していたとすると、図7(B)に示す状態では、S16において、CPU21は、印刷領域71の用紙高さH1に対して余白D2の長さH3が閾値、つまり40%以上と判断し(S16:YES)、次のS17へ移行する。なお、余白の閾値は40%に限るものではなく、適宜選択すればよい。 Here, for example, if the user selects 40% as the margin threshold in the margin threshold selection field 524 on the special function setting screen 52, in the state shown in FIG. 7(B), in S16, the CPU 21 determines that the length H3 of the margin D2 relative to the paper height H1 of the print area 71 is the threshold, i.e., 40% or more (S16: YES), and proceeds to the next step S17. Note that the margin threshold is not limited to 40%, and may be selected as appropriate.

次に、S17において、CPU21は、印刷指示情報にて指定されている画像データに基づいて、余白D2に対応する画像データを除いた印刷データを作成する。なお、この処理が短縮処理の一例である。また、本形態では、余白D2に対応する画像データを全て除いた印刷データを作成するようにしたが、それに限定されることはなく、余白D2の長さH3が短くなればよい。例えば、画像72の下側の一部の余白D2に対応する画像データは除くことなく印刷データを作成するようにしても差し支えない。 Next, in S17, the CPU 21 creates print data based on the image data specified in the print instruction information, excluding image data corresponding to the margin D2. This process is an example of a shortening process. In this embodiment, the print data is created excluding all image data corresponding to the margin D2, but this is not limited to the above, and it is sufficient that the length H3 of the margin D2 is shortened. For example, the print data may be created without excluding image data corresponding to the margin D2 on the lower part of the image 72.

次に、S18において、CPU21は、S17において作成した印刷データの用紙幅W1と用紙高さH4をもった用紙サイズをユーザ定義サイズとして再定義する。なお、ユーザ定義サイズの用紙幅W1は変わらないが、用紙高さH4は、印刷領域71の用紙高さH1から余白D2の長さH3を差し引いた値である。 Next, in S18, the CPU 21 redefines the paper size, which has the paper width W1 and paper height H4 of the print data created in S17, as a user-defined size. Note that the paper width W1 of the user-defined size does not change, but the paper height H4 is the value obtained by subtracting the length H3 of the margin D2 from the paper height H1 of the print area 71.

次に、S19において、CPU21は、印刷設定おける給紙方法において、給紙トレイを、ロール紙用のトレイである第2トレイ3Cに再設定する。すなわち、ユーザが、給紙方法の選択欄517おいて、自動選択、多目的トレイ3Aおよび第1トレイ3Bの何れかを選択していたとしても、印刷設定の給紙方法として第2トレイ3Cを再設定する。なお、この処理が変更処理の一例である。また、この処理において、用紙種類においてロール紙に設定変更するようにしても差し支えない。 Next, in S19, the CPU 21 resets the paper feed tray in the paper feed method in the print settings to the second tray 3C, which is a tray for roll paper. That is, even if the user selects automatic selection, multipurpose tray 3A, or first tray 3B in the paper feed method selection field 517, the paper feed method in the print settings is reset to second tray 3C. Note that this process is an example of a change process. Also, in this process, the paper type may be changed to roll paper.

次に、S20において、CPU21は、新たな印刷ジョブを作成する。具体的には、新たな印刷ジョブは、印刷設定において、用紙サイズが、S18において再定義されたユーザ定義サイズに、また、給紙方法が、S19において再設定された第2トレイ3Cに変更され、また、印刷データがS17において作成された印刷データによって構成されている。 Next, in S20, the CPU 21 creates a new print job. Specifically, in the print settings of the new print job, the paper size is changed to the user-defined size redefined in S18, the paper feed method is changed to the second tray 3C redefined in S19, and the print data is composed of the print data created in S17.

次に、S21において、CPU21は、新たな印刷ジョブに基づいて、ディスプレイ28A上に、図8(A)に示すプレビュー画面53を表示し、次のS22へ移行する。具体的には、プレビュー画面53では、S18において再定義されたユーザ定義サイズ、すなわち、用紙幅W1、用紙高さH4に相当する印刷領域71上に画像72が配置された状態で表示される。なお、この処理が第1プレビュー処理の一例である。 Next, in S21, the CPU 21 displays the preview screen 53 shown in FIG. 8A on the display 28A based on the new print job, and proceeds to the next step S22. Specifically, the preview screen 53 displays the image 72 arranged on the print area 71 that corresponds to the user-defined size redefined in S18, i.e., the paper width W1 and paper height H4. This process is an example of the first preview process.

次に、S22において、CPU21は、ユーザによって、プレビュー画面53に表示されたOKボタン531が操作されたかキャンセルボタン532が操作されたかを判断する。ここで、ユーザがOKボタン531を操作すると、CPU21は、OKボタン531が操作されて印刷を実行すると判断し(S22:YES)、次に、S23おいて、CPU21は、S20おいて作成した新たな印刷ジョブをプリンタ3へ送信し、本処理を終了する。 Next, in S22, the CPU 21 determines whether the user has operated the OK button 531 or the Cancel button 532 displayed on the preview screen 53. If the user has operated the OK button 531, the CPU 21 determines that the OK button 531 has been operated to execute printing (S22: YES), and then, in S23, the CPU 21 transmits the new print job created in S20 to the printer 3, and ends this process.

このように本形態では、下余白の少なくとも一部が削除された印刷ジョブを生成した後、印刷ジョブをプリンタに出力する前に、プレビューとして、S18において再定義されたユーザ定義サイズ、すなわち、用紙幅W1、用紙高さH4に相当する印刷領域71上に画像72が配置された状態で表示を行うことで、ユーザの意図しない印刷の回避が期待できる。 In this manner, in this embodiment, after generating a print job in which at least a portion of the bottom margin has been deleted, a preview is displayed before the print job is output to the printer, with image 72 positioned on print area 71 that corresponds to the user-defined size redefined in S18, i.e., paper width W1 and paper height H4, which is expected to prevent printing that is not intended by the user.

一方、S22において、ユーザがキャンセルボタン532を操作した場合には、CPU21は、キャンセルボタン532が操作されて印刷を実行しない、つまりキャンセルと判断し(S22:NO)、次のS24において、CPU21は、印刷のキャンセル処理を実行し、その後、本処理を終了する。 On the other hand, if the user operates the cancel button 532 in S22, the CPU 21 determines that the cancel button 532 has been operated and printing will not be performed, i.e., the printing is canceled (S22: NO), and in the next step S24, the CPU 21 executes the printing cancellation process and then ends this process.

一方、ユーザが、例えば、特殊機能設定画面52の余白の閾値選択欄524において余白の閾値として40%を選択していたとすると、図7(A)に示す状態では、余白D1の長さH2が閾値以上ではないので、S16において、CPU21は、余白D1の長さH2が閾値以上ではないと判断し(S16:NO)、次のS25へ移行する。 On the other hand, if the user selects, for example, 40% as the margin threshold in the margin threshold selection field 524 on the special function setting screen 52, in the state shown in FIG. 7(A), the length H2 of the margin D1 is not greater than or equal to the threshold, so in S16, the CPU 21 determines that the length H2 of the margin D1 is not greater than or equal to the threshold (S16: NO) and proceeds to the next step S25.

次に、S25において、CPU21は、印刷指示情報にて指定されている画像データに基づいて、1頁分の印刷データを作成し、その後、次のS26おいて、CPU21は、印刷ジョブをプリンタ3へ送信し、その後、本処理を終了する。つまり、通常の印刷処理を実行した後に本処理を終了する。この場合、余白は変更されていないため、印刷プレビューは省略される。 Next, in S25, the CPU 21 creates one page of print data based on the image data specified in the print instruction information, and then in the next step S26, the CPU 21 sends the print job to the printer 3, and then ends this process. In other words, this process ends after normal print processing is performed. In this case, the print preview is omitted because the margins have not been changed.

一方、S13において、ユーザが、特殊機能設定画面52において「末尾の頁のみ余白を確認」を選択していると、S13において、CPU21は、「末尾の頁のみ余白を確認」が選択されていると判断し(S13:末尾の頁のみ)、次の、図9に示すS31へ移行する。 On the other hand, if the user selects "Check margins only on last page" on the special function setting screen 52 in S13, the CPU 21 determines in S13 that "Check margins only on last page" has been selected (S13: last page only), and proceeds to the next step S31 shown in FIG. 9.

次に、S31において、CPU21は、印刷指示情報にて指定されている画像データおよび印刷設定に基づいて、メモリ24の記憶領域に確保された全印刷領域74に全頁分の画像を描画する。 Next, in S31, the CPU 21 draws images for all pages in the total print area 74 secured in the storage area of the memory 24 based on the image data and print settings specified in the print instruction information.

具体的には、図7(C)に示すように、定型用紙1枚に対応する印刷領域71の用紙幅W1と用紙高さH1は、ユーザが印刷設定画面51の用紙サイズの選択欄513において選択した用紙サイズに基づく。例えば、ユーザが、用紙サイズとしてA4を選択していたとすると、定型用紙1枚の印刷領域71の用紙幅W1は、210mmで、また、用紙高さH1は、297mmである。また、ユーザが、2枚の定型用紙に印刷するとすると、定型用紙を2枚とした全印刷領域74の用紙高さH5は、594mmとなる。ここでは、その全印字領域74に、印刷指示情報にて指定されている画像データに基づいて、2頁分の画像72を描画する。 Specifically, as shown in FIG. 7C, the paper width W1 and paper height H1 of the print area 71 corresponding to one sheet of standard paper are based on the paper size selected by the user in the paper size selection field 513 of the print setting screen 51. For example, if the user selects A4 as the paper size, the paper width W1 of the print area 71 for one sheet of standard paper is 210 mm, and the paper height H1 is 297 mm. Furthermore, if the user prints on two sheets of standard paper, the paper height H5 of the total print area 74 including two sheets of standard paper is 594 mm. Here, two pages of image 72 are drawn in the total print area 74 based on the image data specified in the print instruction information.

次に、S32において、CPU21は、下側の印刷領域71における下余白の長さを検証する。なお、この処理が、余白特定処理の一例である。具体的には、図7(C)に示す状態では、下側の印刷領域71における画像72の下端と、下側の印刷領域71の下端との間には、ユーザが選択した用紙サイズの用紙高さH1の40%以上の長さH6の余白D3が生じている。なお、余白D3が後端余白の一例である。また、余白D3の搬送方向の長さH6が第1判定値の一例である。 Next, in S32, the CPU 21 verifies the length of the bottom margin in the lower print area 71. This process is an example of a margin determination process. Specifically, in the state shown in FIG. 7C, a margin D3 with a length H6 that is 40% or more of the paper height H1 of the paper size selected by the user is generated between the bottom end of the image 72 in the lower print area 71 and the bottom end of the lower print area 71. The margin D3 is an example of a trailing end margin. The length H6 of the margin D3 in the transport direction is an example of a first determination value.

次に、S33において、CPU21は、余白D3の搬送方向の長さH6が、用紙サイズ、すなわち、印刷領域71の用紙高さH1と比較して閾値以上か否かを判断する。なお、この処理が第1判定処理の一例である。 Next, in S33, the CPU 21 compares the length H6 of the margin D3 in the transport direction with the paper size, i.e., the paper height H1 of the print area 71, to determine whether it is equal to or greater than a threshold value. This process is an example of a first determination process.

ここで、例えば、ユーザが、特殊機能設定画面52の余白の閾値選択欄524において余白の閾値として40%を選択していたとすると、図7(C)に示す状態では、S33において、CPU21は、余白D3の搬送方向の長さH6が閾値以上と判断し(S33:YES)、次のS34へ移行する。 Here, for example, if the user selects 40% as the margin threshold in the margin threshold selection field 524 on the special function setting screen 52, in the state shown in FIG. 7(C), in S33, the CPU 21 determines that the length H6 of the margin D3 in the transport direction is equal to or greater than the threshold (S33: YES), and proceeds to the next step S34.

次に、S34において、CPU21は、印刷指示情報にて指定されている画像データに基づいて、末尾の頁について余白D3に対応する画像データを除いた印刷データを作成する。なお、この処理が短縮処理の一例である。また、本形態では、余白D3に対応する画像データを除いた印刷データを作成するようにしたが、それに限定されることはなく、余白D3の長さH6が短くなればよい。例えば、画像72の下側の一部の余白D3に対応する画像データは除くことなく印刷データを作成するようにしても差し支えない。 Next, in S34, the CPU 21 creates print data for the last page based on the image data specified in the print instruction information, excluding image data corresponding to the margin D3. This process is an example of a shortening process. In this embodiment, the print data is created excluding image data corresponding to the margin D3, but this is not limited to this, and it is sufficient that the length H6 of the margin D3 is shortened. For example, it is also acceptable to create print data without excluding image data corresponding to the margin D3 on the lower part of the image 72.

次に、S35において、CPU21は、全ての頁を連結して1頁とした印刷データを印刷指示情報にて指定されている画像データに基づいて作成する。すなわち、図7(C)に示す本形態では、2頁分を連結して1頁とした印刷データを作成する。 Next, in S35, the CPU 21 creates print data in which all pages are concatenated to form one page based on the image data specified in the print instruction information. That is, in this embodiment shown in FIG. 7(C), print data is created in which two pages are concatenated to form one page.

次に、S36において、CPU21は、S35において作成した印刷データの用紙幅W1と用紙高さH7をもった用紙サイズをユーザ定義サイズとして再定義する。この場合、ユーザ定義サイズの用紙幅W1は変わらないが、用紙高さH7は、全印刷領域74の用紙高さH5から余白D3の長さH6を差し引いた値である。 Next, in S36, the CPU 21 redefines the paper size, which has the paper width W1 and paper height H7 of the print data created in S35, as a user-defined size. In this case, the paper width W1 of the user-defined size does not change, but the paper height H7 is the value obtained by subtracting the length H6 of the margin D3 from the paper height H5 of the entire print area 74.

次に、S37において、CPU21は、印刷設定おける給紙方法において、給紙トレイを、ロール紙用のトレイである第2トレイ3Cに再設定する。すなわち、ユーザが、給紙方法の選択欄517おいて、自動選択、多目的トレイ3Aおよび第1トレイ3Bの何れかを選択していたとしても、印刷設定の給紙方法として第2トレイ3Cを再設定する。なお、この処理が変更処理の一例である。また、この処理において、用紙種類をロール紙に設定変更するようにしても差し支えない。 Next, in S37, the CPU 21 resets the paper feed tray in the paper feed method in the print settings to the second tray 3C, which is a tray for roll paper. That is, even if the user selects automatic selection, multipurpose tray 3A, or first tray 3B in the paper feed method selection field 517, the paper feed method in the print settings is reset to the second tray 3C. Note that this process is an example of a change process. Also, in this process, it is acceptable to change the paper type to roll paper.

次に、S38において、CPU21は、新たな印刷ジョブを作成する。具体的には、新たな印刷ジョブは、印刷設定において、用紙サイズが、S36において再定義されたユーザ定義サイズに、また、給紙方法が、S37において再設定された第2トレイ3Cに、また、印刷データがS34において作成された印刷データによって構成されている。 Next, in S38, the CPU 21 creates a new print job. Specifically, the new print job is configured such that, in the print settings, the paper size is the user-defined size redefined in S36, the paper feed method is the second tray 3C redefined in S37, and the print data is the print data created in S34.

次に、S39において、CPU21は、S38において作成した新たな印刷ジョブに基づいて、ディスプレイ28A上に、図8(B)に示すプレビュー画面53を表示し、次の図6に示すS19へ移行する。具体的には、プレビュー画面53では、S36において再定義されたユーザ定義サイズ、すなわち、用紙幅W1、用紙高さH7に相当する全印刷領域74上に画像72が配置された状態で表示される。なお、この処理が第2プレビュー処理の一例である。 Next, in S39, the CPU 21 displays the preview screen 53 shown in FIG. 8B on the display 28A based on the new print job created in S38, and then proceeds to S19 shown in FIG. 6. Specifically, the preview screen 53 displays the image 72 arranged over the entire print area 74, which corresponds to the user-defined size redefined in S36, i.e., the paper width W1 and paper height H7. This process is an example of a second preview process.

このように本形態では、印刷ジョブをプリンタに出力する前に、短縮された最終のページを含む全ての頁を連結して1頁とした画像のプレビューを行うことで、ユーザの意図しない印刷の回避が期待できる。 In this way, in this embodiment, by previewing an image in which all pages, including the shortened final page, are concatenated to form one page before the print job is output to the printer, it is possible to prevent printing that the user does not intend.

一方、S33において、CPU21が、印刷領域71の用紙高さH1と比較して閾値以上ではないと判断した場合には(S33:NO)、図6に示すS25へ移行して複数頁分、すなわち、本形態では、2頁分の印刷データを作成し、通常の印刷処理を実行する。 On the other hand, if in S33 the CPU 21 compares the paper height H1 of the print area 71 with the threshold value and determines that it is not equal to or greater than the threshold value (S33: NO), the process proceeds to S25 shown in FIG. 6, where print data for multiple pages, i.e., in this embodiment, two pages, is created, and normal print processing is performed.

次に、本形態のプリンタ3による印刷処理の手順について、図10のフローチャートを参照して説明する。プリンタ3による印刷処理は、CPU31にて実行される。 Next, the procedure for the printing process by the printer 3 of this embodiment will be described with reference to the flowchart in FIG. 10. The printing process by the printer 3 is executed by the CPU 31.

すなわち、S41おいて、CPU31は、PC2からデータを受信したか否かを判断する。ここで、PC2からデータを受信しておれば、CPU31は、受信したと判断し(S41:YES)、S42へ移行する。一方、PC2からデータを受信していなければ、データを受信していないと判断して(S41:NO)、S41の処理を繰り返す。 That is, in S41, the CPU 31 determines whether data has been received from the PC 2. If data has been received from the PC 2, the CPU 31 determines that data has been received (S41: YES) and proceeds to S42. On the other hand, if data has not been received from the PC 2, the CPU 31 determines that data has not been received (S41: NO) and repeats the process of S41.

次に、S42において、CPU31は、受信したデータが印刷ジョブか否かを判断する。ここで、受信したデータが印刷ジョブであった場合には、CPU31は、受信したデータが印刷ジョブであると判断し(S42:YES)、その後、S44へ移行する。また、受信したデータが印刷ジョブではなかった場合には、CPU31は、受信したデータが印刷ジョブではないと判断し(S42:NO)、その後、S43へ移行して他の処理を実行した後、S41へ戻る。 Next, in S42, the CPU 31 determines whether the received data is a print job. If the received data is a print job, the CPU 31 determines that the received data is a print job (S42: YES) and then proceeds to S44. If the received data is not a print job, the CPU 31 determines that the received data is not a print job (S42: NO) and then proceeds to S43 to execute other processing, and then returns to S41.

次に、S44において、CPU31は、受信した印刷ジョブに含まれる印刷設定を解析する。次に、S45において、CPU31は、解析した印刷設定において、供給方法において第2トレイ3Cが選択されているか否かを判断する。 Next, in S44, the CPU 31 analyzes the print settings included in the received print job. Next, in S45, the CPU 31 determines whether the second tray 3C is selected as the supply method in the analyzed print settings.

ここで、図6のS23において送信された印刷ジョブの場合には、供給方法において第2トレイ3Cが設定されているので、S45において、CPU31は、供給方法において第2トレイ3Cが選択されていると判断し(S45:YES)、その後、S46へ移行する。 Here, in the case of the print job sent in S23 of FIG. 6, the second tray 3C is set as the supply method, so in S45, the CPU 31 determines that the second tray 3C is selected as the supply method (S45: YES), and then proceeds to S46.

次に、S46において、CPU31は、印刷ジョブに含まれる印刷設定や印刷データに基づいて印刷を実行する。この場合、第3搬送機構64は、第2トレイ3Cからロール紙から長尺状の用紙を供給し、印刷機構61は、第3搬送機構64によって供給された長尺状の用紙上に画像を順次印刷する。 Next, in S46, the CPU 31 executes printing based on the print settings and print data included in the print job. In this case, the third transport mechanism 64 supplies long sheets of paper from the roll paper in the second tray 3C, and the printing mechanism 61 sequentially prints images on the long sheets of paper supplied by the third transport mechanism 64.

次に、S47において、CPU31は、印刷が終了したか否かを判断する。ここで、まだ印刷が終了していなければ、CPU31は、印刷が終了していないと判断し(S47:NO)、引き続きS46の処理を実行する。 Next, in S47, the CPU 31 determines whether printing has finished. If printing has not yet finished, the CPU 31 determines that printing has not finished (S47: NO) and continues to execute the process of S46.

一方、印刷が終了しておれば、CPU31は、印刷が終了していると判断し(S47:YES)、次のS48において、CPU31は、切断機構65を駆動して長尺状の用紙を切断した後、印刷処理を終了する。切断された用紙は、第3搬送機構64によって搬送されて排紙トレイ3D上に排出される。 On the other hand, if printing has finished, the CPU 31 determines that printing has finished (S47: YES), and in the next step S48, the CPU 31 drives the cutting mechanism 65 to cut the long paper, and then ends the printing process. The cut paper is transported by the third transport mechanism 64 and discharged onto the paper discharge tray 3D.

したがって、本形態では、図6に示すS20おいて作成された新たな印刷ジョブに基づいて印刷が行われた場合には、図7(B)に示すように、用紙幅W1、用紙高さH4の用紙73に画像72が印刷される。また、図9に示すのS38おいて作成された新たな印刷ジョブに基づいて印刷が行われた場合には、図7(C)に示すように、用紙幅W1、用紙高さH7の用紙73に画像72が印刷される。 Therefore, in this embodiment, when printing is performed based on a new print job created in S20 shown in Figure 6, image 72 is printed on paper 73 with paper width W1 and paper height H4, as shown in Figure 7 (B). Also, when printing is performed based on a new print job created in S38 shown in Figure 9, image 72 is printed on paper 73 with paper width W1 and paper height H7, as shown in Figure 7 (C).

このように本形態においては、印刷指示に対応する画像についてロール紙に印刷されることになり、さらに後端の余白の搬送方向の長さを短縮することで、プリンタでは、後端の余白を短縮しない場合と比較して、そのロール紙への印刷において印刷指示に対応する画像の印刷に必要なロール紙の搬送量が少なくなり、紙の無駄を低減することができる。 In this manner, in this embodiment, the image corresponding to the print instruction is printed on the roll paper, and by shortening the length of the trailing margin in the transport direction, the printer requires less roll paper to be transported to print the image corresponding to the print instruction when printing on the roll paper, compared to when the trailing margin is not shortened, thereby reducing paper waste.

一方、S45において、解析した印刷設定において、供給方法において第2トレイ3Cが選択されていなければ、CPU31は、供給方法において第2トレイ3Cが選択されていないと判断し(S45:NO)、その後、S49において、CPU31は、印刷ジョブに含まれる印刷設定や印刷データに基づいて印刷を実行する。この場合、多目的トレイ3Aまたは第1トレイ3Bから、第1搬送機構62または第2搬送機構63によって、プレカットされた定型サイズの用紙が印刷機構61に供給されて印刷が実行される。 On the other hand, if the second tray 3C is not selected as the supply method in the analyzed print settings in S45, the CPU 31 determines that the second tray 3C is not selected as the supply method (S45: NO), and then in S49, the CPU 31 executes printing based on the print settings and print data included in the print job. In this case, pre-cut standard size paper is supplied to the printing mechanism 61 by the first transport mechanism 62 or the second transport mechanism 63 from the multipurpose tray 3A or the first tray 3B, and printing is executed.

次に、S50において、CPU31は、印刷が終了したか否かを判断する。ここで、まだ印刷が終了していなければ、CPU31は、印刷が終了していないと判断し(S50:NO)、引き続きS49の処理を実行する。 Next, in S50, the CPU 31 determines whether printing has finished. If printing has not yet finished, the CPU 31 determines that printing has not finished (S50: NO) and continues to execute the process of S49.

一方、印刷が終了しておれば、CPU31は、印刷が終了していると判断し(S50:YES)、印刷処理を終了する。画像が印刷された用紙は、第1搬送機構62または第2搬送機構63によって搬送されて排紙トレイ3D上に排出される。 On the other hand, if printing has finished, the CPU 31 determines that printing has finished (S50: YES) and ends the printing process. The paper on which the image has been printed is transported by the first transport mechanism 62 or the second transport mechanism 63 and discharged onto the paper discharge tray 3D.

したがって、本形態では、図6のS25を経た後、S26おいて送信された印刷ジョブに基づいて印刷が行われた場合には、図7(A)に示すように、用紙幅W1、用紙高さH1の用紙73、すなわち、プレカットされた定型サイズの用紙73に画像が印刷される。 Therefore, in this embodiment, after S25 in FIG. 6, if printing is performed based on the print job sent in S26, as shown in FIG. 7(A), the image is printed on paper 73 with paper width W1 and paper height H1, i.e., pre-cut standard size paper 73.

なお、本形態では、特殊機能設定画面52の余白確認選択欄523において、「ページごとに余白を確認」が選択されている場合において、用紙1枚に印刷する場合の態様について説明したが、それに限定されることはない。たとえば、複数枚の用紙に印刷する場合であっても、各頁において、搬送方向の後端側の余白について搬送方向の長さを検出し、検出された搬送方向の長さに応じて、各頁ごとに余白の短縮処理を実行、もしくは実行しないように構成しても差し支えない。 In this embodiment, a case where "Check margins for each page" is selected in the margin confirmation selection field 523 on the special function setting screen 52 and printing is performed on one sheet of paper has been described, but this is not limited to the above. For example, even when printing on multiple sheets of paper, it is possible to detect the length of the margin on the rear end side of the transport direction for each page in the transport direction, and perform or do not perform margin shortening processing for each page depending on the detected length in the transport direction.

この場合には、頁ごとに余白を短縮するので、より多くの用紙の無駄を抑えることができる。 In this case, the margins are shortened for each page, which helps reduce paper waste.

(第2実施形態)
以下、プリンタによる第2実施形態に係る印刷処理の手順について、簡単に説明する。第1実施形態では、後端余白を特定する余白特定処理などをPC2側で行うように構成されていたが、第2実施形態では、プリンタ3側で行うように構成されており、その点において、第1実施形態と第2実施形態とは大きく相違している。なお、その説明中、第1実施形態と同じ作用効果を奏するものには、同じ符号を付して説明する。
Second Embodiment
The procedure of the printing process by the printer according to the second embodiment will be briefly described below. In the first embodiment, the margin specification process for specifying the trailing margin is performed on the PC 2 side, but in the second embodiment, it is performed on the printer 3 side, and in this respect, the first and second embodiments are significantly different. In the description, the same reference numerals are used to denote parts that have the same effects as those in the first embodiment.

すなわち、本形態では、図10に示す印刷処理の手順において、CPU31が、S42とS44との間で、図6に示すS12~S20までの処理、S25の処理、図9に示すS31~S38までの処理を実行するように構成すればよい。 In other words, in this embodiment, in the printing process procedure shown in FIG. 10, the CPU 31 may be configured to execute the processes S12 to S20 shown in FIG. 6, the process S25, and the processes S31 to S38 shown in FIG. 9 between S42 and S44.

そして、S46において、CPU31は、図6に示すS20および図9に示すS38において作成された印刷ジョブに基づいて印刷を実行すればよい。また、S49において、CPU31は、図6に示すS25において作成された印刷ジョブに基づいて印刷を実行すればよい。 Then, in S46, the CPU 31 executes printing based on the print job created in S20 shown in FIG. 6 and S38 shown in FIG. 9. In addition, in S49, the CPU 31 executes printing based on the print job created in S25 shown in FIG. 6.

このように本形態においては、印刷指示に対応する画像についてロール紙に印刷されることになり、さらに後端の余白の搬送方向の長さを短縮することで、プリンタでは、後端の余白を短縮しない場合と比較して、そのロール紙への印刷において印刷指示に対応する画像の印刷に必要なロール紙の搬送量が少なくなり、紙の無駄を低減することができる。 In this manner, in this embodiment, the image corresponding to the print instruction is printed on the roll paper, and by shortening the length of the trailing margin in the transport direction, the printer requires less roll paper to be transported to print the image corresponding to the print instruction when printing on the roll paper, compared to when the trailing margin is not shortened, thereby reducing paper waste.

なお、本形態は単なる例示にすぎず、本発明を何ら限定するものではない。したがって本発明は当然に、その要旨を逸脱しない範囲内で種々の改良、変形が可能である。例えば、プリンタ3は、印刷単機能の装置に限らず、例えば、原稿読取機能やFAX送受信機能を備えている装置であっても良い。本形態は、プリンタ3に代えて、複合機、コピー機、FAX装置等に接続されるPC2にも適用可能である。また、PC2には、2台以上のプリンタが接続されていても良い。 Note that this embodiment is merely an example and does not limit the present invention in any way. Naturally, therefore, the present invention can be improved and modified in various ways without departing from the spirit of the invention. For example, the printer 3 is not limited to a device with a single printing function, but may also be a device equipped with a document reading function or a fax sending/receiving function. This embodiment can also be applied to a PC 2 connected to a multifunction device, copier, fax machine, etc. instead of the printer 3. Also, two or more printers may be connected to the PC 2.

また、各図に示した画面の構成は、いずれも一例であり、図示の例に限らない。例えば、印刷設定画面51の基本タブ51Aの画面では、用紙サイズと両面印刷と給紙トレイとの全ての選択を受け付けるとしたが、一部の選択は別の画面で受け付けてもよいし、それぞれ別の画面であっても良い。 The screen configurations shown in each figure are merely examples and are not limited to the examples shown. For example, the Basic tab 51A screen of the print settings screen 51 accepts all of the selections for paper size, double-sided printing, and paper feed tray, but some of the selections may be accepted on a different screen, or each may be a different screen.

また、本形態では、図6に示すS19や図9に示すS37において、印刷設定おける給紙方法で、給紙トレイを、ロール紙用のトレイである第2トレイ3Cに再設定するようにしたが、それに限定されることはない。たとえば、第2トレイ3Cにロール紙がセットされていない場合、ユーザに対して第2トレイ3Cにロール紙をセットすることを要請するメッセージをディスプレイ18Aに表示したり、あるいは、給紙方法を変更するか否かをユーザに対して問い合わせるメッセージを表示するようにしても差し支えない。 In addition, in this embodiment, in S19 shown in FIG. 6 and S37 shown in FIG. 9, the paper feed tray is reset to the second tray 3C, which is a tray for roll paper, in the paper feed method in the print settings, but this is not limited to this. For example, if roll paper is not set in the second tray 3C, a message may be displayed on the display 18A requesting the user to set roll paper in the second tray 3C, or a message may be displayed asking the user whether or not to change the paper feed method.

この場合、ユーザが第2トレイ3Cにロール紙をセットしなかったり、あるいは、給紙方法を変更を希望しない場合には、給紙方法を第2トレイ3Cに再設定しないように構成しても差し支えない。 In this case, if the user does not load roll paper in the second tray 3C or does not wish to change the paper feed method, it is acceptable to configure the printer so that the paper feed method is not reset to the second tray 3C.

また、本形態では、プリンタドライバ43の処理として説明したが、本発明のプログラムは、プリンタドライバに限らない。プリンタドライバに代えて汎用の印刷プログラムを備えるOSが搭載された、いわゆるドライバレスの構成を有するPCにも適用可能である。本発明は、例えば、汎用の印刷プログラムとは別にPCに組み込まれる印刷に関するプログラム、汎用の印刷プログラムと協働して印刷設定を受け付けるプログラム、にも適用可能である。 In addition, although this embodiment has been described as processing by the printer driver 43, the program of the present invention is not limited to a printer driver. It can also be applied to a PC having a so-called driverless configuration, in which an OS equipped with a general-purpose printing program instead of a printer driver is installed. The present invention can also be applied, for example, to a printing-related program that is installed in the PC separately from the general-purpose printing program, or a program that accepts print settings in cooperation with the general-purpose printing program.

また、各実施の形態に開示されている任意のフローチャートにおいて、任意の複数のステップにおける複数の処理は、処理内容に矛盾が生じない範囲で、任意に実行順序を変更できる、または並列に実行できる。 In addition, in any of the flowcharts disclosed in each embodiment, the execution order of multiple processes in any of the steps can be changed or they can be executed in parallel as desired, as long as no inconsistencies occur in the process content.

また、各実施の形態に開示されている処理は、単一のCPU、複数のCPU、ASICなどのハードウェア、またはそれらの組合せで実行されてもよい。また、実施の形態に開示されている処理は、その処理を実行するためのプログラムを記録した記録媒体、または方法等の種々の態様で実現することができる。 The processes disclosed in each embodiment may be executed by a single CPU, multiple CPUs, hardware such as an ASIC, or a combination of these. The processes disclosed in the embodiments may be realized in various ways, such as a recording medium on which a program for executing the processes is recorded, or a method.

2 PC
3 プリンタ
41 OS
43 プリンタドライバ
51 印刷設定画面
511 用紙種類の選択欄
517 給紙方法の選択欄
52 特殊機能設定画面
522 余白削除選択欄
523 余白確認選択欄
524 閾値選択欄
2 PC
3 Printer 41 OS
43 Printer driver 51 Print setting screen 511 Paper type selection field 517 Paper feed method selection field 52 Special function setting screen 522 Margin deletion selection field 523 Margin confirmation selection field 524 Threshold selection field

Claims (10)

情報処理装置のコンピュータによって実行可能なプログラムであって、
前記コンピュータに、
プリンタでの印刷に用いる印刷設定を、前記情報処理装置のユーザインタフェースを介して受け付ける受付処理を実行させ、前記印刷設定には、用紙サイズと給紙方法とが含まれ、前記給紙方法で選択可能な選択肢には、ロール紙を搬送可能な特定トレイが含まれ、前記プリンタは、前記特定のトレイを含む複数のトレイを有するものであり、
さらに前記コンピュータに、
前記印刷設定のうち前記用紙サイズに定形紙を示すサイズが設定されている状態で、印刷指示を受け付けた場合に、
前記印刷指示にて印刷対象となる画像を示す印刷データに基づいて、前記プリンタでの用紙の搬送方向の後端側の余白である後端余白についての、前記搬送方向の長さを特定する余白特定処理と、
前記余白特定処理にて特定された前記後端余白についての前記搬送方向の長さに基づく第1判定値が第1閾値よりも大きいか否かを判定する第1判定処理と、
前記第1判定処理にて前記第1判定値が前記第1閾値よりも大きいと判定された場合に、前記印刷設定のうち前記給紙方法を前記特定トレイに変更する変更処理と、
前記変更処理による前記給紙方法の変更が行われた場合に、前記印刷データのうち前記後端余白の少なくとも一部を除去することで、前記後端余白の前記搬送方向の長さを短縮する短縮処理と、
を実行させる、
ことを特徴とするプログラム。
A program executable by a computer of an information processing device,
The computer includes:
a receiving process is executed to receive print settings to be used for printing on a printer via a user interface of the information processing device, the print settings include a paper size and a paper feed method, options selectable for the paper feed method include a specific tray capable of transporting roll paper, and the printer has a plurality of trays including the specific tray;
The computer further comprises:
When a print instruction is received in a state where a size indicating a standard size paper is set as the paper size in the print settings,
a margin specification process for specifying a length in a transport direction of a trailing edge margin, which is a margin on a trailing edge side of a paper transport direction in the printer, based on print data indicating an image to be printed in the print command;
a first determination process for determining whether a first determination value based on a length of the trailing end margin in the transport direction identified in the margin identification process is greater than a first threshold value;
a change process of changing the paper feed method of the print settings to the specific tray when the first determination process determines that the first determination value is greater than the first threshold value;
a shortening process for shortening a length of the trailing end margin in the transport direction by removing at least a portion of the trailing end margin from the print data when the paper feed method is changed by the change process;
Execute the
A program characterized by:
請求項1に記載するプログラムにおいて、
前記受付処理にて受け付ける前記印刷設定には、用紙種類が含まれ、
前記変更処理では、
前記第1判定処理にて前記第1判定値が前記第1閾値よりも大きいと判定された場合に、前記印刷設定のうち前記給紙方法を前記特定トレイに変更し、さらに前記用紙種類をロール紙に設定する、
ことを特徴とするプログラム。
The program according to claim 1,
The print settings received in the reception process include a paper type,
In the change process,
when it is determined in the first determination process that the first determination value is greater than the first threshold value, the paper feed method in the print settings is changed to the specific tray, and further the paper type is set to roll paper.
A program characterized by:
請求項1または請求項2に記載するプログラムにおいて、
前記コンピュータに、
前記印刷設定のうち前記用紙サイズに定形紙を示すサイズが設定されている状態で、印刷指示を受け付け、受け付けた前記印刷指示に基づいて入力された画像が複数ページある場合に、ページごとに、前記余白特定処理、前記第1判定処理、前記変更処理、および前記短縮処理を実行させる、
ことを特徴とするプログラム。
In the program according to claim 1 or 2,
The computer includes:
receiving a print instruction in a state where a size indicating a standard paper size is set as the paper size in the print settings, and when there are a plurality of pages of images input based on the received print instruction, executing the margin specification process, the first determination process, the change process, and the shortening process for each page;
A program characterized by:
請求項3に記載するプログラムにおいて、
前記コンピュータに、
前記短縮処理にて前記後端余白の前記搬送方向の長さを短縮した場合に、短縮後の画像を印刷させる印刷ジョブを前記プリンタに出力する前に、ページごとに、短縮後の画像を前記ユーザインタフェースに表示させ、印刷を行うか否かの選択をユーザインタフェースを介して受け付ける第1プレビュー処理を実行させ、前記第1プレビュー処理にて印刷を行う前記選択を受け付けた場合には、前記印刷ジョブを前記プリンタに出力させ、前記第1プレビュー処理にて印刷を行わない前記選択を受け付けた場合には、前記印刷ジョブを前記プリンタに出力せず、前記印刷ジョブをキャンセルさせる、
ことを特徴とするプログラム。
The program according to claim 3,
The computer includes:
When the length of the trailing end margin in the transport direction is shortened in the shortening process, before outputting a print job for printing the shortened image to the printer, a first preview process is executed in which the shortened image is displayed on the user interface for each page and a selection of whether or not to print is received via the user interface, and when the selection of printing is received in the first preview process, the print job is output to the printer, and when the selection of not printing is received in the first preview process, the print job is not output to the printer and the print job is canceled.
A program characterized by:
請求項1または請求項2に記載するプログラムにおいて、
前記コンピュータに、
前記印刷設定のうち前記用紙サイズに定形紙を示すサイズが設定されている状態で、印刷指示を受け付け、受け付けた前記印刷指示に基づいて入力された画像が複数ページある場合に、前記複数ページのうち最終ページについて、前記余白特定処理、前記第1判定処理、前記変更処理、および前記短縮処理を実行させる、
ことを特徴とするプログラム。
In the program according to claim 1 or 2,
The computer includes:
receiving a print instruction in a state where a size indicating a standard paper size is set as the paper size in the print settings, and when there are multiple pages of images input based on the received print instruction, executing the margin specification process, the first determination process, the change process, and the shortening process for a final page of the multiple pages;
A program characterized by:
請求項5に記載するプログラムにおいて、
前記コンピュータに、
前記短縮処理にて前記後端余白の前記搬送方向の長さを短縮した場合に、短縮後の画像を印刷させる印刷ジョブを前記プリンタに出力する前に、前記複数のページの画像を前記搬送方向に連結させた画像を前記ユーザインタフェースに表示させ、印刷を行うか否かの選択を、ユーザインタフェースを介して受け付ける第2プレビュー処理を実行させ、前記第2プレビュー処理にて印刷を行う前記選択を受け付けた場合には、前記印刷ジョブを前記プリンタに出力させ、前記第2プレビュー処理にて印刷を行わない前記選択を受け付けた場合には、前記印刷ジョブを前記プリンタに出力せず、前記印刷ジョブをキャンセルさせる、
ことを特徴とするプログラム。
The program according to claim 5,
The computer includes:
when the length of the trailing end margin in the transport direction is shortened in the shortening process, before outputting a print job for printing the shortened image to the printer, an image in which the images of the multiple pages are linked in the transport direction is displayed on the user interface, and a second preview process is executed in which a selection of whether or not to print is received via the user interface, and when the selection of printing is received in the second preview process, the print job is output to the printer, and when the selection of not printing is received in the second preview process, the print job is not output to the printer and the print job is canceled.
A program characterized by:
請求項1または請求項2に記載するプログラムにおいて、
前記受付処理にて受け付ける前記印刷設定には、ページごとに前記後端余白を短縮する第1選択肢と、最終ページの前記後端余白を短縮する第2選択肢と、を選択肢に含む短縮態様設定が含まれ、
前記コンピュータに、
前記印刷設定のうち前記用紙サイズに定形紙を示すサイズが設定されている状態で、印刷指示を受け付け、受け付けた前記印刷指示に基づいて入力された画像が複数ページある場合に、
前記短縮態様設定が前記第1選択肢であれば、ページごとに、前記余白特定処理、前記第1判定処理、前記変更処理、および前記短縮処理を実行させ、
前記短縮態様設定が前記第2選択肢であれば、前記複数ページのうち最終ページについて、前記余白特定処理、前記第1判定処理、前記変更処理、および前記短縮処理を実行させる、
ことを特徴とするプログラム。
In the program according to claim 1 or 2,
The print settings received in the reception process include a shortening mode setting including a first option for shortening the trailing margin for each page and a second option for shortening the trailing margin of a last page,
The computer includes:
When a print instruction is received in a state in which a size indicating a standard size paper is set as the paper size in the print settings, and an image input based on the received print instruction includes a plurality of pages,
If the shortening mode setting is the first option, the margin specifying process, the first determination process, the change process, and the shortening process are executed for each page;
if the shortening mode setting is the second option, the margin specifying process, the first determination process, the change process, and the shortening process are executed for a last page of the plurality of pages;
A program characterized by:
請求項1から請求項7のいずれか1つに記載するプログラムにおいて、
前記受付処理にて受け付ける前記印刷設定には、ロール紙を用いて前記後端余白を短縮するか否かを示す短縮可否設定が含まれ、
前記コンピュータに、
前記印刷設定のうち前記用紙サイズに定形紙を示すサイズが設定されている状態で、印刷指示を受け付けた場合に、
前記短縮可否設定にロール紙を用いて前記後端余白を短縮することが設定されていれば、前記余白特定処理、前記第1判定処理、前記変更処理、および前記短縮処理を実行させ、
前記短縮可否設定にロール紙を用いて前記後端余白を短縮しないことが設定されていれば、前記余白特定処理、前記第1判定処理、前記変更処理、および前記短縮処理を実行させない、
ことを特徴とするプログラム。
The program according to any one of claims 1 to 7,
The print settings received in the reception process include a shortening enable/disable setting indicating whether or not to shorten the trailing edge margin by using roll paper,
The computer includes:
When a print instruction is received in a state where a size indicating a standard size paper is set as the paper size in the print settings,
If the shortening setting is set to shorten the trailing edge margin by using roll paper, the margin specifying process, the first determination process, the change process, and the shortening process are executed;
If the shortening setting is set to not shorten the trailing edge margin by using roll paper, the margin specification process, the first determination process, the change process, and the shortening process are not executed.
A program characterized by:
請求項1から請求項8のいずれか1つに記載するプログラムにおいて、
前記受付処理にて受け付ける前記印刷設定には、前記第1閾値の設定が含まれ、
前記第1判定処理では、
前記余白特定処理にて特定された前記後端余白についての前記搬送方向の長さに基づく前記第1判定値が、前記印刷設定に含まれる前記第1閾値よりも大きいか否かを判定する、
ことを特徴とするプログラム。
The program according to any one of claims 1 to 8,
The print settings received in the reception process include a setting of the first threshold value,
In the first determination process,
determining whether the first determination value based on the length of the trailing end margin in the transport direction specified in the margin specification process is greater than the first threshold value included in the print settings;
A program characterized by:
印刷ユニットと、
ロール紙を搬送可能な特定トレイを含む複数のトレイと、
コントローラと、
を備えるプリンタにおいて、
前記コントローラは、
印刷ジョブを受信する受信処理を実行し、前記印刷ジョブの印刷設定には、用紙サイズと給紙方法とが含まれ、
さらに前記コントローラは、
前記受信処理にて受信した前記印刷ジョブの前記印刷設定のうち前記用紙サイズに定形紙を示すサイズが設定されている場合に、
前記印刷ジョブに含まれる印刷データに基づいて、用紙の搬送方向の後端側の余白である後端余白についての、前記搬送方向の長さを特定する余白特定処理と、
前記余白特定処理にて特定された前記後端余白についての前記搬送方向の長さに基づく第1判定値が第1閾値よりも大きいか否かを判定する第1判定処理と、
前記第1判定処理にて前記第1判定値が前記第1閾値よりも大きいと判定された場合に、前記印刷設定のうち前記給紙方法を前記特定トレイに変更する変更処理と、
前記変更処理による前記給紙方法の変更が行われた場合に、前記印刷データのうち前記後端余白の少なくとも一部を除去することで、前記後端余白の前記搬送方向の長さを短縮する短縮処理と、
を実行する、
ことを特徴とするプリンタ。
A printing unit;
a plurality of trays including a specific tray capable of transporting roll paper;
A controller;
In a printer comprising:
The controller:
A receiving process is executed to receive a print job, and the print settings of the print job include a paper size and a paper feeding method;
The controller further comprises:
When the paper size of the print settings of the print job received in the receiving process is set to a size indicating a standard size paper,
a margin specification process for specifying a length in a transport direction of a trailing end margin, which is a margin on a trailing end side of a paper in a transport direction, based on print data included in the print job;
a first determination process for determining whether a first determination value based on a length of the trailing end margin in the transport direction identified in the margin identification process is greater than a first threshold value;
a change process of changing the paper feed method of the print settings to the specific tray when the first determination process determines that the first determination value is greater than the first threshold value;
a shortening process for shortening a length of the trailing end margin in the transport direction by removing at least a portion of the trailing end margin from the print data when the paper feed method is changed by the change process;
Execute
A printer characterized by:
JP2021059350A 2021-03-31 2021-03-31 Programs and Printers Active JP7600826B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2021059350A JP7600826B2 (en) 2021-03-31 2021-03-31 Programs and Printers

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2021059350A JP7600826B2 (en) 2021-03-31 2021-03-31 Programs and Printers

Publications (2)

Publication Number Publication Date
JP2022155907A JP2022155907A (en) 2022-10-14
JP7600826B2 true JP7600826B2 (en) 2024-12-17

Family

ID=83558659

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2021059350A Active JP7600826B2 (en) 2021-03-31 2021-03-31 Programs and Printers

Country Status (1)

Country Link
JP (1) JP7600826B2 (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010238231A (en) 2009-03-10 2010-10-21 Canon Inc Printing control apparatus, method and program
JP2011245804A (en) 2010-05-28 2011-12-08 Canon Software Inc Image output device, control method, program, and recording medium

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010238231A (en) 2009-03-10 2010-10-21 Canon Inc Printing control apparatus, method and program
JP2011245804A (en) 2010-05-28 2011-12-08 Canon Software Inc Image output device, control method, program, and recording medium

Also Published As

Publication number Publication date
JP2022155907A (en) 2022-10-14

Similar Documents

Publication Publication Date Title
US11899996B2 (en) Storage medium storing computer-readable instructions for generating cut print image data based on cut print setting
US8194276B2 (en) Data processing apparatus, control method therefor, and program
JP7647095B2 (en) Support Programs
JP7396017B2 (en) Driver program and registration program
US10897546B2 (en) Print system system for displaying a preview for a job containing a plurality of different roll media
JP7600826B2 (en) Programs and Printers
JP7459524B2 (en) Programs and information processing equipment
JP7647258B2 (en) program
US20090103138A1 (en) Image forming indicating terminal and image forming indicating method
JP5359076B2 (en) Image forming apparatus, program, and recording medium
JP7115191B2 (en) printer and program
JP7066513B2 (en) Information processing equipment, control methods, and programs
US11681484B2 (en) Generating layout image data representing layout image in which two images are arranged adjacent to each other
JP2021138004A (en) Method for determining the width of the recording device and recording medium
JP6659108B2 (en) Image forming apparatus, image forming method, and program
JP2001235976A5 (en)
JP7815752B2 (en) Program and information processing device
CN111666049B (en) Printing apparatus and printing method
JP7622497B2 (en) Printing systems, printer drivers, and printers
JP2022021097A (en) Program and information processing device
JP7619082B2 (en) PROGRAM AND INFORMATION PROCESSING APPARATUS
JP7830930B2 (en) Program and Information Processing Device
US11816516B2 (en) Storage medium storing computer-readable instructions for generating processed image data representing processed image in which gap area is arranged within range including longitudinal center position thereof
JP7476700B2 (en) PROGRAM AND INFORMATION PROCESSING APPARATUS
JP7825502B2 (en) Recording device, control method thereof, and program

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20240326

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20241021

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20241105

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20241118

R150 Certificate of patent or registration of utility model

Ref document number: 7600826

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150