JP3119051B2 - Print information conversion method and apparatus - Google Patents

Print information conversion method and apparatus

Info

Publication number
JP3119051B2
JP3119051B2 JP05243148A JP24314893A JP3119051B2 JP 3119051 B2 JP3119051 B2 JP 3119051B2 JP 05243148 A JP05243148 A JP 05243148A JP 24314893 A JP24314893 A JP 24314893A JP 3119051 B2 JP3119051 B2 JP 3119051B2
Authority
JP
Japan
Prior art keywords
line
print
information
line information
data
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.)
Expired - Fee Related
Application number
JP05243148A
Other languages
Japanese (ja)
Other versions
JPH0796641A (en
Inventor
宏夫 風間
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Fujifilm Business Innovation Corp
Original Assignee
Fuji Xerox Co Ltd
Fujifilm Business Innovation 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 Fuji Xerox Co Ltd, Fujifilm Business Innovation Corp filed Critical Fuji Xerox Co Ltd
Priority to JP05243148A priority Critical patent/JP3119051B2/en
Publication of JPH0796641A publication Critical patent/JPH0796641A/en
Application granted granted Critical
Publication of JP3119051B2 publication Critical patent/JP3119051B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Description

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

【0001】[0001]

【産業上の利用分野】この発明は、例えばライン・プリ
ンタ用の印字言語をDTP(デスクトップ・パブリッシ
ング)向けの高級印字制御言語へ変換する印字情報変換
方法およびその装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a print information conversion method and apparatus for converting a print language for a line printer into a high-level print control language for DTP (desktop publishing).

【0002】[0002]

【従来の技術】従来のプリンタでは、プリンタの機種に
より制御コードが独自に決められており、コンピュータ
やアプリケーションがプリンタの制御コードに合わせて
データを作成して印字していた。また、従来はプリンタ
を任意に変更することができず、プリンタを変更する際
はアプリケーションソフトの変更も必要であった。そこ
で、アプリケーションソフトを変更することなくプリン
タだけを変更できるようにするため、アプリケーション
ソフトとプリンタとの間にデータを変換する印字情報変
換装置を設けることが行われている。例えば、特開平4
−177419号公報に提案されたプリンタ切換機もそ
のひとつである。
2. Description of the Related Art In a conventional printer, a control code is uniquely determined depending on a printer model, and a computer or an application creates and prints data in accordance with the control code of the printer. Conventionally, the printer cannot be changed arbitrarily, and when changing the printer, it is necessary to change the application software. Therefore, in order to be able to change only the printer without changing the application software, a print information conversion device for converting data is provided between the application software and the printer. For example, JP
A printer switching device proposed in Japanese Patent Application Laid-Open No. 177419 is one of them.

【0003】[0003]

【発明が解決しようとする課題】上記特開平4−177
419号公報に提案されたプリンタ切換機は、入力印字
データをコード変換テーブルに基づいて単純に出力印字
データに変換するものであるため、効率の悪い入力印字
データについても、そのまま効率の悪い出力印字データ
に変換していた。
SUMMARY OF THE INVENTION The above-mentioned Japanese Patent Application Laid-Open No. 4-177 is disclosed.
The printer switching device proposed in Japanese Patent Publication No. 419 simply converts input print data into output print data based on a code conversion table. Was converted to data.

【0004】図9は、印字出力結果の一例を示したもの
で、XY方向の数値は座標値を表している。この文書は
3種類の文字と直線で構成されている。直線には(1)
太い実線、(2)細い実線、(3)細い破線の3種類が
あり、線の種類を変更するためには線種変更命令を発行
する必要がある。図10は、図9に示す文書の描画順序
を示したもので、特に印字効率を考慮していないアプリ
ケーションソフトによる描画順序を示している。この例
では、1本の長い線も複数の短い線で描画されているた
め、線の描画命令の数は29となっている。このような
効率の悪い入力印字データをそのまま変換すると、図1
1に示すようなデータ量の多い出力印字データとなって
しまう。特に、DTP対応の高級印字制御言語に変換す
る場合、線の種類を頻繁に変更するような出力印字デー
タはデータ量が著しく増大することになり、メモリ等の
記憶装置の有効利用をさまたげる原因となる。また、印
字情報変換装置とDTP対応の高級印字制御言語を用い
たプリンタとが低速の通信方式で接続されている場合
は、転送時間の増大につながり、印字速度の効率が低下
するという問題点がある。
FIG. 9 shows an example of a print output result. Numerical values in the X and Y directions represent coordinate values. This document is composed of three types of characters and straight lines. For a straight line (1)
There are three types: a thick solid line, (2) a thin solid line, and (3) a thin broken line. In order to change the type of line, it is necessary to issue a line type change command. FIG. 10 shows the drawing order of the document shown in FIG. 9, and particularly shows the drawing order by application software in which the printing efficiency is not considered. In this example, since one long line is also drawn by a plurality of short lines, the number of line drawing commands is 29. When such inefficient input print data is converted as it is, FIG.
Output print data having a large data amount as shown in FIG. In particular, when converting to a high-level print control language compatible with DTP, the amount of output print data that frequently changes the type of line will significantly increase, and this will hinder the effective use of storage devices such as memories. Become. Further, when the print information conversion device and a printer using a high-level print control language compatible with DTP are connected by a low-speed communication method, the transfer time increases, and the print speed efficiency decreases. is there.

【0005】この発明は、出力データの大きさを少なく
することにより、メモリの有効利用を可能とする印刷情
報変換方法およびその装置を提供することを目的とす
る。
SUMMARY OF THE INVENTION It is an object of the present invention to provide a print information conversion method and a print information conversion method capable of effectively utilizing a memory by reducing the size of output data.

【0006】[0006]

【課題を解決するための手段】上記課題を解決するた
め、この発明に係わる印刷情報変換方法では、第1の命
令体系で記述された印字データを読み込んで、その中に
存在する線描画命令を一旦保持し、1頁分の印字データ
の解釈を終了した時点で前記保持している線描画命令を
取り出し、同じ属性を持つ線描画命令ごとにまとめて第
2の命令体系で記述された出力データに変換するように
したことを特徴とする。
In order to solve the above-mentioned problems, a print information conversion method according to the present invention reads print data described in a first instruction system and converts a line drawing instruction existing in the print data. Once the line drawing commands are held and the interpretation of the print data for one page is completed, the held line drawing commands are taken out, and the output data described in the second command system are grouped for each line drawing command having the same attribute. It is characterized in that it is converted to.

【0007】また、上記印刷情報変換方法を実施するた
めの印刷情報変換装置は、第1の命令体系で記述された
印字データを読み込み、その印字要求内容を解釈する入
力データ解釈手段と、線描画命令に対応する線情報を命
令の発生順に保持する線情報保持手段と、前記入力デー
タ解釈手段で解釈された印字要求内容が線描画命令であ
るときは、当該線描画命令に対応する線情報を線情報保
持手段に格納し、1頁分の印字要求内容の解釈を終了し
た時点で、前記線情報保持手段に格納されている線情報
群の中から、同じ属性の線情報を選択してそれぞれグル
ープ化し、当該各グループと対応する線描画命令からな
る印字要求内容を出力データ作成手段に出力する線情報
制御手段と、前記線情報制御手段から出力された印字要
求内容を用いて、第2の命令体系で記述された出力デー
タを作成する出力データ作成手段とを具えたことを特徴
とする。
A print information conversion apparatus for executing the above print information conversion method reads input print data described in a first command system, interprets the print request contents, and draws line data. A line information holding unit for holding line information corresponding to the command in the order in which the command is generated; and, when the print request content interpreted by the input data interpreting unit is a line drawing command, the line information corresponding to the line drawing command is stored. At the time when the interpretation of the print request content for one page is completed, the line information having the same attribute is selected from the line information group stored in the line information holding unit, and each line information is stored in the line information holding unit. Grouping, line information control means for outputting a print request content comprising a line drawing command corresponding to each group to the output data creating means, and using the print request content output from the line information control means, Characterized in that comprising an output data generating means for generating an output data described in the second instruction architecture.

【0008】[0008]

【作用】上記印刷情報変換方法およびその装置では、印
字データ中に含まれている線描画命令に対応する線情報
を、例えば線の種類のような同じ属性ごとにグループ化
し、1頁の終了時に前記グループ化した線情報ごとにま
とめて出力データに変換するようにしている。これによ
れば、出力データに記述される線種の変更命令の発行回
数を最少限に少なくすることができるので、出力データ
の大きさは従来に比べて小さくなり、メモリ領域を有効
に利用することが可能となる。
According to the above-described print information conversion method and apparatus, line information corresponding to a line drawing command included in print data is grouped by the same attribute, for example, line type, at the end of one page. The grouped line information is collectively converted into output data. According to this, the number of issuance of the line type change instruction described in the output data can be minimized, so that the size of the output data is smaller than before, and the memory area is effectively used. It becomes possible.

【0009】[0009]

【実施例】以下、この発明に係わる印刷情報変換方法お
よびその装置を適用した印刷情報変換装置の一実施例を
図面を参照しながら説明する。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment of a print information conversion method and a print information conversion apparatus to which the present invention is applied will be described below with reference to the drawings.

【0010】実施例1 図1は、上記印刷情報変換装置の機能的な構成を示すブ
ロック図である。この印刷情報変換装置11は、入力デ
ータ解釈手段12、出力データ作成手段13、線情報保
持手段21、内部情報保持手段22により構成されてい
る。
FIG. 1 is a block diagram showing a functional configuration of the print information conversion apparatus. The print information conversion device 11 includes an input data interpretation unit 12, an output data creation unit 13, a line information holding unit 21, and an internal information holding unit 22.

【0011】入力データ解釈手段12は、入力された入
力印字データ15を先頭から順次読み込んで印字要求内
容を解釈し、対応する描画命令を出力データ作成手段1
3に発行する。印字要求内容には「印字位置を移動し
ろ」「文字を書け」「線を描け」などがある。入力印字
データが文字データの場合は、出力データ作成手段13
に文字の描画命令を発行する。入力印字データが制御デ
ータの場合は、内部情報保持手段22に格納されている
内部情報の必要な項目を更新する。入力印字データが線
描画命令の場合は、対象となる線の幅、種類、開始点、
方向、長さを調べ、前記線描画命令の線情報として線情
報保持手段21に格納する。この実施例1では、線情報
を線描画命令の発生順に格納している。また、入力デー
タ解釈手段は、1頁分の印字要求内容の解釈を終了する
と、線情報保持手段21に格納されている線情報群の中
から同じ線種の線情報を選択してそれぞれグループ化
し、当該各グループと対応する線描画命令を出力データ
作成手段13に出力する。
The input data interpreting means 12 reads the input print data 15 sequentially from the beginning, interprets the contents of the print request, and outputs a corresponding drawing command to the output data creating means 1.
Issue to 3. The print request contents include "move the print position", "draw characters", "draw lines", and the like. If the input print data is character data, the output data creation means 13
Issue a character drawing instruction to If the input print data is control data, the necessary items of the internal information stored in the internal information holding means 22 are updated. If the input print data is a line drawing command, the width, type, start point,
The direction and length are checked and stored in the line information holding means 21 as the line information of the line drawing command. In the first embodiment, the line information is stored in the order in which the line drawing commands are generated. When the input data interpreting means finishes interpreting the print request content for one page, the input data interpreting means selects line information of the same line type from the line information group stored in the line information holding means 21 and groups them. Then, a line drawing command corresponding to each group is output to the output data creating means 13.

【0012】出力データ作成手段13は、前記入力デー
タ解釈手段12により解釈された線描画命令などを用い
て、入力印字データ15をDTP対応の高級印字制御言
語に変換し、出力印字データ16を作成する。
The output data creating means 13 converts the input print data 15 into a high-level print control language compatible with DTP using the line drawing command interpreted by the input data interpreting means 12 and creates output print data 16. I do.

【0013】線情報保持手段21は、線描画命令に対応
する線情報が格納される。線情報保持手段21の構成例
を図2に示す。図2は図9の文書例を構成する線情報を
示している。図2において、線幅の列には各線の幅が入
る。ここでは、太と細の2種がある。線種の列には各線
の種類として、実線、破線の別が入る。開始点には描画
開始位置のX、Y座標が入る。方向には上(U)、下
(D)、左(L)、右(R)の別が入る。長さには各線
の長さが入る。各線情報の項目は、線の描画命令と同数
の29本分格納されている。なお、入力印字データ中に
存在する線描画命令が相対座標で指定しているような場
合は、線情報保持手段21へ書き込むときに、絶対座標
に換算してから行う。
The line information holding means 21 stores line information corresponding to a line drawing command. FIG. 2 shows a configuration example of the line information holding unit 21. FIG. 2 shows line information constituting the document example of FIG. In FIG. 2, the line width column contains the width of each line. Here, there are two types, thick and thin. In the line type column, the type of each line is a solid line or a broken line. The X and Y coordinates of the drawing start position enter the start point. The direction includes upper (U), lower (D), left (L), and right (R). The length is the length of each line. The line information items are stored for the same number of 29 lines as the line drawing command. When a line drawing command existing in the input print data is specified by relative coordinates, the data is converted into absolute coordinates when writing to the line information holding unit 21.

【0014】内部情報保持手段22は、入力データ解釈
手段12が入力印字データを解釈する際の印字位置や文
字属性、レイアウト属性などの状態情報を格納してい
る。
The internal information holding means 22 stores state information such as a print position, character attributes, and layout attributes when the input data interpretation means 12 interprets the input print data.

【0015】次に、入力印字データが入力された時の入
力データ解釈手段12の処理手順を図3のフローチャー
トにより説明する。
Next, the processing procedure of the input data interpreting means 12 when input print data is input will be described with reference to the flowchart of FIG.

【0016】まず、入力データ解釈手段12は、実行開
始時に初期化を行う(ステップ101)。初期化の内容
は、線情報保持手段21内のデータのクリアと、内部情
報保持手段メモリ22の初期値への変更と、出力データ
作成手段13へのジョブ開始要求の発行である。初期化
の終了後、解釈処理を実行する。解釈処理の初めは入力
データの確認である(ステップ102)。ここで、入力
データの存在が確認されると、そのデータの先頭から1
バイトを入手し(ステップ103)、その1バイトがど
のような意味のデータであるかを調べ、以後、それぞれ
について処理を行う。
First, the input data interpretation means 12 performs initialization at the start of execution (step 101). The contents of the initialization include clearing the data in the line information holding unit 21, changing the internal information holding unit memory 22 to the initial value, and issuing a job start request to the output data creating unit 13. After the completion of the initialization, an interpretation process is performed. The first step in the interpretation process is to confirm the input data (step 102). Here, when the existence of the input data is confirmed, 1 is counted from the head of the data.
The bytes are obtained (step 103), the meaning of the one byte is checked, and the processing is performed for each byte.

【0017】まず、読み込んだ入力データが改頁命令か
どうかを調べ(ステップ104)、改頁命令でないとき
は、入力データが線描画データかどうかを調べる(ステ
ップ105)。入力データが線描画データであるとき
は、対象となる線の幅、種類、開始点、方向、長さを入
手し(ステップ106)、線情報保持手段21に格納す
る(ステップ107)。また、ステップ105で入力デ
ータが線描画データでないときは、そのデータが制御デ
ータかどうかを調べる(ステップ108)。入力データ
が制御データの場合は、内部情報保持手段22に格納さ
れている内部情報の項目を更新する(ステップ10
9)。入力データが文字データの場合は、出力データ作
成手段13に文字の描画命令を発行する(ステップ11
0)。
First, it is checked whether the read input data is a page break command (step 104). If not, it is checked whether the input data is line drawing data (step 105). If the input data is line drawing data, the width, type, start point, direction, and length of the target line are obtained (step 106) and stored in the line information holding unit 21 (step 107). If the input data is not line drawing data in step 105, it is checked whether the data is control data (step 108). If the input data is control data, the internal information item stored in the internal information holding means 22 is updated (step 10).
9). If the input data is character data, a character drawing command is issued to the output data creating means 13 (step 11).
0).

【0018】さて、入力データの解釈処理が1ページ分
終了し、ステップ104で改頁命令を受け取ると、入力
データ解釈手段12は、線情報保持手段22に格納され
ている全ての項目を調べ、同じ線種の線情報を選択して
それぞれグループ化し、当該各グループと対応する線描
画命令を出力データ作成手段13に発行する(ステップ
111〜ステップ113)。
When the input data interpretation processing is completed for one page and a page break command is received in step 104, the input data interpretation means 12 checks all the items stored in the line information holding means 22. Line information of the same line type is selected and grouped, and a line drawing instruction corresponding to each group is issued to the output data creating means 13 (steps 111 to 113).

【0019】また、ステップ102で入力データが存在
しない時は、入力データ解釈手段12は、線情報保持手
段22に格納されている全ての項目を調べ、同じ線種の
線情報を選択してそれぞれグループ化し、当該各グルー
プと対応する線描画命令を出力データ作成手段13に発
行する(ステップ114〜ステップ116)。続いて、
出力データ作成手段13に対してジョブ終了要求を発行
し、入力データ解釈手段12における全ての作業を終了
する(ステップ117)。
If there is no input data in step 102, the input data interpreting means 12 checks all items stored in the line information holding means 22, selects line information of the same line type, and The groups are grouped, and a line drawing instruction corresponding to each group is issued to the output data creating unit 13 (steps 114 to 116). continue,
A job end request is issued to the output data creating means 13 and all operations in the input data interpreting means 12 are ended (step 117).

【0020】次に、入力データ解釈手段12から印字要
求内容を受信した時の出力データ作成手段13の処理手
順を図4のフローチャートにより説明する。
Next, the processing procedure of the output data creating means 13 when the print request content is received from the input data interpreting means 12 will be described with reference to the flowchart of FIG.

【0021】まず、入力データ解釈手段12から印字要
求内容を受信し(ステップ201)、印字要求内容がジ
ョブ開始かどうかをしらべる(ステップ202)。印字
要求がジョブ開始であるときは、ジョブ開始コマンドを
出力する。この実施例におけるジョブ開始コマンドは
「sttjob」である。このコマンドは引数tを要
し、tにより用紙の選択を行う(ステップ203)。
First, a print request is received from the input data interpreting means 12 (step 201), and it is checked whether the print request is a job start (step 202). If the print request is to start a job, a job start command is output. The job start command in this embodiment is “sttjob”. This command requires an argument t, and selects a sheet based on t (step 203).

【0022】ステップ202で印字要求がジョブ開始で
ないときは、印字要求が文字の描画かどうかを調べる
(ステップ204)。印字要求が文字の描画であるとき
は、文字の描画コマンドを出力する。この実施例におけ
る文字の描画コマンドは「show」であり、引数は
( )内に文字列として格納される(ステップ20
5)。ステップ204で印字要求が文字の描画でないと
きは、印字要求が位置の移動かどうかを調べる(ステッ
プ206)。印字要求が位置の移動であるときは、現在
位置の変更コマンドを出力する。この実施例における現
在位置の変更コマンドは「setcp」であり、原点か
らのX方向Y方向の位置情報を添える(ステップ20
7)。
If the print request is not a job start in step 202, it is checked whether the print request is for drawing characters (step 204). If the print request is for drawing a character, a character drawing command is output. In this embodiment, the character drawing command is "show", and the argument is stored as a character string in parentheses (step 20).
5). If the print request is not for drawing a character at step 204, it is checked whether the print request is a movement of the position (step 206). If the print request is to move the position, a command to change the current position is output. The command to change the current position in this embodiment is "setcp", and adds position information in the X and Y directions from the origin (step 20).
7).

【0023】ステップ206で印字要求が位置の移動で
ないときは、印字要求が線の描画かどうかを調べる(ス
テップ208)。印字要求が線の描画であるときは、線
の描画コマンドを出力する(ステップ209)。この実
施例における線の描画コマンドは「moveto」と
「lineto」と「stroke」の組み合わせであ
り、引数は線の開始点と終了点である。
If it is determined in step 206 that the print request is not a movement of the position, it is checked whether the print request is for drawing a line (step 208). If the print request is for drawing a line, a line drawing command is output (step 209). The line drawing command in this embodiment is a combination of "moveto", "lineto", and "stroke", and the arguments are the start point and end point of the line.

【0024】ステップ208で印字要求が線の描画でな
いときは、ジョブ終了かどうかを調べる(ステップ21
0)。印字要求がジョブ終了であるときは、ジョブ終了
コマンドを出力する。この実施例におけるジョブ終了コ
マンドは「endjob」であり、引数は無い(ステッ
プ211)。ジョブ終了コマンドの出力後に、出力デー
タ作成手段13は出力印字データの作成を処理を終了す
る。
If it is determined in step 208 that the print request is not for drawing a line, it is checked whether the job has been completed (step 21).
0). If the print request is for a job end, a job end command is output. The job end command in this embodiment is "endjob" and has no argument (step 211). After the output of the job end command, the output data creating means 13 ends the process of creating the output print data.

【0025】なお、実際にはここで説明した5つの印字
要求以外にも数多くの印字要求が存在する。しかし、そ
れらについても同様に出力処理を行うことで対応するこ
とができる。また、この実施例以外のDTP向け高級印
字制御言語を使用する印字情報変換装置を作成する場合
は、出力データ作成手段13の項目内のデータを変更す
ることで簡単に実施することができる。さらに、ホスト
側のアプリケーションに応じて入力データ解釈手段12
の機能を書き換えることにより、様々なアプリケーショ
ンに柔軟に対応することができる。
Actually, there are many print requests other than the five print requests described here. However, these can be dealt with by performing output processing in the same manner. In addition, when a print information conversion device using a high-level print control language for DTP other than this embodiment is created, it can be easily implemented by changing the data in the item of the output data creation means 13. Further, the input data interpreting means 12 according to the host-side application.
By rewriting the functions described above, it is possible to flexibly cope with various applications.

【0026】上述した印字情報変換装置によりデータ変
換を行った場合の具体例を図5に示す。図5は線描画命
令を線種ごとにまとめた出力印字データの内容を表した
ものである。この例では、単純にデータ変換したときの
出力印字データ(図9)の1506バイトと同等の印字
結果が得られる出力印字データを1242バイトに減ら
すことができた。
FIG. 5 shows a specific example in which data conversion is performed by the above-described print information conversion apparatus. FIG. 5 shows the contents of output print data in which line drawing commands are grouped for each line type. In this example, the output print data that can provide a print result equivalent to 1506 bytes of the output print data (FIG. 9) when the data is simply converted can be reduced to 1242 bytes.

【0027】実施例2 上記実施例の線情報保持手段21では、図2に示すよう
に全ての線情報を1つの表の中に命令順に格納している
が、線情報保持手段21に格納する際に、あらかじめ線
種ごとにグループ化して、それぞれ別の表に格納するこ
ともできる。このように、線種ごとにグループ化した表
を持つことにより、ページ終了前に一括して行う線描画
命令の発行時に、表中から同じ線情報をもつ線描画命令
を抽出する作業が不要となるので、データの変換時間を
短縮することができる。
Embodiment 2 In the line information holding means 21 of the above embodiment, as shown in FIG. 2, all the line information is stored in one table in the order of instructions, but is stored in the line information holding means 21. At this time, it is also possible to group in advance for each line type and store them in separate tables. In this way, by having a table grouped for each line type, it is not necessary to extract a line drawing instruction having the same line information from the table when issuing a line drawing instruction to be performed collectively before the end of a page. Therefore, the data conversion time can be reduced.

【0028】実施例3 上記実施例1では、線描画命令に対する線情報を全てそ
のまま格納するようにしているが、次に格納しようとす
る線情報とすでに格納されている線情報が特定の条件を
満す場合には、これらを1つにまとめて記述することも
できる。この実施例3の入力データ解釈手段12では、
印字要求内容が線描画命令であるときは、既に線情報保
持手段21に格納されている線情報を順に検査し、次に
格納しようとしている線の線情報と同じ特定の属性を持
ち、かつ延長線上に連続性を有する線情報が存在するか
どうかを判断する。そして、この条件を満す線情報が存
在するときは、当該線情報を書き換えて、2つの線の線
情報を一つの線の線情報としてまとめる処理を行う。
Third Embodiment In the first embodiment, all the line information corresponding to the line drawing command is stored as it is. However, the line information to be stored next and the line information already stored satisfy a specific condition. If they are satisfied, they can be described collectively. In the input data interpretation means 12 of the third embodiment,
When the content of the print request is a line drawing command, the line information already stored in the line information holding means 21 is sequentially inspected, and has the same specific attribute as the line information of the next line to be stored, and is extended. It is determined whether or not line information having continuity exists on the line. Then, when there is line information that satisfies this condition, the line information is rewritten, and a process of combining the line information of two lines as the line information of one line is performed.

【0029】図6は、入力印字データが入力された時の
入力データ解釈手段12の処理手順を示すフローチャー
トである。基本的な処理の流れは図3と同じであるが、
線情報保持手段21への線情報の格納方法が異なる。
FIG. 6 is a flowchart showing a processing procedure of the input data interpreting means 12 when input print data is input. The basic processing flow is the same as in FIG.
The method of storing line information in the line information holding means 21 is different.

【0030】図6のステップ106において、対象とな
る線の幅、種類、開始点、方向、長さを入手したとき
は、線情報保持手段21の線情報を順に検査して、次に
格納しようとする線情報と同じ特定の属性を持ち、かつ
延長線上に連続性を有する線情報があるかどうかを調べ
る(ステップ120)。該当する線情報が見つかったと
きは、線情報保持手段21にある対象の線情報を次に格
納しようとする線情報に基づいて書き換える(ステップ
121)。また、ステップ120で該当するような線情
報が見つからないときは、対象となる線の幅、種類、開
始点、方向、長さを線情報保持手段21に格納する(ス
テップ122)。その他の処理(ステップ101〜ステ
ップ105、ステップ108〜ステップ117)は図3
と同じであるため、ここでは説明を省略する。
In step 106 of FIG. 6, when the width, type, start point, direction, and length of the target line are obtained, the line information in the line information holding means 21 is inspected in order and stored next. It is checked whether or not there is line information having the same specific attribute as the line information and having continuity on the extended line (step 120). When the corresponding line information is found, the target line information in the line information holding means 21 is rewritten based on the line information to be stored next (step 121). If such line information is not found in step 120, the width, type, start point, direction, and length of the target line are stored in the line information holding means 21 (step 122). Other processing (steps 101 to 105, steps 108 to 117) is shown in FIG.
Therefore, the description is omitted here.

【0031】ステップ120の判定を行う場合は、はじ
めに、次に格納しようとする線情報の線幅、線種、方向
と同じ属性を持つ線情報を探し出す。これら特定の属性
が一致するものが見つかったときは、次に、その線情報
が次に格納しようとする線情報の延長線上に連続性を有
するものであるかどうかを判定する。これは2つの線情
報の開始点の座標と方向を調べ、2つの線を接続したと
きに1つの線を形成するかどうかにより判断する。した
がって、2つの線の方向が同じであっても途中で切れて
いるものは排除される。探し出した線情報がこれらの条
件を満したときは、その線情報を次に格納しようとする
線情報に基づいて書き換える。
When making the determination in step 120, first, line information having the same attributes as the line width, line type, and direction of the line information to be stored next is searched for. When a match with these specific attributes is found, it is next determined whether or not the line information has continuity on an extension of the line information to be stored next. This is done by examining the coordinates and direction of the start points of the two pieces of line information and determining whether or not one line is formed when the two lines are connected. Therefore, even if the directions of the two lines are the same, those that are cut in the middle are excluded. When the found line information satisfies these conditions, the line information is rewritten based on the line information to be stored next.

【0032】ここで、線情報を書き換える場合の具体例
として、図10における2番の線について考えてみる。
2番の線は座標(80、155)から、右に25の長さ
で描かれる。入力データ解釈手段12は、はじめに、線
情報保持手段21に格納されている1番の線情報と次に
格納しようとする2番の線とを比較する。すると、2番
の線は1番の線と同じ線幅と線種を持つが、方向が異な
る。このため、2番の線の線情報をそのまま線情報保持
手段21に格納する。続く3番の線は線幅が1、2番と
異なるため、線情報を線情報保持手段21に格納する。
4番の線は2番の線と同じ線幅、線種、方向を持ち、延
長線上での連続性を有するため、線情報を線情報保持手
段21に格納することなく、2番の線情報を書き換え
る。書き換えは「(80、155)からRに25」を
「(80、155)からRに50」とする。同様に、6
番の線も2番の線と同じ属性を持ち、かつ延長線上での
連続性を有するため、2番の線情報を書き換える。この
方式で線情報を格納したときの線情報保持手段21の構
成例を図7に示す。元の入力印字データでは線情報は2
9本分格納されていたが、一つの線としてまとめられる
線情報を書き換えるようにした場合、線情報は14に減
少している。図7の線情報をもとにデータ変換を行った
場合の具体例を図8に示す。この例では、線情報保持手
段21への格納時に、特定の条件を満す線情報を一つに
まとめるようにしているので、出力印字データ大きさは
678バイトとなり、単純に変換した場合と比較してデ
ータ量を55%減らすことができた。
Here, as a specific example of rewriting the line information, consider the second line in FIG.
The second line is drawn from the coordinates (80, 155) to the right with a length of 25. First, the input data interpretation unit 12 compares the first line information stored in the line information holding unit 21 with the second line to be stored next. Then, the second line has the same line width and line type as the first line, but in a different direction. Therefore, the line information of the second line is stored in the line information holding unit 21 as it is. Since the subsequent line No. 3 has a line width different from No. 1 and No. 2, the line information is stored in the line information holding unit 21.
The line No. 4 has the same line width, line type and direction as the line No. 2 and has continuity on the extension line. Therefore, the line information of the line No. 4 is stored without storing the line information in the line information holding unit 21. Is rewritten. Rewriting is changed from “(80, 155) to R 25” to “(80, 155) to R 50”. Similarly, 6
The line No. 2 has the same attribute as the line No. 2 and has continuity on the extension line, so the line information No. 2 is rewritten. FIG. 7 shows a configuration example of the line information holding means 21 when the line information is stored in this manner. Line information is 2 in the original input print data
Although nine lines are stored, the line information is reduced to 14 when the line information to be collected as one line is rewritten. FIG. 8 shows a specific example when data conversion is performed based on the line information in FIG. In this example, when stored in the line information holding unit 21, line information satisfying a specific condition is combined into one, so that the output print data size is 678 bytes, which is compared with the case of simple conversion. As a result, the data amount was reduced by 55%.

【0033】[0033]

【発明の効果】以上説明したように、この発明に係わる
印字情報変換方法およびその装置においては、1頁分の
線描画命令を一旦保持し、1頁の解釈終了時に、同じ属
性を持つ線描画命令ごとにまとめて出力データに変換す
るようにしたため、線種の変更命令の発行回数が少なく
なり、出力データの大きさを減少させることができるの
で、メモリの有効利用が可能となる。
As described above, in the print information conversion method and apparatus according to the present invention, a line drawing command for one page is temporarily held, and when the interpretation of one page is completed, a line drawing command having the same attribute is obtained. Since instructions are collectively converted into output data, the number of line type change instructions issued is reduced, and the size of output data can be reduced, so that the memory can be used effectively.

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

【図1】印刷情報変換装置の機能的な構成を示すブロッ
ク図。
FIG. 1 is a block diagram illustrating a functional configuration of a print information conversion apparatus.

【図2】線情報保持手段の構成例を示す図。FIG. 2 is a diagram showing a configuration example of a line information holding unit.

【図3】入力データ解釈手段の処理手順を示すフローチ
ャート。
FIG. 3 is a flowchart showing a processing procedure of an input data interpretation unit.

【図4】出力データ作成手段の処理手順を示すフローチ
ャート。
FIG. 4 is a flowchart showing a processing procedure of an output data creation unit.

【図5】線描画命令を線種ごとにまとめた出力印字デー
タを示す図。
FIG. 5 is a diagram showing output print data in which line drawing commands are grouped for each line type.

【図6】実施例3における入力データ解釈手段の処理手
順を示すフローチャート。
FIG. 6 is a flowchart illustrating a processing procedure of an input data interpreting unit according to the third embodiment.

【図7】実施例3の方式で線情報を格納したときの線情
報保持手段の構成例を示す図。
FIG. 7 is a diagram illustrating a configuration example of a line information holding unit when line information is stored by the method according to the third embodiment.

【図8】図7の線情報をもとにデータ変換を行った場合
の具体例を示す図。
FIG. 8 is a diagram showing a specific example when data conversion is performed based on the line information of FIG. 7;

【図9】印字出力結果の一例を示す図。FIG. 9 is a diagram illustrating an example of a print output result.

【図10】文書の描画順序を示す図。FIG. 10 is a diagram showing a drawing order of documents.

【図11】図9の描画順序で変換した場合の出力印字デ
ータを示す図。
FIG. 11 is a diagram showing output print data when converted in the drawing order of FIG. 9;

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

11…印字情報変換装置、12…入力データ解釈手段、
13…出力データ作成手段、15…入力印字データ、1
6…出力印字データ、21…線情報保持手段、22…内
部情報保持手段
11 print information converter, 12 input data interpreting means,
13: output data creation means, 15: input print data, 1
6 ... output print data, 21 ... line information holding means, 22 ... internal information holding means

フロントページの続き (56)参考文献 特開 平5−221042(JP,A) 特開 平6−297804(JP,A) 特開 平6−255198(JP,A) 特開 平4−127197(JP,A) 特開 平2−39972(JP,A) 特開 昭63−245715(JP,A) (58)調査した分野(Int.Cl.7,DB名) B41J 5/30 B41J 21/00 G06F 3/12 Continuation of the front page (56) References JP-A-5-221042 (JP, A) JP-A-6-297804 (JP, A) JP-A-6-255198 (JP, A) JP-A-4-127197 (JP) , A) JP-A-2-39972 (JP, A) JP-A-63-245715 (JP, A) (58) Fields investigated (Int. Cl. 7 , DB name) B41J 5/30 B41J 21/00 G06F 3/12

Claims (4)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 第1の命令体系で記述された印字データ
を第2の命令体系で記述された印字データに変換する印
字情報変換方法において、 第1の命令体系で記述された印字データ中に存在する線
描画命令を保持し、1頁分の印字データの解釈を終了し
た時点で前記保持している線描画命令を取り出し、同じ
属性を持つ線描画命令ごとにまとめて第2の命令体系で
記述された出力データに変換することを特徴とする印字
情報変換方法。
1. A print information conversion method for converting print data described in a first command system into print data described in a second command system, wherein the print data described in the first command system includes The existing line drawing commands are held, and when the interpretation of the print data for one page is completed, the held line drawing commands are taken out and grouped for each line drawing command having the same attribute by the second command system. A print information conversion method, wherein the print information is converted into described output data.
【請求項2】 第1の命令体系で記述された印字データ
を第2の命令体系で記述された印字データに変換する印
字情報変換装置において、 第1の命令体系で記述された印字データを読み込み、そ
の印字要求内容を解釈する入力データ解釈手段と、 線描画命令に対応する線情報を保持する線情報保持手段
と、 前記入力データ解釈手段で解釈された印字要求内容が線
描画命令であるときは、当該線描画命令に対応する線情
報を線情報保持手段に格納し、1頁分の印字要求内容の
解釈を終了した時点で、前記線情報保持手段に格納され
ている線情報群の中から同じ属性を持つ線情報をグルー
プ化し、当該各グループと対応する線描画命令を出力す
る線情報制御手段と、 前記線情報制御手段から出力された線描画命令を用い
て、第2の命令体系で記述された出力データを作成する
出力データ作成手段と、 を具えたことを特徴とする印字情報変換装置。
2. A print information conversion apparatus for converting print data described in a first command system into print data described in a second command system, comprising reading the print data described in the first command system. Input data interpretation means for interpreting the print request content, line information holding means for holding line information corresponding to the line drawing command, and when the print request content interpreted by the input data interpretation means is a line drawing command. Stores the line information corresponding to the line drawing command in the line information holding unit, and when the interpretation of the content of the print request for one page is completed, the line information group stored in the line information holding unit A line information control means for grouping line information having the same attribute from each other, and outputting a line drawing instruction corresponding to each group; and a second command system using the line drawing instruction output from the line information control means. Written in Print information conversion apparatus characterized by output data creating means, equipped with creating output data.
【請求項3】 前記線情報制御手段は、 前記入力データ解釈手段で解釈された印字要求内容が線
描画命令であるときは、当該線描画命令に対応する線情
報を特定の属性ごとにグループ化して線情報保持手段に
格納し、1頁分の印字要求内容の解釈を終了した時点
で、前記線情報保持手段に保持されている線情報の各グ
ループを抽出し、当該各グループと対応する線描画命令
を出力することを特徴とする請求項2記載の印字情報変
換装置。
3. When the print request content interpreted by the input data interpreting means is a line drawing command, the line information control means groups line information corresponding to the line drawing command into specific attributes. When the interpretation of the print request content for one page is completed, each group of the line information held in the line information holding unit is extracted, and the line corresponding to each group is extracted. 3. The print information converter according to claim 2, wherein the print information converter outputs a drawing command.
【請求項4】 前記線情報制御手段は、 前記入力データ解釈手段で解釈された印字要求内容が線
描画命令であるときは、既に線情報保持手段に格納され
ている線情報を検査し、次に格納しようとしている線情
報と同じ特定の属性を持ち、かつ延長線上に連続性を有
する線情報が存在するときは、当該線情報を次に格納し
ようとしている線情報に基づいて書き換えることを特徴
とする請求項2ないし請求項3記載の印字情報変換装
置。
4. When the print request content interpreted by the input data interpreting means is a line drawing command, the line information control means examines the line information already stored in the line information holding means. When there is line information having the same specific attribute as the line information to be stored in the line and having continuity on the extension line, the line information is rewritten based on the line information to be stored next. 4. The print information conversion device according to claim 2, wherein:
JP05243148A 1993-09-29 1993-09-29 Print information conversion method and apparatus Expired - Fee Related JP3119051B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP05243148A JP3119051B2 (en) 1993-09-29 1993-09-29 Print information conversion method and apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP05243148A JP3119051B2 (en) 1993-09-29 1993-09-29 Print information conversion method and apparatus

Publications (2)

Publication Number Publication Date
JPH0796641A JPH0796641A (en) 1995-04-11
JP3119051B2 true JP3119051B2 (en) 2000-12-18

Family

ID=17099511

Family Applications (1)

Application Number Title Priority Date Filing Date
JP05243148A Expired - Fee Related JP3119051B2 (en) 1993-09-29 1993-09-29 Print information conversion method and apparatus

Country Status (1)

Country Link
JP (1) JP3119051B2 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007193655A (en) * 2006-01-20 2007-08-02 Sharp Corp Electronic document data processor, electronic document data processing method and program for functioning computer as electronic document data processor
JP6158735B2 (en) 2014-03-28 2017-07-05 京セラドキュメントソリューションズ株式会社 Image forming apparatus, drawing processing method, and program

Also Published As

Publication number Publication date
JPH0796641A (en) 1995-04-11

Similar Documents

Publication Publication Date Title
JP2993673B2 (en) Electronic file device
JP3209102B2 (en) Print system, printer driver and printer
JP3119051B2 (en) Print information conversion method and apparatus
JP4429212B2 (en) Image description data processing method, apparatus and program
JP3413829B2 (en) Drawing processing apparatus and method
JPH01188354A (en) Font cash control
JPH02208716A (en) Character and pattern output device
JP2995942B2 (en) Document printing system and method
JP3094712B2 (en) Page description language processor
JPH0997141A (en) Terminal emulator printing method for windows
JP3057976B2 (en) Printing information converter
JPH04251291A (en) Character string plotting system in raster image processing system
JP4022014B2 (en) Image data management method
JP2993880B2 (en) Electronic file device
JP2993881B2 (en) Keyword generation method
JP2937509B2 (en) Bitmap expansion method
JP3423113B2 (en) Cache control device and character output device
JPH07111727B2 (en) Document reader
JPH02141797A (en) Character pattern generating device
JP3369419B2 (en) Character output expansion method and apparatus
JP2901002B2 (en) Stroke character output method
JP2838972B2 (en) Automatic indexing device
JPH0477333B2 (en)
JPS63204295A (en) Data display device
JPH01269575A (en) Document output device

Legal Events

Date Code Title Description
LAPS Cancellation because of no payment of annual fees