JPH01249482A - Data output device - Google Patents

Data output device

Info

Publication number
JPH01249482A
JPH01249482A JP63076362A JP7636288A JPH01249482A JP H01249482 A JPH01249482 A JP H01249482A JP 63076362 A JP63076362 A JP 63076362A JP 7636288 A JP7636288 A JP 7636288A JP H01249482 A JPH01249482 A JP H01249482A
Authority
JP
Japan
Prior art keywords
paper size
data
paper
size
ratio
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
JP63076362A
Other languages
Japanese (ja)
Inventor
Yasusuke Nakajima
庸介 中島
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.)
Canon Inc
Original Assignee
Canon Inc
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 Canon Inc filed Critical Canon Inc
Priority to JP63076362A priority Critical patent/JPH01249482A/en
Publication of JPH01249482A publication Critical patent/JPH01249482A/en
Pending legal-status Critical Current

Links

Landscapes

  • Record Information Processing For Printing (AREA)

Abstract

PURPOSE:To enable recording in a desired format to be carried out even upon a change in the size of a paper used, by outputting recording data inputted from a recording data input means by converting the recording data into pattern signals having a form corresponding to size data sent from a paper size data output means. CONSTITUTION:When a first paper size specified by a paper size specifying command and a second paper size detected by a paper size detector 5 are different from each other, a ratio calculator 4 calculates the ratio (h) of the horizontal length X of the second paper size to that (x) of the first paper size according to the formula h=x/X, and calculates the ratio (v) of the vertical length Y of the second paper size to that (y) of the first paper size according to the formula v=y/Y. The ratios (h), (v) are outputted to a data modifier 3, by which horizontal data in printing environment data is multiplied by h, whereas vertical data in the printing environment data is multiplied by v.

Description

【発明の詳細な説明】[Detailed description of the invention]

[産業上の利用分野] 本発明は紙上に記録を行うためのデータを出力するデー
タ出力装置に関するものである。 [従来の技術] 従来、あるサイズの第1の紙に印字する為作成された印
字データをサイズの異なる第2の紙に出力する場合、第
2図、第3図に示すような方法で印字が行われている。 第2図は第1の紙サイズが第2の紙サイズより小さい場
合、第3図は大きい場合である。ρは復帰改行コード、
FFは改頁コードである(共に印字データに付属する)
。第2図かられかるように、第1の紙サイズが第2の紙
サイズより小さい場合、印字データは第2の紙の左上か
ら印字が始まり、改頁コードにより紙の半ばまで第2の
紙上の印字を終える。改頁コードがない場合は第2紙の
下端を印字位置が越えた時点で第2の紙上の印字を終え
る。 第3図に示すように第1の紙サイズが第2の紙サイズよ
り大きい場合、右側や下側のあふれた印字データは欠け
たり第2紙からあふれて別の紙に印字されたりする。
[Industrial Field of Application] The present invention relates to a data output device that outputs data for recording on paper. [Prior Art] Conventionally, when print data created for printing on a first sheet of paper of a certain size is outputted on a second sheet of paper of a different size, printing is performed using the method shown in FIGS. 2 and 3. is being carried out. FIG. 2 shows a case where the first paper size is smaller than the second paper size, and FIG. 3 shows a case where it is larger. ρ is the new line code,
FF is a page break code (both are attached to the print data)
. As can be seen from Figure 2, when the first paper size is smaller than the second paper size, the print data starts printing from the upper left of the second paper, and continues until the middle of the paper due to the page break code. Finish printing. If there is no page break code, printing on the second paper ends when the printing position passes the bottom edge of the second paper. As shown in FIG. 3, when the first paper size is larger than the second paper size, the overflowing print data on the right side or the bottom side is missing or overflows from the second paper and is printed on another paper.

【発明が解決しようとする課題】[Problem to be solved by the invention]

この様に第1のサイズの紙用に作成されたデータをその
まま第2のサイズの紙に印字すると、第2図で示す場合
は印字結果が左や上へかたよるし、第3図で示す場合は
印字文字が欠けたり、−行に納まったデータが二行に分
かれたり、−頁に納まったデータが二頁に分かれたりし
てページのフォーマットがくずれるといった不都合が生
じていた。 本発明は上述した点に鑑みなされたもので、使用する紙
サイズが変っても所望の形態で記録が行える様にデータ
を送出するデータ出力装置を提供することを目的とする
。 [課題を解決するための手段] すなわち本発明は第1のサイズの用紙用に作られた記録
データを入力する記録データ入力手段と、紙サイズ情報
出力手段と、記録データ入力手段dより入力された記録
データを紙サイズ情報出力手段からの第1のサイズと異
なる第2のサイズ情報に対応した形態のパターン信号に
変換して出力する手段とを具える。 [作 用〕 本発明によれば、記録データを第1のサイズと異なる第
2のサイズの紙に所望の形態で記録できる様に、紙サイ
ズ情報に基づいて前記記録データを処理し、パターン信
号として出力する。 [実施例] 第1図は本発明にかかるデータ出力装置の一実施例を示
すものであり、図において1は、ホスト等の外部装置か
ら入力される印刷データ(文字コードや制御コマンド)
を印字環境(選択されている文字フォント種1行ピッチ
、桁ピッチ、ページ長等)に基づいてページメモリにド
ツトパターンデータとして展開し、パターン信号として
出力装置2に送出するパターン生成装置であり、出力装
置2は前記パターン生成装置1から入力されるパターン
信号に基づいて紙上に画像を記録する(例えばレーザー
ビームプリンタ等からなる)。 3はパターン生成装置1がパターン生成する際の情報で
ある前記印字環境情報を選択されている紙サイズ等の情
報を基に変更し、変更データを前記パターン生成装置1
に送出するデータ変更装置、4は紙サイズ検知装置5(
後述)で検知される紙サイズに応じて所定の演算を行い
、演算結果をデータ変更装置3に送出する比率算出装置
、5は現在セットされている紙のサイズを検知し、デー
タ変更装置3に送出するための紙サイズ検知装置である
。 第1図の回路に入力される印刷データの先頭には、後続
データがどのサイズの紙にフォーマットされているかに
関する情報1紙サイズ指定コマンド)が人っているもの
とする。 本実施例によればこの紙サイズ指定コマンドで指定した
第1の紙サイズと紙サイズ検知装置5が検細した第2の
紙サイズが異なる場合に、印刷データを第2の紙サイズ
用に変更し、フォーマットをくずさない様に画像記録を
行うものである。 初期段数として第1の紙サイズと第2の紙サイズが異な
る場合、比率算出装置4は、第1の紙サイズの水平方向
の長さXと第2の紙サイズの平行方向の長さXの比りを h = X / x  ・・・0式 より算出し、第1の紙サイズの垂直方向の長pyと第2
の紙サイズの垂直方向の長さYの比Vをv = Y /
 y  ・・・0式 より算出する。h、vはデータ変更装置3に送出される
。 データ変更装置3は印字環境情報のうち水平方向に関す
情報(例 水平タブ、マージン等)を6倍し、垂直方向
に関連する情報(例 垂直タブ。 行ピッチ、ページ長等)を7倍する。 データ変更装置3は更に新しい文字フォントを選択すべ
く、第4図に示すようなフォントのサイズに関する情報
pitch、heightもそれぞれh倍、7倍する(
結果をそれぞれ仮pitch、仮heightと名付け
る)。その後第5図に示すフォントサイズテーブルから
仮pitch、仮heightを越えない最大値(実p
itch、実hejght)を持つフォントを選択し、
微調整用情報である水平オフセット、垂直オフセットを 水平オフセット=仮pitch−実p i tch・・
・■垂直オフセット=仮height−実height
−・−■によって算出する。データ変更装置はこれらの
変更した印字環境情報(水平、垂直、フォント、オフセ
ット等)をパターン生成装置1へ送出する。 パターン生成装置1は文字コード等の印刷データを前記
印字環境情報に基づいて、ページメモリにドツトパター
ンデータとして展開し、パターン信号を生成する。この
時文字フォントのパターン展開は、実pitCh、実h
eightにそれぞれ水平オフセット、垂直オフセット
を和した値(すなわち仮pitch、仮height)
を用いて行う(第6図)。出力装−2は入力されたパタ
ーン信号に基づいて第2の紙サイズの用紙に印字を行う
。これにより第1の紙サイズの用紙用にフォーマットさ
れた印字データを左や上へかたよったり文字が欠けたり
することなしに第2の紙サイズの紙に印字することがで
きる。 次に本発明による第2の実施例を説明する。 第1の実施例においては文字フォント変更の際、比率に
よって第5図のフォントサイズテーブルから最もふされ
しいフォントを選択していた。のに対して、第2の実施
例ではフォントのドツト(又はベクトル)パターン自体
を、比率算出装置4の出力する値り、vによって拡大、
N小するものである。これによると、データ変更装置3
内でフォントの拡大、縮小を行った後、データ変更装置
3は前記フォントや第1の実施例で示した、変更後の水
平、垂直方向に関する情報等といった印字環境情報をパ
ターン生成装置1へ送出する。パターン生成装置1は印
字データを前記印字環境情報に基づいてページメモリに
展開し、パターン信号を生成する。出力装置2は入力さ
れたパターン信号に基づいて印字を行う。 [発明の効果] 以上説明したように、本発明によれば、使用する紙のサ
イズが変っても所望のフォーマットで記録することがで
きる。
If data created for the first size of paper is printed as is on the second size of paper in this way, the print result will shift to the left or top in the case shown in Figure 2, and in the case shown in Figure 3. This resulted in inconveniences such as missing printed characters, data that was in the - line being split into two lines, and data that was in the - page being split into two pages, resulting in the page format being corrupted. The present invention has been made in view of the above-mentioned points, and an object of the present invention is to provide a data output device that outputs data so that recording can be performed in a desired format even if the paper size used changes. [Means for Solving the Problems] That is, the present invention provides recording data input means for inputting recording data created for a first size of paper, paper size information output means, and recording data input means d for inputting recording data created for paper of a first size. and means for converting the recorded data into a pattern signal in a form corresponding to second size information different from the first size from the paper size information output means and outputting the pattern signal. [Function] According to the present invention, the recorded data is processed based on the paper size information, and the pattern signal is Output as . [Embodiment] Fig. 1 shows an embodiment of a data output device according to the present invention, and in the figure, 1 indicates print data (character code and control command) input from an external device such as a host.
A pattern generation device that develops dot pattern data in a page memory based on the printing environment (selected character font type, line pitch, digit pitch, page length, etc.) and sends it to the output device 2 as a pattern signal, The output device 2 records an image on paper based on the pattern signal input from the pattern generation device 1 (for example, includes a laser beam printer or the like). 3 changes the printing environment information, which is information used when the pattern generation device 1 generates a pattern, based on information such as the selected paper size, and changes the changed data to the pattern generation device 1.
4 is a paper size detection device 5 (
A ratio calculating device 5 performs a predetermined calculation according to the paper size detected in (described later) and sends the calculation result to the data changing device 3; This is a paper size detection device for sending out. It is assumed that at the beginning of the print data input to the circuit of FIG. 1 there is information (1 paper size designation command) regarding which paper size the subsequent data is formatted on. According to this embodiment, when the first paper size specified by this paper size specification command and the second paper size inspected by the paper size detection device 5 are different, the print data is changed to the second paper size. The image is recorded without destroying the format. When the first paper size and the second paper size are different as the initial number of stages, the ratio calculation device 4 calculates the horizontal length X of the first paper size and the parallel length X of the second paper size. Calculate the ratio h = X / x ... from the formula 0, and calculate the vertical length py of the first paper size and the second
The ratio V of the vertical length Y of the paper size is v = Y /
y...Calculated from formula 0. h and v are sent to the data modification device 3. The data modification device 3 multiplies information related to the horizontal direction (e.g., horizontal tabs, margins, etc.) in the printing environment information by 6, and multiplies information related to the vertical direction (e.g., vertical tabs, line pitch, page length, etc.) by 7. . In order to further select a new character font, the data changing device 3 also multiplies the pitch and height information regarding the font size by h and by 7, respectively, as shown in FIG.
Name the results tentative pitch and tentative height, respectively). After that, from the font size table shown in Figure 5, the maximum value that does not exceed the tentative pitch and tentative height (actual pitch
itch, real hejght),
Horizontal offset and vertical offset, which are information for fine adjustment, are horizontal offset = temporary pitch - actual pitch...
・■Vertical offset = temporary height - actual height
Calculated by −・−■. The data changing device sends the changed printing environment information (horizontal, vertical, font, offset, etc.) to the pattern generating device 1. The pattern generation device 1 develops print data such as character codes as dot pattern data in a page memory based on the printing environment information, and generates a pattern signal. At this time, the character font pattern expansion is real pitCh, real h
The value of eight plus the horizontal offset and vertical offset, respectively (i.e. temporary pitch, temporary height)
(Figure 6). The output device 2 prints on paper of the second paper size based on the input pattern signal. As a result, print data formatted for paper of the first paper size can be printed on paper of the second paper size without being shifted to the left or upward, or without missing characters. Next, a second embodiment of the present invention will be described. In the first embodiment, when changing the character font, the most appropriate font was selected from the font size table shown in FIG. 5 based on the ratio. On the other hand, in the second embodiment, the dot (or vector) pattern of the font itself is enlarged by the value v output by the ratio calculation device 4.
N is reduced. According to this, data change device 3
After enlarging or reducing the font within the font, the data changing device 3 sends printing environment information such as information regarding the font and the changed horizontal and vertical directions shown in the first embodiment to the pattern generating device 1. do. The pattern generation device 1 develops print data into a page memory based on the print environment information and generates a pattern signal. The output device 2 performs printing based on the input pattern signal. [Effects of the Invention] As explained above, according to the present invention, even if the size of paper used changes, it is possible to record in a desired format.

【図面の簡単な説明】[Brief explanation of the drawing]

第1図は本発明実施例におけるデータ出力装置のブロッ
ク図、 第2図および第3図は従来例における印字態様を示す図
、 第4図は文字フォントの説明図、 第5図フォントテーブルを示す図、 第6図は第1の実施例による文字フォントの説明図であ
る。 1・・・パターン生成装置、 2・・・出力装置、 3・・・データ変更装置、 4・・・比率算出装置、 5・・・紙サイズ検知装置である。 第2図 (i)コマンド17る設定系氏 (11)実襞庫氏第4
図 第6図
Fig. 1 is a block diagram of a data output device according to an embodiment of the present invention, Figs. 2 and 3 are diagrams showing printing modes in a conventional example, Fig. 4 is an explanatory diagram of character fonts, and Fig. 5 shows a font table. FIG. 6 is an explanatory diagram of a character font according to the first embodiment. DESCRIPTION OF SYMBOLS 1... Pattern generation device, 2... Output device, 3... Data change device, 4... Ratio calculation device, 5... Paper size detection device. Figure 2 (i) Command 17 Setting System (11) Jitsuko No. 4
Figure 6

Claims (1)

【特許請求の範囲】 第1のサイズの用紙用に作られた記録データを入力する
記録データ入力手段と、 紙サイズ情報出力手段と、 前記記録データ入力手段により入力された記録データを
前記紙サイズ情報出力手段からの前記第1のサイズと異
なる第2のサイズ情報に対応した形態のパターン信号に
変換して出力する手段とを具えたことを特徴とするデー
タ出力装置。
[Scope of Claims] Recording data input means for inputting recording data created for paper of a first size; paper size information output means; A data output device comprising means for converting into a pattern signal in a form corresponding to second size information different from the first size from the information output means and outputting the pattern signal.
JP63076362A 1988-03-31 1988-03-31 Data output device Pending JPH01249482A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP63076362A JPH01249482A (en) 1988-03-31 1988-03-31 Data output device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP63076362A JPH01249482A (en) 1988-03-31 1988-03-31 Data output device

Publications (1)

Publication Number Publication Date
JPH01249482A true JPH01249482A (en) 1989-10-04

Family

ID=13603245

Family Applications (1)

Application Number Title Priority Date Filing Date
JP63076362A Pending JPH01249482A (en) 1988-03-31 1988-03-31 Data output device

Country Status (1)

Country Link
JP (1) JPH01249482A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH02190371A (en) * 1989-01-19 1990-07-26 Sanyo Electric Co Ltd Page printer
JPH04129756A (en) * 1990-09-21 1992-04-30 Canon Inc Output device
US20120133959A1 (en) * 2010-11-29 2012-05-31 Masami Shibahara Image forming apparatus

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS59127784A (en) * 1983-01-12 1984-07-23 Canon Inc Information output device
JPS60234856A (en) * 1984-05-09 1985-11-21 Canon Inc Recording apparatus
JPS61110193A (en) * 1984-11-05 1986-05-28 富士通株式会社 Character pattern generation system
JPS61250726A (en) * 1985-04-30 1986-11-07 Canon Inc Electronic appliance
JPS62157089A (en) * 1985-12-28 1987-07-13 富士通株式会社 Generation of vector character
JPS6378279A (en) * 1986-09-20 1988-04-08 Sony Tektronix Corp Method of magnifying and contracting image
JPS63110487A (en) * 1986-10-29 1988-05-14 株式会社日立製作所 Table generator
JPS63203363A (en) * 1987-02-19 1988-08-23 Fuji Xerox Co Ltd Printing controller

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS59127784A (en) * 1983-01-12 1984-07-23 Canon Inc Information output device
JPS60234856A (en) * 1984-05-09 1985-11-21 Canon Inc Recording apparatus
JPS61110193A (en) * 1984-11-05 1986-05-28 富士通株式会社 Character pattern generation system
JPS61250726A (en) * 1985-04-30 1986-11-07 Canon Inc Electronic appliance
JPS62157089A (en) * 1985-12-28 1987-07-13 富士通株式会社 Generation of vector character
JPS6378279A (en) * 1986-09-20 1988-04-08 Sony Tektronix Corp Method of magnifying and contracting image
JPS63110487A (en) * 1986-10-29 1988-05-14 株式会社日立製作所 Table generator
JPS63203363A (en) * 1987-02-19 1988-08-23 Fuji Xerox Co Ltd Printing controller

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH02190371A (en) * 1989-01-19 1990-07-26 Sanyo Electric Co Ltd Page printer
JPH04129756A (en) * 1990-09-21 1992-04-30 Canon Inc Output device
US20120133959A1 (en) * 2010-11-29 2012-05-31 Masami Shibahara Image forming apparatus
US8988727B2 (en) * 2010-11-29 2015-03-24 Kyocera Document Solutions Inc. Image forming apparatus

Similar Documents

Publication Publication Date Title
JPS6184960A (en) Method and device for compensating oblique attitude of document original picture
JPH03140060A (en) Method of scaling picture
JPH01249482A (en) Data output device
EP0420575B1 (en) Printer apparatus
JPH0541998B2 (en)
JPS6292877A (en) Printing system
JPH0747337B2 (en) output method
JPH01241456A (en) Pattern output device
JPH0713790B2 (en) Character output method
JP3024479B2 (en) Data converter
JPS6189861A (en) Printing controller
JPH08132684A (en) Braille block copy output system and braille block copy outputting method
JP3055327B2 (en) Data converter
JPH01184157A (en) Printer
JP2738189B2 (en) Coordinate conversion method and coordinate conversion device
JPH0627924A (en) Data converting device
JPS6356476A (en) Printer controller
JPH0193363A (en) Data output apparatus
JPS61108562A (en) Letter pitch processing system
JPS60129267A (en) Printing system for letter and the like
JPH0113128B2 (en)
JPH08202519A (en) Print controller
JPS61156188A (en) Character output system
JPS6364778A (en) Recording apparatus
JPH0361055A (en) Printing controller