JPH05221076A - Control of printing device - Google Patents

Control of printing device

Info

Publication number
JPH05221076A
JPH05221076A JP2836492A JP2836492A JPH05221076A JP H05221076 A JPH05221076 A JP H05221076A JP 2836492 A JP2836492 A JP 2836492A JP 2836492 A JP2836492 A JP 2836492A JP H05221076 A JPH05221076 A JP H05221076A
Authority
JP
Japan
Prior art keywords
data
sheet
paper
width
size
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
Application number
JP2836492A
Other languages
Japanese (ja)
Inventor
Yasuo Ohashi
康雄 大橋
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.)
Ricoh Co Ltd
Original Assignee
Ricoh Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Ricoh Co Ltd filed Critical Ricoh Co Ltd
Priority to JP2836492A priority Critical patent/JPH05221076A/en
Publication of JPH05221076A publication Critical patent/JPH05221076A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To ensure that data can be printed in the framework of a sheet by calculating the width and page length of data after development of received data, then developing data at a maximum reduction rate in the framework of a sheet designated by a user, and also printing the data on a sheet of minimum size based on data in the size of an existing sheet. CONSTITUTION:The subject printing device is equipped with sheets of various sizes and a bit map reduction mechanism. CPU 1 calculates data width and page length of data after development of received data and further calculates a minimum reduction rate at which data is entered in the framework of a sheet designated by a user or selects a sheet of minimum size in which data can be entered based on data in a sheet of such size as is available. Then data is finally printed on either a designated sheet or a selected sheet. Consequently, if data which exceeds the size of a sheet is received, the data is entered in the framework of a designated sheet without failure. It is also possible to print data which cannot be entered in the framework of a default sheet, positively in the framework of a sheet by automatic conversion of the sheet size.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明は、レ−ザプリンタ等のデ
−タサイズ対応型の印刷装置における制御方法に関す
る。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a control method for a data size compatible printing apparatus such as a laser printer.

【0002】[0002]

【従来の技術】従来、多機能レ−ザプリンタシステムで
は、例えば毎分40枚/A4のプリント速度で、最大A
3判まで、多種多様の用紙にプリントすることができた
(例えば、『RICOH TECHNICAL REP
ORT NO.16,1987』pp.65〜69参照)。上記
文献に記載の多機能レ−ザプリンタシステムLP−H1
では、顧客先の要求画素密度に応じて、光書込みユニッ
トの一部変更により240DPIから400DPIまで
3種類の対応が可能である。3種の給紙口および排紙口
が任意に組み合わせて選択でき、その容量も給紙側30
00枚、排紙側3950枚と大量であるため、長時間の
無人運転が可能である。
2. Description of the Related Art Conventionally, in a multifunction laser printer system, for example, at a printing speed of 40 sheets per minute / A4, the maximum A
It was possible to print on a wide variety of papers up to 3 sizes (for example, "RICOH TECHNICAL REP
ORT NO. 16, 1987, pp.65-69). Multifunctional laser printer system LP-H 1 described in the above document.
Then, depending on the pixel density required by the customer, it is possible to deal with three types from 240 DPI to 400 DPI by partially changing the optical writing unit. You can select any combination of three types of paper feed ports and paper discharge ports, and the capacity of the paper feed side 30
Since it is a large quantity of 00 sheets and 3950 sheets on the paper discharge side, unmanned operation for a long time is possible.

【0003】[0003]

【発明が解決しようとする課題】しかしながら、従来の
印刷装置においては、受信したデ−タは予めユ−ザが設
定した用紙サイズで強制的に印刷されていた。この方法
では、デ−タが用紙サイズを越えてしまう場合、印字が
途中で切れたり、自動的に改行が行われてしまい、期待
する印字結果を得ることができず、全く異なったものに
なってしまうことがあった。本発明の目的は、このよう
な従来の課題を解決し、同一の用紙で全ての印字結果が
得られ、また受信デ−タそのものの倍率で印字結果が得
られるような印刷装置の制御方法を提供することにあ
る。
However, in the conventional printing apparatus, the received data is forcibly printed with the paper size preset by the user. With this method, if the data exceeds the paper size, the printing will be cut off halfway or a line feed will occur automatically, and the expected printing result cannot be obtained, resulting in a completely different result. There were times when it happened. An object of the present invention is to solve the above conventional problems and to provide a method of controlling a printing apparatus that can obtain all print results on the same sheet and obtain print results at the magnification of the received data itself. To provide.

【0004】[0004]

【課題を解決するための手段】上記目的を達成するた
め、本発明による印刷装置の制御方法は、(イ)複数サ
イズの用紙を保有し、かつビットマップ縮小機能を備え
た印刷装置において、受信デ−タの展開後のデ−タ幅お
よびデ−タの頁長を計算して、ユ−ザが指定した用紙内
に納まる最小の縮小率を計算するか、あるいは保有する
用紙サイズの中からデ−タが納まる最小の用紙を選択し
て、指定された用紙ないし選択された用紙を用いて印刷
することに特徴がある。また、(ロ)ビットマップ縮小
機能を備えた印刷装置において、受信したデ−タをプリ
チェックして、他のメモリエリアに展開した後、受信デ
−タの展開後のデ−タ幅およびデ−タの頁長を計算し
て、デ−タがユ−ザが設定した用紙内に納まる最小の縮
小率を計算し、縮小率でデ−タをメモリエリアのビット
マップ上に展開し、デ−タを印刷することにも特徴があ
る。さらに、(ハ)複数サイズの用紙を保有する印刷装
置において、受信したデ−タをプリチェックして、他の
メモリエリアに展開した後、展開後のデ−タ幅およびデ
−タの頁長を計算して、保有する用紙サイズの中からデ
−タが納まる最小の用紙を選択して、用紙を用いて印刷
することにも特徴がある。
In order to achieve the above object, the control method of a printing apparatus according to the present invention is: (a) receiving in a printing apparatus having a plurality of sizes of paper and having a bitmap reduction function. Calculate the data width after data expansion and the page length of the data, and calculate the minimum reduction ratio that can be accommodated on the paper specified by the user, or from the paper sizes held. It is characterized in that the smallest paper in which the data can be stored is selected and printing is performed using the designated paper or the selected paper. Further, in a printer having a (b) bitmap reduction function, the received data is pre-checked and expanded in another memory area, and then the data width and data after expansion of the received data are obtained. -Calculate the page length of the data, calculate the minimum reduction ratio that the data can fit on the paper set by the user, expand the data on the bitmap of the memory area with the reduction ratio, and -There is also a feature in printing data. Furthermore, (c) In a printing apparatus having a plurality of sheets of paper, the received data is pre-checked and expanded in another memory area, and then the expanded data width and page length of the data. Is also calculated, and the smallest paper in which the data can be stored is selected from the paper sizes held, and printing is performed using the paper.

【0005】[0005]

【作用】本発明においては、先ず、受信デ−タを一時、
記憶装置内に記憶させ、同時にデ−タの展開後の最大幅
および最大長を計算する。 (イ)その後、ユ−ザが設定した用紙サイズに収まる最
大の縮小率で印刷する。ただし、デ−タが用紙サイズを
越える場合にのみ縮小印刷を行う。これにより、ユ−ザ
は同一用紙で全ての印字結果が得られる。すなわち、従
来のようにデ−タの途中で切断されたり、勝手に行替え
してしまうことはない。 (ロ)その後、デ−タの縮小は行わないで、装置が持っ
ている用紙でこのデ−タが収まる最小のもので印刷す
る。これにより、ユ−ザは受信デ−タ自体の倍率で印字
結果が得られることになる。
In the present invention, first, the reception data is temporarily
The maximum width and the maximum length after expansion of the data are calculated by storing the data in the storage device. (A) After that, printing is performed at the maximum reduction ratio that fits in the paper size set by the user. However, reduction printing is performed only when the data exceeds the paper size. As a result, the user can obtain all print results on the same sheet. That is, unlike the conventional case, the data will not be cut in the middle of the data and the line will not be changed arbitrarily. (B) After that, the data is not reduced, and printing is performed with the smallest paper that the device can hold. As a result, the user can obtain the print result at the magnification of the received data itself.

【0006】[0006]

【実施例】以下、本発明の実施例を、図面により詳細に
説明する。図1は、印字制御部のブロック図である。図
1において、1は印字制御部の全体の制御を行うCP
U、2はプログラムを格納するROM、3はコ−ドから
文字パタ−ンに変換するキャラクタジェネレ−タ(C
G)、4は文字パタ−ンをドットマトリックスに展開す
るためのダイナミックRAM、5はその他のデ−タを格
納するスタティックRAM、6は通信回線と接続された
外部インタフェ−ス(I/F)、7はビデオインタフェ
−ス、8はプリンタエンジンである。CPU1はROM
2内のプログラムを読み出し、これを実行する。外部イ
ンタフェ−ス(例えば、セントロニクスI/F)6で受
信したデ−タは、コ−ド変換後にCG3にアクセスされ
ることにより文字パタ−ンに変換され、変換されたパタ
−ンドットがDRAM4内のビットマップ上に展開され
る。ビットマップ上に展開される前にプリチェックさ
れ、このチェック中に1行デ−タ幅および1頁デ−タ長
が計算される。
Embodiments of the present invention will now be described in detail with reference to the drawings. FIG. 1 is a block diagram of the print control unit. In FIG. 1, reference numeral 1 is a CP that controls the entire print control unit.
U, 2 are ROMs for storing programs, and 3 is a character generator (C) for converting a code into a character pattern.
G), 4 is a dynamic RAM for expanding a character pattern in a dot matrix, 5 is a static RAM for storing other data, and 6 is an external interface (I / F) connected to a communication line. , 7 is a video interface, and 8 is a printer engine. CPU1 is ROM
The program in 2 is read and executed. The data received by the external interface (for example, Centronics I / F) 6 is converted into a character pattern by accessing the CG 3 after the code conversion, and the converted pattern dot is stored in the DRAM 4. It is expanded on the bitmap of. It is pre-checked before it is developed on the bitmap, and the 1-row data width and 1-page data length are calculated during this check.

【0007】図2は、本発明における縮小率計算方法の
説明図、図3は、受信デ−タのフォ−マット構成図、ま
た図4は、ビットマップ上でのセルの動作を示す図であ
る。受信デ−タの一部が、図3に示すようなフォ−マッ
トであるとする。ここで、〜”は水平移動命令、
〜”はフォント選択命令、〜”はイメ−ジ幅・高
さ命令、〜”はイメ−ジデ−タ、は復帰命令、
は改行命令である。そして、そのデ−タによるビットマ
ップ上のセルの動きが、図4に示すような動作をするも
のとする。すなわち、水平移動命令により、セルが座
標値(0,0)の位置から右方向に指定ドット(仮に、
1ドット)だけ移動した後、『あ』という文字(幅が
2ドット)を書き、さらに右方向にx3ドット移動した
後、幅がx4ドットのイメ−ジを書く。同じような動作
により、x5ドット右方向に移動して、x6ドットの幅の
文字『い』を書き、さらにx7ドット移動した後、x8
ットの幅のイメ−ジを書くものとする。この一連の動作
により、セルが(0,0)から(a,0)まで移動した
とすると、結局、a=x1+x2+x3+・・・+x8(ド
ット)となる。ここで、ホスト側からのデ−タがαDP
I(ドット/インチ)用のデ−タであり、印刷装置の解
像度がβDPIであるとすると、実際の行幅Dxは、次
式で表わされる。
FIG. 2 is an explanatory view of the reduction ratio calculation method according to the present invention, FIG. 3 is a format diagram of the reception data, and FIG. 4 is a view showing the operation of the cell on the bit map. is there. It is assumed that a part of the reception data has a format as shown in FIG. Where ~ is a horizontal movement command,
~ "Is a font selection command, ~" is an image width / height command, ~ "is an image data, is a return command,
Is a line feed command. Then, it is assumed that the movement of the cell on the bit map by the data operates as shown in FIG. That is, the horizontal movement command causes the cell to move to the right from the position of the coordinate value (0,0) at the specified dot (provisionally,
After moving x 1 dot), write the character "A" (width x 2 dots), move x 3 dots further to the right, and then write an image with width x 4 dots. By the same kind of operation, go to the x 5 dot the right direction, to write the letter "I" of the width of the x 6 dots, was further moved x 7 dot, Ime of the width of the x 8 dot - and those that write di To do. If the cell moves from (0,0) to (a, 0) by this series of operations, the result is a = x 1 + x 2 + x 3 + ... + x 8 (dots). Here, the data from the host side is αDP
Assuming that the data is for I (dots / inch) and the resolution of the printing apparatus is βDPI, the actual line width Dx is expressed by the following equation.

【数1】 [Equation 1]

【0008】また、セルが復帰命令により左端に移動
し、改行命令によりCだけ下方向に移動した場合に
は、1頁の終了までの改行命令の設定値と回数、ある
いは垂直移動命令による移動量等をc=y1+y2+y3
+・・・・+ynとすると、実際の縦方向移動幅Dy
は、次式で表わされる。なお、1頁の終了とは、例えば
改頁コ−ドを受けた場合や、受信デ−タが一定時間経過
しても、ホスト側からデ−タが送信されなくなった場合
が含まれる。
When the cell is moved to the left end by the return command and is moved downward by C by the line feed command, the set value and the number of the line feed command until the end of one page or the movement amount by the vertical movement command. Etc. c = y 1 + y 2 + y 3
+ ... + yn, the actual vertical movement width Dy
Is expressed by the following equation. Note that the end of one page includes, for example, a case where a page feed code is received and a case where the data is not transmitted from the host side even if the reception data has passed a certain time.

【数2】 上記Dx,Dyが紙サイズPx,Pyを越える値をとる
時、図2に示す2条件を満たす縮小率を計算し、縮小を
実行する。すなわち、受信デ−タサイズがDx×Dyで
あり、指定用紙サイズがPx×Pyであるとき、次の
1.2.の2式が成立する最大の縮小率を自動的に算出
する。 1.Dx×δ1≦Px 2.Dy×δ2≦Py ・・・・・・・・・・・・・・・・・・・・・(3) ただし、δ1,δ2は保有縮小率である。なお、上述の説
明では、1行分の説明であったが、実際には、1行の行
幅aあるいは実際の行幅Dxの値は一時記憶されて、改
行あるいは復帰の命令を受け取る毎に、その値と記憶さ
れている値とを比較して、大きい方の値を再び更新・記
憶する。この動作は、1頁の終了まで繰り返される。そ
の結果、最終的な判断が頁の終了で実行される際には、
行幅の最大値および頁長が記憶されている訳である。そ
して、初期値および次頁の展開の前に、これらの値は0
にクリアされるものとする。
[Equation 2] When Dx and Dy take values exceeding the paper sizes Px and Py, the reduction ratio satisfying the two conditions shown in FIG. 2 is calculated and the reduction is executed. That is, when the received data size is Dx × Dy and the designated paper size is Px × Py, the following 1.2. The maximum reduction ratio that satisfies the two equations is automatically calculated. 1. Dx × δ 1 ≦ Px 2. Dy × δ 2 ≦ Py (3) where δ 1 and δ 2 are holding reduction rates. It should be noted that although the above description is for one line, in practice, the value of the line width a of one line or the actual line width Dx is temporarily stored, and each time a line feed or return command is received. , That value is compared with the stored value, and the larger value is updated and stored again. This operation is repeated until the end of one page. As a result, when the final decision is made at the end of the page,
That is, the maximum line width and page length are stored. And these values are 0 before the initial value and the expansion of the next page.
Shall be cleared.

【0009】図5は、複数の用紙サイズを持つ場合の用
紙サイズ計算方法を示す図である。複数の用紙サイズを
持つ場合で、受信デ−タの等倍印刷を希望する場合に
も、前述の方法と同じ計算を行って、実際の行幅Dx,
実際の高さ方向の移動幅Dyを求め、図5に示す2つの
条件を満足する用紙サイズを選択して、印刷を実行す
る。 すなわち、Px1≦Px2≦Px3・・・・・Py1
≦Py2≦Py3・・・・・の条件を備えた複数の用紙
1,2,3,・・・を保有しているとき、次の条件式を
満足するような縮小率を計算して、縮小を実行する。 1.Dx≦Pxn (n:1,2,3・・・) 2.Dy≦Pyn ・・・・・・・・・・(4) なお、図4および図5における縮小処理では、プリチェ
ック後のデ−タを即座にビットマップ上に展開するので
はなく、一旦、他のメモリエリアに展開する必要があ
る。これは、中間コ−ドに変更しても、あるいは変更せ
ずに即座に展開してもよい。次に、縮小率を決定した
後、再びビットマップ上に縮小率を反映した形で展開す
るのである。
FIG. 5 is a diagram showing a paper size calculation method in the case of having a plurality of paper sizes. If you have multiple paper sizes and want to print the received data at the same size, perform the same calculation as the above method to determine the actual line width Dx,
An actual movement width Dy in the height direction is obtained, a paper size that satisfies the two conditions shown in FIG. 5 is selected, and printing is executed. That is, Px 1 ≤Px 2 ≤Px 3 ... Py 1
When a plurality of sheets 1, 2, 3, ... With conditions of ≤Py 2 ≤Py 3 ... are held, a reduction rate that satisfies the following conditional expression is calculated. , Perform reduction. 1. Dx ≦ Pxn (n: 1, 2, 3, ...) 2. Dy ≦ Pyn (4) In the reduction processing in FIGS. 4 and 5, the data after the precheck is not immediately expanded on the bitmap, but once, It needs to be expanded to another memory area. It may be changed to an intermediate code or it may be expanded immediately without change. Next, after the reduction rate is determined, the reduction rate is expanded again on the bitmap.

【0010】図6は、印刷制御部内の処理フロ−チャ−
トである。先ず、頁内の最大デ−タ幅(ML−w)およ
び高さ(ML−h)を記憶するバッファと、各行のデ−
タ幅(L−w)および頁長(高さ)(L−h)を記憶す
るバッファの内容をクリアする(ステップ101)。こ
の状態で、デ−タの受信待ちとする(ステップ10
2)。ホストから受信したデ−タは、先ず改頁コ−ドで
あるか否かを判定する(ステップ103)。改頁コ−ド
でなければ、次に改行コ−ドであるか否かを判定する
(ステップ104)。改行コ−ドであれば、L−wバッ
ファをクリアし(ステップ105)、再びデ−タの受信
待ちとなる(ステップ102)。改行コ−ドでなけれ
ば、受信デ−タの縦・横方向の変位量dx,dy(図3
における移動量)を計算し(ステップ106)、現在の
L−w、L−h値にそれぞれdx,dyを加えたものを
新たにL−w,L−hとしてバッファに記憶させる(ス
テップ107)。その後、ML−w、ML−hとL−
w、L−hを比較して(ステップ108,110)、常
に頁内の最大デ−タ幅および高さをML−w、ML−h
が示すようにバッファを更新しておく(ステップ10
9,111)。この状態で、再びデ−タの受信待ちとな
る(ステップ102)。この処理を繰り返した後、改頁
コ−ドを受信した場合には(ステップ103)、縮小率
選択ル−チンに処理を移行する。先ず、指定した用紙の
幅および高さP−w、P−hを最大デ−タ幅および高さ
ML−w,ML−hで割り、それぞれ縮小率N−x,N
−yを計算しておく(ステップ112,113)。その
後、N−x,N−y共に満足する最小の縮小率を印刷装
置が持つ縮小率(114)の中から選択し、その縮小率
で印刷を実行する。最終的に、最大の縮小率でもデ−タ
が用紙をはみ出してしまう場合には、何等かの方法で、
ペ−パ−サイズオ−バ−を通知した上で、より大きな用
紙を要求するか、あるいは現在指定されている用紙に最
大の縮小率で強制的に印刷する。
FIG. 6 shows a processing flow chart in the print control section.
It is First, a buffer for storing the maximum data width (ML-w) and height (ML-h) within a page and the data for each line are stored.
The contents of the buffer for storing the data width (Lw) and page length (height) (Lh) are cleared (step 101). In this state, it waits for data reception (step 10).
2). The data received from the host first determines whether it is a page break code (step 103). If it is not a page feed code, it is next determined whether or not it is a line feed code (step 104). If it is a line feed code, the L-w buffer is cleared (step 105) and the data reception waits again (step 102). If it is not a line feed code, vertical and horizontal displacement amounts dx, dy of the received data (see FIG. 3).
(Movement amount in step 1) is calculated (step 106), and the current values of Lw and Lh added by dx and dy are newly stored in the buffer as Lw and Lh (step 107). . After that, ML-w, ML-h and L-
By comparing w and L-h (steps 108 and 110), the maximum data width and height within the page are always calculated as ML-w and ML-h.
Update the buffer as shown by (step 10
9, 111). In this state, the reception of data is awaited again (step 102). After this process is repeated, if a page feed code is received (step 103), the process proceeds to the reduction rate selection routine. First, the specified paper widths and heights P-w and P-h are divided by the maximum data widths and heights ML-w and ML-h, and the reduction ratios N-x and N-, respectively.
-Y is calculated (steps 112 and 113). After that, the minimum reduction rate that satisfies both Nx and Ny is selected from the reduction rates (114) of the printing apparatus, and printing is performed at that reduction rate. Finally, if the data overflows the paper even at the maximum reduction ratio, some method
After notifying the paper size over, a larger paper is requested, or the currently specified paper is forcibly printed at the maximum reduction ratio.

【0011】図7および図8は、本発明の他の実施例を
示す印刷制御部内の処理フロ−チャ−トである。この場
合には、複数の用紙を保有するときの縮小率計算を行
う。先ず、頁内の最大デ−タ幅および高さを記憶するバ
ッファと、各行のデ−タ幅および頁長(高さ)を記憶す
るバッファをクリアする(ステップ101)。この状態
でデ−タの受信待ちを行う(ステップ102)。ホスト
から受信したデ−タは、先ず改頁コ−ドであるか否かが
判定される(ステップ103)。改頁コ−ドでなけれ
ば、次に改行コ−ドであるか否かが判定される(ステッ
プ104)。改行コ−ドであれば、L−wバッファをク
リアし(ステップ105)、再びデ−タの受信待ちとな
る(ステップ102)。もし、改行コ−ドでなければ、
受信デ−タの縦・横方向の変位量dx,dy(図3参
照)を計算し(ステップ106)、現在のL−w,L−
h値にそれぞれdx,dyを加えた値を新たにL−w,
L−hとしてバッファに記憶する(ステップ107)。
その後、ML−w,ML−hとL−w,L−hとを比較
して(ステップ108,110)、常に頁内の最大デ−
タ幅および高さをML−w,ML−hが示すように、バ
ッファを更新しておく(ステップ109,111)。こ
の状態で再びデ−タの受信待ちとなる(ステップ10
2)。この処理を繰り返した後、改頁コ−ドを受信した
時(ステップ103)、紙サイズ選択ル−チンへ処理を
移行する。先ず、装置にセットしてある紙サイズの中か
ら最小の紙サイズを選択し、用紙幅および高さP−w
1,P−h1と頁の最大デ−タ幅および高さML−w、
ML−hの大小を比較する(ステップ115,11
6)。もし、幅または高さのどちらか一方でも用紙のそ
れをオ−バ−するならば、2番目に小さい用紙サイズを
選択して、同じような判定を行う(ステップ118,1
19)。このようにして、幅、高さの両方が用紙に納ま
る用紙サイズを選択した時、その用紙は、受信デ−タが
納まる最小の用紙サイズとなる(ステップ117,12
0,・・・)。最終的に、最大の用紙サイズでもデ−タ
がオ−バ−してしまう場合には(ステップ121)、何
等かの方法でペ−パ−サイズオ−バ−を通知した上で
(ステップ124)、より大きな用紙のセットを要求す
るか、あるいは現在セットされている最大の用紙で強制
的に印刷する(ステップ123)。また、デ−タの縮小
処理を行うことにより、用紙内に納めることも可能であ
る。
FIG. 7 and FIG. 8 are processing flowcharts in the print control section showing another embodiment of the present invention. In this case, the reduction ratio calculation when holding a plurality of sheets is performed. First, the buffer for storing the maximum data width and height within a page and the buffer for storing the data width and page length (height) of each line are cleared (step 101). In this state, the reception of data is awaited (step 102). The data received from the host is first judged whether it is a page break code (step 103). If it is not a page feed code, it is next determined whether or not it is a line feed code (step 104). If it is a line feed code, the L-w buffer is cleared (step 105) and the data reception waits again (step 102). If it's not a newline code,
Vertical and horizontal displacements dx and dy of the received data (see FIG. 3) are calculated (step 106), and the current Lw and L- are calculated.
The value obtained by adding dx and dy to the h value is newly added to Lw,
It is stored in the buffer as Lh (step 107).
After that, ML-w and ML-h are compared with Lw and Lh (steps 108 and 110), and the maximum data in the page is always displayed.
The buffer is updated in advance so that the data width and height are indicated by ML-w and ML-h (steps 109 and 111). In this state, the data reception waits again (step 10).
2). After this process is repeated, when a page feed code is received (step 103), the process proceeds to the paper size selection routine. First, the smallest paper size is selected from the paper sizes set in the device, and the paper width and height P-w are selected.
1, P-h1 and maximum data width and height ML-w of page,
The magnitude of ML-h is compared (steps 115 and 11).
6). If one of the widths or heights of the paper is overwritten, the second smallest paper size is selected and a similar determination is made (steps 118, 1).
19). In this way, when a paper size that fits both the width and height is selected, the paper becomes the smallest paper size that the received data fits (steps 117 and 12).
0, ...). Finally, if the data is over even with the maximum paper size (step 121), the paper size over is notified by some method (step 124). , Requesting a larger paper size, or forcibly printing with the largest paper size currently set (step 123). Further, the data can be stored in the paper by reducing the data.

【0012】図9は、dx,dyの計算方法の説明図で
ある。フォントデ−タ、イメ−ジデ−タ等、受信デ−タ
は異なっていても、位置指定およびデ−タの大きさ(領
域)から、dx,dyの値は計算することが可能であ
る。すなわち、図8に示すように、x(幅方向)とy
(高さ方向)のある座標(L−w,L−h)から新しい
座標に移動した場合、新しい座標は(L−w+dx,L
−h+dy)である。
FIG. 9 is an explanatory diagram of a method of calculating dx and dy. Even if the received data such as font data and image data are different, the values of dx and dy can be calculated from the position designation and the size (area) of the data. That is, as shown in FIG. 8, x (width direction) and y
When moving from a certain coordinate (Lw, Lh) in (height direction) to a new coordinate, the new coordinate is (Lw + dx, L).
-H + dy).

【0013】[0013]

【発明の効果】以上説明したように、本発明によれば、
自動的にデ−タの縮小を行うことにより、用紙サイズを
越えるデ−タでも、必ず指定用紙に納まる印刷結果が得
られるので、単純に文字サイズあるいはイメ−ジデ−タ
のサイズを考慮せずに、単一用紙サイズの印刷結果を期
待するユ−ザにとって極めて便利である。また、複数の
用紙サイズを持つ場合には、受信デ−タサイズから最適
な用紙を自動的に選択することにより、受信デ−タと等
倍のデ−タを用紙内に納めることができるので、ユ−ザ
の指定用紙あるいは装置のデフォルト用紙サイズに納ま
らないデ−タを用紙サイズを自動的に変更することによ
り、確実に用紙内に印刷することが可能になる。
As described above, according to the present invention,
By automatically reducing the data, even if the data exceeds the paper size, you can always get a print result that fits on the specified paper, so you do not have to simply consider the character size or image data size. In addition, it is extremely convenient for a user who expects a print result of a single paper size. Also, in the case of having a plurality of paper sizes, it is possible to store the same size data as the received data in the paper by automatically selecting the optimum paper from the received data sizes. By automatically changing the paper size of data that does not fit in the user-specified paper or the default paper size of the apparatus, it is possible to reliably print the data on the paper.

【0014】[0014]

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

【図1】本発明の制御方法を適用する印刷装置のブロッ
ク図である。
FIG. 1 is a block diagram of a printing apparatus to which a control method of the present invention is applied.

【図2】本発明の原理を示す縮小率計算方法の説明図で
ある。
FIG. 2 is an explanatory diagram of a reduction rate calculation method showing the principle of the present invention.

【図3】受信デ−タのフォ−マット構成例を示す図であ
る。
FIG. 3 is a diagram showing a format configuration example of reception data.

【図4】ビットマップ上でのセルの動きを示す説明図で
ある。
FIG. 4 is an explanatory diagram showing movement of cells on a bitmap.

【図5】本発明の原理を示す他の縮小率計算方法の説明
図である。
FIG. 5 is an explanatory diagram of another reduction rate calculation method showing the principle of the present invention.

【図6】本発明の一実施例を示す印刷制御部内の処理フ
ロ−チャ−トである。
FIG. 6 is a processing flow chart in a print control unit showing an embodiment of the present invention.

【図7】図6と同じく、印刷制御部内の処理フロ−チャ
−トの他の一部である。
FIG. 7 is another part of the processing flow chart in the print control unit as in FIG.

【図8】本発明の他の実施例を示印刷制御部内の処理フ
ロ−チャ−トである。
FIG. 8 is a processing flow chart in the print control unit showing another embodiment of the present invention.

【図9】dx,dyの計算方法の説明図である。FIG. 9 is an explanatory diagram of a method for calculating dx and dy.

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

1 CPU 2 ROM 3 CG 4 DRAM 5 SRAM 6 外部インタフェ−ス 7 ビデオインタフェ−ス 8 プリンタエンジン 10 バス Dx 受信デ−タの行幅 Dy 受信デ−タの高さ幅 Px 指定用紙の行幅 Py 指定用紙の高さ幅 1 CPU 2 ROM 3 CG 4 DRAM 5 SRAM 6 External interface 7 Video interface 8 Printer engine 10 Bus Dx Line width of received data Dy Height of received data Px Line width of designated paper Py specified Paper height width

Claims (3)

【特許請求の範囲】[Claims] 【請求項1】 複数サイズの用紙を保有し、かつビット
マップ縮小機能を備えた印刷装置において、受信デ−タ
の展開後のデ−タ幅およびデ−タの頁長を計算して、ユ
−ザが指定した用紙内に納まる最小の縮小率を計算する
か、あるいは保有する上記用紙サイズの中からデ−タが
納まる最小の用紙を選択して、上記指定された用紙ない
し上記選択された用紙を用いて印刷することを特徴とす
る印刷装置の制御方法。
1. A printing apparatus having a plurality of sizes of paper and having a bitmap reduction function, calculates a data width after development of received data and a page length of the data, -Calculate the minimum reduction ratio that can be accommodated in the paper specified by the user, or select the smallest paper that can hold the data from the paper sizes that you have, and select the specified paper or the selected paper. A method for controlling a printing apparatus, wherein printing is performed using paper.
【請求項2】 ビットマップ縮小機能を備えた印刷装置
において、受信したデ−タをプリチェックして、他のメ
モリエリアに展開した後、受信デ−タの展開後のデ−タ
幅およびデ−タの頁長を計算して、該デ−タがユ−ザが
設定した用紙内に納まる最小の縮小率を計算し、該縮小
率で該デ−タをメモリエリアのビットマップ上に展開
し、該デ−タを印刷することを特徴とする印刷装置の制
御方法。
2. A printing apparatus having a bitmap reduction function, pre-checks received data, expands it in another memory area, and then expands the received data to obtain the data width and data. -Calculate the page length of the data, calculate the minimum reduction ratio that the data can fit on the paper set by the user, and expand the data on the bitmap of the memory area at the reduction ratio. And then printing the data.
【請求項3】 複数サイズの用紙を保有する印刷装置に
おいて、受信したデ−タをプリチェックして、他のメモ
リエリアに展開した後、展開後のデ−タ幅およびデ−タ
の頁長を計算して、保有する用紙サイズの中から該デ−
タが納まる最小の用紙を選択して、該用紙を用いて印刷
することを特徴とする印刷装置の制御方法。
3. A printing apparatus having a plurality of sizes of paper, pre-checks received data, expands it in another memory area, and then expands the data width and the page length of the data. Is calculated, and the
A method for controlling a printing apparatus, which comprises selecting the smallest sheet of paper that can accommodate the data and printing using the sheet.
JP2836492A 1992-02-14 1992-02-14 Control of printing device Pending JPH05221076A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2836492A JPH05221076A (en) 1992-02-14 1992-02-14 Control of printing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2836492A JPH05221076A (en) 1992-02-14 1992-02-14 Control of printing device

Publications (1)

Publication Number Publication Date
JPH05221076A true JPH05221076A (en) 1993-08-31

Family

ID=12246574

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2836492A Pending JPH05221076A (en) 1992-02-14 1992-02-14 Control of printing device

Country Status (1)

Country Link
JP (1) JPH05221076A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8675241B2 (en) 2008-05-17 2014-03-18 Konica Minolta Laboratory U.S.A., Inc. Method for printing oversized image data

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8675241B2 (en) 2008-05-17 2014-03-18 Konica Minolta Laboratory U.S.A., Inc. Method for printing oversized image data

Similar Documents

Publication Publication Date Title
US5737503A (en) Apparatus and method for print control
GB2224187A (en) Image data processor having means for changing resolution of output images
JPH0345076A (en) Processing system for picture data
EP0683469B1 (en) Character processing apparatus and method
JPH0263763A (en) Printing apparatus
EP0435579A2 (en) Character output apparatus
US5097426A (en) Printer controlling apparatus
JP4492082B2 (en) Image output control method, apparatus, and program
JPH05221076A (en) Control of printing device
US5867637A (en) Document processing with flexible resolution and output style
JP2946548B2 (en) Page printer with editing function
JP4785601B2 (en) Image forming apparatus
JP3116354B2 (en) Printer data management method
JPH01290448A (en) Character generator
JPH0699615A (en) Data processing method of page printer
JP3391185B2 (en) Drawing processing device
JP2715475B2 (en) Graphic output device
JP2989778B2 (en) Print control apparatus and method
JPS6189861A (en) Printing controller
KR100212981B1 (en) Image printing apparatus and method for saving paper and toner
JPH04310779A (en) Data processing method for page printer
JPH06127030A (en) Printer
JP3450958B2 (en) Printing apparatus and printing method
JPS63107269A (en) Image processing system
JP3598728B2 (en) PRINTING SYSTEM, PRINTING METHOD, COMPUTER-READABLE RECORDING MEDIUM CONTAINING PRINT CONTROL PROGRAM, PRINT CONTROL DEVICE USED FOR PRINT SYSTEM, AND PRINT CONTROL METHOD