JPH11167476A - Printing method, its device and recording medium - Google Patents

Printing method, its device and recording medium

Info

Publication number
JPH11167476A
JPH11167476A JP9333320A JP33332097A JPH11167476A JP H11167476 A JPH11167476 A JP H11167476A JP 9333320 A JP9333320 A JP 9333320A JP 33332097 A JP33332097 A JP 33332097A JP H11167476 A JPH11167476 A JP H11167476A
Authority
JP
Japan
Prior art keywords
page
print
intermediate data
printing
last
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.)
Withdrawn
Application number
JP9333320A
Other languages
Japanese (ja)
Inventor
Shigeki Kuroda
茂樹 黒田
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 JP9333320A priority Critical patent/JPH11167476A/en
Publication of JPH11167476A publication Critical patent/JPH11167476A/en
Withdrawn legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To provide a printing method and device which improve visibility of a printing result, reduce a printing time and save printing papers to improve economy, and a recording medium housing a program code which can be read by an information processor. SOLUTION: An intermediate data file is prepared S204 by the designation S209 of a printing mode and page control S203 is executed to judge whether the printing line of the last page can be moved to the last margin of a page before the last page when the printing line of the last page of print data is one line, to move a printing position to the page before the last page when it is possible, and to additionally delete the last page. Thereby the visibility of the printing result is improved, the printing time is reduced and printing paper is saved to improve economy.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、ページ単位で印刷
する機能を有するプリンタと、該プリンタと接続された
パーソナルコンピュータ等の情報処理装置からなるシス
テムにおいて、ページ制御を指示し、所望の印刷結果が
得られる印刷処理方法および装置、及び情報処理装置で
読み出し可能なプログラムコードを格納した記憶媒体に
関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a system including a printer having a function of printing on a page basis and an information processing apparatus such as a personal computer connected to the printer, instructing page control and obtaining a desired print result. And a storage medium storing a program code readable by an information processing apparatus.

【0002】[0002]

【従来の技術】従来、ページ単位で印刷する機能を有す
るプリンタと、該プリンタと接続されたパーソナルコン
ピュータ等の情報処理装置からなるシステムにける印刷
処理において、印刷ページ体裁の編集機能を有するアプ
リケーションでは、オペレータかアプリケーションで各
ページの体裁を整え、印刷を指示すると、プリンタ制御
コマンド生成プログラム(プリンタドライバ)が最終的
なプリンタ制御コマンド(印刷データ)を生成し、その
データをプリンタに送信していた。また、印刷ページ体
裁の編集機能を持たないアプリケーションでは、印刷を
指示すると、アプリケーション内部で単純な行数カウン
トなどからページ単位に分割し、プリンタ制御コマンド
生成プログラムが最終的なプリンタ制御コマンド(印刷
データ)を生成し、そのデータをプリンタに送信してい
た。
2. Description of the Related Art Conventionally, in a printing process in a system including a printer having a function of printing on a page basis and an information processing apparatus such as a personal computer connected to the printer, an application having a function of editing a print page format has been used. When the operator or application arranged the page and ordered printing, the printer control command generation program (printer driver) generated the final printer control command (print data) and transmitted the data to the printer. . Also, in an application that does not have a print page format editing function, when printing is instructed, the application divides it into pages based on a simple line count and the like, and the printer control command generation program issues the final printer control command (print data ) And send that data to the printer.

【0003】[0003]

【発明が解決しようとする課題】しかしながら上述した
方法によれば、アプリケーションが印刷ページの体裁を
整える機能を有していない、例えばテキストエディタな
どの場合、ページ単位の分割がアプリケーション内部で
単純な行数カウント等で行われ、オペレータはページ体
裁がわからないため、最終ページが1行しかないにもか
かわらず印刷され、印刷結果が見づらくなるとともに、
印刷用紙が1枚余分に必要になり、不経済であるという
問題があった。
However, according to the above-described method, when an application does not have a function of adjusting the appearance of a print page, for example, in the case of a text editor or the like, division of a page unit is performed by a simple line within the application. The operation is performed by counting several times, and since the operator does not know the page format, it is printed even though the last page has only one line, and the print result becomes difficult to see.
There is a problem that one extra printing paper is required, which is uneconomical.

【0004】さらに、印刷ページ体裁の編集機能を有す
るアプリケーションにおいても、オペレータの編集ミス
等により、前述のような印刷結果となる事があり、同様
の問題が起こる可能性があった。
Further, even in an application having a print page format editing function, the above-described printing result may be caused due to an operator's editing error or the like, and the same problem may occur.

【0005】[0005]

【課題を解決するための手段】本発明は上記従来例に鑑
みてなされたもので、その目的とするところは、印刷デ
ータの最終ページの印刷行が1行であった場合に、最終
ページの前ページの最後の余白に前記最終ページの印刷
行が移動可能ならば印刷位置を最終ページの前ページに
移動し、さらに最終ページを削除して、印刷結果の視認
性を高めるとともに、印刷時間の短縮をはかり且、印刷
用紙の節約をし経済性を高め得る印刷処理方法及び装
置、及び情報処理装置で読み出し可能なプログラムコー
ドを格納した記憶媒体を提供することを目的とする。
SUMMARY OF THE INVENTION The present invention has been made in view of the above-mentioned prior art, and has as its object the object of the present invention is to print the last page of the print data when the number of print lines is one. If the print line of the last page can be moved to the last margin of the previous page, the print position is moved to the previous page of the last page, the last page is further deleted, the visibility of the print result is improved, and the print time is reduced. It is an object of the present invention to provide a print processing method and apparatus capable of saving printing paper and improving economical efficiency, and a storage medium storing a program code readable by an information processing apparatus.

【0006】上記目的を達成するために、本発明は以下
の構成からなる。
In order to achieve the above object, the present invention has the following constitution.

【0007】即ち、印刷モードを指定する印刷モード指
定工程と、印刷装置に送信するべき印刷情報を指定する
印刷指定工程と、前記指定された印刷モードに従ってペ
ージ制御を行うか否かを判断するページ制御判断工程
と、前記判断工程の判断に基づき、前記印刷情報からペ
ージ制御するための中間データを生成する中間データ生
成工程と、前記生成された中間データを保存するための
保存工程と、印刷装置に送信すべき前記中間データに対
応したページ情報を記録するページ情報記録工程と、前
記指定された印刷モードに従い、前記保存した中間デー
タを編集する中間データ編集工程と、前記編集された中
間データを出力する中間データ出力工程と、前記出力さ
れた中間データと、前記中間データに対応したページ情
報とから、最終的な印刷データを生成する印刷データ生
成工程と、前記生成された最終的な印刷データを出力す
る出力工程と、を備える。
That is, a print mode designating step for designating a print mode, a print designating step for designating print information to be transmitted to a printing apparatus, and a page for determining whether to perform page control according to the designated print mode. A control determining step, an intermediate data generating step of generating intermediate data for page control from the print information based on the determination of the determining step, a storing step of storing the generated intermediate data, and a printing apparatus. A page information recording step of recording page information corresponding to the intermediate data to be transmitted to, an intermediate data editing step of editing the stored intermediate data according to the designated print mode, and the edited intermediate data. Outputting the intermediate data to be output, the output intermediate data, and the page information corresponding to the intermediate data, Comprising a print data generation step of generating printing data, and an output step of outputting the final print data that is generated.

【0008】また、前記中間データ編集工程は、更に、
前記保存された中間データの最終ページの文字印刷行が
1行で且、前記1行が前ページの余白に印刷可能である
かを判断する印刷判断工程と、前記印刷判断工程で印刷
可能と判断されたとき、前記1行の印刷位置を編集する
印刷位置編集工程と、前記最終ページを削除するページ
削除工程と、を備えて、前記中間データの編集を行な
う。
[0008] The intermediate data editing step may further include:
A print determining step of determining whether a character print line of the last page of the stored intermediate data is one line and the one line can be printed in a margin of a previous page, and determining that the print is possible in the print determining step Then, the intermediate data is edited by including a print position editing step of editing the print position of the one line and a page deletion step of deleting the last page.

【0009】また、前記中間データは、前記ページ情報
を記録するページ情報記録部と、前記ページ情報に対応
した中間データを記述する中間データ記録部と、からな
る1つのファイルに保存される。
[0009] The intermediate data is stored in a single file including a page information recording unit for recording the page information and an intermediate data recording unit for describing intermediate data corresponding to the page information.

【0010】また、前記中間データは、前記ページ情報
を記録するページ情報記録ファイルと、前記ページ情報
単位に中間データを記述する複数の中間データ記録ファ
イルと、に保存される。
The intermediate data is stored in a page information recording file for recording the page information, and a plurality of intermediate data recording files for describing the intermediate data in page information units.

【0011】また、前記印刷可能であるかを判断する印
刷判断工程は、最終ページに印刷された1行の文字属性
と、前ページの最終行の文字属性とが等しい場合に印刷
可能であると判断する第2の印刷判断工程と、を更に含
む。
The print determining step of determining whether printing is possible is performed when the character attribute of one line printed on the last page is equal to the character attribute of the last line on the previous page. A second print determination step of determining.

【0012】また、前記印刷モードの指定および前記印
刷情報の指定は、キーボードにより入力指定される。
The designation of the print mode and the designation of the print information are input and designated by a keyboard.

【0013】また、前記印刷モードの指定および前記印
刷情報の指定は、ポインティングデバイスにより入力指
定される。
The designation of the print mode and the designation of the print information are input and designated by a pointing device.

【0014】また、印刷モードを指定する印刷モード指
定手段と、印刷装置に送信するべき印刷情報を指定する
印刷指定手段と、前記指定された印刷モードに従ってペ
ージ制御を行うか否かを判断するページ制御判断手段
と、前記判断手段の判断に基づき、前記印刷情報からペ
ージ制御するための中間データを生成する中間データ生
成手段と、前記生成された中間データを保存するための
保存手段と、印刷装置に送信すべき前記中間データに対
応したページ情報を記録するページ情報記録手段と、前
記指定された印刷モードに従い、前記保存した中間デー
タを編集する中間データ編集手段と、前記編集された中
間データを出力する中間データ出力手段と、前記出力さ
れた中間データと、前記中間データに対応したページ情
報とから、最終的な印刷データを生成する印刷データ生
成手段と、前記生成された最終的な印刷データを出力す
る出力手段と、を備える。
A print mode designating unit for designating a print mode; a print designating unit for designating print information to be transmitted to the printing apparatus; and a page for determining whether to perform page control according to the designated print mode. Control determining means, intermediate data generating means for generating intermediate data for page control from the print information based on the determination of the determining means, storing means for storing the generated intermediate data, and a printing apparatus Page information recording means for recording page information corresponding to the intermediate data to be transmitted to, intermediate data editing means for editing the stored intermediate data according to the designated print mode, and From the output intermediate data output means, the output intermediate data, and page information corresponding to the intermediate data, a final Comprising a print data generation means for generating printing data, and output means for outputting a final print data the generated and.

【0015】また、前記中間データ編集手段は、更に、
前記保存された中間データの最終ページの文字印刷行が
1行で且、前記1行が前ページの余白に印刷可能である
かを判断する印刷判断手段と、前記印刷判断手段で印刷
可能と判断されたとき、前記1行の印刷位置を編集する
印刷位置編集手段と、前記最終ページを削除するページ
削除手段と、を備えて、前記中間データの編集を行な
う。
Further, the intermediate data editing means further comprises:
A print determination unit that determines whether the last page of the stored intermediate data has one character print line and the one line can be printed in the margin of the previous page; and a print determination unit that determines that the print is possible. Then, the intermediate data is edited by providing a print position editing means for editing the print position of the one line and a page deletion means for deleting the last page.

【0016】また、前記中間データは、前記ページ情報
を記録するページ情報記録部と、前記ページ情報に対応
した中間データを記述する中間データ記録部と、からな
る1つのファイルに保存される。
Further, the intermediate data is stored in one file including a page information recording unit for recording the page information, and an intermediate data recording unit for describing the intermediate data corresponding to the page information.

【0017】また、前記中間データは、前記ページ情報
を記録するページ情報記録ファイルと、前記ページ情報
単位に中間データを記述する複数の中間データ記録ファ
イルと、に保存される。
The intermediate data is stored in a page information recording file for recording the page information, and a plurality of intermediate data recording files for describing the intermediate data in page information units.

【0018】また、前記印刷可能であるかを判断する印
刷判断手段は、最終ページに印刷された1行の文字属性
と、前ページの最終行の文字属性とが等しい場合に印刷
可能であると判断する第2の印刷判断手段と、を更に含
む。
The print determining means for determining whether printing is possible is performed when the character attribute of one line printed on the last page is equal to the character attribute of the last line on the previous page. And a second print determination unit for determining.

【0019】また、前記印刷モードの指定および前記印
刷情報の指定は、キーボードにより入力指定される。
The designation of the print mode and the designation of the print information are input and designated by a keyboard.

【0020】また、前記印刷モードの指定および前記印
刷情報の指定は、ポインティングデバイスにより入力指
定される。
The designation of the print mode and the designation of the print information are input and designated by a pointing device.

【0021】また、印刷モードを指定する印刷モード指
定手段と、印刷装置に送信するべき印刷情報を指定する
印刷指定手段と、前記指定された印刷モードに従ってペ
ージ制御を行うか否かを判断するページ制御判断手段
と、前記判断手段の判断に基づき、前記印刷情報からペ
ージ制御するための中間データを生成する中間データ生
成手段と、前記生成された中間データを保存するための
保存手段と、印刷装置に送信すべき前記中間データに対
応したページ情報を記録するページ情報記録手段と、前
記指定された印刷モードに従い、前記保存した中間デー
タを編集する中間データ編集手段と、前記編集された中
間データを出力する中間データ出力手段と、前記出力さ
れた中間データと、前記中間データに対応したページ情
報とから、最終的な印刷データを生成する印刷データ生
成手段と、前記生成された最終的な印刷データを出力す
る出力手段と、を機能させるためのプログラムを記録し
たコンピュータ読取り可能な記録媒体を備える。
Further, a print mode designating unit for designating a print mode, a print designating unit for designating print information to be transmitted to a printing apparatus, and a page for determining whether to perform page control according to the designated print mode. Control determining means, intermediate data generating means for generating intermediate data for page control from the print information based on the determination of the determining means, storing means for storing the generated intermediate data, and a printing apparatus Page information recording means for recording page information corresponding to the intermediate data to be transmitted to, intermediate data editing means for editing the stored intermediate data according to the designated print mode, and From the output intermediate data output means, the output intermediate data, and page information corresponding to the intermediate data, a final Comprising a print data generation means for generating printing data, and output means for outputting a final print data said generated computer readable recording medium recording a program for a function.

【0022】また、前記保存された中間データの最終ペ
ージの文字印刷行が1行で且、前記1行が前ページの余
白に印刷可能であるかを判断する印刷判断手段と、前記
印刷判断手段で印刷可能と判断されたとき、前記1行の
印刷位置を編集する印刷位置編集手段と、前記最終ペー
ジを削除するページ削除手段と、を機能させるためのプ
ログラムを更に含む。
Further, a print determining means for determining whether or not one character print line of the last page of the stored intermediate data is printable and the one line can be printed in a margin of a previous page; The program further includes a program for causing a print position editing unit that edits the print position of the one line and a page deletion unit that deletes the last page when it is determined that printing is possible.

【0023】また、前記ページ情報を記録するページ情
報記録部と、前記ページ情報に対応した中間データを記
述する中間データ記録部と、からなる1つのファイルに
前記中間データの保存を実行させるためのプログラムを
含む。
[0023] Also, a file for storing the intermediate data in one file comprising a page information recording unit for recording the page information and an intermediate data recording unit for describing intermediate data corresponding to the page information is provided. Including programs.

【0024】また、前記ページ情報を記録するページ情
報記録ファイルと、前記ページ情報単位に中間データを
記述する複数の中間データ記録ファイルと、に前記中間
データの保存を実行させるためのプログラムを含む。
The program further includes a program for causing a page information recording file for recording the page information and a plurality of intermediate data recording files for describing intermediate data in units of the page information to execute the storage of the intermediate data.

【0025】また、最終ページに印刷された1行の文字
属性と、前ページの最終行の文字属性とが等しい場合に
印刷可能であると判断する第2の印刷判断手段と、を更
に機能させるためのプログラムを含む。
Further, a second print determining means for determining that printing is possible when the character attribute of one line printed on the last page is equal to the character attribute of the last line on the previous page is further operated. Includes programs for

【0026】また、キーボードによる前記印刷モードの
指定および前記印刷情報の指定を実行させるためのプロ
グラムを含む。
Further, the program includes a program for executing designation of the print mode and designation of the print information by a keyboard.

【0027】また、ポインティングデバイスによる前記
印刷モードの指定および前記印刷情報の指定を実行させ
るためのプログラムを含む。
Further, the program includes a program for executing designation of the print mode and designation of the print information by a pointing device.

【0028】また、ページ単位に印刷を行なう印刷方法
は、最終ページの前ページの最後の余白に前記最終ペー
ジの印刷行が移動可能か否かを判断し、可能ならば印刷
位置を最終ページの前ページに移動し、さらに最終ペー
ジを削除する。
A printing method for performing printing on a page-by-page basis determines whether or not the print line of the last page can be moved to the last margin of the previous page of the last page, and if possible, changes the print position of the last page. Move to the previous page and delete the last page.

【0029】また、ページ単位に印刷を行なう印刷装置
は、最終ページの前ページの最後の余白に前記最終ペー
ジの印刷行が移動可能か否かを判断し、可能ならば印刷
位置を最終ページの前ページに移動し、さらに最終ペー
ジを削除する。
A printing apparatus that performs printing on a page basis determines whether or not the print line of the last page can be moved to the last margin of the previous page of the last page, and if possible, changes the print position of the last page. Move to the previous page and delete the last page.

【0030】[0030]

【発明の実施の形態】以下、図面を参照しながら本発明
に係る好適な実施形態を詳細に説明する。 (第1実施形態)図1は、第1の実施の形態における印
刷処理装置の構成を示すブロック図である。同図中、1
はパーソナルコンピュータ等の情報処理装置で、詳細は
後述するビデオメモリ(VRAM)3、表示部(CR
T)4、キーボード(KBD)5、ポインティングデバ
イス(PD)6、ディスクコントローラ部7、ハードデ
イスウ装置(HD)9、接続部10、CPU11、RA
M12、及びROM13を主要な構成要素とし、これら
の構成要素がシステムバス2を介して互いに接続されて
いる。
Preferred embodiments according to the present invention will be described below in detail with reference to the drawings. (First Embodiment) FIG. 1 is a block diagram showing a configuration of a print processing apparatus according to a first embodiment. In the figure, 1
Is an information processing device such as a personal computer, and a video memory (VRAM) 3 and a display unit (CR
T) 4, keyboard (KBD) 5, pointing device (PD) 6, disk controller 7, hard disk drive (HD) 9, connection 10, CPU 11, RA
The M12 and the ROM 13 are main components, and these components are connected to each other via the system bus 2.

【0031】CPU11は後述する図2等のフローチャ
ートで表わされるプログラムに従って情報処理装置1全
体を制御するものである。
The CPU 11 controls the entire information processing apparatus 1 according to a program represented by a flowchart shown in FIG.

【0032】また、RAM12は、CPU11の主メモ
リとしてプログラムを格納すると共に、CPU11によ
る制御実行時、ワークデータエリアとして使用される各
種データの一時記憶領域を備えている。
The RAM 12 stores a program as a main memory of the CPU 11, and has a temporary storage area for various data used as a work data area when the CPU 11 executes control.

【0033】ディスクコントローラ部7は、外部メモリ
であるハードディスク装置(HD)9或いはフロッピー
ディスク(FD)8等の外部記憶装置とのアクセス制御
を行うものである。
The disk controller 7 controls access to an external storage device such as a hard disk device (HD) 9 or a floppy disk (FD) 8 as an external memory.

【0034】ハードディスク装置(HD)9及びフロッ
ピーディスク(FD)8はディスク上の磁気記憶媒体に
データを記録して読み書きする装置で、各種図形データ
や文書データ、更にはRAM13にダウンロードされて
実行される情報処理装置1のブートプログラム、CPU
11の制御プログラムであるオペレーティングシステム
(OS)、各種アプリケーション・プログラム、プリン
タ制御コマンド(印刷データ)、生成プログラム(プリ
ンタドライバ)及びページ制御機能を有する本印刷シス
テムプログラムなどを記憶する。
A hard disk drive (HD) 9 and a floppy disk (FD) 8 are devices for recording and reading / writing data on / from a magnetic storage medium on the disk. Program and CPU for information processing apparatus 1
An operating system (OS), various application programs, printer control commands (print data), a generation program (printer driver), a printing system program having a page control function, and the like, which are 11 control programs, are stored.

【0035】また、この記憶媒体はハードディスク装置
やフロッピーディスクだけでなく、磁気テープ、CD−
ROM、ICメモリカード、DVD等であってもよい。
This storage medium is not limited to a hard disk drive or a floppy disk, but may also be a magnetic tape or a CD-ROM.
It may be a ROM, an IC memory card, a DVD, or the like.

【0036】ROM13は内部メモリであり、前述のハ
ードディスク装置(HD)9やフロッピーディスク(F
D)8等と同様に各種データやプログラムを記憶してい
る。
The ROM 13 is an internal memory, and the hard disk device (HD) 9 and the floppy disk (F
D) Various data and programs are stored in the same manner as 8).

【0037】また、表示部4は、情報処理装置1におい
てビットマップデータ等各種図形やコマンドメニューの
コマンドイメージ、オペレータのメッセージ等を画面に
表示するもので、CRT(陰極線菅)或は液晶等から構
成されている。
The display unit 4 displays various graphics such as bitmap data, command images of command menus, operator messages, and the like on the screen in the information processing apparatus 1. The display unit 4 uses a CRT (cathode ray tube) or a liquid crystal. It is configured.

【0038】ビデオメモリ3は、表示部4に表示すべき
データを記憶している。
The video memory 3 stores data to be displayed on the display unit 4.

【0039】キーボード5及びポインティングデバイス
6は、何れもオペレータにより操作され、各種のデータ
やコマンド、或は印刷モード等を入力するものである。
また、キーボード5及びポインティングデバイス6によ
り、表示部3の画面に表示されたコマンドメニューのコ
マンドイメージ等を選択することにより、そのコマンド
の実行や印刷モードを指示することができる。
The keyboard 5 and the pointing device 6 are both operated by an operator to input various data and commands, or a print mode.
Further, by selecting a command image or the like of a command menu displayed on the screen of the display unit 3 using the keyboard 5 and the pointing device 6, it is possible to instruct the execution of the command and the print mode.

【0040】10は接続部であり、セントロニクスイン
ターフェイスや、ネットワークインターフェイス等の所
定の双方向インターフェース14を介してプリンタ15
の接続部17に接続し、プリンタ制部コマンド(印刷デ
ータ)を送信するなど、後述するプリンタ装置15との
通信制御処理を実行する。
Reference numeral 10 denotes a connection unit, which is connected to a printer 15 via a predetermined bidirectional interface 14 such as a Centronics interface or a network interface.
And executes a communication control process with the printer device 15 described later, such as transmitting a printer control unit command (print data).

【0041】15はプリンタ装置であり、詳細は後述す
る接続部17、印刷部(プリンタエンジン)18、操作
部19、外部メモリ20、CPU21、RAM22、及
びROM23を主要な構成要素とし、これらの構成要素
がシステムバス16を介して互いに接続されている。
Reference numeral 15 denotes a printer, which includes a connection unit 17, a printing unit (printer engine) 18, an operation unit 19, an external memory 20, a CPU 21, a RAM 22, and a ROM 23, which will be described in detail later. The components are connected to one another via a system bus 16.

【0042】CPU21はプリンタCPUで、プリンタ
装置15全体を制御するものである。CPU21は、後
述するROM13或いは外部メモリ20に記憶された制
御プログラムに基づいて、接続部17で受信したプリン
タ制御コマンド(印刷データ)より、画像信号を印刷部
18に送信する。
The CPU 21 is a printer CPU and controls the entire printer device 15. The CPU 21 transmits an image signal to the printing unit 18 from a printer control command (print data) received by the connection unit 17 based on a control program stored in the ROM 13 or the external memory 20 described later.

【0043】RAM22は、CPU21の主メモリとし
て、CPU21による制御実行時、ワークデータエリア
として使用される各種データの一時記憶領域を備えてい
る。
The RAM 22 has, as a main memory of the CPU 21, a temporary storage area for various data used as a work data area when the CPU 21 executes control.

【0044】外部メモリ20は、オプションとしても接
続され、フォントデータ、エミュレーションプログラ
ム、フォームデータ等を記憶する。
The external memory 20 is also connected as an option, and stores font data, emulation programs, form data, and the like.

【0045】ROM23はプリンタ内部メモリであり、
外部メモリと同様に、各種データや本プリンタ装置を制
御するプリンタ制御プログラム等を記憶している。
The ROM 23 is an internal memory of the printer.
As with the external memory, it stores various data, a printer control program for controlling the printer, and the like.

【0046】また、印刷部18は、プリンタエンジンで
あり、CPU21により制御され、ROM23、或いは
外部メモリ20に記憶された制御プログラムよりシステ
ムバスを介して出力された画像信号を受け、実際の印刷
を行う。
The printing unit 18 is a printer engine, is controlled by the CPU 21, receives image signals output from the ROM 23 or a control program stored in the external memory 20 via the system bus, and performs actual printing. Do.

【0047】操作部19は、操作パネルや操作スイッチ
等の入力部、及びLED、液晶パネル等の表示部等から
構成され、オペレータの操作を受けたり結果を表示する
ものである。オペレータは操作部19を介して本プリン
タ装置15の設定を指示したり確認することが可能であ
る。
The operation unit 19 includes an input unit such as an operation panel and operation switches, and a display unit such as an LED and a liquid crystal panel. The operation unit 19 receives an operation of an operator and displays a result. The operator can instruct and confirm the settings of the printer 15 via the operation unit 19.

【0048】17は接続部であり、前述の双方向インタ
ーフェース14を介して情報処理装置1の接続部10に
接続し、プリンタ制御コマンド(印刷データ)を受信し
たり、プリンタ内部の状態等を通知する事も可能であ
る。
Reference numeral 17 denotes a connection unit which is connected to the connection unit 10 of the information processing apparatus 1 via the above-described bidirectional interface 14 to receive a printer control command (print data) and to notify the internal state of the printer. It is also possible to do.

【0049】次に、前述した図1及び図10を参照し
て、本実施の形態の情報処理装置1におけるページ制御
機能を有する本印刷処理装置が動作するまでのステップ
についてさらに説明する。
Next, with reference to FIG. 1 and FIG. 10 described above, steps until the print processing apparatus having the page control function in the information processing apparatus 1 of the present embodiment operates will be further described.

【0050】本印刷処理装置は、基本I/Oプログラ
ム、オペレーティングシステム(OS)、及び印刷処理
プログラムをCPUか実行することにより動作する。基
体I/OプログラムはROM13に書き込まれており、
オペレーティングシステム(OS)は、ハードディスク
(HD)9或いはフロッピーディスク(FD)8等の外
部記憶メモリに書さ込まれている。
The print processing apparatus operates by executing a basic I / O program, an operating system (OS), and a print processing program from a CPU. The base I / O program is written in the ROM 13,
The operating system (OS) is written in an external storage memory such as a hard disk (HD) 9 or a floppy disk (FD) 8.

【0051】まず、情報処理装置1の電源がONされる
と、基本I/Oプログラム中のイニシャルプログラムロ
ーデインク(IPL)機能により、ハードディスク(H
D)9或いはフロッピーディスク(FD)8等の外部記
憶メモリに記憶されたオペレーティングシステム(O
S)がRAM12に読み込まれ、OSが動作する。
First, when the power of the information processing apparatus 1 is turned on, the hard disk (H) is activated by the initial program load ink (IPL) function in the basic I / O program.
D) operating system (O) stored in an external storage memory such as 9 or floppy disk (FD) 8;
S) is read into the RAM 12, and the OS operates.

【0052】次に、オペレータが、キーボード5及びポ
インティングデバイス6により、表示部3の画面に表示
されたコマンドメニューのコマンドイメージ等を選択
し、アプリケーションの実行を指示すると、ハードディ
スク(HD)9或いはフロッピーディスク(FD)8等
の外部記憶メモリに記憶されたアプリケーションがRA
M12に読み込まれ、前記アプリケーションが動作す
る。
Next, when the operator selects a command image or the like of a command menu displayed on the screen of the display unit 3 using the keyboard 5 and the pointing device 6 and instructs execution of the application, the hard disk (HD) 9 or the floppy disk An application stored in an external storage memory such as a disk (FD) 8
M12 is read and the application operates.

【0053】次に、前記アプリケーション起動時と同様
な手順で、オペレータにより印刷が指示されると、ハー
ドディスク(HD)9或いはフロッピーディスク(F
D)8等の外部記憶メモリに記憶されたページ制御機能
を有する本印刷処理プログラムおよびプリンタ制御コマ
ンド生成プログラム(プリンタドライバ)がRAM12
に読み込まれ、前記本印刷処理システムが動作する。
Next, when printing is instructed by the operator in the same procedure as when the application is started, the hard disk (HD) 9 or the floppy disk (F)
D) The print processing program having the page control function and the printer control command generation program (printer driver) stored in the external storage memory such as 8 are stored in the RAM 12
And the print processing system operates.

【0054】本実施形態の場合は、本印刷処理プログラ
ム及び関連データはフロッピーディスク(FD)8に記
憶されており、その記録されている内容の構成を図11
に示す。
In the case of the present embodiment, the print processing program and related data are stored in a floppy disk (FD) 8, and the configuration of the recorded contents is shown in FIG.
Shown in

【0055】フロッピーディスク(FD)8に記憶され
た印刷処理プログラム及び関連データは、ディスクコン
トローラ部7を通じて本情報処理装置にロードすること
もできる。このフロッピーディスクをディスクコントロ
ーラ部7にセットすると、OS及び基本I/Oプログラ
ムの制御のもとに本印刷処理プログラム及び関連データ
がフロッピーディスク(FD)8から読み出され、RA
M12にロードされて動作可能となる。
The print processing program and related data stored in the floppy disk (FD) 8 can be loaded into the information processing apparatus through the disk controller 7. When this floppy disk is set in the disk controller 7, the print processing program and related data are read out from the floppy disk (FD) 8 under the control of the OS and the basic I / O program, and the RA
M12 is loaded and becomes operable.

【0056】図10は、本印刷処理プログラムがRAM
12にロードされ実行可能となった状態のメモリマップ
を示す。
FIG. 10 shows that the print processing program is RAM
12 shows a memory map loaded and executable.

【0057】次に、図2乃至図5のフローチャートおよ
びデータ形式図を参照して、本実施の形態の情報処理装
置1におけるページ制御機能を有する本印刷処理システ
ムの動作方法について説明する。
Next, an operation method of the print processing system having the page control function in the information processing apparatus 1 according to the present embodiment will be described with reference to the flowcharts and data format diagrams of FIGS.

【0058】なお、この処理は前記動作ステップによ
り、印刷可能なアプリケーション等のプログラムが動作
している状態で開始される。
Note that this process is started in a state where a program such as a printable application is operating in the above operation steps.

【0059】本実施の形態は、アプリケーションにより
複数ページに渡る文書データの印刷処理を指定し、更に
ページ制御機能を有する印刷を指定すると、中間データ
書き込みプログラムが、アプリケーションから受け取っ
た文書データを中間データに変換し、その中間データを
1ファイルとして一時保存し、さらに前記一時保存ファ
イルにページ情報も記録する。その後、中間データ読み
取りプログラムが前記中間データ一時保存ファイルを読
み取り、中間データを解析し、その解析の結果が、印刷
すべき文書の最後のページが1行のみで、さらに最終ペ
ージから1ページ前の最後の行の後に前記最終ページの
1行が印刷可能であれば、該最終ページの1行を前記最
終ページの最後の行の後に印刷するように中間データを
編集し、印刷されるべき最終ページを削除する。その
後、該中間データ読み取りプログラムが、該中間データ
を、プリンタ制御コマンド生成プログラム(プリンタド
ライバ)或はその前段ステップに介在するプログラムに
出力し、最終的に前記プリンタ制御コマンド生成プログ
ラム(プリンタドライバ)がプリンタ制御コマンド(印
刷データ)を生成し、印刷を行うものである。
In the present embodiment, when an application specifies printing processing of document data over a plurality of pages and further specifies printing having a page control function, the intermediate data writing program converts the document data received from the application into intermediate data. And temporarily store the intermediate data as one file, and further record page information in the temporary storage file. Thereafter, the intermediate data reading program reads the intermediate data temporary storage file, analyzes the intermediate data, and determines that the result of the analysis is that the last page of the document to be printed is only one line, and that the last page is one page before the last page. If one line of the last page is printable after the last line, the intermediate data is edited so that one line of the last page is printed after the last line of the last page, and the last page to be printed. Remove. Thereafter, the intermediate data reading program outputs the intermediate data to a printer control command generation program (printer driver) or a program interposed in the preceding step, and finally, the printer control command generation program (printer driver) A printer control command (print data) is generated and printing is performed.

【0060】図2は本実施形態の印刷処理システムの流
れを示すフローチャートである。
FIG. 2 is a flowchart showing the flow of the print processing system of this embodiment.

【0061】まず図2のステップS201で、本印刷処
理システムを機能させるためのページ制御モードを有効
にするか否かのモード(印刷モード)を指定する。
First, in step S201 of FIG. 2, a mode (print mode) for specifying whether or not to enable the page control mode for causing the present print processing system to function is designated.

【0062】次にステップS202で、印刷を指定す
る。
Next, in step S202, printing is designated.

【0063】印刷モードおよび印刷の指定は、前述の図
1におけるキーボード5及びポインティングデバイス6
により操作し、表示部3の画面に表示されたコマンドメ
ニューのコマンドイメージ等を選択することにより、指
示することも可能である。
The print mode and print designation are performed by the keyboard 5 and the pointing device 6 shown in FIG.
, And by selecting a command image or the like of a command menu displayed on the screen of the display unit 3, it is possible to give an instruction.

【0064】次にステップS203でステップS201
で指定した印刷モードが、ページ制御ONであるか否か
を判断する。ここでページ制御がON(S203−YE
S)であればステップS204に進み中間データを生成
する。
Next, in step S203, step S201
Then, it is determined whether or not the print mode specified in step 2 is page control ON. Here, the page control is ON (S203-YE
If S), the process proceeds to step S204 to generate intermediate data.

【0065】また、前記ステップS203でページ制御
OFF(S203−NO)であれば、通常の印刷処理と
して、本印刷処理システムにおけるページ制御の各ステ
ップをスキップし、ステップS207へ進む。
If the page control is OFF in the step S203 (S203-NO), each step of the page control in the print processing system is skipped as a normal print process, and the process proceeds to a step S207.

【0066】ステップS207では、プリンタ制御コマ
ンド(印刷データ)を生成し、プリンタに出力する。こ
の処理はプリンタ制御コマンド生成プログラム(プリン
タドライバ)が請け負う通常の印刷ステップである。
In step S207, a printer control command (print data) is generated and output to the printer. This process is a normal printing step undertaken by the printer control command generation program (printer driver).

【0067】前記ステップS204で中間データを作成
したら、次にステップS205に進み、前記中間データ
を編集する。
After creating the intermediate data in step S204, the process proceeds to step S205, where the intermediate data is edited.

【0068】次に、ステップS206へ進み、該中間デ
ータを前記プリンタドライバに出力する。
Next, the process proceeds to step S206, where the intermediate data is output to the printer driver.

【0069】次にステップS204の中間データを生成
する方法について図3乃至図5を用いて述べる。
Next, a method of generating intermediate data in step S204 will be described with reference to FIGS.

【0070】図3は本実施形態の図2のステップS20
2において、アプリケーション等から印刷実行を指定し
た時に、本印刷処理システムに渡される文書データの描
画命令を図に示したものである。
FIG. 3 shows step S20 of FIG. 2 of the present embodiment.
2, a drawing command of document data passed to the print processing system when print execution is designated from an application or the like is shown in the figure.

【0071】描画命令は図3に示すように、[ジョブ開
始命令]から始まり[ジョブ終了命令]で終わる。描画
命令には[文字印刷命令]、[図形描画命令]、[イメ
ージ描画命令]、[改ページ命令]等がある。また、各
命令にはそれぞれ、パラメータ情報等も含まれており、
例えば[文字印刷命令]には文字種、文字コード、文字
印刷位置座標、文字幅、文字高さ、文字送り幅、行送り
高さ等の情報も含まれている。
As shown in FIG. 3, the drawing command starts with a [job start command] and ends with a [job end command]. The drawing commands include a “character printing command”, a “graphic drawing command”, an “image drawing command”, a “page break command”, and the like. Also, each instruction includes parameter information etc.
For example, the [character print command] includes information such as a character type, a character code, a character print position coordinate, a character width, a character height, a character feed width, and a line feed height.

【0072】図4は本実施形態の図2のステップS20
2における中間データ生成ステップ、即ち図3の描画命
令から中間データを生成するステップを示したフローチ
ャートである。
FIG. 4 shows step S20 of FIG. 2 of this embodiment.
FIG. 4 is a flowchart showing an intermediate data generation step in FIG. 2, that is, a step of generating intermediate data from the drawing command of FIG.

【0073】まず、図4のステップS401において、
ページカウントNを0に初期化する。
First, in step S401 of FIG.
The page count N is initialized to 0.

【0074】次にステップS402に進み、前記図3で
示した描画命令を最初から順に1命令受け取りMとす
る。
Then, the flow advances to step S402 to receive one of the drawing commands shown in FIG.

【0075】次にステップS403に進み、前記ステッ
プS402で受け取った描画命令Mが[ジョブ開始命
令]か否かを判断する。
Next, the process proceeds to step S403, and it is determined whether or not the drawing command M received in step S402 is a "job start command".

【0076】前記ステップS403で受け取った描画命
令Mが[ジョブ開始命令]であれば(S403−YE
S)、ステップS404に進み、中間データ生成ステッ
プの初期化処理として、中間データを一時保存するため
の中間データファイルをオープンする。
If the drawing command M received in step S403 is a [job start command] (S403-YE
S), the process proceeds to step S404, and an intermediate data file for temporarily storing the intermediate data is opened as an initialization process of the intermediate data generation step.

【0077】次にステップS405へ進み、ページカウ
ントNをN+1とする。
Next, the process proceeds to step S405, where the page count N is set to N + 1.

【0078】次にステップS406へ進み、ページ情報
として、ページ番号Nと現在の一時保存ファイルのアド
レスAnの関係を記録する。ジョブ開始命令によるペー
ジ情報は、ページ番号N=1、ファイルのアドレスAn
=A1となる。
Next, the process proceeds to step S406, where the relationship between the page number N and the address An of the current temporary storage file is recorded as page information. The page information according to the job start command is as follows: page number N = 1, file address An
= A1.

【0079】次にステップS407へ進み、受け取った
描画命令Mを中間データに変換し記録する。
Next, the flow advances to step S407 to convert the received drawing command M into intermediate data and record it.

【0080】次にS402へ進み次の描画命令を受け取
りあらためてMとする。
Next, the flow advances to S402, where the next drawing command is received, and M is set again.

【0081】前記ステップS403で、受け取った描画
命令Mが[ジョブ開始命令]でないときは(S403−
NO)、ステップS408に進み、Mが[改ページ命
令]であるか否かを判断する。
In step S403, if the received drawing command M is not the [job start command] (S403-
NO), the flow advances to step S408, and it is determined whether M is a [page break instruction].

【0082】ステップS408で、Mが[改ページ命
令]であれば(S408−YES)ステップS409へ
進み、ページカウントNをN+1とする。
If it is determined in step S408 that M is a "page break command" (S408-YES), the flow advances to step S409 to set the page count N to N + 1.

【0083】次にステップS410へ進み、ステップS
407と同様に、Mを中間データに変換し記録する。
Next, the process proceeds to step S410,
Similarly to 407, M is converted into intermediate data and recorded.

【0084】次にステップS411へ進み、ページ情報
として、ページ番号Nと現在の一時保存ファイルのアド
レスの関係を記録する。
Next, the process proceeds to step S411, where the relationship between the page number N and the address of the current temporary storage file is recorded as page information.

【0085】次にステップS402へ戻り、次の描画命
令を受け取りあらためてMとする。前記ステップS40
8でMが[改ページ命令]でないときは(S408−N
O)、ステップS412に進み、Mが[ジョブ終了命
令]であるか否かを判断する。
Next, the flow returns to step S402, and the next drawing command is received and is set to M again. Step S40
In step S408-N, if M is not [page break instruction]
O) The process advances to step S412 to determine whether M is a [job end command].

【0086】前記ステップS412で、Mが[ジョブ終
了命令]でないときは(S412−NO)、ステップS
413に進み、その描画命令を中間データに変換し記録
する。そしてステップS402に戻り、次の描画命令を
受け取りあらためてMとする。
If it is determined in step S412 that M is not the "job end command" (S412-NO), the process proceeds to step S412.
In step 413, the rendering command is converted into intermediate data and recorded. Then, the process returns to step S402, where the next drawing command is received and is set to M again.

【0087】前記ステップS412でMが[ジョブ終了
命令]であるときは(S412−YES)、ステップS
414に進み、Mを中間データに変換し記録する。
If M is [Job end command] in step S412 (S412-YES), step S412 is executed.
Proceeding to 414, M is converted to intermediate data and recorded.

【0088】次にステップS415に進み、中間データ
を一時保存する中間データファイルをクローズし、終了
する。
Then, the flow advances to step S415 to close the intermediate data file for temporarily storing the intermediate data, and ends.

【0089】次に、図5を用いて図4のステップS40
6、ステップS411における、ページ情報の記録方法
及び、ステップS407、ステップS410、ステップ
S413、ステップS414における中間データヘの変
換/記録方法について説明する。
Next, referring to FIG. 5, step S40 in FIG.
6. A method for recording page information in step S411 and a method for converting / recording intermediate data in steps S407, S410, S413, and S414 will be described.

【0090】図5は本実施形態の中間データ一時保存フ
ァイルの構造を表すテーブルで、図1におけるハードデ
ィスク装置9等の記憶装置に記憶される。
FIG. 5 is a table showing the structure of an intermediate data temporary storage file according to the present embodiment, which is stored in a storage device such as the hard disk device 9 in FIG.

【0091】図5において、中間データ一時保存ファイ
ルテーブルは大まかにページ情報を記録するページ情報
部と、中間データを記録する中間データ部からなってい
る。
In FIG. 5, the intermediate data temporary storage file table roughly includes a page information section for recording page information and an intermediate data section for recording intermediate data.

【0092】ページ情報部は、図4のステップS40
6、ステップS411におけるページ情報記録ステッ
プ、すなわち、先頭ページ及び改ページが行われた時に
記録される領域であり、現在のページ番号Nとそのペー
ジに対応した現在の中間データの格納アドレスを記録す
る。例えば、図5においてアドレスA1から始まり、ア
ドレスA2までの領域には、1ページ目の中間データを
記録される。また、ページ数Nは、ページ情報記録ステ
ップ毎に更新され、最終的にNは総ページ数が記録され
る。
The page information section determines in step S40 in FIG.
6. The page information recording step in step S411, that is, the area recorded when the first page and a page break are performed, and records the current page number N and the storage address of the current intermediate data corresponding to the page. . For example, in FIG. 5, the intermediate data of the first page is recorded in an area starting from an address A1 and extending to an address A2. The page number N is updated at each page information recording step, and finally, the total page number N is recorded.

【0093】中間データ部は、前記描画命令を別の命令
形式で置き換えた中間データを記録する領域であり、中
間データは、複数の前記描画命令を1つにまとめた形式
にするなど、可能である。
The intermediate data section is an area for recording intermediate data obtained by replacing the drawing command with another command format. The intermediate data can be in a format in which a plurality of the drawing commands are combined into one. is there.

【0094】さらに、本中間データ一時保存ファイル
は、前記図2におけるステップS206において中間デ
ータを出力する際に、ページ単位で出力できるようにも
計られている。
Further, the intermediate data temporary storage file is designed so that it can be output in page units when the intermediate data is output in step S206 in FIG.

【0095】次に、図2のステップS205における中
間データ編集ステップについて前記図5及び図6のフロ
ーチャートを用いて説明する。
Next, the intermediate data editing step in step S205 in FIG. 2 will be described with reference to the flowcharts in FIGS.

【0096】図6は本実施形態の中間データ編集ステッ
プを示すフローチャートである。
FIG. 6 is a flowchart showing the intermediate data editing step of this embodiment.

【0097】まず、ステップS601で、一時保存され
た中間データファイルをオープンする。
First, in step S601, the temporarily stored intermediate data file is opened.

【0098】次にステップS602に進み、前記一時保
存ファイルのページ情報部を読み込む。図5の説明で示
したとおり、ページ情報には、総ページ数N、各ページ
の中間データ記録領域を示すアドレスAn等を含む。
Next, the flow advances to step S602 to read the page information section of the temporary storage file. As described in the description of FIG. 5, the page information includes the total number of pages N, the address An indicating the intermediate data recording area of each page, and the like.

【0099】次にステップS603へ進み、総ページ数
NがN>1か否かを判断する。
Next, the flow advances to step S603 to determine whether or not the total number of pages N is N> 1.

【0100】ステップS603でN>1でなければ(S
603−NO)、ページ数が1ページであるため、中間
データの各編集ステップをスキップし、終了する。
If N> 1 in step S603 (S
603-NO), since the number of pages is one, each editing step of the intermediate data is skipped, and the processing ends.

【0101】ステップS603でN>1であれば(S6
03−YES)、ステップS604へ進み、図5の中間
データ一時保存ファイルテーブルにおけるページ情報部
のページ番号とアドレスより、Nページ目に着目する。
If N> 1 in step S603 (S6
03-YES), the process proceeds to step S604, and focuses on the Nth page from the page number and address of the page information section in the intermediate data temporary storage file table in FIG.

【0102】次にステップS605に進み、Nページ目
の印刷行数をカウントし、Lnとする。
Next, the flow advances to step S605 to count the number of print lines of the Nth page and set it as Ln.

【0103】次にステップS606に進み、Nページ目
の印刷行数Lnが1であるか否かを判断する。本実施形
態では1行を想定しているが、複数行数を設定すること
は可能である(以下同様)。
Next, the flow advances to step S606 to determine whether or not the number Ln of printed lines of the Nth page is one. In this embodiment, one line is assumed, but a plurality of lines can be set (the same applies hereinafter).

【0104】ステップS606でLn=1でなければ
(S606−NO)、ステップS613に進み中間デー
タ一時保存ファイルをクローズし、終了する。
If Ln is not 1 in step S606 (S606-NO), the flow advances to step S613 to close the intermediate data temporary storage file, and ends.

【0105】前記ステップS606において、Ln=1
であれば(S606−YES)、ステップS607に進
み、Nページ目の印刷行の高さを求め、Hlとする。
In step S606, Ln = 1
If it is (S606-YES), the process proceeds to step S607, where the height of the print line of the Nth page is obtained and set to Hl.

【0106】次にステップS608に進み、今度はN−
1ページ目に着目する。
Next, the flow advances to step S608, and this time N-
Focus on the first page.

【0107】次にステップS609に進み、N−1ペー
ジ目の最終余白の高さを計算しHyとする。
Then, the flow advances to step S609 to calculate the height of the last margin of the (N-1) th page and set it as Hy.

【0108】次にステップS610に進み、最終ページ
であるNページの1行が、N−1ページ目の余白に印刷
できるかどうか判断するために、Hl>Hyであるか否
かを判断する。
Next, the flow advances to step S610 to determine whether or not Hl> Hy to determine whether or not one line of the last page N can be printed in the margin of the (N-1) th page.

【0109】前記ステップS610でHl<Hyでなけ
れば(S610−NO)、余白には印刷する領域がない
と判断し、ステップS613に進み中間データ一時保存
ファイルをクローズし、終了する。
If Hl <Hy in step S610 (S610-NO), it is determined that there is no print area in the margin, the flow advances to step S613 to close the intermediate data temporary storage file, and ends.

【0110】前記ステップS610でHl<Hyであれ
ば(S610−YES)、ステップS611に進み、最
終ページ(Nページ)の1行の印刷位置を、N−1ペー
ジ目に変更する。
If Hl <Hy in step S610 (S610-YES), the flow advances to step S611 to change the printing position of one line of the last page (N page) to the (N-1) th page.

【0111】次にステップS612に進み、最終ページ
であるNページ目を削除するがごとく、図5におけるペ
ージ情報部のページ数Nを更新し、及びアドレスANで
始まる、Nページ目の中間データ領域を削除する。
Then, the flow advances to step S612 to update the number N of pages in the page information section in FIG. 5, as in the case of deleting the Nth page, which is the last page, and to store the intermediate data area of the Nth page starting with the address AN. Remove.

【0112】(第2実施形態)次に、本発明に係る第2
の実施の形態を図9に基づき説明する。
(Second Embodiment) Next, a second embodiment according to the present invention will be described.
The embodiment will be described with reference to FIG.

【0113】尚、第2の実施形態における印刷処理装置
の基本構成及び処理動作は、前述した第1実施形態にお
ける図1及び図2と同一であり、これら図1及び図2を
流用して説明する。
The basic configuration and processing operation of the print processing apparatus according to the second embodiment are the same as those in FIGS. 1 and 2 in the first embodiment described above, and will be described with reference to FIGS. 1 and 2. I do.

【0114】この第2実施の形態は、アプリケーション
により複数ページに渡る文書データの印刷処理を指定
し、更にページ制御機能を有する印刷を指定すると、中
間データ書き込みプログラムが、アプリケーションから
受け取った文書データを中間データに変換し、その中間
データを1ページにつき1ファイルとして一時保存し、
さらにページ情報を別ファイルであるページ情報ファイ
ルとして記録する。その後、中間データ読み取りプログ
ラムが前記中間データ一時保存ファイルを読み取り、中
間データを解析し、その解析の結果が、印刷すべき文書
の最後のページが1行のみで、さらに最終ページから1
ページ前の最後の行の後に前記最終ページの1行が印刷
可能であれば、該最終ページの1行を前記最終ページの
最後の行の後に印刷するように中間データを編集し、印
刷されるべき最終ページを削除する。その後、該中間デ
ータ読み取りプログラムが、該中間データを、プリンタ
制御コマンド作成プログラム(プリンタドライバ)或は
その前段ステップに介在するプログラムに出力し、最終
的に前記プリンタ制御コマンド作成プログラム(プリン
タドライバ)がプリンタ制御コマンド(印刷データ)を
生成し、印刷を行うものである。
According to the second embodiment, when an application specifies printing processing of document data over a plurality of pages and further specifies printing having a page control function, the intermediate data writing program converts the document data received from the application into an intermediate data writing program. Convert to intermediate data, temporarily store the intermediate data as one file per page,
Further, the page information is recorded as a separate page information file. Then, the intermediate data reading program reads the intermediate data temporary storage file, analyzes the intermediate data, and finds that the result of the analysis is that the last page of the document to be printed is only one line, and that
If one line of the last page is printable after the last line before the page, the intermediate data is edited and printed so that one line of the last page is printed after the last line of the last page. Delete the last page that should be. Thereafter, the intermediate data reading program outputs the intermediate data to a printer control command creation program (printer driver) or a program interposed in a preceding step, and finally, the printer control command creation program (printer driver) A printer control command (print data) is generated and printing is performed.

【0115】この第2の実施形態が前述した第1の実施
形態と異なる点は、図2のステップS204における中
間データ一時保存ファイルの生成の方法及びステップS
205に中間データの編集方法、さらに図5における中
間データ一時保存ファイルの形式が違うものであり、そ
の他の処理は同じである。従ってここでは、この2つの
ステップS204における中間データ一時保存ファイル
の生成の方法及びステップS205に中間データの編集
方法を説明する。また、中間データ一時保存ファイルの
構造について説明する。
The second embodiment is different from the first embodiment in that a method for generating an intermediate data temporary storage file in step S204 in FIG.
An intermediate data editing method 205 and a format of the intermediate data temporary storage file in FIG. 5 are different, and the other processes are the same. Therefore, here, the method of generating the intermediate data temporary storage file in these two steps S204 and the method of editing the intermediate data in step S205 will be described. The structure of the intermediate data temporary storage file will be described.

【0116】まず図2のステップS204における中間
データを生成する第2の実施形態の例を図7を用いて説
明する。
First, an example of the second embodiment for generating intermediate data in step S204 in FIG. 2 will be described with reference to FIG.

【0117】まず、図7のステップS701において、
ページカウントNを0に初期化する。
First, in step S701 in FIG.
The page count N is initialized to 0.

【0118】次にステップS702に進み、前記図3で
示した描画命令を最初から順に1命令受け取りMとす
る。
Then, the flow advances to step S702 to receive one of the drawing commands shown in FIG.

【0119】次にステップS703に進み、前記ステッ
プS702で受け取った描画命令Mが[ジョブ開始命
令]か否かを判断する。
Next, the flow advances to step S703 to determine whether or not the drawing command M received in step S702 is a "job start command".

【0120】前記ステップS703で受け取った描画命
令Mが[ジョブ開始命令]であれば(S703−YE
S)、ステップS704に進み、ページ情報を記録する
ためのページ情報ファイルをオープンする。
If the drawing command M received in step S703 is a [job start command] (S703-YE
S), proceed to step S704 to open a page information file for recording page information.

【0121】次にステップS705へ進み、1ページ目
の中間データを一時保存するための中間データファイル
をオープンする。
Then, the flow advances to step S705 to open an intermediate data file for temporarily storing the intermediate data of the first page.

【0122】次にステップS706進み、ページカウン
トNをN+1とする。
Then, the process proceeds to a step S706, wherein the page count N is set to N + 1.

【0123】次にステップS707へ進み、ページ情報
として、ページ番号Nと前記ステップS704でオープ
ンした中間データ一時保存ファイルのファイル名Fを記
録する。
Then, the flow advances to step S707 to record the page number N and the file name F of the intermediate data temporary storage file opened in step S704 as page information.

【0124】次にステップS708へ進み、受け取った
描画命令Mを中間データに変換し前記オープンした中間
データ一時保存ファイルに記録する。
Then, the flow advances to step S708 to convert the received drawing command M into intermediate data and record it in the opened intermediate data temporary storage file.

【0125】次にS702へ進み次の描画命令を受け取
りあらためてMとする。
Next, the flow advances to step S702 to receive the next drawing command and set it to M again.

【0126】前記ステップS703で、受け取った描画
命令Mが[ジョブ開始命令]でないときは(S703−
NO)、ステップS709に進み、Mが[改ページ命
令]であるか否かを判断する。
If it is determined in step S703 that the received drawing command M is not a "job start command" (S703-
NO), the flow advances to step S709 to determine whether or not M is a [page break instruction].

【0127】ステップS709で、Mが[改ページ命
令]であれば(S709−YES)、ステップS710
へ進み、ステップS708と同様に、Mを中間データに
変換し記録する。
If it is determined in step S709 that M is [page break command] (S709-YES), step S710 is executed.
Then, as in step S708, M is converted to intermediate data and recorded.

【0128】次にステップS711へ進み、現在記録し
ているNページ目の中間データ一時保存ファイルをクロ
ーズする。
Then, the flow advances to step S711 to close the temporarily stored intermediate data file of the Nth page currently being recorded.

【0129】次にステップS712へ進み、ページカウ
ントNをN+1とする。
Next, the flow advances to step S712 to set the page count N to N + 1.

【0130】次にステップS713へ進み、Nページ目
の中間データを一時保存するための中間データファイル
を新規にオープンする。
Then, the flow advances to step S713 to newly open an intermediate data file for temporarily storing intermediate data of the Nth page.

【0131】次にステップS714に進み、ページ情報
として、ページ番号Nと前記ステップS713でオープ
ンした中間データ一時保存ファイルのファイル名FNを
記録する。
Then, the flow advances to step S714 to record the page number N and the file name FN of the intermediate data temporary storage file opened in step S713 as page information.

【0132】次にステップS702へ戻り、次の描画命
令を受け取りあらためてMとする。
Next, the flow returns to step S702, and the next drawing command is received and set to M again.

【0133】前記ステップS709でMが[改ページ命
令]でないときは(S709−NO)、ステップS71
5に進み、Mが[ジョブ終了命令]であるか否かを判断
する。
If M is not [page break command] in step S709 (S709-NO), step S71
Proceed to 5 to determine whether M is a [job end command].

【0134】前記ステップS715で、Mが[ジョブ終
了命令]でないときは(S715−NO)、ステップS
716に進み、その描画命令を中間データに変換し記録
する。そしてステップS702に戻り、次の描画命令を
受け取りあらためてMとする。
If it is determined in step S715 that M is not the “job end command” (S715: NO), the process proceeds to step S715.
Proceeding to 716, the rendering command is converted into intermediate data and recorded. Then, the process returns to step S702, where the next drawing command is received and set to M again.

【0135】前記ステップS715でMが[ジョブ終了
命令]であるときは(S715−YES)、ステップS
717に進み、Mを中間データに変換し記録する。
If M is [Job end command] in step S715 (S715-YES), step S715 is executed.
Proceeding to 717, M is converted into intermediate data and recorded.

【0136】次にステップS718に進み、現在参照し
ている中間データを一時保存する中間データ一時保存フ
ァイルをクローズする。
Next, the flow advances to step S718 to close the intermediate data temporary storage file for temporarily storing the currently referred intermediate data.

【0137】次にステップS719に進み、ページ情報
を記録したページ情報一時保存ファイルをクローズし、
終了する。
Then, the flow advances to step S719 to close the page information temporary storage file in which the page information is recorded, and
finish.

【0138】図8は第2の実施形態の中間データ一時保
存ファイルの構造を表すテーブルで、図1におけるハー
ドディスク装置9等の記憶装置に記憶される。
FIG. 8 is a table showing the structure of an intermediate data temporary storage file according to the second embodiment, which is stored in a storage device such as the hard disk device 9 in FIG.

【0139】図8において、一時保存ファイルは、ペー
ジ情報を記録するページ情報一時保存ファイルと、各ペ
ージ毎に中間データを記録するため一時保存ファイルか
らなっている。
In FIG. 8, the temporary storage file includes a page information temporary storage file for recording page information and a temporary storage file for recording intermediate data for each page.

【0140】ページ情報一時保存ファイルは、図7のス
テップS707、ステップS714におけるページ情報
記録ステップ、すなわち、先頭ページ及び改ページが行
われた時に記録されるファイルであり、現在のページ番
号Nとそのページに対応した中間データ一時保存ファイ
ルのファイル名Fを記録する。例えば、図8においてフ
ァイル名F1は、1ページ目の中間データを記録するフ
ァイルである。また、ページ数Nは、ページ情報記録ス
テップ毎に更新され、最終的にNは総ページ数が記録さ
れる。
The page information temporary storage file is a file that is recorded when the page information is recorded in steps S707 and S714 of FIG. 7, that is, when the first page and a page break are performed. The file name F of the intermediate data temporary storage file corresponding to the page is recorded. For example, in FIG. 8, the file name F1 is a file for recording the intermediate data of the first page. The page number N is updated at each page information recording step, and finally, the total page number N is recorded.

【0141】中間データ一時保存ファイルは、前記描画
命令を別の命令形式で置き換えた中間データを記録する
領域であり、ページ毎に生成される。
The intermediate data temporary storage file is an area for recording intermediate data obtained by replacing the drawing command with another command format, and is generated for each page.

【0142】次に、図2のステップS205における中
間データ編集ステップについての第2の実施形態の例を
前記図8及び図9のフローチャートを用いて説明する。
Next, an example of the second embodiment of the intermediate data editing step in step S205 of FIG. 2 will be described with reference to the flowcharts of FIGS.

【0143】図9は本実施形態の中間データ編集ステッ
プを示すフローチャートである。
FIG. 9 is a flowchart showing the intermediate data editing step of this embodiment.

【0144】まず、ステップS901で、一時保存され
たページ情報ファイルをオープンする。
First, in step S901, the temporarily stored page information file is opened.

【0145】次にステップS902に進み、前記一時保
存ファイルのページ情報部を読み込む。図8の説明で示
したとおり、ページ情報には、総ページ数N、各ページ
の中間データ記録ファイルのファイル名Fn等を含む。
Then, the flow advances to step S902 to read the page information section of the temporary storage file. As described in the description of FIG. 8, the page information includes the total number of pages N, the file name Fn of the intermediate data recording file of each page, and the like.

【0146】次にステップS903へ進み、総ページ数
NがN>1か否かを判断する。
Next, the flow advances to step S903 to determine whether or not the total number of pages N is N> 1.

【0147】ステップS903でN>1でなければ(S
903−NO)、ページ数が1ページであるため、中間
データの各編集ステップをスキップし、終了する。
If N> 1 in step S903 (S
903-NO), since the number of pages is one, each editing step of the intermediate data is skipped, and the processing ends.

【0148】ステップS903でN>1であれば(S9
03−YES)、ステップS904へ進み、前記ステッ
プS902で読み取ったページ番号とそれに対応するフ
ァイル名から、Nページ目に相当する中間データファイ
ルFnをオープンする。
If N> 1 in step S903 (S9)
03-YES), the process proceeds to step S904, and an intermediate data file Fn corresponding to the Nth page is opened based on the page number read in step S902 and the corresponding file name.

【0149】次にステップS905に進み、Nページ目
の印刷行数をカウントし、Lnとする。
Next, the flow advances to step S905 to count the number of print lines of the Nth page and set it as Ln.

【0150】次にステップS906に進み、Nページ目
の印刷行数Lnが1であるか否かを判断する。
The flow advances to step S906 to determine whether or not the number Ln of printed lines of the Nth page is one.

【0151】ステップS906でLn=1でなければ
(S906−NO)、ステップS914に進み、ページ
情報記録ファイルとNページ目の中間データファイルを
クローズし、終了する。
If Ln is not 1 in step S906 (S906: NO), the flow advances to step S914 to close the page information recording file and the intermediate data file of the Nth page, and the processing ends.

【0152】前記ステップS906において、Ln=1
であれば(S906−YES)、ステップS907に進
み、Nページ目の印刷行の高さを求め、Hlとする。
In the step S906, Ln = 1
If it is (S906-YES), the process proceeds to step S907, where the height of the print line of the Nth page is obtained and set to Hl.

【0153】次にステップS908に進み、今度はN−
1ページ目の中間データファイルをオープンする。
Next, the flow advances to step S908, and this time N-
Open the first page intermediate data file.

【0154】次にステップS909に進み、N−1ペー
ジ目の最終余白の高さを計算しHyとする。
Next, the flow advances to step S909 to calculate the height of the last margin of the (N-1) th page and set it as Hy.

【0155】次にステップS910に進み、最終ページ
であるNページの1行が、N−1ページ目の余白に印刷
できるかどうか判断するために、Hl>Hyであるか否
かを判断する。
Next, the flow advances to step S910 to determine whether or not Hl> Hy to determine whether one line of the last page, page N, can be printed in the margin of page N-1.

【0156】前記ステップS910でHl<Hyでなけ
れば(S910−NO)、余白には印刷する領域がない
と判断し、ステップS914に進み、ページ情報記録フ
ァイルとNページ目の中間データファイル、N−1ペー
ジ目の中間データファイルをクローズし、終了する。
If Hl <Hy is not satisfied in step S910 (S910-NO), it is determined that there is no print area in the margin, and the flow advances to step S914, where the page information recording file and the Nth intermediate data file, N Close the intermediate data file of the -1st page and end.

【0157】前記ステップS910でHl<Hyであれ
ば(S910−YES)、ステップS911に進み、最
終ページ(Nページ)の1行の印刷位置を、N−1ペー
ジ目に変更する。
If Hl <Hy in step S910 (S910-YES), the flow advances to step S911 to change the printing position of one line of the last page (N page) to the (N-1) th page.

【0158】次にステップS912に進み、オープンし
たページ情報ファイル、Nページ目の中間データファイ
ル、N−1ページ目の中間データファイルをクローズす
る。
The process advances to step S912 to close the opened page information file, the Nth page intermediate data file, and the (N-1) th page intermediate data file.

【0159】次にステップS913に進み、最終ページ
であるNページ目を削除するがごとく、図8におけるペ
ージ情報ファイルのページ数Nを更新し、ファイル名F
Nで示される、Nページ目の中間データファイルを削除
する。
Then, the flow advances to step S913 to update the page number N of the page information file in FIG.
The intermediate data file of the Nth page indicated by N is deleted.

【0160】(第3実施形態)次に、本発明に係る第3
の実施の形態を説明する。
(Third Embodiment) Next, a third embodiment according to the present invention will be described.
An embodiment will be described.

【0161】尚、第3の実施形態における印刷処理装置
の基本構成及び処理動作は、前述した第1実施形態にお
ける図1及び図2と同一であり、これら図1及び図2を
流用して説明する。
Note that the basic configuration and processing operation of the print processing apparatus according to the third embodiment are the same as those in FIGS. 1 and 2 in the first embodiment, and will be described with reference to FIGS. 1 and 2. I do.

【0162】この第3実施の形態は、前述した第1実施
の形態における中間データ編集ステップにおいて、印刷
すべき文書の最後のページが1行のみで、さらに最終ペ
ージから1ページ前の最後の行の後に前記最終ページの
1行が印刷可能であり、さらに前記最終ページの1行の
文字属性と前記最終ページから1ページ前の最後の行の
文字属性が同じである時、該最終ページの1行を前記最
終ページの最後の行の後に印刷するように中間データを
編集し、印刷されるべき最終ページを削除するものであ
る。
In the third embodiment, in the intermediate data editing step in the first embodiment, the last page of the document to be printed is only one line, and the last line one page before the last page. After one line of the last page can be printed, and when the character attribute of one line of the last page and the character attribute of the last line one page before the last page are the same, The intermediate data is edited so that a line is printed after the last line of the last page, and the last page to be printed is deleted.

【0163】この第3の実施形態が前述した第1の実施
形態と異なる点は、図6のステップS610における最
終ページの行高さとその1ページ前の最終余白高さを比
較する次のステップとして、両者の文字属性の判断ステ
ップをいれた点が異なるだけであり、その他の処理は同
じである。従ってここでは、このステップについて説明
し他のステップについては説明を省略する本第3の実施
形態においては、図6のステップS610の次に最終ペ
ージの文字属性と1ページ前の最終行の文字属性とが同
じであるか否かを判断するステップを挿入する。
The third embodiment is different from the above-described first embodiment in that the next step of comparing the line height of the last page and the height of the last margin one page before in step S610 in FIG. However, the only difference is that a step of judging the character attribute of both is added, and the other processes are the same. Therefore, here, this step will be described and the other steps will not be described. In the third embodiment, the character attribute of the last page and the character attribute of the last line one page before after step S610 in FIG. Is inserted to determine whether or not is the same.

【0164】前記ステップで文字属性が同じであればス
テップS611に進む。前記ステップで文字属性が異な
れば、中間データ一時保存ファイルをクローズし終了す
る。
If the character attributes are the same in the above step, the flow advances to step S611. If the character attributes are different in the above step, the intermediate data temporary storage file is closed and the process ends.

【0165】尚、文字属性には、文字種(フォントファ
イル名)、印刷サイズ(ポイントサイズ)等が有り、す
べて一致した場合に印刷位置変更可能と判断することも
可能であるし、どれか1つが一致した場合に印刷位置変
更可能と判断することも可能である。 (第4実施形態)次に、本発明に係る第4の実施の形態
を説明する。
The character attributes include a character type (font file name), a print size (point size), and the like. If all of them match, it can be determined that the print position can be changed. If they match, it can be determined that the print position can be changed. (Fourth Embodiment) Next, a fourth embodiment according to the present invention will be described.

【0166】第4の実施形態における印刷処理装置の基
本構成及び処理動作は、前述した第1実施形態における
図1及び図2と同一であり、これら図1及び図2を流用
して説明する。
The basic configuration and processing operation of the print processing apparatus according to the fourth embodiment are the same as those in FIGS. 1 and 2 according to the first embodiment, and will be described with reference to FIGS. 1 and 2.

【0167】この第4実施の形態は、前述した第3実施
の形態と同様な処理ステップを第2の実施の形態にあて
はめたものである。即ち、前述した第2の実施形態にお
ける中間データ編集ステップにおいて、印刷すべき文書
の最後のページが1行のみで、さらに最終ページから1
ページ前の最後の行の後に前記最終ページの1行が印刷
可能であり、さらに前記最終ページの1行の文字属性と
前記最終ページから1ページ前の最後の行の文字属性が
同じである時、該最終ページの1行を前記最終ページの
最後の行の後に印刷するように中間データを編集し、印
刷されるべき最終ページを削除するものである。
In the fourth embodiment, the same processing steps as those in the third embodiment described above are applied to the second embodiment. That is, in the intermediate data editing step in the second embodiment described above, the last page of the document to be printed is only one line,
When one line of the last page is printable after the last line before the page, and the character attribute of one line of the last page is the same as the character attribute of the last line one page before the last page The intermediate data is edited so that one line of the last page is printed after the last line of the last page, and the last page to be printed is deleted.

【0168】この第4の実施形態が前述した第2の実施
形態と異なる点は、図9のステップS910における最
終ページの行高さとその1ページ前の最終余白高さを比
較する次のステップとして、両者の文字属性の判断ステ
ップをいれた点が異なるだけであり、その他の処理は同
じである。従ってここでは、このステップについて説明
し他のステップについては説明を省略する本第4の実施
形態においては、図9のステップS910の次に最終ペ
ージの文字属性と1ページ前の最終行の文字属性とが同
じであるか否かを判断するステップを挿入する。
The fourth embodiment is different from the above-described second embodiment in that the next step of comparing the line height of the last page in step S910 in FIG. However, the only difference is that a step of judging the character attribute of both is added, and the other processes are the same. Therefore, here, this step will be described, and description of the other steps will be omitted. In the fourth embodiment, the character attribute of the last page and the character attribute of the last line one page before after step S910 in FIG. Is inserted to determine whether or not is the same.

【0169】前記ステップで文字属性が同じであればス
テップS911に進む。前記ステップで文字属性が異な
れば、中間データ一時保存ファイルをクローズし終了す
る。
If the character attributes are the same in the above step, the flow advances to step S911. If the character attributes are different in the above step, the intermediate data temporary storage file is closed and the process ends.

【0170】同文字属性には、文字種(フォントファイ
ル名)、印刷サイズ(ポイントサイズ)等が有り、すべ
て一致した場合に印刷位置変更可能と判断することも可
能であるし、或いはどれか1つが一致した場合に印刷位
置変更可能と判断することも可能である。
The character attributes include a character type (font file name), a print size (point size), and the like. If all of them match, it can be determined that the print position can be changed, or one of them can be changed. If they match, it can be determined that the print position can be changed.

【0171】尚、本発明は、複数の機器から構成される
システムに適用しても、1つの機器から成る装置に適用
してもよい。
The present invention may be applied to a system composed of a plurality of devices or an apparatus composed of one device.

【0172】また、本発明はシステム或は装置にプログ
ラムを供給することによって達成される場合にも適用で
きることはいうまでもない。
It is needless to say that the present invention can be applied to a case where the present invention is achieved by supplying a program to a system or an apparatus.

【0173】この場合、本発明に係るプログラムを格納
した記憶媒体が、本発明を構成することになる。そし
て、該記憶媒体からそのプログラムをシステム或いは装
置に読み込ませることになる。そして、記憶媒体からそ
のプログラムをシステム或いは装置に読み込ませること
によって、そのシステム或いは装置が予め定められた方
法で動作する。
In this case, the storage medium storing the program according to the present invention constitutes the present invention. Then, the program is read into the system or the device from the storage medium. Then, by reading the program from the storage medium into the system or the device, the system or the device operates in a predetermined method.

【0174】本実施形態では、フロッピーディスク(F
D)8から本印刷処理プログラム及び関連データを直接
RAM12にロードして実行させる例を示したが、この
他にフロッピーディスク(FD)8から本印刷処理プロ
グラムおよび関連データを一旦ハードディスク装置(H
D)に格納(インストール)しておき、本印刷処理プロ
グラムを動作させる時にハードディスク装置(HD)か
らRAM12にロードするようにしてもよい。
In this embodiment, the floppy disk (F
D) The example in which the print processing program and the related data are directly loaded into the RAM 12 and executed from the RAM 8 has been described. In addition to this, the print processing program and the related data are temporarily stored in the hard disk device (H
D), and may be loaded from the hard disk device (HD) to the RAM 12 when the print processing program is operated.

【0175】また、本印刷処理プログラムを記録する媒
体は、フロッピーディスク以外に、磁気テープ、CD−
ROM、ICメモリカード、DVD等であってもよい。
The medium for recording the print processing program is not limited to a floppy disk, but may be a magnetic tape or a CD-ROM.
It may be a ROM, an IC memory card, a DVD, or the like.

【0176】さらに、本印刷プログラムをROM13に
記憶しておき、これをメモリマップの一部となすように
構成し、直接CPU11で実行することも可能である。
Further, the printing program may be stored in the ROM 13 and configured to be a part of the memory map, and may be directly executed by the CPU 11.

【0177】[0177]

【他の実施形態】なお、本発明は、複数の機器(例えば
ホストコンピュータ,インタフェイス機器,リーダ,プ
リンタなど)から構成されるシステムに適用しても、一
つの機器からなる装置(例えば、複写機,ファクシミリ
装置など)に適用してもよい。
[Other Embodiments] Even if the present invention is applied to a system including a plurality of devices (for example, a host computer, an interface device, a reader, a printer, etc.), an apparatus (for example, a copying machine) Machine, facsimile machine, etc.).

【0178】また、本発明の目的は、前述した実施形態
の機能を実現するソフトウェアのプログラムコードを記
録した記憶媒体を、システムあるいは装置に供給し、そ
のシステムあるいは装置のコンピュータ(またはCPU
やMPU)が記憶媒体に格納されたプログラムコードを
読出し実行することによっても、達成されることは言う
までもない。
Further, an object of the present invention is to supply a storage medium storing a program code of software for realizing the functions of the above-described embodiments to a system or apparatus, and to provide a computer (or CPU) of the system or apparatus.
And MPU) read and execute the program code stored in the storage medium.

【0179】さらに、記憶媒体から読出されたプログラ
ムコードが、コンピュータに挿入された機能拡張ボード
やコンピュータに接続された機能拡張ユニットに備わる
メモリに書込まれた後、そのプログラムコードの指示に
基づき、その機能拡張ボードや機能拡張ユニットに備わ
るCPUなどが実際の処理の一部または全部を行い、そ
の処理によって前述した実施形態の機能が実現される場
合も含まれることは言うまでもない。
Further, after the program code read from the storage medium is written into a memory provided in a function expansion board inserted into the computer or a function expansion unit connected to the computer, based on the instruction of the program code, It goes without saying that the CPU included in the function expansion board or the function expansion unit performs part or all of the actual processing, and the processing realizes the functions of the above-described embodiments.

【0180】本発明を上記記憶媒体に適用する場合、そ
の記憶媒体には、先に説明したフローチャートに対応す
るプログラムコードを格納することになるが、簡単に説
明すると、図12のメモリマップ例に示す各モジュール
を記憶媒体に格納することになる。すなわち、少なくと
も「印刷モード指示モジュール1201」、「印刷指定
モジュール1202」、「ページ制御判断モジュール1
203」、「中間データ生成モジュール1204」、
「中間データ保存モジュール1205」、「ページ情報
記録モジュール1206」、「中間データ編集モジュー
ル1207」、「中間データ出力モジュール120
8」、「印刷データ生成モジュール1209」、「印刷
データ出力モジュール1210」、「印刷判断モジュー
ル1211」、「印刷位置編集モジュール1212」、
「ページ削除モジュール1213」、「印刷属性判断モ
ジュール1214」の各モジュールのプログラムコード
を記憶媒体に格納すればよい。尚、本実施形態では、印
刷属性判断モジュール1214は、第2の印刷判断工程
の処理を行なうために機能する。
When the present invention is applied to the storage medium, the storage medium stores program codes corresponding to the above-described flowcharts. Each module shown will be stored in a storage medium. That is, at least “print mode instruction module 1201”, “print designation module 1202”, “page control determination module 1”
203 ”,“ intermediate data generation module 1204 ”,
“Intermediate data storage module 1205”, “Page information recording module 1206”, “Intermediate data editing module 1207”, “Intermediate data output module 120”
8, "print data generation module 1209", "print data output module 1210", "print determination module 1211", "print position editing module 1212",
The program codes of the “page deletion module 1213” and the “print attribute determination module 1214” may be stored in a storage medium. In the present embodiment, the print attribute determination module 1214 functions to perform the processing of the second print determination step.

【0181】印刷装置としてレーザビームプリンタを用
いても良い。図13はこの場合のレーザビームプリンタ
(以下、LBPと略す)の内部構造を示す断面図で、こ
のLBPは、文字パターンデータ等を入力して記録紙に
印刷することができる。
A laser beam printer may be used as a printing device. FIG. 13 is a cross-sectional view showing the internal structure of a laser beam printer (hereinafter abbreviated as LBP) in this case. The LBP can input character pattern data or the like and print it on recording paper.

【0182】図13において、1340はLBP本体で
あり、供給される文字パターン等を基に、記録媒体であ
る記録紙上に像を形成する。1300は操作のためのス
イツチ及びLED表示器などが配されている操作パネ
ル、1301はLBP1340全体の制御及び文字パタ
ーン情報等を解析するプリンタ制御ユニツトである。こ
のプリンタ制御ユニツト1301は主に文字パターン情
報をビデオ信号に変換してレーザドライバ1302に出
力する。
In FIG. 13, reference numeral 1340 denotes an LBP main body, which forms an image on a recording paper as a recording medium based on a supplied character pattern or the like. Reference numeral 1300 denotes an operation panel on which switches and LED indicators for operation are arranged, and 1301 denotes a printer control unit for controlling the entire LBP 1340 and analyzing character pattern information and the like. The printer control unit 1301 mainly converts character pattern information into a video signal and outputs the video signal to the laser driver 1302.

【0183】レーザドライバ1302は半導体レーザ1
303を駆動するための回路であり、入力されたビデオ
信号に応じて半導体レーザ1303から発射されるレー
ザ光1304をオン・オフ切替えする。レーザ光130
4は回転多面鏡1305で左右方向に振られて静電ドラ
ム1306上を走査する。これにより、静電ドラム13
06上には文字パターンの静電潜像が形成される。この
潜像は静電ドラム1306周囲の現像ユニツト1307
により現像された後、記録紙に転写される。この記録紙
にはカットシートを用い、カットシート記録紙はLBP
1340に装着した複数種の用紙に対応した複数の用紙
カセツト1308に収納され、給紙ローラ1309及び
搬送ローラ1310と1311とにより装置内に取込ま
れて、静電ドラム1306に供給される。
The laser driver 1302 is the semiconductor laser 1
This is a circuit for driving the laser beam 303, and switches on / off a laser beam 1304 emitted from the semiconductor laser 1303 according to an input video signal. Laser light 130
Numeral 4 is swung right and left by a rotating polygon mirror 1305 to scan on an electrostatic drum 1306. Thereby, the electrostatic drum 13
On 06, an electrostatic latent image of a character pattern is formed. This latent image is stored in a developing unit 1307 around the electrostatic drum 1306.
And then transferred to recording paper. This recording paper uses a cut sheet, and the cut sheet recording paper is LBP
The sheet is accommodated in a plurality of sheet cassettes 1308 corresponding to a plurality of kinds of sheets attached to the sheet 1340, taken in the apparatus by a sheet feeding roller 1309 and conveying rollers 1310 and 1311, and supplied to an electrostatic drum 1306.

【0184】尚、本実施例の印刷装置として、レーザビ
ームプリンタを例にして説明したが、これに限定される
ものでなく、以下で説明するインクジェットプリンタ等
にも適応可能である。 図14は、不図示であるが複数
種の用紙を印刷ジョブに対応して給紙可能であるインク
ジェット記録装置IJRAの概観図である。同図におい
て、駆動モータ1413の正逆回転に連動して駆動力伝
達ギア1411,1409を介して回転するリードスク
リュー1405の螺旋溝1404に対して係合するキャ
リッジHCはピン(不図示)を有し、矢印a,b方向に
往復移動される。このキャリッジHCには、インクジェ
ットカートリッジIJCが搭載されている。1402は
紙押え板であり、キャリッジの移動方向に亙って紙をプ
ラテン1400に対して押圧する。1407,1408
はフォトカプラで、キャリッジのレバー1406のこの
域での存在を確認して、モータ1413の回転方向切り
換え等を行うためのホームポジション検知手段である。
1416は記録ヘッドの前面をキャップするキャップ部
材1422を支持する部材で、1415はこのキャップ
内を吸引する吸引手段で、キャップ内開口1423を介
して記録ヘッドの吸引回復を行う。1417はクリーニ
ングブレードで、1419はこのブレードを前後方向に
移動可能にする部材であり、本体支持板1418にこれ
らが支持されている。ブレードは、この形態でなく周知
のクリーニングブレードが本例に適用できることは言う
までもない。又、1421は、吸引回復の吸引を開始す
るためのレバーで、キャリッジと係合するカム1420
の移動に伴って移動し、駆動モータからの駆動力がクラ
ッチ切り換え等の公知の伝達手段で移動制御される。こ
れらのキャッピング、クリーニング、吸引回復は、キャ
リッジがホームポジション側の領域に来た時にリードス
クリュー1405の作用によってそれらの対応位置で所
望の処理が行えるように構成されているが、周知のタイ
ミングで所望の作動を行うようにすれば、本例にはいず
れも適用できる。
The printing apparatus of this embodiment has been described by taking a laser beam printer as an example. However, the present invention is not limited to this, and can be applied to an ink jet printer described below. FIG. 14 is a schematic view of an inkjet recording apparatus IJRA (not shown) capable of feeding a plurality of types of sheets in accordance with a print job. In the figure, the carriage HC that engages with the spiral groove 1404 of the lead screw 1405 that rotates via the driving force transmission gears 1411 and 1409 in conjunction with the forward and reverse rotation of the drive motor 1413 has a pin (not shown). Then, it is reciprocated in the directions of arrows a and b. An ink jet cartridge IJC is mounted on the carriage HC. Reference numeral 1402 denotes a paper pressing plate, which presses the paper against the platen 1400 in the moving direction of the carriage. 1407, 1408
Is a home position detecting means for confirming the presence of the carriage lever 1406 in this region and switching the rotation direction of the motor 1413 and the like.
Reference numeral 1416 denotes a member that supports a cap member 1422 that caps the front surface of the print head. Reference numeral 1415 denotes suction means that suctions the inside of the cap, and performs suction recovery of the print head through an opening 1423 in the cap. Reference numeral 1417 denotes a cleaning blade. Reference numeral 1419 denotes a member that enables the blade to move in the front-rear direction. These members are supported by a main body support plate 1418. It goes without saying that the blade is not limited to this form and a known cleaning blade can be applied to this example. Reference numeral 1421 denotes a lever for starting suction for suction recovery, and a cam 1420 for engaging with the carriage.
The driving force from the driving motor is controlled by known transmission means such as clutch switching. The capping, cleaning, and suction recovery are configured so that desired operations can be performed at the corresponding positions by the action of the lead screw 1405 when the carriage comes to the area on the home position side. If this operation is performed, any of the present embodiments can be applied.

【0185】次に、上述した装置の記録制御を実行する
ための制御構成について、図15に示すブロック図を参
照して説明する。制御回路を示す同図において、150
0は記録信号を入力するインターフェース、1501は
MPU、1502はMPU1501が実行する制御プロ
グラムを格納するプログラムROM、1503は各種デ
ータ(上記記録信号やヘッドに供給される記録データ
等)を保存しておくダイナミック型のROMである。1
504は記録ヘッド1508に対する記録データの供給
制御を行うゲートアレイであり、インターフェース15
00、MPU1501、RAM1503間のデータ転送
制御も行う。1510は記録ヘッド1508を搬送する
ためのキャリアモータ、1509は記録紙搬送のための
搬送モータである。1505はヘッドを駆動するヘッド
ドライバ、1506、1507はそれぞれ搬送モータ1
509、キャリアモータ1510を駆動するためのモー
タドライバである。
Next, a control configuration for executing the recording control of the above-described apparatus will be described with reference to a block diagram shown in FIG. In the figure showing the control circuit, 150
Reference numeral 0 denotes an interface for inputting a print signal, 1501 denotes an MPU, 1502 denotes a program ROM for storing a control program executed by the MPU 1501, and 1503 stores various data (such as the print signal and print data supplied to the head). It is a dynamic ROM. 1
A gate array 504 controls supply of print data to the print head 1508.
00, data transfer control between the MPU 1501 and the RAM 1503 is also performed. Reference numeral 1510 denotes a carrier motor for transporting the recording head 1508, and reference numeral 1509 denotes a transport motor for transporting the recording paper. Reference numeral 1505 denotes a head driver for driving the head, and reference numerals 1506 and 1507 denote transport motors 1 respectively.
Reference numeral 509 denotes a motor driver for driving the carrier motor 1510.

【0186】上記制御構成の動作を説明すると、インタ
ーフェース1500に記録信号が入るとゲートアレイ1
504とMPU1501との間で記録信号がプリント用
の記録データに変換される。そして、モータドライバ1
506、1507が駆動されると共に、ヘッドドライバ
1505に送られた記録データに従って記録ヘッドが駆
動され、印刷が行われる。
The operation of the above control configuration will be described. When a recording signal enters the interface 1500, the gate array 1
A print signal is converted into print data for printing between the 504 and the MPU 1501. And the motor driver 1
The printheads 506 and 1507 are driven, and the printhead is driven according to the print data sent to the head driver 1505 to perform printing.

【0187】以上のようなインクジェットプリンタの制
御構成に、本発明の構成要素を組み込むことも可能であ
り、本発明はレーザビームプリンタに限らず、上記イン
クジェットプリンタ等にも適用できることは明らかであ
る。
The components of the present invention can be incorporated into the above-described control structure of the ink jet printer, and it is apparent that the present invention can be applied not only to the laser beam printer but also to the above ink jet printer.

【0188】[0188]

【発明の効果】以上説明したように本発明の図形処理方
法及び装置及び記憶媒体によれば、ページ単位で印刷す
る機能を有するプリンタと、該プリンタと接続されたパ
ーソナルコンピュータ等の情報処理装置からなるシステ
ムであって、さらに、前記情報処理装置上の印刷処理に
おいて、前記プリンタに送信すべき印刷データを生成す
る前に、前記印刷データと異なるデータ形式の中間デー
タを生成し、前記中間データを一時保存し、該中間デー
タから印刷データを生成することが可能な印刷処理シス
テムにおいて、印刷モードが指定され、印刷の実行が指
示され、前記印刷モードにしたがってページ制御を行う
か否かが判断され、前記中間データ生成し一時保存する
際に、前記プリンタに送信すべき印刷データのページ情
報が記録され、前記一時保存した中間データが編集さ
れ、前記編集された中間データか出力され、前記出力し
た中間データに基づき、最終的な印刷データが生成・出
力されるので、印刷結果の視認性が高められ、印刷時間
の短縮化が可能となり、印刷用紙の節約ができ経済性が
高められるという効果を奏する。
As described above, according to the graphic processing method, apparatus, and storage medium of the present invention, a printer having a function of printing on a page basis and an information processing apparatus such as a personal computer connected to the printer are provided. In the print processing on the information processing apparatus, further, before generating print data to be transmitted to the printer, generating intermediate data having a data format different from the print data, and generating the intermediate data. In a print processing system capable of temporarily storing and generating print data from the intermediate data, a print mode is designated, execution of printing is instructed, and it is determined whether to perform page control according to the print mode. When the intermediate data is generated and temporarily stored, page information of print data to be transmitted to the printer is recorded. The temporarily stored intermediate data is edited, and the edited intermediate data is output, and based on the output intermediate data, final print data is generated and output. The time can be shortened, and the printing paper can be saved, and the economy can be improved.

【0189】また、前記第1の中間データ編集の際、最
終ページの文字印刷行が1行で且、前記1行が前ページ
の余白に印刷可能であるかが判断され、前記印刷判断工
程で印刷可能と判断されたとき、該1行の印刷位置が編
集され、前記最終ページが削除されるので、印刷結果の
視認性を高めるとともに、印刷時間の短縮をはかり且、
印刷用紙の節約をし経済性を高め得る効果を奏する。
At the time of the editing of the first intermediate data, it is determined whether the character print line of the last page is one line and the one line can be printed in the margin of the previous page. When it is determined that printing is possible, the printing position of the one line is edited and the last page is deleted, so that the visibility of the printing result is improved, and the printing time is shortened.
This has the effect of saving printing paper and improving economy.

【0190】また、前記中間データは、前記ページ情報
を記録するページ情報記録部と、各ページに対応した中
間データを記述する中間データ記録部とからなる1つの
ファイルに保存されるので、印刷結果の視認性を高める
とともに、印刷時間の短縮をはかり且、印刷用紙の節約
をし経済性を高め得る効果を奏する。
Since the intermediate data is stored in one file including a page information recording unit for recording the page information and an intermediate data recording unit for describing the intermediate data corresponding to each page, the print result is And the printing time can be reduced, the printing paper can be saved, and the economy can be improved.

【0191】また、前記中間データは、前記ページ情報
を記録するページ情報記録ファイルと、各ページ単位に
中間データを記述する複数の中間データ記録ファイル
と、に保存されるので、印刷結果の視認性を高めるとと
もに、印刷時間の短縮をはかり且、印刷用紙の節約をし
経済性を高め得る効果を奏する。
Since the intermediate data is stored in a page information recording file for recording the page information and a plurality of intermediate data recording files for describing the intermediate data for each page, the visibility of the print result is improved. And the printing time can be shortened, and the printing paper can be saved and the economy can be improved.

【0192】また、前記印刷可能であるかを判断する
際、最終ページに印刷された1行の文字属性と、前ペー
ジの最終行の文字属性とが等しい場合に印刷可能である
と判断されるので、印刷結果の視認性を高めるととも
に、印刷時間の短縮をはかり且、印刷用紙の節約をし経
済性を高め得る効果を奏する。
In determining whether or not printing is possible, it is determined that printing is possible when the character attribute of one line printed on the last page is equal to the character attribute of the last line on the previous page. Therefore, it is possible to improve the visibility of the printing result, shorten the printing time, and save printing paper, thereby improving the economy.

【0193】また、前記印刷モードの指定および前記印
刷情報の指定は、キーボードにより指定されるので、印
刷結果の視認性を高めるとともに、印刷時間の短縮をは
かり且、印刷用紙の節約をし経済性を高め得る効果を奏
する。
Further, since the designation of the printing mode and the designation of the printing information are designated by a keyboard, the visibility of the printing result is improved, the printing time is shortened, the printing paper is saved, and the economy is reduced. The effect which can raise is produced.

【0194】また、前記印刷モードの指定および前記印
刷情報の指定は、ポインティングデバイスにより指定さ
れるので、印刷結果の視認性を高めるとともに、印刷時
間の短縮をはかり且、印刷用紙の節約をし経済性を高め
得る効果を奏する。
Further, since the designation of the printing mode and the designation of the printing information are designated by a pointing device, the visibility of the printing result is improved, the printing time is reduced, the printing paper is saved, and the economy is reduced. It has the effect of enhancing the character.

【0195】[0195]

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

【図1】本発明の一実施形態にかかわる印刷処理装置の
概略構成を示すブロック図である。
FIG. 1 is a block diagram illustrating a schematic configuration of a print processing apparatus according to an embodiment of the present invention.

【図2】実施の形態における印刷処理装置の処理を示す
フローチャートである。
FIG. 2 is a flowchart illustrating processing of a print processing apparatus according to the embodiment.

【図3】実施の形態における印刷処理に必要なデータを
示す図である。
FIG. 3 is a diagram illustrating data necessary for a printing process according to the embodiment.

【図4】実施の形態における中間データを生成する処理
を示すフローチャートである。
FIG. 4 is a flowchart illustrating a process of generating intermediate data according to the embodiment.

【図5】実施の形態における印刷処理に必要なファイル
の構造を示す図である。
FIG. 5 is a diagram showing a structure of a file required for a printing process in the embodiment.

【図6】実施の形態における中間データを編集する処理
を示すフローチャートである。
FIG. 6 is a flowchart illustrating a process of editing intermediate data according to the embodiment.

【図7】第2の実施の形態における中間データを生成す
る処理を示すフローチャートである。
FIG. 7 is a flowchart illustrating a process of generating intermediate data according to the second embodiment.

【図8】第2の実施の形態における印刷処理に必要なフ
ァイルの構造を示す図である。
FIG. 8 is a diagram illustrating a structure of a file necessary for print processing according to the second embodiment.

【図9】第2の実施の形態における中間データを編集す
る処理を示すフローチャートである。
FIG. 9 is a flowchart illustrating a process of editing intermediate data according to the second embodiment.

【図10】印刷処理プログラムがRAMにロードされ実
行可能となった状態のメモリマップを示す。
FIG. 10 shows a memory map in a state where a print processing program is loaded into a RAM and becomes executable.

【図11】印刷処理プログラム及び関連データの構成を
示す図である。
FIG. 11 is a diagram illustrating a configuration of a print processing program and related data.

【図12】実施形態におけるメモリマップを示す図であ
る。
FIG. 12 is a diagram showing a memory map in the embodiment.

【図13】レーザープリンタの構成を表す図である。FIG. 13 is a diagram illustrating a configuration of a laser printer.

【図14】インクジェットプリンタの構成を表す図であ
る。
FIG. 14 is a diagram illustrating a configuration of an inkjet printer.

【図15】プリンタの動作を説明するブロック線図であ
る。
FIG. 15 is a block diagram illustrating the operation of the printer.

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

1 情報処理装置 3 ビデオメモリ 4 表示部 5 キーボード(KBD) 6 ポインティングデバイス(PD) 7 ディスクコントローラ部 9 ハードディスク部 11 CPU 12 RAM 13 ROM 15 プリンタ装置 18 印刷部 19 操作部 20 外部メモリ 21 CPU Reference Signs List 1 information processing device 3 video memory 4 display unit 5 keyboard (KBD) 6 pointing device (PD) 7 disk controller unit 9 hard disk unit 11 CPU 12 RAM 13 ROM 15 printer device 18 printing unit 19 operation unit 20 external memory 21 CPU

Claims (23)

【特許請求の範囲】[Claims] 【請求項1】 印刷モードを指定する印刷モード指定工
程と、 印刷装置に送信するべき印刷情報を指定する印刷指定工
程と、 前記指定された印刷モードに従ってページ制御を行うか
否かを判断するページ制御判断工程と、 前記判断工程の判断に基づき、前記印刷情報からページ
制御するための中間データを生成する中間データ生成工
程と、 前記生成された中間データを保存するための保存工程
と、 印刷装置に送信すべき前記中間データに対応したページ
情報を記録するページ情報記録工程と、 前記指定された印刷モードに従い、前記保存した中間デ
ータを編集する中間データ編集工程と、 前記編集された中間データを出力する中間データ出力工
程と、 前記出力された中間データと、前記中間データに対応し
たページ情報とから、最終的な印刷データを生成する印
刷データ生成工程と、 前記生成された最終的な印刷データを出力する出力工程
と、 を備えることを特徴とする印刷処理方法。
A print mode designating step of designating a print mode; a print designating step of designating print information to be transmitted to a printing apparatus; and a page for determining whether to perform page control according to the designated print mode. A control determining step; an intermediate data generating step of generating intermediate data for page control from the print information based on the determination of the determining step; a storing step of storing the generated intermediate data; A page information recording step of recording page information corresponding to the intermediate data to be transmitted to the intermediate data editing step of editing the stored intermediate data according to the designated print mode; and Intermediate data output step of outputting, the output intermediate data, and page information corresponding to the intermediate data, Print processing method characterized by comprising: a print data generation step of generating printing data, and an output step of outputting the final print data that is generated.
【請求項2】 前記中間データ編集工程は、更に、 前記保存された中間データの最終ページの文字印刷行が
1行で且、前記1行が前ページの余白に印刷可能である
かを判断する印刷判断工程と、 前記印刷判断工程で印刷可能と判断されたとき、前記1
行の印刷位置を編集する印刷位置編集工程と、 前記最終ページを削除するページ削除工程と、を備え
て、前記中間データの編集を行なうことを特徴とする請
求項1記載の印刷処理方法。
2. The intermediate data editing step further determines whether a character print line of the last page of the stored intermediate data is one line and the one line can be printed in a margin of a previous page. A printing determination step, and when it is determined that printing is possible in the printing determination step,
2. The print processing method according to claim 1, further comprising a print position editing step of editing a print position of a line, and a page deletion step of deleting the last page, wherein the intermediate data is edited.
【請求項3】 前記中間データは、前記ページ情報を記
録するページ情報記録部と、前記ページ情報に対応した
中間データを記述する中間データ記録部と、からなる1
つのファイルに保存されることを特徴とする請求項1に
記載の印刷処理方法。
3. The intermediate data includes: a page information recording unit that records the page information; and an intermediate data recording unit that describes intermediate data corresponding to the page information.
The print processing method according to claim 1, wherein the print processing method is stored in one file.
【請求項4】 前記中間データは、前記ページ情報を記
録するページ情報記録ファイルと、前記ページ情報単位
に中間データを記述する複数の中間データ記録ファイル
と、に保存されることを特徴とする請求項1に記載の印
刷処理方法。
4. The intermediate data is stored in a page information recording file that records the page information and a plurality of intermediate data recording files that describe the intermediate data in units of the page information. Item 7. The print processing method according to Item 1.
【請求項5】 前記印刷可能であるかを判断する印刷判
断工程は、 最終ページに印刷された1行の文字属性と、前ページの
最終行の文字属性とが等しい場合に印刷可能であると判
断する第2の印刷判断工程と、を更に含むこと特徴とす
る請求項2記載の印刷処理方法。
5. The print determining step of determining whether printing is possible is performed when the character attribute of one line printed on the last page is equal to the character attribute of the last line on the previous page. 3. The print processing method according to claim 2, further comprising a second print determination step of determining.
【請求項6】 前記印刷モードの指定および前記印刷情
報の指定は、キーボードにより入力指定されることを特
徴とする請求項1記載の印刷処理方法。
6. The print processing method according to claim 1, wherein the designation of the print mode and the designation of the print information are input by a keyboard.
【請求項7】 前記印刷モードの指定および前記印刷情
報の指定は、ポインティングデバイスにより入力指定さ
れることを特徴とする請求項1記載の印刷処理方法。
7. The print processing method according to claim 1, wherein the designation of the print mode and the designation of the print information are input and designated by a pointing device.
【請求項8】 印刷モードを指定する印刷モード指定手
段と、 印刷装置に送信するべき印刷情報を指定する印刷指定手
段と、 前記指定された印刷モードに従ってページ制御を行うか
否かを判断するページ制御判断手段と、 前記判断手段の判断に基づき、前記印刷情報からページ
制御するための中間データを生成する中間データ生成手
段と、 前記生成された中間データを保存するための保存手段
と、 印刷装置に送信すべき前記中間データに対応したページ
情報を記録するページ情報記録手段と、 前記指定された印刷モードに従い、前記保存した中間デ
ータを編集する中間データ編集手段と、 前記編集された中間データを出力する中間データ出力手
段と、 前記出力された中間データと、前記中間データに対応し
たページ情報とから、最終的な印刷データを生成する印
刷データ生成手段と、 前記生成された最終的な印刷データを出力する出力手段
と、 を備えることを特徴とする印刷処理装置。
8. A print mode designating unit for designating a print mode, a print designating unit for designating print information to be transmitted to a printing apparatus, and a page for determining whether to perform page control according to the designated print mode. Control determining means; intermediate data generating means for generating intermediate data for page control from the print information based on the determination of the determining means; storage means for storing the generated intermediate data; Page information recording means for recording page information corresponding to the intermediate data to be transmitted to the intermediate data editing means for editing the stored intermediate data according to the designated print mode; and Intermediate data output means for outputting, the output intermediate data, and page information corresponding to the intermediate data, Print processing apparatus characterized by comprising: a print data generation means for generating printing data, and output means for outputting a final print data the generated and.
【請求項9】 前記中間データ編集手段は、更に、 前記保存された中間データの最終ページの文字印刷行が
1行で且、前記1行が前ページの余白に印刷可能である
かを判断する印刷判断手段と、 前記印刷判断手段で印刷可能と判断されたとき、前記1
行の印刷位置を編集する印刷位置編集手段と、 前記最終ページを削除するページ削除手段と、を備え
て、前記中間データの編集を行なうことを特徴とする請
求項8記載の印刷処理装置。
9. The intermediate data editing unit further determines whether a character print line of the last page of the stored intermediate data is one line and the one line can be printed in a margin of a previous page. A print determination unit, and when the print determination unit determines that printing is possible,
9. The print processing apparatus according to claim 8, further comprising: a print position editing unit that edits a print position of a line; and a page deletion unit that deletes the last page, and edits the intermediate data.
【請求項10】 前記中間データは、前記ページ情報を
記録するページ情報記録部と、前記ページ情報に対応し
た中間データを記述する中間データ記録部と、からなる
1つのファイルに保存されることを特徴とする請求項8
に記載の印刷処理装置。
10. The method according to claim 1, wherein the intermediate data is stored in a single file including a page information recording unit that records the page information, and an intermediate data recording unit that describes the intermediate data corresponding to the page information. Claim 8
A print processing apparatus according to claim 1.
【請求項11】 前記中間データは、前記ページ情報を
記録するページ情報記録ファイルと、前記ページ情報単
位に中間データを記述する複数の中間データ記録ファイ
ルと、に保存されることを特徴とする請求項8に記載の
印刷処理装置。
11. The intermediate data is stored in a page information recording file that records the page information and a plurality of intermediate data recording files that describe the intermediate data in units of the page information. Item 9. The print processing device according to item 8.
【請求項12】 前記印刷可能であるかを判断する印刷
判断手段は、 最終ページに印刷された1行の文字属性と、前ページの
最終行の文字属性とが等しい場合に印刷可能であると判
断する第2の印刷判断手段と、を更に含むこと特徴とす
る請求項9記載の印刷処理装置。
12. The printing determination means for determining whether printing is possible is performed when the character attribute of one line printed on the last page is equal to the character attribute of the last line on the previous page. The print processing apparatus according to claim 9, further comprising: a second print determination unit configured to determine.
【請求項13】 前記印刷モードの指定および前記印刷
情報の指定は、キーボードにより入力指定されることを
特徴とする請求項8記載の印刷処理装置。
13. The print processing apparatus according to claim 8, wherein the specification of the print mode and the specification of the print information are input and specified by a keyboard.
【請求項14】 前記印刷モードの指定および前記印刷
情報の指定は、ポインティングデバイスにより入力指定
されることを特徴とする請求項8記載の印刷処理装置。
14. The print processing apparatus according to claim 8, wherein the designation of the print mode and the designation of the print information are input and designated by a pointing device.
【請求項15】 印刷モードを指定する印刷モード指定
手段と、 印刷装置に送信するべき印刷情報を指定する印刷指定手
段と、 前記指定された印刷モードに従ってページ制御を行うか
否かを判断するページ制御判断手段と、 前記判断手段の判断に基づき、前記印刷情報からページ
制御するための中間データを生成する中間データ生成手
段と、 前記生成された中間データを保存するための保存手段
と、 印刷装置に送信すべき前記中間データに対応したページ
情報を記録するページ情報記録手段と、 前記指定された印刷モードに従い、前記保存した中間デ
ータを編集する中間データ編集手段と、 前記編集された中間データを出力する中間データ出力手
段と、 前記出力された中間データと、前記中間データに対応し
たページ情報とから、最終的な印刷データを生成する印
刷データ生成手段と、 前記生成された最終的な印刷データを出力する出力手段
と、 を機能させるためのプログラムを記録したコンピュータ
読取り可能な記録媒体。
15. A print mode designating unit for designating a print mode, a print designating unit for designating print information to be transmitted to a printing apparatus, and a page for determining whether to perform page control according to the designated print mode. Control determining means; intermediate data generating means for generating intermediate data for page control from the print information based on the determination of the determining means; storage means for storing the generated intermediate data; Page information recording means for recording page information corresponding to the intermediate data to be transmitted to the intermediate data editing means for editing the stored intermediate data according to the designated print mode; and Intermediate data output means for outputting, the output intermediate data, and page information corresponding to the intermediate data, Computer readable recording medium recording a program for the print data generating means, and output means for outputting a final print data the generated, to a function that generates print data.
【請求項16】 前記保存された中間データの最終ペー
ジの文字印刷行が1行で且、前記1行が前ページの余白
に印刷可能であるかを判断する印刷判断手段と、 前記印刷判断手段で印刷可能と判断されたとき、前記1
行の印刷位置を編集する印刷位置編集手段と、 前記最終ページを削除するページ削除手段と、を機能さ
せるためのプログラムを更に含むことを特徴とする請求
項15記載の記憶媒体。
16. A print judging means for judging whether a character print line of the last page of the stored intermediate data is one line and the one line can be printed in a margin of a previous page, and the print judgment means. When it is determined that printing is possible,
The storage medium according to claim 15, further comprising a program for causing a print position editing unit that edits a print position of a line and a page deletion unit that deletes the last page to function.
【請求項17】 前記ページ情報を記録するページ情報
記録部と、前記ページ情報に対応した中間データを記述
する中間データ記録部と、からなる1つのファイルに前
記中間データの保存を実行させるためのプログラムを含
むことを特徴とする請求項15記載の記憶媒体。
17. A file for storing the intermediate data in one file, comprising: a page information recording unit that records the page information; and an intermediate data recording unit that describes intermediate data corresponding to the page information. The storage medium according to claim 15, comprising a program.
【請求項18】 前記ページ情報を記録するページ情報
記録ファイルと、前記ページ情報単位に中間データを記
述する複数の中間データ記録ファイルと、に前記中間デ
ータの保存を実行させるためのプログラムを含むことを
特徴とする請求項15に記載の記憶媒体。
18. A program for causing a page information recording file for recording the page information and a plurality of intermediate data recording files for describing intermediate data in units of the page information to include a program for executing the storage of the intermediate data. The storage medium according to claim 15, wherein:
【請求項19】 最終ページに印刷された1行の文字属
性と、前ページの最終行の文字属性とが等しい場合に印
刷可能であると判断する第2の印刷判断手段と、 を更に機能させるためのプログラムを含むこと特徴とす
る請求項15または16記載の記憶媒体。
19. The printing apparatus according to claim 1, further comprising: a second print determining unit that determines that printing is possible when the character attribute of one line printed on the last page is equal to the character attribute of the last line of the previous page. 17. The storage medium according to claim 15, further comprising a program for executing the program.
【請求項20】 キーボードによる前記印刷モードの指
定および前記印刷情報の指定を実行させるためのプログ
ラムを含むことを特徴とする請求項15記載の記憶媒
体。
20. The storage medium according to claim 15, further comprising a program for executing designation of said print mode and designation of said print information by a keyboard.
【請求項21】 ポインティングデバイスによる前記印
刷モードの指定および前記印刷情報の指定を実行させる
ためのプログラムを含むことを特徴とする請求項15記
載の記憶媒体。
21. The storage medium according to claim 15, further comprising a program for executing designation of said print mode and designation of said print information by a pointing device.
【請求項22】 ページ単位に印刷を行なう印刷方法で
あって、 最終ページの前ページの最後の余白に前記最終ページの
印刷行が移動可能か否かを判断し、可能ならば印刷位置
を最終ページの前ページに移動し、さらに最終ページを
削除することを特徴とする印刷方法。
22. A printing method for performing printing on a page-by-page basis, wherein it is determined whether or not a print line of the last page can be moved to the last margin of the previous page of the last page, and if possible, the printing position is set to the last A printing method characterized by moving to the previous page of a page and deleting the last page.
【請求項23】 ページ単位に印刷を行なう印刷装置で
あって、 最終ページの前ページの最後の余白に前記最終ページの
印刷行が移動可能か否かを判断し、可能ならば印刷位置
を最終ページの前ページに移動し、さらに最終ページを
削除することを特徴とする印刷装置。
23. A printing apparatus for performing printing on a page-by-page basis, wherein it is determined whether or not a print line of the last page can be moved to the last margin of the previous page of the last page, and if possible, the printing position is set to the last. A printing apparatus for moving to a previous page of a page and further deleting a last page.
JP9333320A 1997-12-03 1997-12-03 Printing method, its device and recording medium Withdrawn JPH11167476A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP9333320A JPH11167476A (en) 1997-12-03 1997-12-03 Printing method, its device and recording medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP9333320A JPH11167476A (en) 1997-12-03 1997-12-03 Printing method, its device and recording medium

Publications (1)

Publication Number Publication Date
JPH11167476A true JPH11167476A (en) 1999-06-22

Family

ID=18264799

Family Applications (1)

Application Number Title Priority Date Filing Date
JP9333320A Withdrawn JPH11167476A (en) 1997-12-03 1997-12-03 Printing method, its device and recording medium

Country Status (1)

Country Link
JP (1) JPH11167476A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20000047731A (en) * 1998-11-26 2000-07-25 미다라이 후지오 Printing system involving print preparing operation
JP2003276271A (en) * 2002-03-20 2003-09-30 Ricoh Co Ltd Printer

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20000047731A (en) * 1998-11-26 2000-07-25 미다라이 후지오 Printing system involving print preparing operation
JP2003276271A (en) * 2002-03-20 2003-09-30 Ricoh Co Ltd Printer

Similar Documents

Publication Publication Date Title
JP3780094B2 (en) Print control system, print controller, image server, information processing apparatus and method, and storage medium storing computer-readable program
JP3809389B2 (en) Print control apparatus, information processing apparatus, print control method, information processing apparatus method and program
JP3507318B2 (en) Print processing method and apparatus and storage medium
US8300245B2 (en) Device to edit documents for printout and method thereof
JPH11219265A (en) Intermediate film processing device in printer control system and medium for recording its control program
JPH09265362A (en) Device and method for controlling printing
JPH05318840A (en) Image forming device and formation thereof
JPH09188007A (en) Data processing apparatus and method
JP2006263969A (en) Image processing device, printing job forming device, and image processing system
JPH11167476A (en) Printing method, its device and recording medium
JP2000071574A (en) Printer driver, printer, printing system and recording medium
JP2009223529A (en) Print control device, print system, print control method, program and recording medium
JP2006235933A (en) Image processor and print job generating device
JPH10329392A (en) System and method for processing information
JPH10149268A (en) Unit and method for print control and storage medium stored with computer-readable program
JP3728141B2 (en) Print processing method, print processing apparatus, and storage medium
JP4383687B2 (en) Output device and processing method thereof
JPH11232001A (en) Printer controller
JP4748022B2 (en) PRINT SYSTEM, PRINT CONTROL DEVICE, PRINT SYSTEM CONTROL METHOD, DRIVER PROGRAM, AND RECORDING MEDIUM CONTAINING THE PROGRAM
JPH05318839A (en) Formation of image, device thereof and information processing system
JPH10187390A (en) Information processor, data processing method for information processor and recording medium storing program that can be read by computer
JPH09295432A (en) Printer and print controlling method
JP3158726B2 (en) Data processing device
JPH09193507A (en) Printer and its correcting printing method
JPH07160441A (en) Information processing method and output method

Legal Events

Date Code Title Description
A300 Withdrawal of application because of no request for examination

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 20050301