JPH10138598A - Printer - Google Patents

Printer

Info

Publication number
JPH10138598A
JPH10138598A JP8308641A JP30864196A JPH10138598A JP H10138598 A JPH10138598 A JP H10138598A JP 8308641 A JP8308641 A JP 8308641A JP 30864196 A JP30864196 A JP 30864196A JP H10138598 A JPH10138598 A JP H10138598A
Authority
JP
Japan
Prior art keywords
macro
image
cache memory
form image
stored
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
JP8308641A
Other languages
Japanese (ja)
Inventor
Ryosuke Takeuchi
良輔 竹内
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 JP8308641A priority Critical patent/JPH10138598A/en
Publication of JPH10138598A publication Critical patent/JPH10138598A/en
Pending legal-status Critical Current

Links

Landscapes

  • Record Information Processing For Printing (AREA)

Abstract

PROBLEM TO BE SOLVED: To realize form printing by small amount of data and to improve a processing speed in the form printing, by a method wherein macro instructions which are made by a set of plurality of control codes designating a form image are stored in a memory. SOLUTION: A macro storing section 31 stores a plurality of macro instructions which are made corresponding to a set of a plurality of control codes designating a form image. e.g. such as ruled lines of an address book. A macro cache memory 32 stores, for example, a dot type form image obtained beforehand by developing a plurality of macro instructions into the image. When a control code transmitted via an interface section 1 has a request of a macro instruction indicative of developing, a macro developing section 33 selects the form image obtained by developing the requested macro instruction for the developing by the macro cache memory 32 into the image and transmits it to an image memory 4.

Description

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

【0001】[0001]

【発明の属する技術分野】この発明は、ホスト装置から
送られてきた命令コマンドにしたがって画像を記録用紙
に印刷する印刷装置、特にフォーム印刷をするときの処
理速度の向上に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a printing apparatus for printing an image on a recording sheet in accordance with an instruction command sent from a host apparatus, and more particularly to an improvement in processing speed in form printing.

【0002】[0002]

【従来の技術】ホスト装置から送られてきた命令にした
がってあらかじめ定めた定形フォームにフォントデータ
を合成してフォーム印刷する印刷装置が、例えば特開平
6-183093号公報等に示されている。この印刷装置では、
あらかじめフォームデータ記憶部に画像圧縮して記憶さ
れた定形フォームをイメージデータに展開してフォーム
キャッシュメモリに格納している。そして、ホスト装置
から定形フォームを指定したフォーム印刷要求があった
ときにあらかじめキャッシュメモリ上に展開して格納し
た該当する定形フォームのイメージデータをイメージメ
モリに転送し、定形フォームをイメージデータに展開す
る時間を省き、処理速度の向上を図っている。
2. Description of the Related Art A printing apparatus for synthesizing font data with a predetermined fixed form according to a command sent from a host apparatus and printing the form is disclosed in, for example, Japanese Patent Laid-Open Publication No.
No. 6,183,093. In this printing device,
The fixed form stored in the form data storage unit after image compression is expanded into image data and stored in the form cache memory. Then, when a form print request specifying a fixed form is received from the host device, the image data of the corresponding fixed form that has been previously expanded and stored in the cache memory is transferred to the image memory, and the fixed form is expanded into image data. This saves time and improves processing speed.

【0003】また、上記印刷装置ではフォーム印刷をす
るために定形フォームを画像圧縮してフォームデータ記
憶部に格納しているが、この定形フォームは画像圧縮し
ていてもデータ量が膨大なためフォームデータ記憶部を
占有してしまいメモリを有効に使用することができない
ため、結果的に処理速度が遅くなるおそれがあった。そ
こで、定形フォームを使用する代わりにフォーム画像を
指示する複数の制御コードのセットごとに対応してマク
ロ化した複数のマクロ命令をメモリに格納することで少
ないデータ量でフォーム印刷を実現する印刷装置があ
る。
In the above-described printing apparatus, a fixed form is image-compressed and stored in a form data storage unit for form printing. Since the data storage unit is occupied and the memory cannot be used effectively, the processing speed may be reduced as a result. Therefore, instead of using a fixed form, a printing device that realizes form printing with a small amount of data by storing in a memory a plurality of macro instructions that have been converted into macros corresponding to sets of a plurality of control codes indicating a form image. There is.

【0004】このマクロを用いた印刷装置では、マクロ
格納部にあらかじめ複数の制御コードのセットごとに対
応してマクロ化した複数のマクロ命令を格納し、ホスト
装置からの制御コードにマクロ命令の展開要求があると
きに、マクロ格納部から展開要求されたマクロ命令に対
応した複数の制御コードを取り出し、その制御コードに
従ってイメージ展開したフォーム画像をイメージメモリ
に送出している。
In a printing apparatus using this macro, a plurality of macro instructions corresponding to a plurality of sets of control codes are previously stored in a macro storage section, and the macro instructions are expanded into control codes from a host device. When there is a request, a plurality of control codes corresponding to the macro instruction requested to be developed are extracted from the macro storage unit, and the form image developed according to the control code is sent to the image memory.

【0005】[0005]

【発明が解決しようとする課題】上記マクロを用いた印
刷装置では、ホスト装置から送られてきた制御コードが
マクロ命令の展開を要求する度にマクロ格納部から展開
要求されたマクロ命令に対応した複数の制御コードを取
り出し、その制御コードに従ってフォーム画像にイメー
ジ展開する必要があるため、マクロ命令に対応した複数
の制御コードのデータ量が多いときは、フォーム画像に
イメージ展開する時間がかかり、フォーム印刷時の処理
速度が極端に低下するおそれがあった。
In a printing apparatus using the above-mentioned macro, every time a control code sent from a host device requests expansion of a macro instruction, the control code corresponds to a macro instruction requested to be expanded from a macro storage unit. Since it is necessary to extract a plurality of control codes and develop the image into a form image according to the control code, when the data amount of the plurality of control codes corresponding to the macro instruction is large, it takes time to develop the image into the form image, The processing speed at the time of printing may be extremely reduced.

【0006】この発明はかかる短所を解消するためにな
されたものであり、フォーム画像を指示する複数の制御
コードのセットごとにマクロ化したマクロ命令をメモリ
に格納することで少ないデータ量でフォーム印刷を実現
し、かつフォーム印刷時の処理速度の向上を図る印刷装
置を得ることを目的とするものである。
SUMMARY OF THE INVENTION The present invention has been made to solve such a disadvantage, and forms printing with a small data amount by storing in a memory a macro instruction which is formed into a macro for each set of a plurality of control codes indicating a form image. It is an object of the present invention to obtain a printing apparatus that realizes the above-described processing and improves the processing speed during form printing.

【0007】[0007]

【課題を解決するための手段】この発明に係る印刷装置
は、ホスト装置から送られてきた制御コードに従ってフ
ォーム画像とフォント画像を合成して印刷するフォーム
印刷機能を備えた印刷装置において、マクロ格納部とマ
クロキャッシュメモリ及びマクロ展開部とを有し、マク
ロ格納部はあらかじめフォーム画像を指示する複数の制
御コードのセットごとに対応してマクロ化した複数のマ
クロ命令を格納し、マクロキャッシュメモリはあらかじ
め複数のマクロ命令をイメージ展開したフォーム画像を
記憶し、マクロ展開部はホスト装置から送られた制御コ
ードにマクロ命令の展開要求があるときに、マクロキャ
ッシュメモリから展開要求されたマクロ命令をイメージ
展開したフォーム画像を選択して送出することを特徴と
する。
According to the present invention, there is provided a printing apparatus having a form printing function for synthesizing and printing a form image and a font image in accordance with a control code sent from a host apparatus, and having a macro storage function. Unit, a macro cache memory, and a macro expansion unit, and the macro storage unit stores a plurality of macro instructions that have been converted into macros corresponding to sets of a plurality of control codes indicating a form image in advance. A form image in which a plurality of macro instructions have been developed is stored in advance, and the macro development unit images the macro instruction requested to be developed from the macro cache memory when the control code sent from the host device requests the development of the macro instruction. The developed form image is selected and transmitted.

【0008】また、上記マクロ展開部はホスト装置から
送られた制御コードにマクロ命令の展開要求があるとき
に、マクロキャッシュメモリに展開要求されたマクロ命
令をイメージ展開したフォーム画像が記憶されているか
否かを確認し、記憶されていないときはマクロ格納部か
ら展開要求されたマクロ命令に対応した複数の制御コー
ドを取り出し、その制御コードに従ってフォーム画像を
マクロキャッシュメモリ上にイメージ展開し、マクロキ
ャッシュメモリはイメージ展開されたフォーム画像を記
憶すると良い。
In the above-described macro expansion unit, when a control instruction sent from the host device has a macro instruction expansion request, a macro cache memory stores a form image obtained by expanding the requested macro instruction into an image. It checks whether or not it is stored, and if it is not stored, retrieves a plurality of control codes corresponding to the requested macro instruction from the macro storage unit, develops the form image in the macro cache memory according to the control code, and The memory may store the expanded form image.

【0009】更に、上記マクロ展開部はホスト装置から
送られた制御コードにマクロ命令の展開要求があるとき
に、マクロキャッシュメモリに展開要求されたマクロ命
令をイメージ展開したフォーム画像が記憶されているか
否かを確認し、記憶されていないときはマクロ格納部か
ら展開要求されたマクロ命令に対応した複数の制御コー
ドを取り出し、その制御コードに従ってデータ圧縮した
フォーム画像をマクロキャッシュメモリ上にイメージ展
開し、マクロキャッシュメモリはイメージ展開されデー
タ圧縮したフォーム画像を記憶することが望ましい。
Further, when the control code sent from the host device has a request to expand the macro instruction, the macro expansion unit stores, in the macro cache memory, a form image in which the macro instruction requested to be expanded is image-expanded. Check if it is not stored, and if it is not stored, fetch a plurality of control codes corresponding to the macro instruction requested to be expanded from the macro storage unit, and expand the data compressed form image on the macro cache memory according to the control code. It is desirable that the macro cache memory stores a form image that has undergone image expansion and data compression.

【0010】また、上記マクロキャッシュメモリはフォ
ント画像をフォーム画像と共用して格納すると良い。
The macro cache memory may store the font image in common with the form image.

【0011】[0011]

【発明の実施の形態】この発明の印刷装置は、インター
フェース部とフォント生成部とマクロ生成部とイメージ
メモリとCPU及びプリンタエンジンとを有する。イン
ターフェース部はホスト装置から送られてきた制御コー
ドを受信する。フォント生成部はフォント格納部とフォ
ント展開部及びフォントキャッシュメモリとを有し、フ
ォント格納部は例えばあらかじめベクトル形式等で文字
形状を示す複数のフォントを格納する。フォント展開部
はインターフェース部を介して送られた制御コードに例
えば住所等を示すフォントデータの展開要求があるとき
に、フォントデータに従ってフォント格納部に格納した
該当するフォントを選択して例えばドット形式であるフ
ォント画像をフォントキャッシュメモリ上にイメージ展
開してイメージメモリに転送する。フォントキャッシュ
メモリはイメージ展開されたフォント画像を記憶する。
マクロ生成部はマクロ格納部とマクロ展開部及びマクロ
キャッシュメモリとを有し、マクロ格納部はあらかじめ
インターフェース部を介してホスト装置によって登録さ
れた例えば住所録の罫線等のフォーム画像を指示する複
数の制御コードのセットごとに対応してマクロ化した複
数のマクロ命令を格納する。マクロキャッシュメモリは
あらかじめ複数のマクロ命令をイメージ展開した例えば
ドット形式のフォーム画像を記憶する。マクロ展開部は
インターフェース部を介して送られた制御コードにマク
ロ命令の展開要求があるときに、マクロキャッシュメモ
リに展開要求されたマクロ命令をイメージ展開したフォ
ーム画像が記憶されているか否かを確認し、記憶されて
いるときはそのフォーム画像を選択してイメージメモリ
に転送する。イメージメモリは例えば送られた住所録等
の罫線のフォーム画像と住所等のフォント画像を合成し
て記憶する。CPUは装置全体の動作管理の他にインタ
ーフェース部を介して送られてきた制御コードに印刷要
求があるときは、その印刷要求に従ってイメージメモリ
に記憶された各種画像を選択してプリンタエンジンに送
出する。プリンタエンジンは送られた画像を記録用紙に
印刷する。このように、あらかじめ複数のマクロ命令を
イメージ展開したフォーム画像を記憶して、ホスト装置
からフォーム画像を指示するマクロ命令の展開要求があ
ったときに、展開要求されたマクロ命令をイメージ展開
したフォーム画像が記憶されているか否かを確認し、記
憶されているときはそのフォーム画像を選択して転送す
るようにしたため、展開要求されたマクロ命令をイメー
ジ展開する時間を削減することができる。
DESCRIPTION OF THE PREFERRED EMBODIMENTS A printing apparatus according to the present invention has an interface unit, a font generation unit, a macro generation unit, an image memory, a CPU, and a printer engine. The interface receives the control code sent from the host device. The font generation unit has a font storage unit, a font development unit, and a font cache memory. The font storage unit stores a plurality of fonts indicating character shapes in a vector format or the like in advance, for example. When the control code sent via the interface unit requests expansion of font data indicating, for example, an address, the font expansion unit selects the corresponding font stored in the font storage unit in accordance with the font data and, for example, in a dot format. A certain font image is developed in the font cache memory and transferred to the image memory. The font cache memory stores the expanded font image.
The macro generation unit has a macro storage unit, a macro expansion unit, and a macro cache memory. The macro storage unit has a plurality of instructions for specifying a form image such as a ruled line of an address book registered in advance by the host device via the interface unit. A plurality of macro instructions corresponding to macros corresponding to each set of control codes are stored. The macro cache memory stores, for example, a dot form image in which a plurality of macro instructions have been developed in advance. When the control code sent via the interface unit has a request to expand the macro instruction, the macro expansion unit checks whether or not a form image obtained by expanding the requested macro instruction into the macro cache memory is stored in the macro cache memory. If it is stored, the form image is selected and transferred to the image memory. The image memory combines and stores the sent form image of the ruled line such as the address book and the font image such as the address. When there is a print request for the control code sent via the interface unit in addition to the operation management of the entire apparatus, the CPU selects various images stored in the image memory according to the print request and sends them to the printer engine. . The printer engine prints the transmitted image on recording paper. As described above, a form image in which a plurality of macro instructions are image-developed is stored in advance, and when a macro instruction for designating a form image is requested from the host device, a form in which the requested macro instruction is image-expanded is stored. Since it is determined whether or not an image is stored, and if the image is stored, the form image is selected and transferred, so that it is possible to reduce the time required to develop the macro instruction requested to be developed.

【0012】また、上記マクロ展開部はインターフェー
ス部を介してホスト装置から送られた制御コードにマク
ロ命令の展開要求があるときに、マクロキャッシュメモ
リに展開要求されたマクロ命令をイメージ展開したフォ
ーム画像が記憶されているか否かを確認し、記憶されて
いないときはマクロ格納部から展開要求されたマクロ命
令に対応した複数の制御コードを取り出し、その制御コ
ードに従ってフォーム画像をマクロキャッシュメモリ上
にイメージ展開してイメージメモリに転送し、マクロキ
ャッシュメモリはイメージ展開されたフォーム画像を記
憶するようにしたため、再度、ホスト装置から同じマク
ロ命令の展開要求がされたときにイメージ展開する時間
を削減することができる。
Also, the macro expansion unit is a form image in which the macro instruction requested to be expanded in the macro cache memory is expanded when the control code sent from the host device via the interface unit has a macro instruction expansion request. Is checked, and if not stored, a plurality of control codes corresponding to the macro instruction requested to be expanded are retrieved from the macro storage unit, and the form image is stored in the macro cache memory according to the control codes. Since the data is expanded and transferred to the image memory, and the macro cache memory stores the expanded image, the time required to expand the image when the same macro instruction is requested again from the host device is reduced. Can be.

【0013】更に、上記マクロ展開部はホスト装置から
送られた制御コードにマクロ命令の展開要求があるとき
に、マクロキャッシュメモリに展開要求されたマクロ命
令をイメージ展開したフォーム画像が記憶されているか
否かを確認し、記憶されていないときはマクロ格納部か
ら展開要求されたマクロ命令に対応した複数の制御コー
ドを取り出し、その制御コードに従って例えばMH方式
等でデータ圧縮したフォーム画像をマクロキャッシュメ
モリ上にイメージ展開してイメージメモリにはデータ圧
縮する前のイメージ展開したフォーム画像を送出し、マ
クロキャッシュメモリはイメージ展開されデータ圧縮し
たフォーム画像を記憶するようにしたため、マクロキャ
ッシュメモリの容量を小さくすることができる。
Further, when the control code sent from the host device has a macro instruction expansion request, the macro expansion unit stores a form image obtained by expanding the requested macro instruction into the macro cache memory. It is checked whether or not it is stored. If it is not stored, a plurality of control codes corresponding to the macro instruction requested to be expanded are taken out from the macro storage unit, and a form image data-compressed by the MH method or the like according to the control code is stored in the macro cache memory. The form image that has been expanded and sent to the image memory is sent to the image memory, and the expanded form image before data compression is sent.The macro cache memory stores the expanded image and the compressed form image for data. can do.

【0014】また、上記ではマクロキャッシュメモリと
フォントキャッシュメモリを用いてフォーム画像又はフ
ォント画像をそれぞれ格納しているが、フォント展開部
はインターフェース部を介して送られた制御コードにフ
ォントデータの展開要求があるときに、フォント格納部
に格納した該当するフォントを選択して例えばドット形
式であるフォント画像をマクロキャッシュメモリ上にイ
メージ展開するようにし、マクロキャッシュメモリはフ
ォント画像をフォーム画像と共用して記憶する。このよ
うに、イメージ展開したフォーム画像とフォント画像を
ひとつのキャッシュメモリに格納するようにしたため、
キャッシュメモリに余計な空き領域が発生するのを防止
し、キャッシュメモリを有効に活用することができる。
Further, in the above, the form image or the font image is stored using the macro cache memory and the font cache memory, respectively. However, the font developing unit requests the control code sent via the interface unit to develop the font data. When there is, select the corresponding font stored in the font storage unit and develop the font image, for example, in dot format on the macro cache memory, and the macro cache memory shares the font image with the form image Remember. In this way, since the expanded form image and font image are stored in one cache memory,
It is possible to prevent the generation of unnecessary free space in the cache memory, and to effectively use the cache memory.

【0015】[0015]

【実施例】図1はこの発明の一実施例の構成を示すブロ
ック図である。図に示すように印刷装置は、インターフ
ェース部1とフォント生成部2とマクロ生成部3とイメ
ージメモリ4とCPU5及びプリンタエンジン6とを有
する。インターフェース部1はホスト装置7から送られ
てきた制御コードを受信する。フォント生成部2はフォ
ント格納部21とフォント展開部22及びフォントキャ
ッシュメモリ23とを有し、フォント格納部21は例え
ばあらかじめベクトル形式等で文字形状を示す複数のフ
ォントを格納する。フォント展開部22はインターフェ
ース部1を介して送られた制御コードに例えば住所等の
文字を示すフォントデータの展開要求があるときに、フ
ォントデータに従ってフォント格納部21に格納した該
当するフォントを選択して例えばドット形式である住所
等の文字を示すフォント画像をフォントキャッシュメモ
リ23上にイメージ展開してイメージメモリ4に転送す
る。フォントキャッシュメモリ23はイメージ展開され
たフォント画像を記憶する。マクロ生成部3はマクロ格
納部31とマクロキャッシュメモリ32及びマクロ展開
部33とを有し、マクロ格納部31は例えばあらかじめ
インターフェース部1を介してホスト装置7によって登
録された住所録の罫線等のフォーム画像を指示する複数
の制御コードのセットごとに対応してマクロ化した複数
のマクロ命令を格納する。マクロキャッシュメモリ32
はあらかじめ複数のマクロ命令をイメージ展開した例え
ばドット形式のフォーム画像を記憶する。マクロ展開部
33はインターフェース部1を介して送られた制御コー
ドにマクロ命令の展開要求があるときに、マクロキャッ
シュメモリ32に展開要求されたマクロ命令をイメージ
展開したフォーム画像が記憶されているか否かを確認
し、記憶されているときはそのフォーム画像を選択して
イメージメモリ4に転送する。イメージメモリ4は例え
ば送られた住所録等の罫線のフォーム画像と住所等のフ
ォント画像を合成して記憶する。CPU5は装置全体の
動作管理の他にインターフェース部1を介して送られて
きた制御コードに印刷要求があるときは、その印刷要求
に従ってイメージメモリ4から例えば合成されたフォー
ム画像とフォント画像等の各種画像を選択してプリンタ
エンジン6に送出する。プリンタエンジン6はCPU5
によって選択され送られた各種画像を記録用紙に印刷す
る。
FIG. 1 is a block diagram showing the configuration of an embodiment of the present invention. As shown in the figure, the printing apparatus has an interface unit 1, a font generation unit 2, a macro generation unit 3, an image memory 4, a CPU 5, and a printer engine 6. The interface unit 1 receives the control code sent from the host device 7. The font generation unit 2 has a font storage unit 21, a font development unit 22, and a font cache memory 23. The font storage unit 21 stores a plurality of fonts indicating character shapes in a vector format or the like in advance, for example. When the control code transmitted via the interface unit 1 requests expansion of font data indicating characters such as addresses, the font expansion unit 22 selects a corresponding font stored in the font storage unit 21 according to the font data. For example, a font image representing a character such as an address in a dot format is developed in the font cache memory 23 and transferred to the image memory 4. The font cache memory 23 stores the developed font image. The macro generation unit 3 has a macro storage unit 31, a macro cache memory 32, and a macro expansion unit 33. The macro storage unit 31 stores, for example, ruled lines of an address book registered in advance by the host device 7 via the interface unit 1. A plurality of macro instructions that are converted into macros corresponding to sets of a plurality of control codes indicating a form image are stored. Macro cache memory 32
Stores, for example, a dot form image in which a plurality of macro instructions are developed as images. When there is a request to expand a macro instruction in the control code sent via the interface unit 1, the macro expansion unit 33 determines whether or not a form image obtained by expanding the requested macro instruction into the macro cache memory 32 is stored. Is checked, and if stored, the form image is selected and transferred to the image memory 4. The image memory 4 combines a form image of a ruled line sent from, for example, an address book and a font image such as an address and stores the combined image. When there is a print request for the control code sent via the interface unit 1 in addition to the operation management of the entire apparatus, the CPU 5 sends various types of form images and font images from the image memory 4 according to the print request. An image is selected and sent to the printer engine 6. The printer engine 6 is a CPU 5
The various images selected and sent by are printed on recording paper.

【0016】上記のように構成した印刷装置の動作を図
2のフローチャートを参照して説明する。
The operation of the printing apparatus configured as described above will be described with reference to the flowchart of FIG.

【0017】例えば住所等の文書と住所録の罫線とを合
成して印刷するフォーム印刷をする場合、ホスト装置7
は住所を示すフォントデータの展開要求の指示を含む制
御コードを送出し、インターフェース部1は送られた制
御コードを受信する。フォント展開部22はインターフ
ェース部1を介して送られた制御コードに住所を示すフ
ォントデータの展開要求があるときに(ステップS
1)、フォントデータに従ってフォント格納部21に格
納した該当するフォントを選択し、住所を構成したフォ
ント画像をフォントキャッシュメモリ23上にイメージ
展開してイメージメモリ4に転送し(ステップS2)、
イメージメモリ4は送られた住所を構成したフォント画
像を記憶する(ステップS3)。また、ホスト装置7は
住所録の罫線等のフォーム画像を指示するマクロ命令の
展開要求を含む制御コードを送出し、マクロ展開部33
はインターフェース部1を介して送られた制御コードに
マクロ命令の展開要求があるときに(ステップS1,S
4)、マクロキャッシュメモリ32に展開要求されたマ
クロ命令をイメージ展開した住所録の罫線のフォーム画
像が記憶されているか否かを確認し(ステップS5)、
記憶されているときはそのフォーム画像を選択してイメ
ージメモリ4に転送する(ステップS6)。そして、イ
メージメモリ4はあらかじめ記憶した住所を構成したフ
ォント画像に転送されてきた住所録の罫線のフォーム画
像を合成して記憶する(ステップS3)。ここで、CP
U5はホスト装置7からインターフェース部1を介して
送られてきた制御コードに印刷要求があることを確認し
たときは(ステップS7)、イメージメモリ4に記憶さ
れたフォーム画像とフォント画像を合成した画像を選択
してプリンタエンジン6送出し、住所録の罫線の所定の
位置に住所が記入された画像を印刷させる(ステップS
8)。
For example, when performing form printing for combining and printing a document such as an address and a ruled line of an address book, the host device 7
Sends a control code including an instruction to expand font data indicating an address, and the interface unit 1 receives the sent control code. The font developing unit 22 receives a request for developing font data indicating an address in the control code sent via the interface unit 1 (step S5).
1) The corresponding font stored in the font storage unit 21 is selected according to the font data, and the font image forming the address is developed in the font cache memory 23 and transferred to the image memory 4 (step S2).
The image memory 4 stores the font image constituting the sent address (step S3). Further, the host device 7 sends out a control code including a request for developing a macro instruction for designating a form image such as a ruled line of an address book,
When there is a request to expand a macro instruction in the control code sent through the interface unit 1 (steps S1 and S1).
4) It is confirmed whether or not a form image of a ruled line of the address book in which the macro instruction requested to be developed is developed in the macro cache memory 32 (step S5).
If it is stored, the form image is selected and transferred to the image memory 4 (step S6). Then, the image memory 4 combines and stores the form image of the ruled line of the address book transferred to the font image forming the address stored in advance (step S3). Where CP
When U5 confirms that there is a print request in the control code sent from the host device 7 via the interface unit 1 (step S7), an image obtained by synthesizing the form image and the font image stored in the image memory 4 Is selected and transmitted to the printer engine 6 to print an image in which an address is written at a predetermined position of a ruled line in the address book (step S).
8).

【0018】このように、あらかじめ複数のマクロ命令
をイメージ展開したフォーム画像を記憶して、ホスト装
置7からフォーム画像を指示するマクロ命令の展開要求
があったときに、展開要求されたマクロ命令をイメージ
展開したフォーム画像が記憶されているか否かを確認
し、記憶されているときはそのフォーム画像を選択して
転送するようにしたため、展開要求されたマクロ命令を
イメージ展開する時間を削減することができる。
As described above, a form image in which a plurality of macro instructions are image-developed is stored in advance, and when a macro instruction for designating a form image is requested from the host device 7, the macro instruction requested to be expanded is stored in the form image. Checking whether the expanded form image is stored and if it is stored, selecting and transferring the form image, reducing the time required to develop the macro instruction requested to expand. Can be.

【0019】また、マクロ展開部33はインターフェー
ス部1を介して送られた制御コードにマクロ命令の展開
要求があるときに(ステップS4)、マクロキャッシュ
メモリ32に展開要求されたマクロ命令をイメージ展開
した例えば住所録の罫線のフォーム画像が記憶されてい
るか否かを確認し(ステップS5)、記憶されていない
ときはマクロ格納部から展開要求されたマクロ命令に対
応した複数の制御コードを取り出し、その制御コードに
従ってフォーム画像をマクロキャッシュメモリ32上に
イメージ展開してイメージメモリに転送し(ステップS
9)、マクロキャッシュメモリ32はイメージ展開され
たフォーム画像を記憶する(ステップS10)。
When the control code sent via the interface unit 1 has a request to expand the macro instruction (step S4), the macro expansion unit 33 expands the macro instruction requested to be expanded in the macro cache memory 32 into an image. For example, it is checked whether or not the form image of the ruled line of the address book is stored (step S5). The form image is developed on the macro cache memory 32 according to the control code and transferred to the image memory (step S).
9), the macro cache memory 32 stores the expanded form image (step S10).

【0020】このように、マクロキャッシュメモリ32
にイメージ展開したフォーム画像が記憶されていないと
きは、マクロ格納部31から展開要求されたマクロ命令
に対応した複数の制御コードを取り出して、その制御コ
ードに従ってイメージ展開したフォーム画像をマクロキ
ャッシュメモリ32に記憶させるようにしたため、再
度、ホスト装置7から同じマクロ命令の展開要求がされ
たときにイメージ展開する時間を削減することができ
る。
As described above, the macro cache memory 32
If the form image is not stored in the macro cache memory 32, a plurality of control codes corresponding to the macro instruction requested to be developed are retrieved from the macro storage unit 31, and the form image developed in accordance with the control code is stored in the macro cache memory 32. The time required for image development when the same macro instruction is requested again by the host device 7 can be reduced.

【0021】また、上記マクロ展開部33はホスト装置
7から送られた制御コードにマクロ命令の展開要求があ
るときに(ステップS4)、マクロキャッシュメモリ3
2に展開要求されたマクロ命令をイメージ展開したフォ
ーム画像が記憶されているか否かを確認し(ステップS
5)、記憶されていないときはマクロ格納部31から展
開要求されたマクロ命令に対応した複数の制御コードを
取り出し、その制御コードに従って例えばMH方式等で
データ圧縮したフォーム画像をマクロキャッシュメモリ
32上にイメージ展開してイメージメモリ4にはデータ
圧縮する前のイメージ展開したフォーム画像を転送し
(ステップS9)、マクロキャッシュメモリ32はイメ
ージ展開されデータ圧縮したフォーム画像を記憶するよ
うにしても良い(ステップS10)。
When there is a request for developing a macro instruction in the control code sent from the host device 7 (step S4), the macro developing unit 33 reads the macro cache memory 3
2. It is confirmed whether or not a form image obtained by developing the macro instruction requested to be developed is stored in step 2 (step S).
5) If not stored, a plurality of control codes corresponding to the macro instruction requested to be expanded are retrieved from the macro storage unit 31, and the form image data-compressed by, for example, the MH method according to the control code is stored in the macro cache memory 32. (Step S9), and the macro cache memory 32 may store the expanded image and the data-compressed form image to the image memory 4 (Step S9). Step S10).

【0022】このように、イメージ展開したフォーム画
像をデータ圧縮してマクロキャッシュメモリ32に記憶
するようにしたため、マクロキャッシュメモリ32の容
量を小さくすることができる。
As described above, since the expanded form image is compressed and stored in the macro cache memory 32, the capacity of the macro cache memory 32 can be reduced.

【0023】また、上記ではマクロキャッシュメモリ3
2とフォントキャッシュメモリ23を用いてイメージ展
開したフォーム画像又はフォント画像をそれぞれ格納し
ているが、フォント展開部22はインターフェース部1
を介して送られた制御コードにフォントデータの展開要
求があるときに(ステップS1)、フォントデータに従
ってフォント格納部21に格納した該当するフォントを
選択し、フォント画像をマクロキャッシュメモリ32上
にイメージ展開するようにし(ステップS2)、マクロ
キャッシュメモリ32はフォント画像をフォーム画像と
共用して記憶するようにしても良い。
In the above description, the macro cache memory 3
2 and a form image or a font image developed by using the font cache memory 23, respectively.
When there is a request to expand the font data in the control code sent through the CPU (step S1), the corresponding font stored in the font storage unit 21 is selected according to the font data, and the font image is stored in the macro cache memory 32. The macro image may be expanded (step S2), and the macro cache memory 32 may store the font image in common with the form image.

【0024】このように、イメージ展開したフォーム画
像とフォント画像をひとつのキャッシュメモリに格納す
るようにしたため、キャッシュメモリに余計な空き領域
が発生するのを防止し、キャッシュメモリを有効に活用
することができる。
As described above, since the developed form image and font image are stored in one cache memory, it is possible to prevent an unnecessary free space from being generated in the cache memory and to effectively utilize the cache memory. Can be.

【0025】[0025]

【発明の効果】この発明は以上説明したように、あらか
じめ複数のマクロ命令をイメージ展開したフォーム画像
を記憶して、ホスト装置からフォーム画像を指示するマ
クロ命令の展開要求があったときに、展開要求されたマ
クロ命令をイメージ展開したフォーム画像が記憶されて
いるか否かを確認し、記憶されているときはそのフォー
ム画像を選択して転送するようにしたから、展開要求さ
れたマクロ命令をイメージ展開する時間を削減すること
ができフォーム印刷時の処理速度の向上を図ることがで
きる。
As described above, according to the present invention, a form image in which a plurality of macro instructions are image-developed is stored in advance, and when a macro instruction for designating the form image is requested from the host device, the expansion is performed. It is checked whether or not a form image obtained by developing the requested macro instruction is stored. If the form image is stored, the selected form image is selected and transmitted. The development time can be reduced, and the processing speed during form printing can be improved.

【0026】また、マクロキャッシュメモリにイメージ
展開したフォーム画像が記憶されていないときは、マク
ロ格納部から展開要求されたマクロ命令に対応した複数
の制御コードを取り出して、その制御コードに従ってイ
メージ展開したフォーム画像をマクロキャッシュメモリ
記憶させるようにしたから、再度、ホスト装置から同じ
マクロ命令の展開要求がされたときにイメージ展開する
時間を削減することができフォーム印刷時の処理速度の
向上を図ることができる。
When the form image developed by the image is not stored in the macro cache memory, a plurality of control codes corresponding to the macro instruction requested to be developed are extracted from the macro storage unit, and the image is developed according to the control code. Since the form image is stored in the macro cache memory, it is possible to reduce the time required to develop the image when the host device requests the same macro instruction to be developed again, thereby improving the processing speed during form printing. Can be.

【0027】更に、イメージ展開したフォーム画像をデ
ータ圧縮してマクロキャッシュメモリに記憶させるよう
にしたから、マクロキャッシュメモリの容量を小さくす
ることができ、装置のコストダウンを図ることができ
る。
Furthermore, since the expanded form image is compressed and stored in the macro cache memory, the capacity of the macro cache memory can be reduced, and the cost of the apparatus can be reduced.

【0028】また、イメージ展開したフォーム画像とフ
ォント画像をひとつのキャッシュメモリに格納するよう
にしたから、キャッシュメモリに余計な空き領域が発生
するのを防止し、キャッシュメモリを有効に活用するこ
とができる。
Further, since the developed form image and font image are stored in one cache memory, it is possible to prevent the generation of unnecessary free space in the cache memory and to effectively utilize the cache memory. it can.

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

【図1】この発明の実施例の構成を示すブロック図であ
る。
FIG. 1 is a block diagram showing a configuration of an embodiment of the present invention.

【図2】上記実施例の動作を示すフローチャートであ
る。
FIG. 2 is a flowchart showing the operation of the embodiment.

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

1 インターフェース部 2 フォント生成部 21 フォント格納部 22 フォント展開部 23 フォントキャッシュメモリ 3 マクロ生成部 31 マクロ格納部 32 マクロキャッシュメモリ 33 マクロ展開部 4 イメージメモリ 5 CPU 6 プリンタエンジン 7 ホスト装置 DESCRIPTION OF SYMBOLS 1 Interface part 2 Font generation part 21 Font storage part 22 Font development part 23 Font cache memory 3 Macro generation part 31 Macro storage part 32 Macro cache memory 33 Macro development part 4 Image memory 5 CPU 6 Printer engine 7 Host device

Claims (4)

【特許請求の範囲】[Claims] 【請求項1】 ホスト装置から送られてきた制御コード
に従ってフォーム画像とフォント画像を合成して印刷す
るフォーム印刷機能を備えた印刷装置において、マクロ
格納部とマクロキャッシュメモリ及びマクロ展開部とを
有し、マクロ格納部はあらかじめフォーム画像を指示す
る複数の制御コードのセットごとに対応してマクロ化し
た複数のマクロ命令を格納し、マクロキャッシュメモリ
はあらかじめ複数のマクロ命令をイメージ展開したフォ
ーム画像を記憶し、マクロ展開部はホスト装置から送ら
れた制御コードにマクロ命令の展開要求があるときに、
マクロキャッシュメモリから展開要求されたマクロ命令
をイメージ展開したフォーム画像を選択して送出するこ
とを特徴とする印刷装置。
1. A printing apparatus having a form printing function for synthesizing and printing a form image and a font image in accordance with a control code sent from a host apparatus, comprising a macro storage unit, a macro cache memory, and a macro expansion unit. The macro storage unit stores in advance a plurality of macro instructions macroized corresponding to each set of a plurality of control codes indicating a form image, and the macro cache memory stores a form image obtained by developing a plurality of macro instructions in advance. The macro expansion unit stores the macro code when there is a macro instruction expansion request in the control code sent from the host device.
A printing apparatus wherein a form image in which a macro instruction requested to be expanded is expanded from a macro cache memory is selected and transmitted.
【請求項2】 上記マクロ展開部はホスト装置から送ら
れた制御コードにマクロ命令の展開要求があるときに、
マクロキャッシュメモリに展開要求されたマクロ命令を
イメージ展開したフォーム画像が記憶されているか否か
を確認し、記憶されていないときはマクロ格納部から展
開要求されたマクロ命令に対応した複数の制御コードを
取り出し、その制御コードに従ってフォーム画像をマク
ロキャッシュメモリ上にイメージ展開し、マクロキャッ
シュメモリはイメージ展開されたフォーム画像を記憶す
る請求項1記載の印刷装置。
2. The macro expansion unit according to claim 1, wherein the control code transmitted from the host device has a macro instruction expansion request.
Checks whether or not a form image obtained by developing a macro instruction requested to be expanded in the macro cache memory is stored. If not stored, a plurality of control codes corresponding to the macro instruction requested to be expanded from the macro storage unit are stored. 2. The printing apparatus according to claim 1, wherein the form image is developed on a macro cache memory according to the control code, and the macro cache memory stores the developed form image.
【請求項3】 上記マクロ展開部はホスト装置から送ら
れた制御コードにマクロ命令の展開要求があるときに、
マクロキャッシュメモリに展開要求されたマクロ命令を
イメージ展開したフォーム画像が記憶されているか否か
を確認し、記憶されていないときはマクロ格納部から展
開要求されたマクロ命令に対応した複数の制御コードを
取り出し、その制御コードに従ってデータ圧縮したフォ
ーム画像をマクロキャッシュメモリ上にイメージ展開
し、マクロキャッシュメモリはイメージ展開されデータ
圧縮したフォーム画像を記憶する請求項1又は2記載の
印刷装置。
3. The macro expansion section according to claim 1, wherein the control code transmitted from the host device has a macro instruction expansion request.
Checks whether or not a form image obtained by developing a macro instruction requested to be expanded in the macro cache memory is stored. If not stored, a plurality of control codes corresponding to the macro instruction requested to be expanded from the macro storage unit are stored. 3. The printing apparatus according to claim 1, wherein the printing device extracts the form image data-compressed in accordance with the control code and develops the image in a macro cache memory, and the macro cache memory stores the developed image data.
【請求項4】 上記マクロキャッシュメモリはフォント
画像をフォーム画像と共用して記憶する請求項1又は2
記載の印刷装置。
4. The macro cache memory stores a font image in common with a form image.
The printing device according to the above.
JP8308641A 1996-11-06 1996-11-06 Printer Pending JPH10138598A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP8308641A JPH10138598A (en) 1996-11-06 1996-11-06 Printer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP8308641A JPH10138598A (en) 1996-11-06 1996-11-06 Printer

Publications (1)

Publication Number Publication Date
JPH10138598A true JPH10138598A (en) 1998-05-26

Family

ID=17983511

Family Applications (1)

Application Number Title Priority Date Filing Date
JP8308641A Pending JPH10138598A (en) 1996-11-06 1996-11-06 Printer

Country Status (1)

Country Link
JP (1) JPH10138598A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7164484B2 (en) 2002-01-17 2007-01-16 Fuji Xerox, Co., Ltd. Print controller, print control method and printer including determination to store macro as instruction or bitmap

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7164484B2 (en) 2002-01-17 2007-01-16 Fuji Xerox, Co., Ltd. Print controller, print control method and printer including determination to store macro as instruction or bitmap

Similar Documents

Publication Publication Date Title
JP2755308B2 (en) Output method and device
JPH10138598A (en) Printer
JPH01290448A (en) Character generator
JP3046478B2 (en) Printing apparatus and printing method
JP3211711B2 (en) Drawing device, drawing method, printer and image display device
JP2000148418A (en) Printer
JP2002120418A (en) Printer device and image processing device comprising the printer device
JPH0462080A (en) Printing device
JPH0789153A (en) Printer system
JP3119004B2 (en) Character processor
JPH03112668A (en) Printer
JPH0691979A (en) Method of processing form data in image forming apparatus
JPH10171612A (en) Picture processor and compression processing method
JPH07144444A (en) Communication controller
JP2965681B2 (en) Image forming device
JPH06183093A (en) Printing equipment
JP2752816B2 (en) Printer device
JPH05177873A (en) Printer device
JPH0615932A (en) Printer
JPS631614B2 (en)
JPH09150564A (en) Printer
JPH09222879A (en) Character processor
JPH08263242A (en) Form overlay control system
JPH02150376A (en) Page printer
JPH10228361A (en) Device and method for decoding, and storage medium

Legal Events

Date Code Title Description
A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20040727