JPH05294014A - Printer - Google Patents
PrinterInfo
- Publication number
- JPH05294014A JPH05294014A JP12548392A JP12548392A JPH05294014A JP H05294014 A JPH05294014 A JP H05294014A JP 12548392 A JP12548392 A JP 12548392A JP 12548392 A JP12548392 A JP 12548392A JP H05294014 A JPH05294014 A JP H05294014A
- Authority
- JP
- Japan
- Prior art keywords
- page
- data
- output
- unit
- order
- 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.)
- Pending
Links
Landscapes
- Dot-Matrix Printers And Others (AREA)
Abstract
Description
【0001】[0001]
【産業上の利用分野】本発明は、ホストコンピュータ等
の外部装置からデータを受信して頁単位で印刷を行う印
刷装置に関するものである。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a printing apparatus which receives data from an external device such as a host computer and prints in page units.
【0002】[0002]
【従来の技術】従来、この種の装置では、印刷出力され
た用紙を排紙する際に、図15に示すように印刷面が表
面となるように排紙を行うフェイスアップと、印刷面が
裏面となるように排紙を行うフェイスダウンを選択して
行えるように構成されている。この際、フェイスダウン
を選択した場合、ホストから受信した頁順に印刷処理を
行えば、正規の頁に積載された印刷物が得られるように
構成されている。2. Description of the Related Art Conventionally, in this type of device, when a printed sheet is ejected, face-up is performed so that the printed surface is the front side as shown in FIG. It is configured so that the face-down for discharging the paper can be selected and performed so as to be the back side. At this time, when face-down is selected, print processing is performed in the order of pages received from the host, so that a printed material stacked on regular pages can be obtained.
【0003】[0003]
【発明が解決しようとする課題】ところが、フェイスア
ップを選択またはフェイスアップ出力のみの排紙を行う
印刷装置においては、例えばホストコンピュータ等の外
部装置からA,B,Cの順で送信された頁が、図15に
示すようにC,B,Aという順序で積載されるため、す
なわち先頭出力頁が最階下頁となるため、正規の頁出力
とは逆順に積み上げられることとなる。従って、フェイ
スアップ時には、出力された用紙の頁を正規の頁順に並
び替える丁合作業を余儀なくされ、出力後の後処理負担
が重いという問題点があった。However, in a printing apparatus that selects face-up or discharges only face-up output, pages transmitted in the order of A, B, and C from an external device such as a host computer. However, since the pages are stacked in the order of C, B, and A as shown in FIG. 15, that is, the top output page is the bottommost page, the pages are stacked in the reverse order of the regular page output. Therefore, at the time of face-up, there is a problem that the collation work of rearranging the pages of the output paper sheets in the regular page order is inevitable, and the post-processing load after the output is heavy.
【0004】本発明は、上記の問題点を解決するために
なされたもので、ビットマップデータの印字手段への転
送出力頁順序を排紙出力モード指定状態に基づいて制御
することにより、排紙出力モードがフェイスアップ指定
時に正規の頁順に揃った印字出力を得ることができる印
刷装置を得ることを可能とする。The present invention has been made to solve the above-mentioned problems, and discharges papers by controlling the order of output pages of bitmap data transferred to the printing means based on the discharge output mode designation state. (EN) It is possible to obtain a printing apparatus that can obtain print output in which regular output is arranged in order of pages when the output mode is designated as face-up.
【0005】[0005]
【課題を解決するための手段】本発明に係る印刷装置
は、入力される印刷情報を頁単位に受信するデータ受信
部と、このデータ受信部が受信した印刷情報を解析して
ビットマップデータに展開する展開手段と、この展開手
段により順次展開された複数頁分のビットマップデータ
を格納するデータ格納手段と、このデータ格納手段に格
納されたビットマップデータに基づいて印字を行う印字
手段と、データ格納手段に頁順に格納されたビットマッ
プデータの印字手段への転送出力頁順序を排紙出力モー
ド指定状態に基づいて制御する制御手段とを有するもの
である。A printing apparatus according to the present invention includes a data receiving unit for receiving input print information in page units, and analyzing the print information received by the data receiving unit into bitmap data. Expanding means for expanding, data storing means for storing bitmap data for a plurality of pages sequentially expanded by the expanding means, and printing means for performing printing based on the bitmap data stored in the data storing means, And a control means for controlling the transfer output page order of the bitmap data stored in the data storage means in the page order to the printing means based on the discharge output mode designation state.
【0006】また、入力される印刷情報を頁単位に受信
するデータ受信部と、このデータ受信部が受信した印刷
情報を解析して所定のページ出力情報を頁順に格納する
格納手段と、この格納手段に格納されたページ出力情報
に基づいてビットマップデータに展開する展開手段と、
この展開手段から出力されるビットマップデータに基づ
いて印字を行う印字手段と、格納手段に頁順に格納され
たページ出力情報の展開手段への転送出力頁順序を排紙
出力モード指定状態に基づいて制御する制御手段とを有
するものである。Further, a data receiving unit for receiving the input print information in page units, a storage unit for analyzing the print information received by the data receiving unit and storing predetermined page output information in page order, and the storing unit. Expansion means for expanding the bitmap data based on the page output information stored in the means,
The printing means for printing based on the bit map data output from the developing means, and the transfer output page order of the page output information stored in the storing means in the page order to the developing means are based on the discharge output mode designation state. And control means for controlling.
【0007】さらに、入力される印刷情報を頁単位に受
信するデータ受信部と、このデータ受信部が受信した印
刷情報を解析してビットマップデータに変換しながら圧
縮データを生成する変換手段と、この変換手段により圧
縮された圧縮データを格納する格納手段と、この格納手
段に格納された圧縮データに基づいてビットマップデー
タに展開する展開手段と、この展開手段により展開され
たビットマップデータに基づいて印字を行う印字手段
と、格納手段に頁順に格納された圧縮データの展開手段
への転送出力頁順序を排紙出力モード指定状態に基づい
て制御する制御手段とを有するものである。Further, a data receiving section for receiving the input print information page by page, and a converting means for analyzing the print information received by the data receiving section and converting the print information into bitmap data to generate compressed data. Storage means for storing the compressed data compressed by the conversion means, decompression means for decompressing the compressed data stored in the storage means into bitmap data, and decompression means for decompressing the bitmap data And a control means for controlling the transfer output page order of the compressed data stored in the storage means in page order to the decompression means based on the discharge output mode designation state.
【0008】[0008]
【作用】本発明においては、データ受信部が印刷情報を
頁単位に受信すると、展開手段が受信した印刷情報を解
析してビットマップデータに展開し、データ格納手段に
入力頁順に格納して行き、最終頁のビットマップデータ
が格納されたら、制御手段がデータ格納手段に入力頁順
に格納されたビットマップデータの印字手段への転送出
力頁順序を排紙出力モード指定状態に基づいて制御する
ことにより、フェイスアップ状態で正規の頁順に揃った
印字出力を得ることを可能とする。In the present invention, when the data receiving section receives the print information in page units, the expanding means analyzes the received print information and expands it into bitmap data, and stores it in the data storing means in the order of input pages. When the bitmap data of the last page is stored, the control means controls the transfer output page order of the bitmap data stored in the data storage means in the order of input pages to the printing means based on the discharge output mode designation state. Thus, it is possible to obtain a print output in a regular page order in a face-up state.
【0009】また、データ受信部が印刷情報を頁単位に
受信すると、格納手段に印刷情報の解析により得られる
ページ出力情報を入力頁順に格納して行き、最終頁のペ
ージ出力情報が格納されたら、制御手段が格納手段に頁
順に格納されたページ出力情報の展開手段への転送出力
頁順序を排紙出力モード指定状態に基づいて制御するこ
とにより、入力される印刷情報を少ないメモリで管理す
ることができ、かつフェイスアップ状態で正規の頁順に
揃った印字出力を得ることを可能とする。When the data receiving unit receives the print information page by page, the storage unit stores the page output information obtained by the analysis of the print information in the order of input pages, and when the page output information of the final page is stored. The control means controls the output page order of the page output information stored in the storage means in the page order to the expansion means based on the discharge output mode designation state, thereby managing the input print information with a small memory. In addition, it is possible to obtain a print output in a regular page order in a face-up state.
【0010】さらに、データ受信部が印刷情報を頁単位
に受信すると、変換手段が受信した印刷情報を解析して
ビットマップデータに変換しながら圧縮データを生成し
て入力頁順に格納手段に格納して行き、最終頁の圧縮デ
ータが格納されたら、制御手段が格納手段に入力頁順に
格納された圧縮データの展開手段への転送出力頁順序を
排紙出力モード指定状態に基づいて制御することによ
り、入力される頁数の多い印刷情報を少ないメモリで管
理することができ、かつフェイスアップ状態で正規の頁
順に揃った印字出力を得ることを可能とする。Further, when the data receiving unit receives the print information in page units, the converting unit analyzes the print information received and converts it into bitmap data to generate compressed data, which is stored in the storing unit in the order of input pages. When the compressed data of the final page is stored, the control means controls the transfer output page order to the expansion means of the compressed data stored in the storage means in the input page order based on the discharge output mode designation state. The print information with a large number of pages to be input can be managed with a small memory, and it is possible to obtain a print output in which the pages are arranged in a regular page order in a face-up state.
【0011】[0011]
〔第1実施例〕図1は本発明の第1実施例を示す印刷装
置の一例を示す要部構成ブロック図である。[First Embodiment] FIG. 1 is a block diagram of the essential parts showing an example of a printer according to the first embodiment of the present invention.
【0012】図において、1は印刷装置本体で、外部装
置としてのホストコンピュ−タ2から転送されるデータ
を処理して、入力頁から出力頁に編成しながら出力情報
を印刷する。11は入力部で、ホストコンピュータ2か
ら転送されるデータを受信する。12は解析部で、入力
部11が受信した入力データがジョブ開始/終了に関す
るものか、もしくは文字の印字位置やサイズ指定に関す
るものであるかを解析する。13は展開部で、上記入力
データに基づいて1頁分のビットマップデータを作成す
る。14はページ格納部で、展開部13によりビットマ
ップ展開されたビットマップデータを複数頁分格納する
ページ格納部である。15は印字部で、ページ格納部1
4内のビットマップデータを印刷用紙に印字する。16
は制御部で、図示しないROM,RAM等の記憶手段に
記憶された後述する各種の制御プログラムに基づいて印
刷装置本体1を総括的に制御する。In the figure, reference numeral 1 denotes a printer main body which processes data transferred from a host computer 2 as an external device and prints output information while organizing an input page into an output page. An input unit 11 receives data transferred from the host computer 2. An analysis unit 12 analyzes whether the input data received by the input unit 11 is related to job start / end or character print position or size designation. Reference numeral 13 is a development unit, which creates bitmap data for one page based on the input data. A page storage unit 14 is a page storage unit for storing a plurality of pages of bitmap data expanded by the expansion unit 13. Reference numeral 15 is a printing unit, which is a page storage unit 1.
The bitmap data in 4 is printed on the printing paper. 16
Is a control unit that comprehensively controls the printing apparatus main body 1 based on various control programs, which will be described later, stored in storage means such as a ROM and a RAM (not shown).
【0013】このように構成された印刷装置において、
データ受信部(入力部11)が印刷情報を頁単位に受信
すると、展開手段(展開部13)が受信した印刷情報を
解析してビットマップデータに展開し、データ格納手段
(ページ格納部14)に入力頁順に格納して行き、最終
頁のビットマップデータが格納されたら、制御手段(制
御部16)がデータ格納手段に入力頁順に格納されたビ
ットマップデータの印字手段への転送出力頁順序を排紙
出力モード指定状態に基づいて制御することにより、フ
ェイスアップ状態で正規の頁順に揃った印字出力を得る
ことを可能とする。In the printing apparatus configured as described above,
When the data receiving unit (input unit 11) receives the print information page by page, the expansion means (expansion unit 13) analyzes the received print information and expands it into bitmap data, and the data storage unit (page storage unit 14). When the bitmap data of the last page is stored in the input page order, the control means (control section 16) transfers the bitmap data stored in the data storage means in the input page order to the printing means and outputs the output page order. It is possible to obtain a print output in a regular page order in a face-up state by controlling the sheet discharge output mode based on the designated state.
【0014】以下、図2〜図6を参照しながら本発明に
係る印刷装置の第1の頁編成出力処理動作について説明
する。なお、以下の説明では、フェイスアップで出力す
るプリンタを例とするが、モードの切り換えかどうかの
判定を事前に行うように構成しても良いことは言うまで
もない。The first page organization output processing operation of the printing apparatus according to the present invention will be described below with reference to FIGS. In the following description, a face-up output printer is taken as an example, but it goes without saying that it may be configured to determine in advance whether to switch modes.
【0015】図2は本発明に係る印刷装置の第1の頁編
成出力処理手順の一例を示すフローチャートである。な
お、(1) 〜(8) は各ステップを示す。また、本実施例で
は印刷装置本体1がJOB(作業単位)で出力する。FIG. 2 is a flowchart showing an example of a first page organization output processing procedure of the printing apparatus according to the present invention. Note that (1) to (8) indicate each step. Further, in the present embodiment, the printing apparatus main body 1 outputs in JOB (work unit).
【0016】先ず、ホストコンピュータ2からの送信デ
ータを入力部11によって受信するデータ入力ルーチン
を実行する(1) 。ここで、入力データとは、JOB(作
業単位)の開始/終了、さらに文字データや印刷ページ
を形成するための様々な印字制御を行うコマンド(例え
ば印字位置の指定や印刷用紙に対する印字方向,文字の
大きさ,行間隔の指定,改頁等)である。上記コマンド
は、図3に示すような形態であり、コマンドバイト3
a,パラメータ3b,ターミネータ3cの3つの部分よ
り成る。通常、コマンドバイト3aによってコマンドの
種類を示し、パラメータ3bによって当該コマンドに関
する詳細な指定を行い、ターミネータ3cによって当該
コマンドの終結を示す。また、通常1つの作業単位を図
4に示すように、JOB開始命令の後に複数頁1〜nの
データが続き、作業の終結を示すためのJOB終了命令
が最後に転送される。First, a data input routine for receiving the transmission data from the host computer 2 by the input unit 11 is executed (1). Here, the input data is a command to start / end JOB (work unit) and various print controls for forming character data or a print page (for example, designation of print position, print direction on print paper, character Size, line spacing, page breaks, etc.). The above command has a form as shown in FIG.
a, a parameter 3b, and a terminator 3c. Normally, the command byte 3a indicates the type of command, the parameter 3b specifies detailed information about the command, and the terminator 3c indicates the end of the command. As shown in FIG. 4, one work unit is usually followed by data of a plurality of pages 1 to n after the JOB start command, and the JOB end command for indicating the end of the work is transferred last.
【0017】次いで、解析部12によって入力データを
解析する(2) 。そして、入力データの解析結果がJOB
終了を指定するコマンドかどうかを判定し(3) 、NOな
らば入力データが改頁(ページ終了)を指定するもので
あるかどうかを判定し(4) 、NOならば展開部13によ
って上記データ解析結果に基づいて印字部15が印字を
行うのに最も適した形態のビットマップデータを、図5
に示すようにページ格納部14上に形成するビットマッ
プ展開処理ルーチンを実行し(5) 、ステップ(1) に戻
る。Next, the analyzing unit 12 analyzes the input data (2). Then, the analysis result of the input data is JOB.
It is judged whether or not the command specifies the end (3). If NO, it is judged whether or not the input data specifies a page break (end of page) (4). The bitmap data of the most suitable form for the printing unit 15 to print based on the analysis result is shown in FIG.
As shown in (1), the bitmap expansion processing routine formed on the page storage unit 14 is executed (5), and the process returns to step (1).
【0018】一方、ステップ(4) の判定でYESの場合
は、図6に示す形態のページ格納部14内のスタックへ
当該頁のビットマップデータを格納している前記ビット
マップデータ格納部のアドレスポインタをプッシュする
出力スタックへのPUSH処理を実行し(6) 、ステップ
(1) に戻る。当該スタックは、LIFO(lastin
fast out)の形態を取る。On the other hand, if the determination in step (4) is YES, the address of the bitmap data storage unit that stores the bitmap data of the page in the stack in the page storage unit 14 of the form shown in FIG. Execute PUSH processing to the output stack that pushes the pointer (6), and step
Return to (1). The stack is a LIFO (lastin
fast out).
【0019】ここで、次の頁の開始が指定された場合
は、図5に示すようにビットマップデータ格納のエリア
を次のブロック(ページ2ポインタで示されるエリア)
へ進める。When the start of the next page is designated, the area for storing the bitmap data is changed to the next block (the area indicated by the page 2 pointer) as shown in FIG.
Proceed to.
【0020】一方、ステップ(3) において、入力データ
がJOB終了を指定するコマンドであると判別した場
合、ページ格納部14内のスタックからアドレスポイン
タのPOPを行う(7) 。スタックは、LIFO(las
t in fast out)の形態を取るので、最後
にPUSHされたポインタから順にPOPされ、POP
したアドレスポインタが指すページ格納部14内ビット
マップデータに基づいて印字部15により印刷用への印
字を行う(8) 。以上の流れによって1つのジョブを終了
する。On the other hand, if it is determined in step (3) that the input data is a command designating the end of JOB, POP of the address pointer is performed from the stack in the page storage unit 14 (7). The stack is LIFO (las
Since it takes the form of (t in fast out), POP is sequentially performed from the last PUSHed pointer.
The printing unit 15 prints for printing based on the bitmap data in the page storage unit 14 pointed to by the address pointer (8). One job is completed through the above flow.
【0021】上記実施例ではページ格納部14に受信し
た入力データのビットマップを展開した後、入力データ
受信頁順序とは逆頁順に出力することにより、フェイス
アップ出力時のページ出力順序を正規に再編成して出力
する場合について説明したが、ビットマップ展開前の入
力データを中間テーブルに一時格納して、印字開始時に
中間テーブルを入力頁順とは逆の頁順にアクセスしてビ
ットマップ展開処理を実行する構成であっても良い。 〔第2実施例〕図7は本発明の第2実施例を示す印刷装
置の一例を示す要部構成ブロック図であり、図1と同一
のものには同じ符号を付してある。In the above embodiment, after the bit map of the input data received in the page storage unit 14 is expanded and then output in the page order opposite to the input data receiving page order, the page output order at the face-up output is made normal. Although the case of reorganizing and outputting is explained, the input data before bitmap expansion is temporarily stored in the intermediate table, and at the start of printing, the intermediate table is accessed in the page order opposite to the input page order, and bitmap expansion processing is performed. May be configured to execute. [Second Embodiment] FIG. 7 is a block diagram showing the essential arrangement of an example of a printing apparatus according to the second embodiment of the present invention. The same parts as those in FIG. 1 are designated by the same reference numerals.
【0022】図において、21はページ情報格納部で、
解析部12により解析されたビットマップ展開前の印刷
情報を頁単位に処理した中間テーブルを記憶する。中間
テーブルは、図8の(a)に示すように用紙サイズ「A
4」,印字方向「縦」,印字文字「p」,印字文字の出
力位置「200mm,100mm」,書体「ゴシック」,大
きさ「20ポイント」等が文字データ「page
1」,「A」の各文字毎に規定される情報が1頁ずつ記
憶され、その位置が図9に示すようなページ情報格納部
内の中間テーブル1〜nのスタックポインタにより管理
される。In the figure, 21 is a page information storage unit,
An intermediate table in which the print information before bitmap expansion analyzed by the analysis unit 12 is processed in page units is stored. As shown in FIG. 8A, the intermediate table has a paper size “A
4 ", print direction" vertical ", print character" p ", print character output position" 200mm, 100mm ", typeface" Gothic ", size" 20 points ", etc.
Information defined for each of the characters "1" and "A" is stored page by page, and its position is managed by the stack pointers of the intermediate tables 1 to n in the page information storage unit as shown in FIG.
【0023】このように構成された印刷装置において、
データ受信部(入力部11)が印刷情報を頁単位に受信
すると、格納手段(ページ情報格納部21)に印刷情報
の解析により得られるページ出力情報を入力頁順に格納
して行き、最終頁のページ出力情報が格納されたら、制
御手段(制御部16)が格納手段に頁順に格納されたペ
ージ出力情報の展開手段(展開部13)への転送出力頁
順序を排紙出力モード指定状態に基づいて制御すること
により、入力される印刷情報を少ないメモリで管理する
ことができ、かつフェイスアップ状態で正規の頁順に揃
った印字出力を得ることを可能とする。In the printing apparatus constructed as above,
When the data receiving unit (input unit 11) receives the print information page by page, the storage unit (page information storage unit 21) stores the page output information obtained by the analysis of the print information in the order of the input page, and the final page When the page output information is stored, the control unit (control unit 16) transfers the page output information stored in the storage unit in the order of pages to the expansion unit (expansion unit 13) based on the discharge output mode designation state. The input print information can be managed with a small memory and the print output in the regular page order can be obtained in the face-up state.
【0024】以下、図10に示すフローチャートを参照
しながら本発明に係る印刷装置の第2の頁編成出力処理
動作について説明する。The second page organization output processing operation of the printing apparatus according to the present invention will be described below with reference to the flowchart shown in FIG.
【0025】図10は本発明に係る印刷装置の第2の頁
編成出力処理手順の一例を示すフローチャートである。
なお、(1) 〜(9) は各ステップを示す。また、本実施例
では印刷装置本体1がJOB(作業単位)で出力する。FIG. 10 is a flow chart showing an example of the second page organization output processing procedure of the printing apparatus according to the present invention.
Note that (1) to (9) indicate each step. Further, in the present embodiment, the printing apparatus main body 1 outputs in JOB (work unit).
【0026】先ず、ホストコンピュータ2からの送信デ
ータを入力部11によって受信するデータ入力ルーチン
を実行する(1) 。ここで、入力データとは、JOB(作
業単位)の開始/終了、さらに文字データや印刷ページ
を形成するための様々な印字制御を行うコマンド(例え
ば印字位置の指定や印刷用紙に対する印字方向,文字の
大きさ,行間隔の指定,改頁等)である。上記コマンド
は、図3に示すような形態であり、コマンドバイト3
a,パラメータ3b,ターミネータ3cの3つの部分よ
り成る。通常、コマンドバイト3aによってコマンドの
種類を示し、パラメータ3bによって当該コマンドに関
する詳細な指定を行い、ターミネータ3cによって当該
コマンドの終結を示す。また、通常1つの作業単位を図
4に示すように、JOB開始命令の後に複数頁1〜nの
データが続き、作業の終結を示すためのJOB終了命令
が最後に転送される。First, a data input routine for receiving the transmission data from the host computer 2 by the input unit 11 is executed (1). Here, the input data is a command to start / end JOB (work unit) and various print controls for forming character data or a print page (for example, designation of print position, print direction on print paper, character Size, line spacing, page breaks, etc.). The above command has a form as shown in FIG.
a, a parameter 3b, and a terminator 3c. Normally, the command byte 3a indicates the type of command, the parameter 3b specifies detailed information about the command, and the terminator 3c indicates the end of the command. As shown in FIG. 4, one work unit is usually followed by data of a plurality of pages 1 to n after the JOB start command, and the JOB end command for indicating the end of the work is transferred last.
【0027】次いで、解析部12によって入力データを
解析する(2) 。そして、入力データの解析結果がJOB
終了を指定するコマンドかどうかを判定し(3) 、NOな
らば入力データが改頁(ページ終了)を指定するもので
あるかどうかを判定し(4) 、NOならば図8に示した中
間テーブルを作成する中間テーブル処理ルーチンを実行
し(5) 、ステップ(1) に戻る。中間テーブルは、例えば
ホストコンピュータ2によって、印刷データ「pag
e」の「p」は印字ページ上の横200mm,縦100mm
の位置に、ゴシック体で印字するように指定されると、
その旨を中間テーブルに記述する。Next, the analyzing unit 12 analyzes the input data (2). Then, the analysis result of the input data is JOB.
It is judged whether the command is to specify the end (3). If NO, it is judged whether the input data specifies a page break (end of page) (4). If NO, the intermediate data shown in FIG. Execute the intermediate table processing routine to create the table (5) and return to step (1). The intermediate table is used by the host computer 2 to print the print data “pag”.
“P” of “e” is 200 mm wide and 100 mm long on the printed page
When it is specified to print in Gothic at position
The fact is described in the intermediate table.
【0028】一方、ステップ(4) の判定で、改頁である
と判別された場合、図9に示す形態のページ情報格納部
内スタックへ当該頁の中間テーブルを記憶している前記
ページ情報格納部のアドレスポインタをPUSHする。
当該スタックは、LIFO(last in fast
out)の形態を取る。また、ここで、次の頁の開始
が指示された場合は、中間テーブルを作成するエリアを
次のブロック(図8の(a)に示す中間テーブル2ポイ
ンタの指すエリア)へ進める。On the other hand, if it is determined in step (4) that the page is a page break, the page information storage unit that stores the intermediate table of the page in the stack in the page information storage unit shown in FIG. PUSH the address pointer of.
The stack is a LIFO (last in fast)
out). If the start of the next page is instructed, the area for creating the intermediate table is advanced to the next block (the area indicated by the intermediate table 2 pointer shown in FIG. 8A).
【0029】一方、ステップ(3) において、入力データ
がJOB終了を指定するコマンドであると判別した場合
は、ページ情報格納部内スタックから中間テーブルアド
レスポインタのPOPを行う(7) 。次いで、展開部13
によって前記中間テーブルの情報に基づいて印字部15
が印字を行うのに最も適した形態のビットマップデータ
を図8の(b)に示すように形成するビットマップ展開
処理を実行し(8) 、展開終了後、印字部15により印刷
用紙への印字を行い(9) 、ページ情報格納部内スタック
から全ての中間テーブルをPOPし、展開,印字するこ
とによって1つのジョブを終了する。これにより、1ペ
ージ分のビットマップ展開用メモリを備えていれば、入
力データの頁順とは逆順に入力データのビットイメージ
を安価に出力することができる。On the other hand, if it is determined in step (3) that the input data is a command for designating the end of JOB, POP of the intermediate table address pointer is performed from the stack in the page information storage section (7). Then, the expansion unit 13
According to the information of the intermediate table, the printing unit 15
Performs bitmap expansion processing for forming bitmap data in a form most suitable for printing as shown in FIG. 8 (b) (8). Printing is performed (9), one intermediate job is completed by popping all the intermediate tables from the stack in the page information storage unit, developing and printing. As a result, if the one-page bitmap expansion memory is provided, it is possible to inexpensively output the bit image of the input data in the reverse order of the page order of the input data.
【0030】なお、上記実施例では入力データを展開部
13がビットマップイメージに展開したビットマップデ
ータを頁単位に記憶する場合について説明したが、入力
データの解析後、ビットマップデータに展開し、さらに
そのビットマップデータを頁単位に圧縮した、圧縮デー
タを管理して入力データの頁順とは逆順に入力データの
ビットイメージを出力する構成としても良く、以下これ
について詳述する。 〔第3実施例〕図11は本発明の第3実施例を示す印刷
装置の一例を示す要部構成ブロック図であり、図1と同
一のものには同じ符号を付してある。In the above embodiment, the case where the expansion unit 13 expands the input data into bitmap images and stores the bitmap data in page units has been described. However, after the input data is analyzed, it is expanded into bitmap data. Further, the bitmap data may be compressed page by page, and the compressed data may be managed to output the bit image of the input data in the reverse order of the page order of the input data, which will be described in detail below. [Third Embodiment] FIG. 11 is a block diagram showing the essential arrangement of an example of a printing apparatus according to the third embodiment of the present invention. The same components as those in FIG. 1 are designated by the same reference numerals.
【0031】図において、31は変換部で、ホストコン
ピュータ2からのコマンドによって指定されたデータに
基づいて図12の(b)に示すようにビットマップデー
タを生成した後、ランレングス圧縮処理を実行し、図1
2の(a)に示すように2バイト単位のランレングス圧
縮データ(最初のバイトは繰り返しバイト数を示し、次
のバイトはデータを示す)に変換し、格納部32に内に
格納する。なお、データの圧縮処理としては、ランレン
グス圧縮処理に限らずMMR方式,JPEG方式等の圧
縮方式を採用しても何ら差し支えない。In the figure, reference numeral 31 is a conversion unit, which generates bit map data as shown in FIG. 12B based on data designated by a command from the host computer 2 and then executes run length compression processing. And then Figure 1
2 (a), it is converted into 2-byte unit run-length compressed data (the first byte indicates the number of repeated bytes, and the next byte indicates the data) and stored in the storage unit 32. The data compression process is not limited to the run-length compression process, and any compression system such as MMR system or JPEG system may be used.
【0032】また、各頁の圧縮データ格納位置が図13
に示すようなページ情報格納部内の圧縮データ1〜nの
スタックポインタにより管理される。The compressed data storage position of each page is shown in FIG.
It is managed by stack pointers of compressed data 1 to n in the page information storage unit as shown in FIG.
【0033】このように構成された印刷装置において、
データ受信部(入力部11)が印刷情報を頁単位に受信
すると、変換手段(変換部31)が受信した印刷情報を
解析してビットマップデータに変換しながら圧縮データ
を生成して入力頁順に格納手段(格納部32)に格納し
て行き、最終頁の圧縮データが格納されたら、制御手段
(制御部16)が格納手段に入力頁順に格納された圧縮
データの展開手段(展開部13)への転送出力頁順序を
排紙出力モード指定状態に基づいて制御することによ
り、入力される頁数の多い印刷情報を少ないメモリで管
理することができ、かつフェイスアップ状態で正規の頁
順に揃った印字出力を得ることを可能とする。In the printing apparatus constructed as above,
When the data receiving unit (input unit 11) receives the print information page by page, the converting unit (converting unit 31) analyzes the print information received and converts the print information into bitmap data to generate compressed data, in the order of input pages. When the compressed data of the final page is stored in the storage means (storage unit 32), the control unit (control unit 16) expands the compressed data stored in the storage unit in the order of input pages (decompression unit 13). By controlling the order of output pages to be output based on the output output mode specified state, print information with a large number of pages to be input can be managed with a small memory, and in a face-up state, regular page order is arranged. It is possible to obtain a good print output.
【0034】図14は本発明に係る印刷装置の第3の頁
編成出力処理手順の一例を示すフローチャートである。
なお、(1) 〜(9) は各ステップを示す。また、本実施例
では印刷装置本体1がJOB(作業単位)で出力する。FIG. 14 is a flowchart showing an example of a third page organization output processing procedure of the printing apparatus according to the present invention.
Note that (1) to (9) indicate each step. Further, in the present embodiment, the printing apparatus main body 1 outputs in JOB (work unit).
【0035】先ず、ホストコンピュータ2からの送信デ
ータを入力部11によって受信するデータ入力ルーチン
を実行する(1) 。ここで、入力データとは、JOB(作
業単位)の開始/終了、さらに文字データや印刷ページ
を形成するための様々な印字制御を行うコマンド(例え
ば印字位置の指定や印刷用紙に対する印字方向,文字の
大きさ,行間隔の指定,改頁等)である。上記コマンド
は、図3に示すような形態であり、コマンドバイト3
a,パラメータ3b,ターミネータ3cの3つの部分よ
り成る。通常、コマンドバイト3aによってコマンドの
種類を示し、パラメータ3bによって当該コマンドに関
する詳細な指定を行い、ターミネータ3cによって当該
コマンドの終結を示す。また、通常1つの作業単位を図
4に示すように、JOB開始命令の後に複数頁1〜nの
データが続き、作業の終結を示すためのJOB終了命令
が最後に転送される。First, a data input routine for receiving the transmission data from the host computer 2 by the input unit 11 is executed (1). Here, the input data is a command to start / end JOB (work unit) and various print controls for forming character data or a print page (for example, designation of print position, print direction on print paper, character Size, line spacing, page breaks, etc.). The above command has a form as shown in FIG.
a, a parameter 3b, and a terminator 3c. Normally, the command byte 3a indicates the type of command, the parameter 3b specifies detailed information about the command, and the terminator 3c indicates the end of the command. As shown in FIG. 4, one work unit is usually followed by data of a plurality of pages 1 to n after the JOB start command, and the JOB end command for indicating the end of the work is transferred last.
【0036】次いで、解析部12によって入力データを
解析する(2) 。そして、入力データの解析結果がJOB
終了を指定するコマンドかどうかを判定し(3) 、NOな
らば入力データが改頁(ページ終了)を指定するもので
あるかどうかを判定し(4) 、NOならば変換部13によ
って圧縮データの作を行い(5) 、ステップ(1) に戻る。Next, the analyzing unit 12 analyzes the input data (2). And the analysis result of the input data is JOB
It is judged whether or not the command designates the end (3). If NO, it is judged whether or not the input data designates a page break (end of page) (4). (5) and return to step (1).
【0037】図12の(a)に示す圧縮データは、変換
部31が図12の(b)に示すようなビットマップデー
タを生成した後、ランレングス圧縮を行うことにより得
られる。この圧縮データを格納部32に格納する。The compressed data shown in FIG. 12 (a) is obtained by the converter 31 after generating bit map data as shown in FIG. 12 (b) and then performing run length compression. This compressed data is stored in the storage unit 32.
【0038】一方、ステップ(4) の判定で、改頁である
と判別された場合、図13図に示す形態のページ情報格
納部内スタックへ当該頁の圧縮データを記憶している前
記ページ情報格納部のアドレスポインタをPUSHする
(6) 。当該スタックは、LIFO(last in f
ast out)の形態を取る。また、ここで、次の頁
の開始が指示された場合は、圧縮データを作成するエリ
アを次のブロック(図12の(a)に示す圧縮データ2
ポインタの指すエリア)へ進める。On the other hand, if it is determined in step (4) that the page is a new page, the page information storage storing the compressed data of the page is stored in the stack in the page information storage unit in the form shown in FIG. PUSH the address pointer of the copy
(6). The stack is a LIFO (last in f
ast out). If the start of the next page is instructed, the area where compressed data is to be created is moved to the next block (compressed data 2 shown in (a) of FIG. 12).
Move to the area indicated by the pointer).
【0039】一方、ステップ(3) において、入力データ
がJOB終了を指定するコマンドであると判別した場合
は、ページ情報格納部内スタックから圧縮データアドレ
スポインタのPOPを行う(7) 。次いで、展開部13に
よって前記圧縮データの情報に基づいて印字部15が印
字を行うのに最も適した形態のビットマップデータを図
12の(b)に示すように形成するビットマップ展開処
理を実行し(8) 、展開終了後、印字部15により印刷用
紙への印字を行い(9) 、ページ情報格納部内スタックか
ら全ての圧縮データをPOPし、展開,印字することに
よって1つのジョブを終了する。これにより、複数頁分
の入力データの圧縮データを管理するだけで、入力デー
タの頁順とは逆順に入力データのビットイメージを安価
に出力することができる。On the other hand, when it is judged in the step (3) that the input data is a command designating the end of JOB, the compressed data address pointer is POPed from the stack in the page information storage section (7). Next, the decompression unit 13 executes a bitmap decompression process for forming the bitmap data of the most suitable form for the printing unit 15 to print based on the information of the compressed data as shown in FIG. 12B. (8) After the expansion is completed, the printing unit 15 prints on the printing paper (9), and POPs all the compressed data from the stack in the page information storage unit, expands and prints to complete one job. .. As a result, the bit image of the input data can be output at a low cost in the reverse order of the page order of the input data only by managing the compressed data of the input data for a plurality of pages.
【0040】[0040]
【発明の効果】以上説明したように、本発明はデータ受
信部が印刷情報を頁単位に受信すると、展開手段が受信
した印刷情報を解析してビットマップデータに展開し、
データ格納手段に入力頁順に格納して行き、最終頁のビ
ットマップデータが格納されたら、制御手段がデータ格
納手段に入力頁順に格納されたビットマップデータの印
字手段への転送出力頁順序を排紙出力モード指定状態に
基づいて制御するように構成したので、フェイスアップ
状態で正規の頁順に揃った印字出力を得ることができ
る。As described above, according to the present invention, when the data receiving section receives the print information page by page, the expanding means analyzes the received print information and expands it into bitmap data.
When the final page bitmap data is stored in the data storage means in the order of input pages, the control means removes the output page order of the bitmap data stored in the data storage means from the input page order to the printing means. Since the control is performed based on the designated state of the paper output mode, it is possible to obtain the print output in a regular page order in the face-up state.
【0041】また、データ受信部が印刷情報を頁単位に
受信すると、格納手段に印刷情報の解析により得られる
ページ出力情報を入力頁順に格納して行き、最終頁のペ
ージ出力情報が格納されたら、制御手段が格納手段に頁
順に格納されたページ出力情報の展開手段への転送出力
頁順序を排紙出力モード指定状態に基づいて制御するよ
うに構成したので、入力される印刷情報を少ないメモリ
で管理することができ、かつフェイスアップ状態で正規
の頁順に揃った印字出力を得ることができる。When the data receiving unit receives the print information page by page, the storage unit stores the page output information obtained by the analysis of the print information in the order of input pages, and when the page output information of the final page is stored. Since the control means is configured to control the output page order of the page output information stored in the storage means in the page order to the expansion means based on the discharge output mode designation state, the input print information is stored in a small memory. It is possible to obtain a printout in which the pages are arranged in a regular page order in a face-up state.
【0042】さらに、データ受信部が印刷情報を頁単位
に受信すると、変換手段が受信した印刷情報を解析して
ビットマップデータに変換しながら圧縮データを生成し
て入力頁順に格納手段に格納して行き、最終頁の圧縮デ
ータが格納されたら、制御手段が格納手段に入力頁順に
格納された圧縮データの展開手段への転送出力頁順序を
排紙出力モード指定状態に基づいて制御するように構成
したので、入力される頁数の多い印刷情報を少ないメモ
リで管理することができ、かつフェイスアップ状態で正
規の頁順に揃った印字出力を得ることができる。Further, when the data receiving unit receives the print information page by page, the conversion unit analyzes the print information received and converts it into bitmap data to generate compressed data, which is stored in the storage unit in the order of input pages. When the compressed data of the final page is stored, the control means controls the transfer output page order of the compressed data stored in the storage means in the input page order to the decompressing means based on the discharge output mode designation state. Since the configuration is adopted, print information having a large number of pages to be input can be managed with a small memory, and print output in a regular page order can be obtained in a face-up state.
【0043】従って、排紙モードでフェイスアップが指
定された際に、意図した順序の印字結果を容易に得るこ
とができるとともに、従来のような印字出力後の頁編成
のための後処理負担を大幅に軽減できる等の効果を奏す
る。Therefore, when face-up is designated in the paper discharge mode, it is possible to easily obtain the print result in the intended order, and also to reduce the post-processing load for page organization after print output as in the conventional case. It has the effect of being able to significantly reduce it.
【図1】本発明の第1実施例を示す印刷装置の一例を示
す要部構成ブロック図である。FIG. 1 is a block diagram of a main configuration of an example of a printing apparatus according to a first embodiment of the present invention.
【図2】本発明に係る印刷装置の第1の頁編成出力処理
手順の一例を示すフローチャートである。FIG. 2 is a flowchart showing an example of a first page organization output processing procedure of the printing apparatus according to the present invention.
【図3】本発明に係る印刷装置における入力コマンド列
の一例を示す図である。FIG. 3 is a diagram showing an example of an input command sequence in the printing apparatus according to the present invention.
【図4】本発明に係る印刷装置におけるJOBの処理状
態を示す図である。FIG. 4 is a diagram showing a JOB processing state in the printing apparatus according to the present invention.
【図5】図1に示したページ格納部内へのビットマップ
データ展開状態を示す模式図である。5 is a schematic diagram showing a bitmap data expansion state in the page storage unit shown in FIG. 1. FIG.
【図6】図1に示したページ格納部内へのビットマップ
データの管理情報を示す模式図である。6 is a schematic diagram showing management information of bitmap data in the page storage section shown in FIG. 1. FIG.
【図7】本発明の第2実施例を示す印刷装置の一例を示
す要部構成ブロック図である。FIG. 7 is a block diagram of a main part configuration showing an example of a printing apparatus according to a second embodiment of the present invention.
【図8】図7に示したページ情報格納部における中間テ
ーブル内データの一例を示す図である。8 is a diagram showing an example of data in an intermediate table in the page information storage section shown in FIG.
【図9】図7に示したページ情報格納部における中間テ
ーブルの管理情報を示す模式図である。9 is a schematic diagram showing management information of an intermediate table in the page information storage unit shown in FIG.
【図10】本発明に係る印刷装置の第2の頁編成出力処
理手順の一例を示すフローチャートである。FIG. 10 is a flowchart showing an example of a second page organization output processing procedure of the printing apparatus according to the present invention.
【図11】本発明の第3実施例を示す印刷装置の一例を
示す要部構成ブロック図である。FIG. 11 is a block diagram of a main part configuration showing an example of a printing apparatus according to a third embodiment of the present invention.
【図12】図11に示した変換部のビットマップデータ
と圧縮データとの関係を示す図である。12 is a diagram showing a relationship between bitmap data and compressed data of the conversion unit shown in FIG.
【図13】図11に示した格納部における圧縮データの
管理情報を示す模式図である。13 is a schematic diagram showing management information of compressed data in the storage section shown in FIG.
【図14】本発明に係る印刷装置の第3の頁編成出力処
理手順の一例を示すフローチャートである。FIG. 14 is a flowchart showing an example of a third page organization output processing procedure of the printing apparatus according to the present invention.
【図15】従来の印刷装置におけるフェイスアップ出力
状態を示す斜視図である。FIG. 15 is a perspective view showing a face-up output state in a conventional printing apparatus.
1 印刷装置本体 2 ホストコンピュータ 11 入力部 12 解析部 13 展開部 14 ページ格納部 15 印字部 16 制御部 DESCRIPTION OF SYMBOLS 1 Printer main body 2 Host computer 11 Input section 12 Analysis section 13 Development section 14 Page storage section 15 Printing section 16 Control section
Claims (3)
データ受信部と、このデータ受信部が受信した印刷情報
を解析してビットマップデータに展開する展開手段と、
この展開手段により順次展開された複数頁分のビットマ
ップデータを格納するデータ格納手段と、このデータ格
納手段に格納されたビットマップデータに基づいて印字
を行う印字手段と、前記データ格納手段に頁順に格納さ
れたビットマップデータの前記印字手段への転送出力頁
順序を排紙出力モード指定状態に基づいて制御する制御
手段とを有することを特徴とする印刷装置。1. A data receiving unit that receives input print information in page units, and a developing unit that analyzes the print information received by the data receiving unit and develops it into bitmap data.
Data storing means for storing the bitmap data for a plurality of pages sequentially developed by the developing means, printing means for printing based on the bitmap data stored in the data storing means, and pages in the data storing means And a control unit that controls the transfer output page order of the bit map data stored in order to the printing unit based on a discharge output mode designation state.
データ受信部と、このデータ受信部が受信した印刷情報
を解析して所定のページ出力情報を頁順に格納する格納
手段と、この格納手段に格納されたページ出力情報に基
づいてビットマップデータに展開する展開手段と、この
展開手段から出力されるビットマップデータに基づいて
印字を行う印字手段と、前記格納手段に頁順に格納され
たページ出力情報の前記展開手段への転送出力頁順序を
排紙出力モード指定状態に基づいて制御する制御手段と
を有することを特徴とする印刷装置。2. A data receiving unit that receives input print information in page units, a storage unit that analyzes print information received by the data receiving unit and stores predetermined page output information in page order, and the storage unit. Developing means for developing bit map data based on the page output information stored in the means, printing means for printing based on the bit map data output from the developing means, and page order stored in the storing means And a control means for controlling the order of output pages of the page output information transferred to the developing means, based on a designated state of the discharge output mode.
データ受信部と、このデータ受信部が受信した印刷情報
を解析してビットマップデータに変換しながら圧縮デー
タを生成する変換手段と、この変換手段により圧縮され
た圧縮データを格納する格納手段と、この格納手段に格
納された圧縮データに基づいてビットマップデータに展
開する展開手段と、この展開手段により展開されたビッ
トマップデータに基づいて印字を行う印字手段と、前記
格納手段に頁順に格納された圧縮データの前記展開手段
への転送出力頁順序を排紙出力モード指定状態に基づい
て制御する制御手段とを有することを特徴とする印刷装
置。3. A data receiving unit that receives input print information in page units, and a conversion unit that analyzes the print information received by the data receiving unit and converts the print information into bitmap data to generate compressed data. Storage means for storing the compressed data compressed by the conversion means, decompression means for decompressing the compressed data stored in the storage means into bitmap data, and decompression means for decompressing the bitmap data A printing means for performing printing by means of a printing means, and a control means for controlling the output page order of the compressed data stored in the storing means in the page order to the decompressing means based on the discharge output mode designation state. Printing device.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP12548392A JPH05294014A (en) | 1992-04-20 | 1992-04-20 | Printer |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP12548392A JPH05294014A (en) | 1992-04-20 | 1992-04-20 | Printer |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JPH05294014A true JPH05294014A (en) | 1993-11-09 |
Family
ID=14911211
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP12548392A Pending JPH05294014A (en) | 1992-04-20 | 1992-04-20 | Printer |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH05294014A (en) |
-
1992
- 1992-04-20 JP JP12548392A patent/JPH05294014A/en active Pending
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US6671066B1 (en) | Computer program product intended for processing print data, and apparatus and method for processing print data | |
| JP3655457B2 (en) | Printer control device | |
| JPH09147093A (en) | Printing system, information processing apparatus, and information processing method | |
| JP3116354B2 (en) | Printer data management method | |
| JP2000311071A5 (en) | ||
| JPH07112552A (en) | Form printing control method and device in printing apparatus | |
| JPS6145325A (en) | Printer | |
| JP3167775B2 (en) | Image forming method and apparatus | |
| JPH0863145A (en) | Pattern generating method and apparatus | |
| JP3204136B2 (en) | Image processing apparatus and compression processing method | |
| JP2000168170A (en) | Blank paper-detecting apparatus and image-recording apparatus, image-forming apparatus and image-reading apparatus using the same | |
| JPH05557A (en) | Image formation device | |
| JPH0471865A (en) | Printer | |
| JP3315679B2 (en) | Image forming apparatus and page layout method | |
| JPH0631983A (en) | Printer device | |
| JP2785798B2 (en) | Page printer | |
| JPH07172022A (en) | Print control device | |
| JP2002132466A (en) | Image output device, image output system, image processing method, and storage medium | |
| JP2010274487A (en) | Image forming apparatus and image forming system | |
| JP2000225735A (en) | Image printing device | |
| JP2685502B2 (en) | Print data expansion device | |
| JP3359318B2 (en) | Printing apparatus, print control method, and print control apparatus | |
| JP3436656B2 (en) | Print processing system | |
| JPH096552A (en) | Printing system and printing method | |
| JPH0239966A (en) | Perfect printing control system |