JP2000289304A - Print processing method - Google Patents

Print processing method

Info

Publication number
JP2000289304A
JP2000289304A JP11099922A JP9992299A JP2000289304A JP 2000289304 A JP2000289304 A JP 2000289304A JP 11099922 A JP11099922 A JP 11099922A JP 9992299 A JP9992299 A JP 9992299A JP 2000289304 A JP2000289304 A JP 2000289304A
Authority
JP
Japan
Prior art keywords
page
printing
print data
buffer
page buffer
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.)
Granted
Application number
JP11099922A
Other languages
Japanese (ja)
Other versions
JP4803567B2 (en
Inventor
Yasuo Tokito
康夫 時任
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.)
Oki Electric Industry Co Ltd
Original Assignee
Oki Data Corp
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 Oki Data Corp filed Critical Oki Data Corp
Priority to JP09992299A priority Critical patent/JP4803567B2/en
Publication of JP2000289304A publication Critical patent/JP2000289304A/en
Application granted granted Critical
Publication of JP4803567B2 publication Critical patent/JP4803567B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To make each page arrangement same as a specified one during printing in use of a printing function in a reverse order of a multi-page by determining page numbers with a code added to the head of a printing data of each page, and writing the printing data of page numbers when the corresponding paper buffer is empty. SOLUTION: CPU 11 runs to determine page numbers of the whole of a printing document by a code added to the head of a printing data, and hence each page arrangement is determined through the calculation of the entire page number, page buffer number, and the page numbers of written printing data. The CPU 11 also works to compile printing data via an I/O port 14 in accordance with the control program of ROM 12 to then be written in the page buffer of RAM 13. A page buffer for storing a printing data for one page in accordance with a sheet of printing paper conducts printing by a printing mechanism 15 in accordance with the printing data with a page eject command from a host computer or a non-space capacity of the page buffer. This can accomplish each page arrangement expectedly even in reverse order printing.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明は、印刷処理方法に関
するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a printing method.

【0002】[0002]

【従来の技術】従来、プリンタ、特に、ページプリンタ
においては、複数のページ分の印刷内容を1枚の印刷用
紙に印刷するマルチページ印刷機能を備えたものが提供
されている。該マルチページ印刷機能のうち、例えば、
2ページ分の印刷内容を1枚の印刷用紙に印刷する2ペ
ージ印刷機能において、制御部は、ホストコンピュータ
から印刷データが送られてくると、文字を半分の大きさ
に縮小し、2ページ分の印刷内容を印刷用紙の左右に配
置する。
2. Description of the Related Art Conventionally, printers, particularly page printers, have been provided with a multi-page printing function for printing the print contents of a plurality of pages on a single print sheet. Among the multi-page printing functions, for example,
In a two-page printing function for printing two pages of printing content on one sheet of printing paper, when print data is sent from a host computer, the control unit reduces the size of a character to half its size, and Is arranged on the left and right sides of the printing paper.

【0003】ところで、ページプリンタの排紙方法に
は、印刷面を上向きにして印刷用紙を排出するフェース
アップ式の排紙方法、及び印刷面を下向きにして印刷用
紙を排出するフェースダウン式の排紙方法がある。前記
フェースアップ式の排紙方法を採るページプリンタの場
合、複数のページ分の印刷を行う際に、排紙スタッカに
おいて排出された印刷用紙が既に排出された印刷用紙の
上に堆(たい)積されても、上方の印刷用紙ほどページ
が若くなるように、逆順印刷機能を備えたものが提供さ
れている。そして、該逆順印刷機能を使用すると、最後
のページから順に印刷が行われる。
[0003] By the way, there are two types of page printer discharge methods: a face-up type discharge method that discharges print paper with the print surface facing upward, and a face-down discharge method that discharges print paper with the print surface facing down. There is a paper method. In the case of a page printer adopting the face-up type discharge method, when printing a plurality of pages, the print paper discharged from the discharge stacker is piled up on the already discharged print paper. Even so, there is provided a printer provided with a reverse printing function so that the upper printing paper has a younger page. When the reverse printing function is used, printing is performed sequentially from the last page.

【0004】[0004]

【発明が解決しようとする課題】しかしながら、前記従
来の2ページ印刷機能においては、逆順印刷機能を使用
して印刷を行うと、各ページの配列が所期のものと異な
ることがある。
However, in the conventional two-page printing function, when printing is performed using the reverse order printing function, the arrangement of each page may be different from the expected one.

【0005】図2は従来の2ページ印刷機能だけを使用
して印刷を行う場合の各ページの配列を示す第1の図、
図3は従来の2ページ印刷機能及び逆順印刷機能を使用
して印刷を行う場合の各ページの配列を示す第1の図、
図4は従来の2ページ印刷機能だけを使用して印刷を行
う場合の各ページの配列を示す第2の図、図5は従来の
2ページ印刷機能及び逆順印刷機能を使用して印刷を行
う場合の各ページの配列を示す第2の図である。
FIG. 2 is a first diagram showing an arrangement of each page when printing is performed using only a conventional two-page printing function.
FIG. 3 is a first diagram showing an arrangement of each page when printing is performed using a conventional two-page printing function and a reverse printing function.
FIG. 4 is a second diagram showing an arrangement of each page when printing is performed using only the conventional two-page printing function, and FIG. 5 is printed using the conventional two-page printing function and the reverse printing function. FIG. 10 is a second diagram showing the arrangement of each page in the case.

【0006】通常、複数のページ分の印刷を行う場合、
図示されないホストコンピュータは、最初のページから
順に印刷データをページプリンタに送るようになってい
る。そして、2ページ印刷機能だけを使用して複数のペ
ージ分の印刷を行う場合、ページプリンタは、最初のペ
ージの印刷データが送られてくると、該印刷データを左
側用のページバッファに書き込み、次のページの印刷デ
ータが送られてくると、右側用のページバッファに書き
込む。すなわち、左側用のページバッファにページN
(N=1、2、…)の印刷データが、右側用のページバ
ッファにページN+1の印刷データが書き込まれる。し
たがって、各ページを図2に示されるように配列するこ
とができる。
Usually, when printing a plurality of pages,
The host computer (not shown) sends print data to the page printer in order from the first page. When printing a plurality of pages using only the two-page printing function, the page printer writes the print data into the left page buffer when the print data of the first page is sent, When the print data of the next page is sent, it is written to the right page buffer. That is, page N is stored in the page buffer for the left side.
(N = 1, 2,...) And the print data of page N + 1 are written in the page buffer for the right side. Therefore, each page can be arranged as shown in FIG.

【0007】ところで、2ページ印刷機能及び逆順印刷
機能を使用して複数のページ分の印刷を行う場合、ホス
トコンピュータは、最後のページから順に印刷データを
ページプリンタに送る。したがって、左側用のページバ
ッファにページN+1の印刷データが、右側用のページ
バッファにページNの印刷データが書き込まれるので、
各ページは図3に示されるように配列され、左右のペー
ジが逆になってしまう。
When printing a plurality of pages using the two-page printing function and the reverse printing function, the host computer sends print data to the page printer sequentially from the last page. Therefore, the print data of page N + 1 is written in the page buffer for the left side, and the print data of page N is written in the page buffer for the right side.
Each page is arranged as shown in FIG. 3, and the left and right pages are reversed.

【0008】また、特に、2ページ印刷機能だけを使用
して奇数のページ分、例えば、3ページ分の印刷を行う
場合には、図4に示されるように、1枚目の印刷用紙の
左側にはページ1が、右側にはページ2が配列されると
ともに、2枚目の印刷用紙の左側にはページ3が配列さ
れ、右側は余白になる。
[0008] Particularly, when printing is performed for an odd number of pages, for example, three pages using only the two-page printing function, as shown in FIG. , Page 2 is arranged on the right side, page 3 is arranged on the left side of the second print sheet, and the right side is blank.

【0009】これに対して、2ページ印刷機能及び逆順
印刷機能を使用して3ページ分の印刷を行う場合には、
図5に示されるように、1枚目の印刷用紙の左側にはペ
ージ1が配列され、右側は余白になるとともに、2枚目
の印刷用紙の左側にはページ3が、右側にはページ2が
配列される。すなわち、左右のページが逆になってしま
うだけでなく、印刷用紙の最初のページに余白が形成さ
れてしまう。
On the other hand, when printing three pages using the two-page printing function and the reverse-order printing function,
As shown in FIG. 5, page 1 is arranged on the left side of the first printing sheet, the right side becomes a margin, page 3 is on the left side of the second printing sheet, and page 2 is on the right side. Are arranged. That is, not only are the left and right pages reversed, but a margin is formed on the first page of the printing paper.

【0010】このように、2ページ印刷機能及び逆順印
刷機能を使用して複数のページ分の印刷を行う場合、各
ページの配列が所期のものと異なってしまう。
As described above, when printing a plurality of pages using the two-page printing function and the reverse printing function, the arrangement of each page is different from the expected one.

【0011】本発明は、前記従来の印刷処理方法の問題
点を解決して、マルチページ印刷機能及び逆順印刷機能
を使用して複数のページ分の印刷を行う場合に、各ペー
ジの配列を所期のものと同じにすることができる印刷処
理方法を提供することを目的とする。
The present invention solves the problems of the conventional print processing method, and when printing a plurality of pages using the multi-page printing function and the reverse printing function, the arrangement of each page is determined. It is an object of the present invention to provide a print processing method which can be the same as that of the first embodiment.

【0012】[0012]

【課題を解決するための手段】そのために、本発明の印
刷処理方法においては、各ページの印刷データの先頭に
それぞれ付加されたコードに基づいてページ番号を判定
し、該ページ番号に対応するページバッファが空いてい
るかどうかを判断し、該ページバッファが空いている場
合に、前記ページ番号の印刷データを書き込む。
For this purpose, in a print processing method according to the present invention, a page number is determined based on a code added to the head of print data of each page, and a page corresponding to the page number is determined. It is determined whether or not the buffer is empty. If the page buffer is empty, the print data of the page number is written.

【0013】本発明の他の印刷処理方法においては、印
刷しようとする文書の全体のページ数を、印刷データの
先頭に付加されたコードに基づいて判定し、前記全体の
ページ数、ページバッファの数、及び各ページバッファ
に書き込もうとする印刷データのページ番号に基づいて
演算を行い、演算結果に基づいて各ページの配列を決定
する。
In another print processing method according to the present invention, the total number of pages of a document to be printed is determined based on a code added to the head of print data, and the total number of pages and the number of pages in a page buffer are determined. The calculation is performed based on the number and the page number of the print data to be written into each page buffer, and the arrangement of each page is determined based on the calculation result.

【0014】[0014]

【発明の実施の形態】以下、本発明の実施の形態につい
て図面を参照しながら詳細に説明する。
Embodiments of the present invention will be described below in detail with reference to the drawings.

【0015】図1は本発明の第1の実施の形態における
ページプリンタの制御部のブロック図である。
FIG. 1 is a block diagram of a control section of a page printer according to the first embodiment of the present invention.

【0016】図において、11はCPU、12は制御プ
ログラムが書き込まれたROM、13は一時的なデータ
が格納されるRAM、14は、上位装置であるホストコ
ンピュータから印刷データを受けたり、印刷機構部15
との間で、図示されないモータの制御、センサ出力の読
込み、図示されない印刷ヘッドへの印刷データの転送等
を行うためのI/Oポートである。
In the figure, 11 is a CPU, 12 is a ROM in which a control program is written, 13 is a RAM in which temporary data is stored, and 14 is a device which receives print data from a host computer which is a higher-level device, and prints a print mechanism. Part 15
An I / O port for controlling a motor (not shown), reading a sensor output, transferring print data to a print head (not shown), and the like.

【0017】次に、マルチページ印刷機能を使用して印
刷を行う場合のページプリンタの動作について説明す
る。
Next, the operation of the page printer when printing is performed using the multi-page printing function will be described.

【0018】図6は本発明の第1の実施の形態における
マルチページ印刷機能を示す第1の図、図7は本発明の
第1の実施の形態におけるマルチページ印刷機能を示す
第2の図である。
FIG. 6 is a first diagram showing a multi-page printing function according to the first embodiment of the present invention, and FIG. 7 is a second diagram showing a multi-page printing function according to the first embodiment of the present invention. It is.

【0019】まず、CPU11(図1)は、ROM12
から制御プログラムを読み出し、該制御プログラムに従
ってI/Oポート14を介してホストコンピュータから
の印刷データを受ける。そして、前記CPU11は、図
示されない編集手段によって印刷データを編集し、図示
されない展開手段によって編集された印刷データをRA
M13に展開する。
First, the CPU 11 (FIG. 1)
And receives print data from the host computer via the I / O port 14 according to the control program. Then, the CPU 11 edits the print data by an editing means (not shown) and converts the print data edited by a developing means (not shown) into an RA.
Expand to M13.

【0020】このとき、マルチページ印刷機能を使用す
ることなく、通常の印刷を行う場合、CPU11は、編
集された印刷データを、RAM13に展開するととも
に、RAM13内に設定された図示されないページバッ
ファに書き込む。該ページバッファは、1ページ分の印
刷データを1枚の印刷用紙に対応させて記憶するように
設定されたメモリエリアである。なお、印刷用紙に対す
る印刷方向がポートレート(縦長方向)である場合、C
PU11は、前記ページバッファ内の印刷用紙の左前端
に対応する部分から印刷用紙の短辺に沿って印刷データ
を書き込んでいく。また、印刷用紙に対する印刷方向が
ランドスケープ(横長方向)である場合、CPU11
は、展開された印刷データを90〔°〕回転させ、前記
ページバッファ内の印刷用紙の右前端に対応する部分か
ら印刷用紙の長辺に沿って印刷データを書き込んでい
く。
At this time, when normal printing is performed without using the multi-page printing function, the CPU 11 expands the edited print data in the RAM 13 and stores the edited print data in a page buffer (not shown) set in the RAM 13. Write. The page buffer is a memory area set to store one page of print data corresponding to one print sheet. If the printing direction on the printing paper is portrait (portrait), C
The PU 11 writes the print data from the portion corresponding to the left front end of the printing paper in the page buffer along the short side of the printing paper. If the printing direction on the printing paper is landscape (landscape direction), the CPU 11
Rotates the developed print data by 90 [°], and writes the print data along the long side of the print paper from a portion corresponding to the right front end of the print paper in the page buffer.

【0021】そして、ホストコンピュータから改ページ
コマンドを受けるか、又はページバッファの空き容量が
なくなると、ページバッファ内の印刷データに従って印
刷機構部15によって印刷を行い、その後、ページバッ
ファをクリアして、次のページの印刷データを書き込
む。
When a page break command is received from the host computer or when the free space in the page buffer is exhausted, printing is performed by the printing mechanism unit 15 in accordance with the print data in the page buffer, and then the page buffer is cleared. Write the print data of the next page.

【0022】次に、マルチページ印刷機能のうち、例え
ば、2ページ印刷機能を使用して印刷を行う場合、ペー
ジバッファが左側用の第1のページバッファBa0及び
右側用の第2のページバッファBa1に分割される。
Next, when printing is performed using, for example, a two-page printing function of the multi-page printing function, the page buffer is a first page buffer Ba0 for the left side and a second page buffer Ba1 for the right side. Is divided into

【0023】そして、印刷用紙に対する印刷方向がラン
ドスケープである場合、CPU11は、RAM13内の
所定の領域AR1に展開された印刷データを縦方向及び
横方向に1/√(2)に縮小し、縮小された印刷データ
をページバッファ内の左前端に対応する部分から印刷用
紙の短辺に沿って順に書き込む。
If the printing direction on the printing paper is landscape, the CPU 11 reduces the print data developed in the predetermined area AR1 in the RAM 13 to 1 / √ (2) in the vertical and horizontal directions, and reduces the size. The written print data is sequentially written from the portion corresponding to the left front end in the page buffer along the short side of the printing paper.

【0024】また、印刷用紙に対する印刷方向がポート
レートである場合、CPU11は、図6に示されるよう
に、RAM13内の所定の領域AR1に展開された印刷
データを90〔°〕回転させ、回転させられた印刷デー
タD1を縦方向及び横方向に1/√(2)に縮小して印
刷データD2とし、該印刷データD2をページバッファ
Baの印刷用紙の右前端に対応する部分から印刷用紙の
長辺に沿って順に書き込む。この場合、最初に、第1の
ページバッファBa0に印刷データが書き込まれ、ホス
トコンピュータから改ページコマンドを受けるか、又は
前記第1のページバッファBa0の空き容量がなくなる
と、第2のページバッファBa1に印刷データが書き込
まれる。このように、各ページの印刷データが交互に第
1、第2のページバッファBa0、Ba1に書き込まれ
る。
When the printing direction on the printing paper is portrait, the CPU 11 rotates the print data developed in a predetermined area AR1 in the RAM 13 by 90 ° as shown in FIG. The print data D1 is reduced in the vertical and horizontal directions by 1 / √ (2) to obtain print data D2. The print data D2 is output from a portion of the page buffer Ba corresponding to the right front edge of the print paper. Write in order along the long side. In this case, first, print data is written to the first page buffer Ba0, and when a page break command is received from the host computer or when the free space of the first page buffer Ba0 is exhausted, the second page buffer Ba1 is written. The print data is written in. As described above, the print data of each page is alternately written to the first and second page buffers Ba0 and Ba1.

【0025】そして、前記第2のページバッファBa1
に印刷データが書き込まれている間に、ホストコンピュ
ータから改ページコマンドを受けるか、又は前記第2の
ページバッファBa1の空き容量がなくなると、第2の
ページバッファBa1内の印刷データに従って印刷機構
部15によって印刷を行い、その後、ページバッファB
aをクリアして、次のページ分の印刷データをページバ
ッファBaに書き込む。
Then, the second page buffer Ba1
When the page break command is received from the host computer while the print data is being written in the second page buffer Ba1, or when the free space in the second page buffer Ba1 is exhausted, the printing mechanism unit is operated in accordance with the print data in the second page buffer Ba1. 15 and then the page buffer B
a is cleared, and the print data for the next page is written to the page buffer Ba.

【0026】また、マルチページ印刷機能のうち、例え
ば、4ページ印刷機能を使用して印刷を行う場合、図7
に示されるように、ページバッファBbが第1〜第4の
ページバッファBb0〜Bb3に4分割される。そし
て、印刷用紙に対する印刷方向がポートレートである場
合、CPU11は、RAM13内の所定の領域AR2に
展開された印刷データを縦方向及び横方向に1/2に縮
小して印刷データD3とし、該印刷データD3を第1の
ページバッファBb0の印刷用紙の左前端に対応する部
分から印刷用紙の短辺に沿って順に書き込む。
When printing is performed using, for example, a four-page printing function among the multi-page printing functions, FIG.
, The page buffer Bb is divided into first to fourth page buffers Bb0 to Bb3. If the printing direction on the printing paper is portrait, the CPU 11 reduces the printing data developed in the predetermined area AR2 in the RAM 13 by half in the vertical and horizontal directions to obtain printing data D3. The print data D3 is sequentially written from a portion of the first page buffer Bb0 corresponding to the left front end of the print sheet along the short side of the print sheet.

【0027】この場合、最初に、第1のページバッファ
Bb0に印刷データが書き込まれ、ホストコンピュータ
から改ページコマンドを受けるか、又は前記第1のペー
ジバッファBb0の空き容量がなくなると、第2のペー
ジバッファBb1に印刷データが書き込まれ、ホストコ
ンピュータから改ページコマンドを受けるか、又は前記
第2のページバッファBb1の空き容量がなくなると、
第3のページバッファBb2に印刷データが書き込ま
れ、ホストコンピュータから改ページコマンドを受ける
か、又は前記第3のページバッファBb2の空き容量が
なくなると、第4のページバッファBb3に印刷データ
が書き込まれる。
In this case, first, when print data is written into the first page buffer Bb0 and a page break command is received from the host computer, or when the free space of the first page buffer Bb0 is exhausted, the second When print data is written to the page buffer Bb1 and a page break command is received from the host computer, or when the free space of the second page buffer Bb1 is exhausted,
When print data is written to the third page buffer Bb2 and a page break command is received from the host computer, or when the third page buffer Bb2 runs out of free space, the print data is written to the fourth page buffer Bb3. .

【0028】そして、前記第4のページバッファBb3
に印刷データが書き込まれている間に、ホストコンピュ
ータから改ページコマンドを受けるか、又は前記第4の
ページバッファBb3の空き容量がなくなると、ページ
バッファBb内の印刷データに従って印刷機構部15に
よって印刷を行い、その後、ページバッファBbをクリ
アして、次のページ分の印刷データをページバッファB
bに書き込む。
Then, the fourth page buffer Bb3
When the page break command is received from the host computer while the print data is written in the fourth page buffer Bb, or the free space of the fourth page buffer Bb3 is exhausted, the printing is performed by the print mechanism unit 15 according to the print data in the page buffer Bb. After that, the page buffer Bb is cleared, and the print data for the next page is stored in the page buffer B.
Write to b.

【0029】次に、2ページ印刷機能及び逆順印刷機能
を使用して印刷を行う場合のページプリンタの動作につ
いて説明する。
Next, the operation of the page printer when printing is performed using the two-page printing function and the reverse printing function will be described.

【0030】図8は本発明の第1の実施の形態における
ページプリンタの動作を示すフローチャートである。
FIG. 8 is a flowchart showing the operation of the page printer according to the first embodiment of the present invention.

【0031】この場合、ホストコンピュータは、各ペー
ジの印刷データをページプリンタに送るに当たって、印
刷データの先頭に、印刷しようとするページのページ番
号を示すコードを付加する。そして、CPU11(図
1)内の図示されないページ番号判定手段は、送られて
きた印刷データから前記コードを抜き出し、該コードに
基づいてページ番号を判定する。
In this case, when sending the print data of each page to the page printer, the host computer adds a code indicating the page number of the page to be printed to the head of the print data. Then, a page number determination unit (not shown) in the CPU 11 (FIG. 1) extracts the code from the transmitted print data, and determines the page number based on the code.

【0032】ここで、コードによって表されるページ番
号をNPとし、第1、第2のページバッファBa0、B
a1に書き込まれている印刷データのページ番号をPB
L、PBRとする。なお、ページ番号NPが0である場
合は、ページバッファBaに書き込むべき印刷データが
ないこと、ページ番号PBL、PBRが0である場合
は、第1、第2のページバッファBa0、Ba1に印刷
データが書き込まれていないこと、すなわち、第1、第
2のページバッファBa0、Ba1が空いていることを
表す。
Here, the page number represented by the code is NP, and the first and second page buffers Ba0, Ba
The page number of the print data written in a1 is PB
L and PBR. When the page number NP is 0, there is no print data to be written in the page buffer Ba. When the page numbers PBL and PBR are 0, the print data is stored in the first and second page buffers Ba0 and Ba1. Is not written, that is, the first and second page buffers Ba0 and Ba1 are empty.

【0033】まず、CPU11は、ページ番号PBL、
PBRに0をセットし、前記ページ番号判断手段によっ
て、これからページバッファBaに書き込もうとする印
刷データのページ番号NPが奇数であるかどうかを判断
し、ページ番号NPが奇数である場合、図示されないペ
ージバッファ判断手段によって第1のページバッファB
a0が空いているかどうかを判断する。そして、第1の
ページバッファBa0が空いている場合、CPU11
は、図示されない印刷データ書込手段によって第1のペ
ージバッファBa0にページ番号NPの印刷データを書
き込み、図示されないページ配列決定手段によってペー
ジ番号PBLに値NPをセットする。また、第1のペー
ジバッファBa0が空いていない場合、ページバッファ
Baに記憶されている印刷データに従って印刷を行い、
その後、ページバッファBaをクリアするとともに、ペ
ージ番号PBL、PBRに0をセットする。
First, the CPU 11 sets the page number PBL,
PBR is set to 0, and the page number determining means determines whether the page number NP of the print data to be written to the page buffer Ba is an odd number. If the page number NP is an odd number, a page not shown First page buffer B by buffer determination means
It is determined whether or not a0 is empty. When the first page buffer Ba0 is empty, the CPU 11
Prints the print data of the page number NP into the first page buffer Ba0 by the print data writing unit (not shown), and sets the value NP to the page number PBL by the page arrangement determination unit (not shown). If the first page buffer Ba0 is not empty, printing is performed according to the print data stored in the page buffer Ba,
Thereafter, the page buffer Ba is cleared, and the page numbers PBL and PBR are set to 0.

【0034】一方、ページ番号NPが偶数である場合、
CPU11は、前記ページバッファ判断手段によって第
2のページバッファBa1が空いているかどうかを判断
する。そして、第2のページバッファBa1が空いてい
る場合、CPU11は前記印刷データ書込手段によって
第2のページバッファBa1にページ番号NPの印刷デ
ータを書き込み、前記ページ配列決定手段によってペー
ジ番号PBRに値NPをセットする。また、第2のペー
ジバッファBa1が空いていて、第1のページバッファ
Ba0が空いていない場合、第1のページバッファBa
0に記憶された印刷データのページ番号PBLが、現在
のページ番号NPより大きいかどうかを判断する。
On the other hand, when the page number NP is an even number,
The CPU 11 determines whether or not the second page buffer Ba1 is free by the page buffer determining means. When the second page buffer Ba1 is empty, the CPU 11 writes the print data of the page number NP in the second page buffer Ba1 by the print data writing unit, and stores the value in the page number PBR by the page arrangement determination unit. Set NP. If the second page buffer Ba1 is empty and the first page buffer Ba0 is not empty, the first page buffer Ba
It is determined whether the page number PBL of the print data stored in 0 is larger than the current page number NP.

【0035】第1のページバッファBa0に記憶された
印刷データのページ番号PBLが、現在のページ番号N
Pより大きい場合、ページバッファBaに記憶されてい
る印刷データに従って印刷を行い、その後、ページバッ
ファBaをクリアするとともに、ページ番号PBL、P
BRに0をセットする。また、第1のページバッファB
a0に記憶された印刷データのページ番号PBLが、現
在のページ番号NP以下である場合、前記CPU11
は、前記印刷データ書込手段によって第2のページバッ
ファBa1にページ番号NPの印刷データを書き込み、
前記ページ配列決定手段によってページ番号PBRに値
NPをセットする。
The page number PBL of the print data stored in the first page buffer Ba0 is the current page number N
If it is larger than P, printing is performed according to the print data stored in the page buffer Ba, and then the page buffer Ba is cleared and the page numbers PBL, P
Set BR to 0. Also, the first page buffer B
If the page number PBL of the print data stored in a0 is smaller than the current page number NP, the CPU 11
Writes the print data of the page number NP into the second page buffer Ba1 by the print data writing means,
The value NP is set to the page number PBR by the page arrangement determining means.

【0036】そして、第1、第2のページバッファBa
0、Ba1が空いていない場合、CPU11は、ページ
バッファBaに記憶されている印刷データに従って印刷
を行い、その後、ページバッファBaをクリアするとと
もに、ページ番号PBL、PBRに0をセットする。
Then, the first and second page buffers Ba
When 0 and Ba1 are not empty, the CPU 11 performs printing according to the print data stored in the page buffer Ba, and then clears the page buffer Ba and sets 0 to the page numbers PBL and PBR.

【0037】このように、本実施の形態においては、ペ
ージ番号NPが奇数であるかどうかを判断し、ページ番
号NPが奇数である場合、第1のページバッファBa0
が空いているかどうかを判断し、第1のページバッファ
Ba0が空いている場合、第1のページバッファBa0
にページ番号NPの印刷データを書き込む。また、ペー
ジ番号NPが偶数である場合、第2のページバッファB
a1が空いているかどうかを判断し、第2のページバッ
ファBa1が空いている場合、第2のページバッファB
a1にページ番号NPの印刷データを書き込む。したが
って、逆順印刷を行っても左右のページが逆になってし
まうことがなくなるだけでなく、印刷用紙の最初のペー
ジに余白が形成されることがない。その結果、各ページ
の配列を所期のものと同じにすることができる。
As described above, in the present embodiment, it is determined whether or not the page number NP is an odd number. If the page number NP is an odd number, the first page buffer Ba0 is determined.
Is determined to be empty, and if the first page buffer Ba0 is empty, the first page buffer Ba0
Is written with the print data of the page number NP. If the page number NP is an even number, the second page buffer B
It is determined whether or not a1 is empty, and if the second page buffer Ba1 is empty, the second page buffer B
The print data of the page number NP is written to a1. Therefore, even if the reverse printing is performed, not only the left and right pages are not reversed, but also no margin is formed on the first page of the printing paper. As a result, the arrangement of each page can be made the same as the expected one.

【0038】なお、本実施の形態においては、ページ番
号NPが奇数である場合、第1のページバッファBa0
にページ番号NPの印刷データが書き込まれ、各ページ
が左及び右の順に配列されるようになっているが、ペー
ジ番号PBL、PBRを互いに入れ替えることによっ
て、右及び左の順に配列することもできる。
In this embodiment, when the page number NP is an odd number, the first page buffer Ba0
The print data of the page number NP is written in each of the pages, and the pages are arranged in the order of left and right. However, the pages can be arranged in the order of right and left by exchanging the page numbers PBL and PBR. .

【0039】次に、フローチャートについて説明する。 ステップS1 ページ番号PBL、PBRに0をセット
する。 ステップS2 ページ番号NPが奇数であるかどうかを
判断する。ページ番号NPが奇数である場合はステップ
S3に、奇数でない場合はステップS6に進む。 ステップS3 ページ番号PBLが0であるかどうかを
判断する。ページ番号PBLが0である場合はステップ
S5に、0でない場合はステップS4に進む。 ステップS4 印刷を行い、ページバッファBaをクリ
アするとともに、ページ番号PBL、PBRに0をセッ
トする。 ステップS5 第1のページバッファBa0に印刷デー
タを書き込み、ページ番号PBLに値NPをセットす
る。 ステップS6 ページ番号PBRが0であるかどうかを
判断する。ページ番号PBRが0である場合はステップ
S7に、0でない場合はステップS9に進む。 ステップS7 ページ番号PBLが0であるかどうかを
判断する。ページ番号PBLが0である場合はステップ
S10に、0でない場合はステップS8に進む。 ステップS8 ページ番号PBLが値NPより大きいか
どうかを判断する。ページ番号PBLが値NPより大き
い場合はステップS9に、ページ番号PBLが値NP以
下である場合はステップS10に進む。 ステップS9 印刷を行い、ページバッファBaをクリ
アするとともに、ページ番号PBL、PBRに0をセッ
トする。 ステップS10 第2のページバッファBa1に印刷デ
ータを書き込み、ページ番号PBRに値NPをセットす
る。 ステップS11 ページ番号PBL、PBRがいずれも
0に等しくないかどうかを判断する。ページ番号PB
L、PBRがいずれも0に等しくない場合はステップS
12に、ページ番号PBL、PBRのうちの一方が0で
ある場合はステップS13に進む。 ステップS12 印刷を行い、ページバッファBaをク
リアするとともに、ページ番号PBL、PBRに0をセ
ットする。 ステップS13 ページ番号NPの値を1減算する。 ステップS14 ページ番号NPが0であるかどうかを
判断する。ページ番号NPが0である場合はステップS
15に進み、0でない場合はステップS2に戻る。 ステップS15 その時点でページバッファBaに記憶
されている印刷データに従って印刷を行い、ページバッ
ファBaをクリアするとともに、ページ番号PBL、P
BRに0をセットし、次の処理に移る。
Next, the flowchart will be described. Step S1 0 is set to the page numbers PBL and PBR. Step S2: It is determined whether or not the page number NP is an odd number. If the page number NP is an odd number, the process proceeds to step S3; otherwise, the process proceeds to step S6. Step S3: It is determined whether or not the page number PBL is 0. If the page number PBL is 0, the process proceeds to step S5; otherwise, the process proceeds to step S4. Step S4: Printing is performed, the page buffer Ba is cleared, and the page numbers PBL and PBR are set to 0. Step S5: Write the print data into the first page buffer Ba0, and set the value NP to the page number PBL. Step S6: It is determined whether the page number PBR is 0. If the page number PBR is 0, the process proceeds to step S7; otherwise, the process proceeds to step S9. Step S7: It is determined whether the page number PBL is 0. If the page number PBL is 0, the process proceeds to step S10; otherwise, the process proceeds to step S8. Step S8: It is determined whether the page number PBL is larger than the value NP. If the page number PBL is larger than the value NP, the process proceeds to step S9. If the page number PBL is smaller than the value NP, the process proceeds to step S10. In step S9, printing is performed, the page buffer Ba is cleared, and the page numbers PBL and PBR are set to 0. Step S10: Write the print data into the second page buffer Ba1, and set the value NP to the page number PBR. Step S11: It is determined whether the page numbers PBL and PBR are not equal to 0. Page number PB
If both L and PBR are not equal to 0, step S
In the case where one of the page numbers PBL and PBR is 0 in step 12, the process proceeds to step S13. In step S12, printing is performed to clear the page buffer Ba and set page numbers PBL and PBR to 0. Step S13: The value of the page number NP is decremented by one. Step S14: It is determined whether the page number NP is 0. If the page number NP is 0, step S
Proceed to step 15; if not 0, return to step S2. Step S15: Printing is performed in accordance with the print data stored in the page buffer Ba at that time, the page buffer Ba is cleared, and the page numbers PBL, P
BR is set to 0, and the process proceeds to the next step.

【0040】次に、Nページ分の印刷内容を1枚の印刷
用紙に印刷するNページ印刷機能を備えた本発明の第2
の実施の形態について説明する。なお、第1の実施の形
態と同じ構造を有するものについては、同じ符号を付与
することによってその説明を省略する。
Next, the second embodiment of the present invention having an N-page printing function for printing N pages of print content on one sheet of printing paper.
An embodiment will be described. In addition, about what has the same structure as 1st Embodiment, the description is abbreviate | omitted by attaching the same code | symbol.

【0041】図9は本発明の第2の実施の形態における
ページプリンタの動作を示すフローチャート、図10は
本発明の第2の実施の形態におけるページバッファの概
念図、図11は本発明の第2の実施の形態における正順
印刷時のページバッファの割当状態を説明する図、図1
2は本発明の第2の実施の形態における逆順印刷時のペ
ージバッファの割当状態を説明する図である。
FIG. 9 is a flowchart showing the operation of the page printer according to the second embodiment of the present invention, FIG. 10 is a conceptual diagram of a page buffer according to the second embodiment of the present invention, and FIG. FIG. 1 is a diagram for explaining an allocation state of page buffers at the time of normal printing according to the second embodiment.
FIG. 2 is a diagram for explaining a page buffer allocation state at the time of reverse printing according to the second embodiment of the present invention.

【0042】この場合、ROM12(図1)に書き込ま
れた制御プログラムによって印刷が行われる。また、ホ
ストコンピュータは、印刷データをページプリンタに送
る前に、印刷しようとする文書の全体のページ数、及び
正順印刷であるか逆順印刷であるかを示すコードを印刷
データの先頭に付加する。そして、CPU11の図示さ
れない全ページ数判断手段は、送られてきた印刷データ
から前記コードを抜き出し、該コードに基づいて印刷し
ようとする文書の全体のページ数を判定するとともに、
正順印刷が行われるかどうかを判断する。
In this case, printing is performed by the control program written in the ROM 12 (FIG. 1). Before sending the print data to the page printer, the host computer adds a code indicating the total number of pages of the document to be printed and a code indicating whether the print is in the normal order or in the reverse order to the head of the print data. . Then, the not-shown total page number determining means of the CPU 11 extracts the code from the transmitted print data, determines the total number of pages of the document to be printed based on the code,
It is determined whether or not normal printing is performed.

【0043】ここで、コードによって表される文書の全
体のページ数をTPとする。また、Nページ印刷機能を
使用して印刷を行う場合、ページバッファBcがN個に
分割され、ページバッファBcX(X=0、1、…、N
−1)が形成される。そして、これからページバッファ
Bcに書き込もうとする印刷データのページ番号をnp
とする。なお、ページ番号npは、ページバッファBc
に各ページの印刷データが書き込まれるたびにインクリ
メントされ、1からTPまで変化する。
Here, the total number of pages of the document represented by the code is TP. When printing is performed using the N-page printing function, the page buffer Bc is divided into N pages, and the page buffers BcX (X = 0, 1,..., N
-1) is formed. Then, the page number of the print data to be written to the page buffer Bc is set to np
And The page number np is the page buffer Bc
Is incremented each time the print data of each page is written to the page, and changes from 1 to TP.

【0044】まず、CPU11は、図示されない正順・
逆順判断手段によって、ホストコンピュータから送られ
たコードに従って正順印刷を行うかどうかを判断し、正
順印刷を行う場合、図示されない演算手段によって次の
第1の演算式に基づいて変数X X=np mod N を算出する。該変数Xは、値npを値Nで除算したとき
の余剰の値、modは余剰を算出するための関数であ
る。演算結果としての変数Xが0である場合、CPU1
1は、図示されないページ配列決定手段によって、変数
Xに値N−1をセットし、変数Xが0でない場合、変数
Xから1を減算する。そして、CPU11は、図示され
ない印刷データ書込手段によって、変数Xに対応する第
X+1のページバッファBcXに印刷データを書き込
む。
First, the CPU 11 operates in a normal order (not shown).
The reverse-order determining means determines whether to perform normal-order printing according to the code sent from the host computer. When performing normal-order printing, the calculating means (not shown) uses the variable XX = based on the following first arithmetic expression. Calculate np mod N. The variable X is a surplus value obtained by dividing the value np by the value N, and mod is a function for calculating the surplus. When the variable X as the operation result is 0, the CPU 1
1 sets a value N-1 to the variable X by a page arrangement determining means (not shown), and subtracts 1 from the variable X when the variable X is not 0. Then, the CPU 11 writes the print data into the (X + 1) th page buffer BcX corresponding to the variable X by a print data writing unit (not shown).

【0045】続いて、CPU11は、すべての印刷デー
タがページバッファBcに書き込まれたかどうかを判断
し、すべての印刷データがページバッファBcに書き込
まれた場合、ページバッファBc内の印刷データに従っ
て印刷機構部15によって印刷を行い、その後、ページ
バッファBcをクリアする。
Subsequently, the CPU 11 determines whether or not all the print data has been written to the page buffer Bc, and if all the print data has been written to the page buffer Bc, the CPU 11 determines the printing mechanism according to the print data in the page buffer Bc. Printing is performed by the unit 15, and then the page buffer Bc is cleared.

【0046】例えば、4ページ分の印刷内容を1枚の印
刷用紙に印刷する4ページ印刷機能を備えたページプリ
ンタにおいて、正順印刷によって印刷しようとする文書
の全体のページ数が4である場合、値Nは4であるの
で、値npが1であるとき、変数Xは X=1 mod 4 =1 になり、変数Xから1を減算すると0になる。したがっ
て、CPU11は、第1のページバッファBc0に印刷
データを書き込む。また、値npが2であるとき、変数
Xは2であるので、変数Xから1を減算すると1にな
る。したがって、CPU11は、第2のページバッファ
Bc1に印刷データを書き込む。そして、値npが3で
あるとき、変数Xは3であるので、変数Xから1を減算
すると2になる。したがって、CPU11は、第3のペ
ージバッファBc2に印刷データを書き込む。さらに、
値npが4であるとき、変数Xは0であるので、変数X
に3をセットする。したがって、CPU11は、第4の
ページバッファBc3に印刷データを書き込む。
For example, in a page printer having a four-page print function for printing four pages of print content on one print sheet, when the total number of pages of a document to be printed by normal printing is four. , The value N is 4, so when the value np is 1, the variable X becomes X = 1 mod 4 = 1, and when the variable X is subtracted from 1, the variable X becomes 0. Therefore, the CPU 11 writes the print data in the first page buffer Bc0. Also, when the value np is 2, the variable X is 2, so that 1 is subtracted from the variable X to be 1. Therefore, the CPU 11 writes the print data to the second page buffer Bc1. Then, when the value np is 3, the variable X is 3, and thus 1 is subtracted from the variable X to be 2. Therefore, the CPU 11 writes the print data in the third page buffer Bc2. further,
Since the variable X is 0 when the value np is 4, the variable X
Is set to 3. Therefore, the CPU 11 writes the print data in the fourth page buffer Bc3.

【0047】また、4ページ印刷機能を備えたページプ
リンタにおいて、正順印刷によって印刷しようとする文
書の全体のページ数が6である場合、値Nは4であるの
で、値npが1であるとき、変数Xは1であるので、変
数Xから1を減算すると0になる。したがって、CPU
11は、第1のページバッファBc0に印刷データを書
き込む。また、値npが2であるとき、変数Xは2であ
るので、変数Xから1を減算すると1になる。したがっ
て、CPU11は、第2のページバッファBc1に印刷
データを書き込む。そして、値npが3であるとき、変
数Xは3であるので、変数Xから1を減算すると2にな
る。したがって、CPU11は、第3のページバッファ
Bc2に印刷データを書き込む。さらに、値npが4で
あるとき、変数Xは0であるので、変数Xに3をセット
する。したがって、CPU11は、第4のページバッフ
ァBc3に印刷データを書き込む。そして、値npが5
であるとき、変数Xは1であるので、変数Xから1を減
算すると0になる。したがって、CPU11は、第1の
ページバッファBc0に印刷データを書き込む。また、
値npが6であるとき、変数Xは2であるので、変数X
から1を減算すると1になる。したがって、CPU11
は、第2のページバッファBc1に印刷データを書き込
む。
In a page printer having a four-page printing function, if the total number of pages of a document to be printed by normal printing is 6, the value N is 4, and the value np is 1. At this time, since the variable X is 1, subtracting 1 from the variable X results in 0. Therefore, CPU
11 writes the print data in the first page buffer Bc0. Also, when the value np is 2, the variable X is 2, so that 1 is subtracted from the variable X to be 1. Therefore, the CPU 11 writes the print data to the second page buffer Bc1. Then, when the value np is 3, the variable X is 3, and thus 1 is subtracted from the variable X to be 2. Therefore, the CPU 11 writes the print data in the third page buffer Bc2. Further, when the value np is 4, the variable X is 0, so 3 is set to the variable X. Therefore, the CPU 11 writes the print data in the fourth page buffer Bc3. And the value np is 5
Since the variable X is 1, when 1 is subtracted from the variable X, it becomes 0. Therefore, the CPU 11 writes the print data in the first page buffer Bc0. Also,
When the value np is 6, the variable X is 2, so the variable X
Subtracting 1 from 1 gives 1. Therefore, the CPU 11
Writes the print data in the second page buffer Bc1.

【0048】一方、逆順印刷が行われる場合、CPU1
1は、前記演算手段によって次の第2の演算式に基づい
て変数X X=N−[{np+N−(TP mod N)}mod
N] を算出する。
On the other hand, when the reverse printing is performed, the CPU 1
1 is a variable XX = N-[{np + N- (TP mod N)} mod based on the following second calculation expression by the calculation means.
N] is calculated.

【0049】続いて、CPU11は、前記ページ配列決
定手段によって、演算結果としての変数XがNであるか
どうかを判断し、変数XがNでない場合、前記印刷デー
タ書込手段によって、変数Xに対応する第X+1のペー
ジバッファBcXに印刷データを書き込む。また、変数
XがNである場合、CPU11は、前記ページ配列決定
手段によって、変数Xに0をセットし、前記印刷データ
書込手段によって、変数Xに対応する第1のページバッ
ファBc0に印刷データを書き込む。
Subsequently, the CPU 11 determines whether or not the variable X as an operation result is N by the page arrangement determining means. If the variable X is not N, the CPU 11 sets the variable X to the variable X by the print data writing means. Write the print data to the corresponding (X + 1) th page buffer BcX. When the variable X is N, the CPU 11 sets the variable X to 0 by the page arrangement determining means, and stores the print data in the first page buffer Bc0 corresponding to the variable X by the print data writing means. Write.

【0050】したがって、例えば、4ページ分の印刷内
容を1枚の印刷用紙に印刷する4ページ印刷機能を備え
たページプリンタにおいて、逆順印刷によって印刷しよ
うとする文書の全体のページ数が4である場合、値N及
び値TPはいずれも4であるので、値npが1であると
き、変数Xは X=4−[{1+4−(4 mod 4)}mod 4] =3 になる。そして、CPU11は、第4のページバッファ
Bc3に印刷データを書き込む。また、値npが2であ
るとき、変数Xは2になり、CPU11は、第3のペー
ジバッファBc2に印刷データを書き込む。そして、値
npが3であるとき、変数Xは1になり、CPU11
は、第2のページバッファBc1に印刷データを書き込
む。さらに、値npが4であるとき、変数Xは4にな
り、変数Xに0がセットされる。したがって、CPU1
1は、第1のページバッファBc0に印刷データを書き
込む。
Therefore, for example, in a page printer having a four-page printing function for printing four pages of print content on one sheet of paper, the total number of pages of a document to be printed by reverse printing is four. In this case, since both the value N and the value TP are 4, when the value np is 1, the variable X becomes X = 4-[{1 + 4- (4 mod 4)} mod 4] = 3. Then, the CPU 11 writes the print data in the fourth page buffer Bc3. When the value np is 2, the variable X becomes 2, and the CPU 11 writes the print data in the third page buffer Bc2. When the value np is 3, the variable X becomes 1, and the CPU 11
Writes the print data in the second page buffer Bc1. Further, when the value np is 4, the variable X becomes 4, and 0 is set to the variable X. Therefore, CPU1
1 writes print data in the first page buffer Bc0.

【0051】このように、印刷しようとする文書の全体
のページ数TP、第X+1のページバッファBcXの
数、及び各第X+1ページバッファBcXに書き込もう
とする印刷データのページ番号npに基づいて演算が行
われ、演算結果に基づいて各ページの配列が決定される
ので、逆順印刷を行っても印刷用紙の最初のページに余
白が形成されることがない。その結果、各ページの配列
を所期のものと同じにすることができる。例えば、4ペ
ージ印刷機能を備えたページプリンタにおいて、逆順印
刷を行う場合、各ページは、図10に示されるように、
左上、右上、左下及び右下の順に配列されるので、各ペ
ージの配列を所期のものと同じにすることができる。
As described above, the calculation is performed based on the total number of pages TP of the document to be printed, the number of the (X + 1) th page buffer BcX, and the page number np of the print data to be written in each of the (X + 1) th page buffers BcX. This is performed, and the arrangement of each page is determined based on the calculation result. Therefore, no margin is formed on the first page of the printing paper even when the reverse printing is performed. As a result, the arrangement of each page can be made the same as the expected one. For example, when performing reverse printing on a page printer having a four-page printing function, each page is printed as shown in FIG.
Since the pages are arranged in the order of upper left, upper right, lower left, and lower right, the arrangement of each page can be the same as the intended one.

【0052】なお、本実施の形態においては、各ページ
は左上、右上、左下及び右下の順に配列されるようにな
っているが、各第X+1のページバッファBcXの順を
変更することによって各ページを適宜順で配列すること
もできる。例えば、各第X+1のページバッファBcX
の順を逆にすると、各ページを右下、左下、右上及び左
上の順に配列することができる。
In this embodiment, each page is arranged in the order of upper left, upper right, lower left, and lower right. However, by changing the order of the (X + 1) th page buffer BcX, each page is changed. Pages can be arranged in an appropriate order. For example, the (X + 1) th page buffer BcX
Can be arranged in the order of lower right, lower left, upper right and upper left.

【0053】次に、フローチャートについて説明する。 ステップS21 正順印刷を行うかどうかを判断する。
正順印刷を行う場合はステップS22に、行わない場合
はステップS26に進む。 ステップS22 X=np mod Nによって変数X
を算出する。 ステップS23 変数Xが0であるかどうかを判断す
る。変数Xが0である場合はステップS25に、0でな
い場合はステップS24に進む。 ステップS24 変数Xの値を1減算する。 ステップS25 変数Xに値N−1をセットする。 ステップS26 X=N−[{np+N−(TP mo
d N)}mod N]によって変数Xを算出する。 ステップS27 変数Xが値Nであるかどうかを判断す
る。変数Xが値Nである場合はステップS28に、値N
でない場合はステップS29に進む。 ステップS28 変数Xに0をセットする。 ステップS29 第X+1のページバッファBcXに印
刷データを書き込む。 ステップS30 すべての印刷データがページバッファ
Bcに書き込まれたかどうかを判断する。すべての印刷
データがページバッファBcに書き込まれた場合はステ
ップS31に、書き込まれていない場合はステップS3
2に進む。 ステップS31 印刷を行い、ページバッファBcをク
リアし、リターンする。 ステップS32 値npと値TPとが等しいかどうかを
判断する。値npと値TPとが等しい場合はステップS
33に進み、等しくない場合はステップS21に戻る。 ステップS33 ページバッファBc内の印刷データに
従って印刷を行い、ページバッファBcをクリアする。
Next, the flowchart will be described. Step S21: It is determined whether or not to perform normal printing.
If normal printing is to be performed, the process proceeds to step S22; otherwise, the process proceeds to step S26. Step S22 X = variable X by np mod N
Is calculated. Step S23: Determine whether the variable X is 0. If the variable X is 0, the process proceeds to step S25; otherwise, the process proceeds to step S24. Step S24: The value of the variable X is decremented by one. Step S25: Set a value N-1 to the variable X. Step S26 X = N − [{np + N− (TP mo
d N) {mod N] to calculate a variable X. Step S27: It is determined whether or not the variable X is a value N. If the variable X is the value N, the process proceeds to step S28.
If not, the process proceeds to step S29. Step S28: Set 0 to the variable X. Step S29: Write print data to the (X + 1) th page buffer BcX. Step S30: to judge whether all the print data has been written to the page buffer Bc. If all the print data has been written to the page buffer Bc, the process proceeds to step S31; otherwise, the process proceeds to step S3.
Proceed to 2. Step S31: to print, clear the page buffer Bc, and return. Step S32: It is determined whether or not the value np is equal to the value TP. If the value np is equal to the value TP, step S
The process proceeds to step S33, and if not equal, returns to step S21. Step S33: Perform printing in accordance with the print data in the page buffer Bc, and clear the page buffer Bc.

【0054】なお、本発明は前記実施の形態に限定され
るものではなく、本発明の趣旨に基づいて種々変形させ
ることが可能であり、それらを本発明の範囲から排除す
るものではない。
The present invention is not limited to the above embodiment, but can be variously modified based on the gist of the present invention, and they are not excluded from the scope of the present invention.

【0055】[0055]

【発明の効果】以上詳細に説明したように、本発明によ
れば、印刷処理方法においては、各ページの印刷データ
の先頭にそれぞれ付加されたコードに基づいてページ番
号を判定し、該ページ番号に対応するページバッファが
空いているかどうかを判断し、該ページバッファが空い
ている場合に、前記ページ番号の印刷データを書き込
む。
As described above in detail, according to the present invention, in the print processing method, the page number is determined based on the code added to the head of the print data of each page, and the page number is determined. Is determined, and if the page buffer is free, print data of the page number is written.

【0056】この場合、ページ番号に対応するページバ
ッファが空いていると、前記ページ番号の印刷データを
書き込むようになっているので、逆順印刷を行っても左
右のページが逆になってしまうことがなくなるだけでな
く、印刷用紙の最初のページに余白が形成されることが
ない。その結果、各ページの配列を所期のものと同じに
することができる。
In this case, if the page buffer corresponding to the page number is empty, the print data of the page number is written, so that even if reverse printing is performed, the left and right pages may be reversed. Not only is eliminated, but no margin is formed on the first page of the printing paper. As a result, the arrangement of each page can be made the same as the expected one.

【0057】本発明の他の印刷処理方法においては、印
刷しようとする文書の全体のページ数を、印刷データの
先頭に付加されたコードに基づいて判定し、前記全体の
ページ数、ページバッファの数、及び各ページバッファ
に書き込もうとする印刷データのページ番号に基づいて
演算を行い、演算結果に基づいて各ページの配列を決定
する。
In another print processing method of the present invention, the total number of pages of a document to be printed is determined based on a code added to the head of print data, and the total number of pages and the number of pages in the page buffer are determined. The calculation is performed based on the number and the page number of the print data to be written into each page buffer, and the arrangement of each page is determined based on the calculation result.

【0058】この場合、印刷しようとする文書の全体の
ページ数、ページバッファの数、及び各ページバッファ
に書き込もうとする印刷データのページ番号に基づいて
演算が行われ、演算結果に基づいて各ページの配列が決
定されるので、逆順印刷を行っても印刷用紙の最初のペ
ージに余白が形成されることがない。その結果、各ペー
ジの配列を所期のものと同じにすることができる。
In this case, calculation is performed based on the total number of pages of the document to be printed, the number of page buffers, and the page number of the print data to be written into each page buffer, and based on the calculation result, each page is calculated. Is determined, no margin is formed on the first page of the printing paper even when the reverse printing is performed. As a result, the arrangement of each page can be made the same as the expected one.

【図面の簡単な説明】[Brief description of the drawings]

【図1】本発明の第1の実施の形態におけるページプリ
ンタの制御部のブロック図である。
FIG. 1 is a block diagram of a control unit of a page printer according to a first embodiment of the present invention.

【図2】従来の2ページ印刷機能だけを使用して印刷を
行う場合の各ページの配列を示す第1の図である。
FIG. 2 is a first diagram illustrating an arrangement of each page when printing is performed using only a conventional two-page printing function.

【図3】従来の2ページ印刷機能及び逆順印刷機能を使
用して印刷を行う場合の各ページの配列を示す第1の図
である。
FIG. 3 is a first diagram showing an arrangement of each page when printing is performed using a conventional two-page printing function and a reverse printing function.

【図4】従来の2ページ印刷機能だけを使用して印刷を
行う場合の各ページの配列を示す第2の図である。
FIG. 4 is a second diagram showing the arrangement of each page when printing is performed using only the conventional two-page printing function.

【図5】従来の2ページ印刷機能及び逆順印刷機能を使
用して印刷を行う場合の各ページの配列を示す第2の図
である。
FIG. 5 is a second diagram showing the arrangement of each page when printing is performed using the conventional two-page printing function and the reverse printing function.

【図6】本発明の第1の実施の形態におけるマルチペー
ジ印刷機能を示す第1の図である。
FIG. 6 is a first diagram illustrating a multi-page printing function according to the first embodiment of the present invention.

【図7】本発明の第1の実施の形態におけるマルチペー
ジ印刷機能を示す第2の図である。
FIG. 7 is a second diagram illustrating a multi-page printing function according to the first embodiment of the present invention.

【図8】本発明の第1の実施の形態におけるページプリ
ンタの動作を示すフローチャートである。
FIG. 8 is a flowchart illustrating an operation of the page printer according to the first embodiment of the present invention.

【図9】本発明の第2の実施の形態におけるページプリ
ンタの動作を示すフローチャートである。
FIG. 9 is a flowchart illustrating an operation of the page printer according to the second embodiment of the present invention.

【図10】本発明の第2の実施の形態におけるページバ
ッファの概念図である。
FIG. 10 is a conceptual diagram of a page buffer according to the second embodiment of the present invention.

【図11】本発明の第2の実施の形態における正順印刷
時のページバッファの割当状態を説明する図である。
FIG. 11 is a diagram illustrating an allocation state of a page buffer at the time of normal printing according to the second embodiment of the present invention.

【図12】本発明の第2の実施の形態における逆順印刷
時のページバッファの割当状態を説明する図である。
FIG. 12 is a diagram illustrating a page buffer allocation state during reverse printing according to the second embodiment of the present invention.

【符号の説明】[Explanation of symbols]

Ba〜Bc ページバッファ NP、np、PBL、PBR ページ番号 TP ページ数 Ba-Bc Page buffer NP, np, PBL, PBR Page number TP Number of pages

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】 (a)各ページの印刷データの先頭にそ
れぞれ付加されたコードに基づいてページ番号を判定
し、(b)該ページ番号に対応するページバッファが空
いているかどうかを判断し、(c)該ページバッファが
空いている場合に、前記ページ番号の印刷データを書き
込むことを特徴とする印刷処理方法。
(A) determining a page number based on a code added to the head of print data of each page; (b) determining whether a page buffer corresponding to the page number is free; (C) A print processing method, wherein print data of the page number is written when the page buffer is empty.
【請求項2】 (a)印刷しようとする文書の全体のペ
ージ数を、印刷データの先頭に付加されたコードに基づ
いて判定し、(b)前記全体のページ数、ページバッフ
ァの数、及び各ページバッファに書き込もうとする印刷
データのページ番号に基づいて演算を行い、(c)演算
結果に基づいて各ページの配列を決定することを特徴と
する印刷処理方法。
(A) determining the total number of pages of the document to be printed based on a code added to the head of the print data; and (b) determining the total number of pages, the number of page buffers, and A print processing method comprising: performing an operation based on the page number of print data to be written into each page buffer; and (c) determining the arrangement of each page based on the operation result.
JP09992299A 1999-04-07 1999-04-07 Print processing method Expired - Fee Related JP4803567B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP09992299A JP4803567B2 (en) 1999-04-07 1999-04-07 Print processing method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP09992299A JP4803567B2 (en) 1999-04-07 1999-04-07 Print processing method

Publications (2)

Publication Number Publication Date
JP2000289304A true JP2000289304A (en) 2000-10-17
JP4803567B2 JP4803567B2 (en) 2011-10-26

Family

ID=14260274

Family Applications (1)

Application Number Title Priority Date Filing Date
JP09992299A Expired - Fee Related JP4803567B2 (en) 1999-04-07 1999-04-07 Print processing method

Country Status (1)

Country Link
JP (1) JP4803567B2 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007203578A (en) * 2006-02-01 2007-08-16 Kyocera Mita Corp Image forming apparatus and its print control program
JP2008188956A (en) * 2007-02-07 2008-08-21 Canon Inc Printing apparatus, printing control device, and its control method

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH06183095A (en) * 1992-12-21 1994-07-05 Fuji Xerox Co Ltd Printing processing device
JPH07137237A (en) * 1993-11-15 1995-05-30 Canon Inc Printer and printer controller
JPH08107504A (en) * 1994-10-06 1996-04-23 Toshiba Corp Network print system
JPH10143337A (en) * 1996-11-11 1998-05-29 Fuji Xerox Co Ltd Print controller
EP0895184A2 (en) * 1997-07-30 1999-02-03 Canon Kabushiki Kaisha Print control apparatus, print control method, and storage medium
JPH1148581A (en) * 1997-08-04 1999-02-23 Canon Inc Data processor, data processing method therefor, and recording medium storing computer readable program

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH06183095A (en) * 1992-12-21 1994-07-05 Fuji Xerox Co Ltd Printing processing device
JPH07137237A (en) * 1993-11-15 1995-05-30 Canon Inc Printer and printer controller
JPH08107504A (en) * 1994-10-06 1996-04-23 Toshiba Corp Network print system
JPH10143337A (en) * 1996-11-11 1998-05-29 Fuji Xerox Co Ltd Print controller
EP0895184A2 (en) * 1997-07-30 1999-02-03 Canon Kabushiki Kaisha Print control apparatus, print control method, and storage medium
JPH1148581A (en) * 1997-08-04 1999-02-23 Canon Inc Data processor, data processing method therefor, and recording medium storing computer readable program

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007203578A (en) * 2006-02-01 2007-08-16 Kyocera Mita Corp Image forming apparatus and its print control program
JP2008188956A (en) * 2007-02-07 2008-08-21 Canon Inc Printing apparatus, printing control device, and its control method

Also Published As

Publication number Publication date
JP4803567B2 (en) 2011-10-26

Similar Documents

Publication Publication Date Title
JPS6022234A (en) Form overlay type printer
US5136688A (en) Print data processing apparatus for an image forming apparatus
JP3156927B2 (en) Printer with duplex printing function and duplex printing control device
JP2000289304A (en) Print processing method
JPH0564925A (en) Image forming device
JP3116354B2 (en) Printer data management method
JP2790120B2 (en) Printing equipment
JPH078584B2 (en) Character generator for double-sided printing
JPS63123765A (en) Recording device
JP2007067579A (en) Image forming apparatus
JPS5941051A (en) Character pattern generator
JPH07246739A (en) Printer for cut paper
JP3001081B2 (en) Printer
JPH0671798B2 (en) Character generator for double-sided printing
JP2003143387A (en) Printer, its page assignment method, and storage medium
JP3640123B2 (en) Image forming apparatus, image forming method, and computer readable recording medium recording image forming apparatus control program
JPH07137360A (en) Image forming device
JP2506110B2 (en) Double-sided printing control device
JPH0630923B2 (en) Printer
JP3129289B2 (en) Drawing control system
JP2002172829A (en) Imaging apparatus
JPH111048A (en) Printing control method and printing apparatus
JPS61106262A (en) Printer
JPH0263870A (en) Printer
JP2003162199A (en) Printer

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20050822

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20090310

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20090511

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20090609

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20090803

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20091006

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20100106

A911 Transfer to examiner for re-examination before appeal (zenchi)

Free format text: JAPANESE INTERMEDIATE CODE: A911

Effective date: 20100115

A912 Re-examination (zenchi) completed and case transferred to appeal board

Free format text: JAPANESE INTERMEDIATE CODE: A912

Effective date: 20100212

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20110421

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20110704

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20110803

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20140819

Year of fee payment: 3

LAPS Cancellation because of no payment of annual fees