[go: up one dir, main page]

JP2001243028A - Medium recording print control program, print control device, and print control method - Google Patents

Medium recording print control program, print control device, and print control method

Info

Publication number
JP2001243028A
JP2001243028A JP2000049837A JP2000049837A JP2001243028A JP 2001243028 A JP2001243028 A JP 2001243028A JP 2000049837 A JP2000049837 A JP 2000049837A JP 2000049837 A JP2000049837 A JP 2000049837A JP 2001243028 A JP2001243028 A JP 2001243028A
Authority
JP
Japan
Prior art keywords
data
print
divided
output
print control
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP2000049837A
Other languages
Japanese (ja)
Inventor
Hideki Ono
英樹 小野
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.)
Seiko Epson Corp
Original Assignee
Seiko Epson Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Seiko Epson Corp filed Critical Seiko Epson Corp
Priority to JP2000049837A priority Critical patent/JP2001243028A/en
Publication of JP2001243028A publication Critical patent/JP2001243028A/en
Pending legal-status Critical Current

Links

Landscapes

  • Image Input (AREA)
  • Editing Of Facsimile Originals (AREA)
  • Record Information Processing For Printing (AREA)

Abstract

(57)【要約】 【課題】 大容量のデータに基づいて印刷を実行する場
合でもスプーラがハードディスクにすべてのデータをス
プールするので、同ハードディスクに十分な空き容量が
ないとエラーになり印刷ジョブを実行できない。 【解決手段】 印刷ジョブにかかるデータを分割してス
プールし、プリントプロセッサにて当該分割スプールフ
ァイルの印刷データをプリンタに対して出力させる。さ
らに、印刷済みデータにかかる分割スプールファイルは
順次削除していく。従って、大容量データに基づく印刷
ジョブの実行に必要なリソースを低減することが可能で
ある。
(57) [Summary] [PROBLEMS] Even when printing is performed based on large-capacity data, the spooler spools all data on the hard disk. If the hard disk does not have sufficient free space, an error occurs and the print job is executed. I can't do it. SOLUTION: Data concerning a print job is divided and spooled, and a print processor outputs print data of the divided spool file to a printer. Further, the divided spool files related to the printed data are sequentially deleted. Therefore, it is possible to reduce resources required for executing a print job based on large-capacity data.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、印刷制御プログラ
ムを記録した媒体、印刷制御装置および印刷制御方法に
関する。
[0001] 1. Field of the Invention [0002] The present invention relates to a medium storing a print control program, a print control device, and a print control method.

【0002】[0002]

【従来の技術】プリンタにて所定の文書や図面等を印刷
するための印刷制御プログラムにおいては、通常プリン
タドライバ,スプーラ,プリントプロセッサ等の諸プロ
グラムによって実現される機能が連携して印刷ジョブを
実行する。すなわち、プリンタドライバは所定の文書等
の印刷を実行するアプリケーションからデータを受け取
ってプリンタにて印刷を行うためのデータに変換し、プ
リンタを制御するコマンド等を生成し、スプーラに出力
する。スプーラは同プリンタドライバが出力する印刷デ
ータをハードディスクドライブ等にスプールし、同スプ
ールデータはプリントプロセッサを介してプリンタに送
出される。
2. Description of the Related Art In a print control program for printing a predetermined document or drawing on a printer, functions realized by various programs such as a printer driver, a spooler, and a print processor usually execute a print job in cooperation with each other. I do. That is, the printer driver receives data from an application that executes printing of a predetermined document or the like, converts the data into data for printing by a printer, generates a command for controlling the printer, and outputs the command to the spooler. The spooler spools print data output by the printer driver to a hard disk drive or the like, and sends the spool data to a printer via a print processor.

【0003】[0003]

【発明が解決しようとする課題】上述した従来の印刷制
御プログラムにおいては、以下の問題があった。すなわ
ち、近年のプリンタの多様化や印刷画像等の高解像度
化,印刷態様の多様化等に伴って上記アプリケーション
から受け取るデータ容量は増大している。しかし、かか
る大容量のデータに基づいて印刷を実行する際にも上記
スプーラはハードディスクにすべてのデータをスプール
する。従って、ハードディスクにおいてすべてのデータ
をスプールするだけの十分な空き容量がないとエラーに
なり、印刷ジョブが実行できない。本発明は、上記課題
にかんがみてなされたもので、大容量データに基づく印
刷ジョブの実行に必要なリソースを低減することが可能
な印刷制御プログラムを記録した媒体、印刷制御装置お
よび印刷制御方法の提供を目的とする。
The above-described conventional print control program has the following problems. In other words, with the recent diversification of printers, higher resolution of print images and the like, diversification of printing modes, etc., the amount of data received from the applications has increased. However, even when printing is performed based on such a large amount of data, the spooler spools all data on the hard disk. Therefore, if there is not enough free space on the hard disk to spool all data, an error occurs and the print job cannot be executed. SUMMARY An advantage of some aspects of the invention is to provide a medium, a print control device, and a print control method that record a print control program capable of reducing resources required for executing a print job based on large-capacity data. For the purpose of providing.

【0004】[0004]

【課題を解決するための手段】上記目的を達成するた
め、請求項1にかかる発明は、所定の印刷ジョブを実行
して印刷装置に対して印刷データを出力する印刷制御プ
ログラムを記録した媒体であって、投入された印刷ジョ
ブにかかる印刷データを取得して分割し、制御データを
付加して出力する分割出力機能と、同分割出力機能が出
力する分割データを所定のスプール領域に格納するスプ
ール機能と、上記制御データに基づいて同スプール機能
によってスプールされた分割データを取得するとともに
当該分割データ中の印刷データを上記印刷装置に出力す
る印刷データ出力機能と、同印刷データ出力機能によっ
て出力された印刷データにかかるスプールファイルを上
記スプール領域から削除する分割データ削除機能とをコ
ンピュータに実現させる構成としてある。
According to one aspect of the present invention, there is provided a medium for recording a print control program for executing a predetermined print job and outputting print data to a printing apparatus. A divided output function for acquiring and dividing print data of an input print job and adding control data to output the divided data, and a spool for storing the divided data output by the divided output function in a predetermined spool area A print data output function of acquiring the divided data spooled by the spool function based on the control data and outputting print data in the divided data to the printing apparatus; and a print data output function of the print data output function. And a split data deletion function for deleting a spool file related to the print data from the spool area. That it is constituted.

【0005】上記のように構成した請求項1にかかる発
明においては、所定の印刷ジョブを実行する際に、本媒
体に記録された印刷制御プログラムが所定の処理を実行
して印刷装置に対して印刷データを出力する。このた
め、分割出力機能は投入された印刷ジョブにかかる印刷
データを取得して分割し、制御データを付加して出力す
る。スプール機能は同分割出力機能が出力する分割デー
タを所定のスプール領域に格納する。この結果、一つの
印刷ジョブにかかるデータが分割してスプールされてお
り、印刷データ出力機能は同スプール機能によってスプ
ールされた分割データを取得するとともに上記制御デー
タに基づいて当該分割データ中の印刷データを上記印刷
装置に出力する。
According to the first aspect of the present invention, when a predetermined print job is executed, the print control program recorded on the medium executes a predetermined process and sends the print control program to the printing apparatus. Output print data. For this reason, the division output function acquires the print data of the input print job, divides the print data, adds control data, and outputs the data. The spool function stores the divided data output by the divided output function in a predetermined spool area. As a result, the data for one print job is divided and spooled, and the print data output function obtains the divided data spooled by the spool function, and print data in the divided data based on the control data. Is output to the printing device.

【0006】従って、分割データ毎に処理を開始するこ
とが可能になり、印刷ジョブにかかるデータ全てをスプ
ールする前に印刷を開始することができる。また、分割
データ削除機能は同印刷データ出力機能によって出力さ
れた印刷データにかかるスプールファイルを上記スプー
ル領域から削除する。従って、印刷ジョブにかかるデー
タの全てをスプール領域にスプールする必要はなく当該
領域に大きな空き容量は必要ない。ここで、印刷データ
は印刷装置において所定の印刷を実現するためのデータ
であり、スタートジョブ,スタートページ等のコマンド
やCMYKの階調データ等である。また、上記制御デー
タは分割した印刷データ自体に付加することも可能であ
るし、分割出力する印刷データに加えて制御データを出
力するように構成することも可能である。
Accordingly, it is possible to start processing for each divided data, and to start printing before spooling all data relating to a print job. The split data deletion function deletes a spool file related to the print data output by the print data output function from the spool area. Therefore, it is not necessary to spool all the data relating to the print job to the spool area, and there is no need for a large free space in the area. Here, the print data is data for realizing predetermined printing in the printing apparatus, and is a command of a start job, a start page, and the like, CMYK gradation data, and the like. Further, the control data can be added to the divided print data itself, or the control data can be output in addition to the divided print data.

【0007】このように、印刷データを分割することは
様々な視点に基づいて実行可能であるが、その好適な一
例として、請求項2に記載の発明は、請求項1に記載の
印刷制御プログラムを記録した媒体において、上記分割
出力機能では、上記印刷データ出力機能におけるスルー
プットが最適となる容量に上記印刷データを分割するこ
とが可能である構成としてある。
As described above, the division of print data can be executed from various viewpoints. As a preferable example, the invention according to claim 2 is a print control program according to claim 1. In the medium on which the print data is recorded, the divided output function is capable of dividing the print data into a capacity for optimizing the throughput in the print data output function.

【0008】上記のように構成した請求項2にかかる発
明において、上記分割出力機能では、上記印刷データ出
力機能におけるスループットが最適となる容量に上記印
刷データを分割する。従って、印刷データ出力機能がか
かる容量の分割データを出力することで、印刷ジョブに
かかるデータがどんなに大きくても非常に早い段階で印
刷装置における印刷が開始される。また、通常印刷装置
における印刷速度よりコンピュータにおける処理速度の
方が早く、小さな分割容量のファイルに対して何度もア
クセスするとファイルI/Oにおけるオーバーヘッドが
生ずることも考えられることから、一旦印刷装置におい
て印刷が開始された後には上記最適スループット容量よ
り大きな容量に分割すると好適である。
[0008] In the invention according to claim 2 configured as described above, the divided output function divides the print data into a capacity that optimizes the throughput in the print data output function. Accordingly, the print data output function outputs the divided data having such a capacity, so that printing in the printing apparatus is started at a very early stage even if the data concerning the print job is large. Also, the processing speed of the computer is faster than the printing speed of the normal printing device, and it is conceivable that an overhead in the file I / O may occur if a file having a small divided capacity is accessed many times. After the printing is started, it is preferable to divide the capacity into a capacity larger than the optimum throughput capacity.

【0009】上記印刷データ出力機能においては、制御
データに基づいて分割データを取得し印刷データを出力
することができればよく、そのための制御データは種々
の態様が考えられる。その構成の一例として、請求項3
に記載の発明は、請求項1または請求項2のいずれかに
記載の印刷制御プログラムを記録した媒体において、上
記制御データは、上記分割データを適正に読み出すため
のデータと上記印刷データの出力先を示すデータと印刷
態様を示すデータとのいずれかまたは組み合わせからな
る構成としてある。
In the above-described print data output function, it is sufficient that the divided data can be obtained based on the control data and the print data can be output, and various forms of control data can be considered. As an example of the configuration, claim 3
According to a third aspect of the present invention, in the medium storing the print control program according to any one of the first and second aspects, the control data includes data for properly reading the divided data and an output destination of the print data. And data indicating the print mode.

【0010】上記のように構成した請求項3にかかる発
明においては、上記分割データを適正に読み出すための
データによって、印刷装置に出力するデータに適切にア
クセスし、必要な印刷データのみを出力することができ
る。例えば、上記スプールされた分割データの格納位置
をパス等で指定するものや、分割データの種類,容量を
示すものや、印刷ページの終了,分割データの終了を示
すものなどが考えられる。また、印刷データの出力先を
示すデータによれば、利用者が意図した適正な印刷装置
に出力させることができる。むろん、印刷装置はローカ
ル接続,ネットワーク接続のいずれでもよいし、複数の
印刷装置が接続されている状態でもかかる出力先データ
によって適正な出力先にて印刷させることができる。
[0010] In the invention according to claim 3 configured as described above, data to be output to a printing apparatus is appropriately accessed by using data for properly reading the divided data, and only necessary print data is output. be able to. For example, the storage location of the spooled divided data may be designated by a path or the like, the type and capacity of the divided data may be indicated, or the end of the print page or the end of the divided data may be indicated. Further, according to the data indicating the output destination of the print data, the print data can be output to an appropriate printing device intended by the user. Of course, the printing apparatus may be either a local connection or a network connection, and even when a plurality of printing apparatuses are connected, printing can be performed at an appropriate output destination by using such output destination data.

【0011】尚、ネットワークを介して接続される印刷
装置に対して印刷ジョブを実行するためには、上記印刷
データ出力機能にてネットワークを介して分割データを
取得し、ネットワークを介して印刷データを出力可能に
構成すればよい。この場合、例えば、上記分割出力機能
等の諸機能およびネットワーク出力可能な印刷データ出
力機能が実現されるクライアントコンピュータと、上記
ネットワークを介してデータ取得可能な印刷データ出力
機能が実現されるサーバコンピュータとからなるシステ
ムとして本発明を具現化することができる。
In order to execute a print job for a printing apparatus connected via a network, the print data output function obtains divided data via the network, and transmits the print data via the network. What is necessary is just to comprise so that output is possible. In this case, for example, a client computer in which various functions such as the above-described divided output function and a print data output function capable of network output are realized, and a server computer in which a print data output function capable of acquiring data via the network are realized The present invention can be embodied as a system comprising:

【0012】また、印刷態様を示すデータによれば、利
用者所望の種々の印刷態様に対応することができ、例え
ば、部数印刷,帳合い印刷を実行することや、複数の排
出トレイを有する印刷装置において所望の排出トレイに
用紙を排出させることなどが可能になる。尚、印刷装置
にて部数印刷を実現させるためには、上記印刷データ出
力機能にて同一分割データを複数回出力可能に構成すれ
ばよく、帳合い印刷を実現させるためには、上記印刷デ
ータ出力機能にて分割データを所定の順序で出力可能に
構成すればよい。この結果、同一印刷データを重複して
スプールする必要はなくなり、必要なスプール領域を低
減することができる。
Further, according to the data indicating the printing mode, it is possible to cope with various printing modes desired by the user. For example, it is possible to execute copy printing, book printing, and printing having a plurality of discharge trays. It is possible to discharge paper to a desired discharge tray in the apparatus. The print data output function may be configured to output the same divided data a plurality of times in order to realize the number of copies printed by the printing apparatus. What is necessary is just to comprise the divided data in a predetermined order by the function. As a result, it is not necessary to spool the same print data redundantly, and the necessary spool area can be reduced.

【0013】分割したデータはこのような制御データに
よって適正に読み出されることが可能になるが、この場
合の分割データの好適な一例として、請求項4に記載の
発明は、請求項3に記載の印刷制御プログラムを記録し
た媒体において、上記分割出力機能では、上記出力デー
タを所定形式のデータ構造にする構成としてある。すな
わち、分割データが所定形式のデータであることによっ
て、分割データ内容がどのようなものであっても常に統
一した手法にてデータを読み出すことができる。
The divided data can be appropriately read by such control data. As a preferable example of the divided data in this case, the invention according to claim 4 is the invention according to claim 3 In the medium on which the print control program is recorded, the divided output function has a configuration in which the output data has a data structure of a predetermined format. That is, since the divided data is data of a predetermined format, the data can always be read by a uniform method regardless of the content of the divided data.

【0014】また、印刷データ出力機能においては、印
刷装置にて適正な印刷を実行させるために上記スプール
された分割データのうち、適切なものにアクセスする必
要がある。そこで、請求項5に記載の発明は、請求項1
〜請求項4のいずれかに記載の印刷制御プログラムを記
録した媒体において、上記分割出力機能では、上記スプ
ール領域に格納される各分割データを読み出すための情
報を上記印刷データ出力機能に対して出力する構成とし
てある。
In the print data output function, it is necessary to access an appropriate one of the spooled divided data in order to execute proper printing in the printing apparatus. Therefore, the invention according to claim 5 is based on claim 1
5. A medium in which the print control program according to claim 4 is recorded, wherein the divided output function outputs information for reading each divided data stored in the spool area to the print data output function. There is a configuration to do.

【0015】上記のように構成した請求項5にかかる発
明においては、分割出力機能にて上記スプール領域に格
納される各分割データを読み出すための情報を出力し、
上記印刷データ出力機能にて当該情報を使用して各分割
データにアクセスする。例えば、分割出力機能にて分割
データのファイル名を出力し、印刷データ出力機能にて
当該ファイル名を使用して分割データファイルにアクセ
スするように構成することなどが考えられる。
[0015] In the invention according to claim 5, the information for reading out the divided data stored in the spool area is output by the divided output function,
The print data output function accesses the divided data using the information. For example, a configuration may be considered in which the file name of the divided data is output by the divided output function, and the divided data file is accessed using the file name by the print data output function.

【0016】このように、分割出力機能における処理と
印刷データ出力機能における処理とは密接に関係してお
り、両機能が互いの状態を把握できれば便利である。そ
のための構成として、請求項6に記載の発明は、請求項
1〜請求項5のいずれかに記載の印刷制御プログラムを
記録した媒体において、上記分割出力機能と上記印刷デ
ータ出力機能とは、所定領域に格納された外部ファイル
にアクセス可能であり、同外部ファイル内容に基づいて
互いに連携する構成としてある。
As described above, the processing in the divided output function and the processing in the print data output function are closely related, and it is convenient if both functions can grasp each other's state. According to a sixth aspect of the present invention, there is provided a medium in which the print control program according to any one of the first to fifth aspects is recorded, wherein the divided output function and the print data output function are provided in a predetermined manner. An external file stored in the area can be accessed and cooperated with each other based on the content of the external file.

【0017】上記のように構成した請求項6にかかる発
明においては、上記分割出力機能と上記印刷データ出力
機能とは、所定領域に格納された外部ファイルにアクセ
ス可能である。従って、同外部ファイル内容に基づいて
互いに連携することができる。具体的には、外部ファイ
ルに所定の情報を書き込み、両機能によって当該情報内
容を読み出して対応した処理を行うことや、外部ファイ
ルのサイズを監視して当該サイズの変化に応じて処理を
行うことが可能である。その処理も種々のものが想定さ
れ、例えば、印刷ジョブのキャンセルがあった場合の処
理を行うことができる。
In the invention according to claim 6 configured as described above, the divided output function and the print data output function can access an external file stored in a predetermined area. Therefore, they can cooperate with each other based on the contents of the external file. Specifically, writing predetermined information in an external file, reading the information content by both functions and performing a corresponding process, or monitoring the size of the external file and performing a process according to a change in the size. Is possible. Various types of processing are supposed. For example, processing when a print job is canceled can be performed.

【0018】むろん、以上述べてきた記録媒体は、磁気
記録媒体であってもよいし光磁気記録媒体であってもよ
いし、今後開発されるいかなる記録媒体においても全く
同様に考えることができる。また、一次複製品、二次複
製品などの複製段階については全く問う余地無く同等で
ある。上記媒体とは異なるが、供給方法として通信回線
を利用して行なう場合であれば通信回線が伝送媒体とな
って本発明が利用されることになる。さらに、一部がソ
フトウェアであって、一部がハードウェアで実現されて
いる場合においても発明の思想において全く異なるもの
ではなく、一部を記録媒体上に記憶しておいて必要に応
じて適宜読み込まれるような形態のものとしてあっても
よい。
Of course, the recording medium described above may be a magnetic recording medium, a magneto-optical recording medium, or any recording medium to be developed in the future. Also, the duplication stages of the primary duplicated product, the secondary duplicated product, and the like are equivalent without any question. Although different from the above-described medium, if the supply method is performed using a communication line, the communication line is used as a transmission medium and the present invention is used. Further, even when a part is implemented by software and a part is implemented by hardware, the concept of the present invention is not completely different, and a part is stored on a recording medium and appropriately It may be in a form that can be read.

【0019】このように、印刷ジョブにかかる印刷デー
タを分割し、当該分割データ毎に処理を行って、処理後
のデータを削除する手法は実体のあるコンピュータにお
いて実現され、その意味で本発明をそのようなコンピュ
ータからなる装置としても適用可能であることは容易に
理解できる。このため、請求項10〜請求項18にかか
る発明においても、基本的には同様の作用となる。むろ
ん、このような装置は単独で実施される場合もあるし、
ある機器に組み込まれた状態で他の方法とともに実施さ
れることもあるなど、発明の思想としてはこれに限ら
ず、各種の態様を含むものであって、適宜、変更可能で
ある。
As described above, the method of dividing print data relating to a print job, performing processing on each of the divided data, and deleting processed data is realized by a substantial computer. It can be easily understood that the present invention is also applicable as an apparatus including such a computer. For this reason, the invention according to claims 10 to 18 basically has the same operation. Of course, such devices may be implemented alone,
The idea of the invention is not limited to this. For example, it may be implemented together with another method in a state of being incorporated in a certain device, and includes various aspects, and can be appropriately changed.

【0020】また、このような印刷制御プログラムはか
かる制御に従って処理を進めていく上で、その根底には
その手順に発明が存在するということは当然であり、方
法としても適用可能であることは容易に理解できる。こ
のため、請求項19〜請求項27にかかる発明において
も、基本的には同様の作用となる。すなわち、必ずしも
実体のある媒体などに限らず、その方法としても有効で
あることに相違はない。
Further, when such a print control program proceeds with the processing according to such control, it is natural that the invention exists in the procedure at the root, and it is possible to apply the method as a method. Easy to understand. Therefore, the invention according to the nineteenth to twenty-seventh aspects has basically the same operation. In other words, there is no difference that the method is not necessarily limited to a tangible medium or the like and is effective as a method.

【0021】[0021]

【発明の効果】以上説明したように請求項1、請求項1
0、請求項19にかかる本発明によれば、印刷ジョブに
かかる印刷データを全てスプール可能な空きスプール領
域は必要なく、また、早い段階で印刷を開始することが
できる。また、請求項2、請求項11、請求項20にか
かる発明によれば、印刷ジョブの投入後、非常に早い段
階で印刷を開始することができる。さらに、請求項3、
請求項12、請求項21にかかる発明によれば、一旦分
割したデータに基づいて、利用者が意図した通りの印刷
を簡単に実行することができる。さらに、請求項4、請
求項13、請求項22にかかる発明によれば、分割デー
タを簡易に読み出すことができる。
As described above, claim 1 and claim 1 have been described.
According to the present invention, there is no need for a free spool area in which all print data relating to a print job can be spooled, and printing can be started at an early stage. According to the second, eleventh and twentieth aspects of the present invention, printing can be started very early after a print job is input. Furthermore, claim 3,
According to the twelfth and twenty-first aspects of the present invention, it is possible to easily execute the printing intended by the user based on the once divided data. Further, according to the inventions according to the fourth, thirteenth, and twenty-second aspects, the divided data can be easily read.

【0022】さらに、請求項5、請求項14、請求項2
3にかかる発明によれば、簡単に目的とする分割データ
にアクセスすることができる。さらに、請求項6、請求
項15、請求項24にかかる発明によれば、簡易な手法
により複数の機能間の連携を図ることができる。さら
に、請求項7、請求項16、請求項25にかかる発明に
よれば、ネットワークを介して接続される印刷装置にて
印刷ジョブを実行させることが可能になり、汎用性が向
上する。さらに、請求項8、請求項17、請求項26に
かかる発明によれば、印刷態様のバリエーションが広が
り、多くの利用者のニーズに対応することができる。さ
らに、請求項9、請求項18、請求項27にかかる発明
によれば、印刷態様のバリエーションが広がり、多くの
利用者のニーズに対応することができる。
Furthermore, claim 5, claim 14, claim 2
According to the third aspect, the target divided data can be easily accessed. Further, according to the inventions according to claims 6, 15, and 24, cooperation between a plurality of functions can be achieved by a simple method. Furthermore, according to the inventions according to claims 7, 16, and 25, a print job can be executed by a printing apparatus connected via a network, and versatility is improved. Further, according to the inventions according to claims 8, 17, and 26, a variety of printing modes is widened, and it is possible to meet the needs of many users. Further, according to the ninth, eighteenth, and twenty-seventh aspects of the present invention, a variety of printing modes is widened, and it is possible to meet the needs of many users.

【0023】[0023]

【発明の実施の形態】以下、図面にもとづいて本発明の
実施形態を説明する。図1はコンピュータにプリンタが
ローカル接続およびネットワーク接続されている状態の
概略ハードウェア構成を示しており、図2は本発明が同
コンピュータのOS上に複数のモジュールとして実現さ
れた場合における概略構成図を示している。まず、図1
に示す概略ハードウェア構成について説明する。コンピ
ュータ10は演算処理の中枢をなすCPU11を備えて
おり、このCPU11はシステムバス12を介してBI
OSなどの記載されたROM13やRAM14にアクセ
ス可能となっている。
Embodiments of the present invention will be described below with reference to the drawings. FIG. 1 shows a schematic hardware configuration in a state where a printer is locally and network-connected to a computer, and FIG. 2 is a schematic configuration diagram when the present invention is realized as a plurality of modules on an OS of the computer. Is shown. First, FIG.
The hardware configuration shown in FIG. The computer 10 includes a CPU 11 which is a center of the arithmetic processing.
The ROM 13 and the RAM 14 in which an OS and the like are described can be accessed.

【0024】また、システムバス12には外部記憶装置
としてのハードディスクドライブ15とフロッピーディ
スクドライブ16とCD−ROMドライブ17とが接続
されており、ハードディスクドライブ15に記憶された
OS20やアプリケーションプログラム(APL)25
等がRAM14に転送され、CPU11はROM13と
RAM14に適宜アクセスしてソフトウェアを実行す
る。すなわち、RAM14を一時的なワークエリアとし
て種々のプログラムを実行する。
A hard disk drive 15, a floppy disk drive 16, and a CD-ROM drive 17 as external storage devices are connected to the system bus 12, and the OS 20 and application programs (APL) stored in the hard disk drive 15 are connected. 25
Are transferred to the RAM 14, and the CPU 11 appropriately accesses the ROM 13 and the RAM 14 to execute software. That is, various programs are executed using the RAM 14 as a temporary work area.

【0025】シリアル通信用I/O19aにはキーボー
ド31やマウス32等の操作用入力機器が接続され、図
示しないビデオボードを介して表示用のディスプレイ1
8も接続されている。さらに、プリンタ40aとはパラ
レル通信用I/O19bを介してローカル接続が可能で
あり、10BASE−T用I/O19cを介して他のコ
ンピュータ50とネットワーク接続可能になっている。
コンピュータ50は上記コンピュータ10と同様にパラ
レル通信用I/Oを介してプリンタ40bが接続可能で
あり、同コンピュータ50はコンピュータ10から送信
されるデータに基づいてプリンタ40bを制御し、プリ
ンタサーバとして機能するようになっている。
Operation input devices such as a keyboard 31 and a mouse 32 are connected to the serial communication I / O 19a, and a display 1 for display is provided via a video board (not shown).
8 is also connected. Further, a local connection with the printer 40a is possible via a parallel communication I / O 19b, and a network connection with another computer 50 is possible via a 10BASE-T I / O 19c.
The computer 50 can be connected to a printer 40b via a parallel communication I / O as in the case of the computer 10, and the computer 50 controls the printer 40b based on data transmitted from the computer 10 and functions as a printer server. It is supposed to.

【0026】尚、本コンピュータ10,50の構成は簡
略化して説明しているが、パーソナルコンピュータとし
て一般的な構成を有するものを採用することができる。
むろん、本発明が適用されるコンピュータはパーソナル
コンピュータに限定されるものではない。この実施例は
いわゆるデスクトップ型コンピュータであるが、ノート
型であるとか、モバイル対応のものであっても良い。ま
た、コンピュータ10とプリンタ40aおよびコンピュ
ータ50の接続インタフェースも上述のものに限る必要
はなくシリアルインタフェースやSCSI,USB接続
など種々の接続態様を採用可能であるし、今後開発され
るいかなる接続態様であっても同様である。
Although the configurations of the computers 10 and 50 have been described in a simplified manner, a personal computer having a general configuration can be employed.
Of course, the computer to which the present invention is applied is not limited to a personal computer. This embodiment is a so-called desktop computer, but may be a notebook computer or a mobile computer. Also, the connection interface between the computer 10 and the printer 40a and the computer 50 need not be limited to those described above, and various connection modes such as a serial interface, SCSI, and USB connection can be adopted. It is the same as above.

【0027】この例では各プログラムの類はハードディ
スクドライブ15に記憶されているが、記録媒体はこれ
に限定されるものではない。例えば、フロッピーディス
ク16aであるとか、CD−ROM17aであってもよ
い。これらの記録媒体に記録されたプログラムはフロッ
ピーディスクドライブ16やCD−ROMドライブ17
を介してコンピュータ10,50にて読み込まれ、ハー
ドディスクドライブ15にインストールされる。そし
て、ハードディスクドライブ15を介してRAM14上
に読み込まれてコンピュータを制御することになる。ま
た、記録媒体はこれに限らず、光磁気ディスクなどであ
ってもよい。
In this example, the programs are stored in the hard disk drive 15, but the recording medium is not limited to this. For example, it may be a floppy disk 16a or a CD-ROM 17a. The programs recorded on these recording media are stored in a floppy disk drive 16 or a CD-ROM drive 17.
Are read by the computers 10 and 50 via the hard disk drive 15. Then, the data is read into the RAM 14 via the hard disk drive 15 to control the computer. The recording medium is not limited to this, and may be a magneto-optical disk or the like.

【0028】また、半導体デバイスとしてフラッシュカ
ードなどの不揮発性メモリなどを利用することも可能で
あるし、モデムや通信回線を介して外部のファイルサー
バにアクセスしてダウンロードする場合には通信回線が
伝送媒体となって本発明が利用される。プリンタ40
a,40bは図示しないCPU,ファームウェア等を備
えており、当該ファームウェアに記載されたプログラム
に従って、上記コンピュータ10から送信されるCMY
Kのデータやページ記述言語等のプリンタコマンドから
なる印刷データをパラレル通信用I/Oを介して受信す
る。そして、プリンタ40a,40bでは当該データに
基づいて所定のモータでヘッドや印刷用紙搬送機構を駆
動しつつ印刷を実行する。
It is also possible to use a non-volatile memory such as a flash card as a semiconductor device, and to transmit and download an external file server via a modem or a communication line, the communication line is used. The present invention is used as a medium. Printer 40
Reference numerals a and 40b each include a CPU, firmware and the like (not shown), and CMY transmitted from the computer 10 according to a program described in the firmware.
Print data including K data and printer commands such as a page description language is received via the parallel communication I / O. Then, the printers 40a and 40b execute printing based on the data while driving a head and a printing paper transport mechanism by a predetermined motor.

【0029】一方、図2に示すように本実施形態にかか
るコンピュータ10では、プリンタドライバ(PRTD
RV)21とスプーラ22とプリントプロセッサ23と
がOS20に組み込まれている。APL25において利
用者は上記キーボード31やマウス32を介して文書や
図面等を作成し、プリンタ40aにて印刷を実行するた
めの指示を出すことが可能である。PRTDRV21は
APL25からの印刷ジョブにかかるデータをCMYK
の印刷データに変換する処理など、通常のPRTDRV
が実行する処理を行うほか、当該CMYKデータに制御
情報を付加したパケット、あるいは所定の制御情報から
なるパケットを生成する。さらに、このパケットは上記
スプーラ22に出力され、スプーラ22は当該複数のパ
ケットから構成される複数のファイルを上記ハードディ
スクドライブ15にスプールする。
On the other hand, as shown in FIG. 2, in the computer 10 according to the present embodiment, a printer driver (PRTD)
The RV 21, the spooler 22, and the print processor 23 are incorporated in the OS 20. In the APL 25, a user can create a document, a drawing, and the like via the keyboard 31 and the mouse 32 and issue an instruction to execute printing by the printer 40a. PRTDRV 21 converts the data relating to the print job from APL 25 into CMYK
Normal PRTDRV, such as processing to convert to print data
Performs the processing executed by the CMYK data, and generates a packet in which control information is added to the CMYK data or a packet including predetermined control information. Further, this packet is output to the spooler 22, and the spooler 22 spools a plurality of files composed of the plurality of packets to the hard disk drive 15.

【0030】すなわち、上記APL25からの印刷ジョ
ブにかかるデータは複数のファイルに分割した状態でス
プールされ、これらのスプールファイルは上記複数のパ
ケットによって構成されている。また、このパケットに
付加される制御情報は、分割されたパケットに基づいて
上記APL25で意図した通りの印刷を実行するため
に、後述するプリントプロセッサ23が使用する情報で
あり、同パケットは所定形式のデータ構造を有してい
る。図3(a)は当該パケット構造を示しており、同図
において、当該パケットはパケットサイズとパケットコ
ードとパケットIDとジョブIDとパケットデータとの
5つの領域からなる構造体である。
That is, the data relating to the print job from the APL 25 is spooled in a state of being divided into a plurality of files, and these spool files are constituted by the plurality of packets. The control information added to this packet is information used by a print processor 23, which will be described later, to execute printing as intended by the APL 25 based on the divided packet. Data structure. FIG. 3A shows the packet structure. In FIG. 3A, the packet is a structure including five areas of a packet size, a packet code, a packet ID, a job ID, and packet data.

【0031】パケットデータ以外の4領域は、本実施形
態においてすべて4バイトの固定長データであり、パケ
ットデータのみが可変長データとなっている。すなわ
ち、印刷を実行するためのデータには上記CMYK等の
画像データやページ開始/終了等を示すプリンタコマン
ド等があり、当該コマンドデータ長や分割する画像デー
タ長は様々である。そこで、これらのデータは可変長で
パケットデータ領域に格納することすることとし、パケ
ットサイズ領域にそのデータ長を記載しておくことによ
り、すべてのパケットにおいて適正長のデータを参照す
ることを可能にしている。
In the present embodiment, the four areas other than the packet data are all 4-byte fixed-length data, and only the packet data is variable-length data. That is, data for executing printing includes image data such as the CMYK described above, a printer command indicating page start / end, and the like, and the command data length and the image data length to be divided are various. Therefore, these data shall be stored in the packet data area with a variable length, and by describing the data length in the packet size area, it is possible to refer to the appropriate length data in all packets. ing.

【0032】また、パケットデータは上述のように画像
データのみならず種々のものが存在し、上記パケットコ
ードによってそのパケットデータの種類が区別される。
パケットIDはパケットの処理IDであり、ジョブID
はジョブ毎に付与されるIDである。パケットデータに
は、具体的には印刷データを構成するものとエスケープ
シーケンスを構成する制御データとがある。印刷データ
はPRTDRV21が出力するCMYKのデータ,スタ
ートジョブ,エンドジョブ,スタートページ,エンドペ
ージ等のプリンタ40aに入力されるデータである。
As described above, there are various types of packet data as well as image data, and the type of the packet data is distinguished by the packet code.
The packet ID is the processing ID of the packet, and the job ID
Is an ID assigned to each job. Specifically, the packet data includes data constituting print data and control data constituting an escape sequence. The print data is CMYK data output from the PRTDRV 21, data input to the printer 40a such as a start job, an end job, a start page, and an end page.

【0033】制御データは上記PRTDRV21が分割
したデータに基づいてプリンタ40aにおいて分割前の
状態と同様の印刷を実行するために付加されるデータで
あり、上記パケットサイズ,パケットコード等の他、パ
ケットデータ領域に格納される部数印刷,帳合い印刷を
実行するためのデータ等を含む。すなわち、パケットデ
ータ領域には上記プリンタ40aに対して送信されるも
のの他種々の制御データをも格納され、この制御データ
が格納されたパケットはプリントプロセッサ23に後述
する処理を実行させるエスケープシーケンスを構成して
いる。
The control data is data added to the printer 40a to execute the same printing as the state before the division based on the data divided by the PRTDRV 21. The data includes data for executing the copy printing and the book printing stored in the area. That is, in the packet data area, various control data other than those transmitted to the printer 40a are also stored, and the packet in which the control data is stored constitutes an escape sequence for causing the print processor 23 to execute processing described later. are doing.

【0034】一方、プリンタ40aのようにコンピュー
タ10に対してローカル接続されるプリンタにて印刷を
実行する場合、上述のハードディスクドライブ15にス
プールされるファイルは、図2に示すローカルスプール
ファイル15bおよび複数の分割スプールファイル15
c1,15c2である。図3(b)はローカルスプール
ファイル15bを構成するパケットを示しており、同図
において、ローカルスプールファイル15bはヘッダお
よびフッタパケットと複数のエスケープパケットからな
っている。
On the other hand, when printing is performed by a printer locally connected to the computer 10, such as the printer 40a, the file spooled on the hard disk drive 15 is a local spool file 15b shown in FIG. Split spool file 15
c1 and 15c2. FIG. 3B shows a packet constituting the local spool file 15b. In FIG. 3B, the local spool file 15b includes a header and a footer packet and a plurality of escape packets.

【0035】エスケープパケットにはデスプール方法,
部数印刷処理方法を指定するものの他、後述するコマン
ドファイル15aや上記分割スプールファイル15c
1,15c2の格納位置をフルパスで指定するものおよ
びファイルの終了を示すパケットがある。デスプール方
法においては、スプールファイルに基づく出力を実行す
る際にローカル接続,ネットワーク接続のいずれのプリ
ンタに出力するかが指定されている。部数印刷処理方法
においては、上記APL25にて複数ページの文書等を
印刷する際に、さらにこれらのページを複数部印刷、あ
るいは帳合い印刷するか否かが指定されている。
The escape packet includes a despooling method,
In addition to specifying the number of print processing methods, a command file 15a described later and the split spool file 15c
1, 15c2 are designated by the full path to the storage location, and there is a packet indicating the end of the file. In the despooling method, when executing output based on a spool file, it is specified which of a local connection and a network connection printer is to be output. In the copy print processing method, when printing a document or the like of a plurality of pages by the APL 25, it is further specified whether to print a plurality of copies of these pages or a set print.

【0036】また、コマンドファイル15aや分割スプ
ールファイル15c1,15c2がフルパスでエスケー
プパケットにおいて指定されていることにより、後述す
るプリントプロセッサ23は当該ファイルにアクセスす
ることが可能になる。分割スプールファイル15c1,
15c2は図4(a)のような構造をしており、ヘッ
ダ,フッタパケットおよびファイル終了パケットの他、
ページ終了を示すパケットに挟まれて印刷データが存在
する。すなわち、印刷データは通常スタートジョブコマ
ンドに始まり、エンドジョブコマンドに終わり、各印刷
Rawデータがスタートページコマンドおよびエンドペ
ージコマンドに挟まれて構成される。
Further, since the command file 15a and the divided spool files 15c1 and 15c2 are specified in the escape packet with the full path, the print processor 23 described later can access the files. Split spool file 15c1,
15c2 has a structure as shown in FIG. 4A, and includes a header, a footer packet, an end-of-file packet,
Print data exists between packets indicating the end of a page. That is, print data usually starts with a start job command, ends with an end job command, and is configured such that each piece of print Raw data is sandwiched between a start page command and an end page command.

【0037】そこで、分割スプールファイル15c1,
15c2においても印刷データ全体をスタートジョブコ
マンドとエンドジョブコマンドとで挟み、各ページのR
awデータをスタートページコマンドとエンドページコ
マンドとで挟んでいる。尚、図4(a)においては一つ
の分割スプールファイルにて一つの印刷ジョブのデータ
すべてを含んでいるが、本発明においては一つの印刷ジ
ョブにかかるデータを図2に示すように複数の分割スプ
ールファイル15c1,15c2に分割することが可能
になっている。ここで、印刷データの始めの部分に対し
ては上記プリンタ40aに出力する印刷データが4KB
になるように分割され、それ以後は印刷データが40K
Bになるよう分割されている。
Therefore, the split spool file 15c1,
Also in 15c2, the entire print data is sandwiched between the start job command and the end job command, and the R
The aw data is sandwiched between a start page command and an end page command. In FIG. 4A, one split spool file contains all the data of one print job. However, in the present invention, the data of one print job is divided into a plurality of divided jobs as shown in FIG. It can be divided into spool files 15c1 and 15c2. Here, for the first part of the print data, the print data to be output to the printer 40a is 4 KB.
And then the print data is 40K
B is divided.

【0038】これは、後述するプリントプロセッサ23
が印刷データを最もスループットがよい4KB単位で出
力しており、最初の印刷データを4KBで出力すること
によりプリンタ40aにおける印刷開始を速くするため
である。また、分割スプールファイル15c1,15c
2を4KB単位で分割し続けるとPRTDRV21とフ
ァイルI/Oとのオーバーヘッドが発生してプリントプ
ロセッサ23との間でスループットが低下する。さら
に、プリンタ40aにて一旦印刷が開始されると通常は
コンピュータ10内での諸処理より印刷速度の方が遅
い。そこで、上述のように最初の印刷データのみを4K
Bにて分割し、その後を40KBに分割することにより
早い時期での印刷開始を実行しつつプリントプロセッサ
23が高速で処理を実行することが可能になっている。
This corresponds to a print processor 23 described later.
This is because print data is output in units of 4 KB having the best throughput, and the first print data is output in 4 KB, so that printing in the printer 40a is started quickly. Also, the split spool files 15c1, 15c
If 2 is continuously divided in units of 4 KB, overhead occurs between the PRTDRV 21 and the file I / O, and the throughput with the print processor 23 decreases. Further, once printing is started by the printer 40a, the printing speed is usually slower than various processes in the computer 10. Therefore, only the first print data is 4K as described above.
The print processor 23 can execute processing at high speed while executing printing at an early stage by dividing the data at B and then dividing the data into 40 KB.

【0039】上記コマンドファイル15aは、PRTD
RV21が制御コマンドをプリントプロセッサ23に通
知するためのファイルであり、同プリントプロセッサ2
3は同コマンドファイル15aに適宜アクセスすること
により、PRTDRV21における諸状況を把握する。
コマンドファイル15aは図4(b)に示す構造をして
おり、ヘッダパケットとフッタパケットの間に制御コマ
ンドパケットを格納可能な領域がもうけられている。本
実施形態において、コマンドファイル15aは通常はヘ
ッダパケットとフッタパケットのみにて構成されている
が、PRTDRV21にて印刷ジョブのキャンセルが発
生したときに、同図に示すようにヘッダパケットとフッ
タパケットとの間に制御コマンドパケットが追加され
る。
The command file 15a is a PRTD
The RV 21 is a file for notifying the print processor 23 of a control command.
3 accesses the command file 15a as needed to grasp various situations in the PRTDRV 21.
The command file 15a has a structure shown in FIG. 4B, and has an area for storing a control command packet between a header packet and a footer packet. In the present embodiment, the command file 15a usually includes only a header packet and a footer packet. However, when a print job is canceled in the PRTDRV 21, the command file 15a includes a header packet and a footer packet as shown in FIG. During this time, a control command packet is added.

【0040】そして、プリントプロセッサ23にて当該
コマンドファイル15aのファイルサイズを監視し、フ
ァイルサイズが変更されたときに同プリントプロセッサ
23はキャンセルが実行された旨を把握するようになっ
ている。本実施形態においては、コマンドファイル15
aを介してキャンセルの有無を把握するようになってい
るが、むろん、PRTDRV21とプリントプロセッサ
23とが互いの状況を把握するために他の情報を書き込
むようにしてもよい。また、その場合には、コマンドフ
ァイル15aのサイズを監視するのではなく、制御コマ
ンドパケットのパケットデータ領域に所定の情報を書き
込むようにし、当該パケットデータ領域の情報に応じて
種々の処理を行うようにすることも可能である。
The print processor 23 monitors the file size of the command file 15a, and when the file size is changed, the print processor 23 recognizes that the cancel has been executed. In the present embodiment, the command file 15
Although the presence / absence of cancellation is ascertained via a, it goes without saying that the PRTDRV 21 and the print processor 23 may write other information in order to ascertain the status of each other. In this case, instead of monitoring the size of the command file 15a, predetermined information is written in the packet data area of the control command packet, and various processes are performed according to the information in the packet data area. It is also possible to

【0041】このように、PRTDRV21が印刷デー
タを分割して所定のパケットとして出力するとスプーラ
22がハードディスクドライブ15に種々のファイルを
スプールするが、プリントプロセッサ23はこれらのフ
ァイルに適宜アクセスして印刷データをパラレル通信用
I/O19bを介してプリンタ40aに対して出力す
る。ここで、同プリントプロセッサ23には上記PRT
DRV21からスプールしたファイルのファイル名を与
えられるようになっており、これらのファイル名を使用
して適切なファイルにアクセスし、各パケット中の制御
データに応じた処理を実行するようになっている。
As described above, when the PRTDRV 21 divides the print data and outputs it as a predetermined packet, the spooler 22 spools various files on the hard disk drive 15, and the print processor 23 accesses these files as appropriate and prints the data. Is output to the printer 40a via the parallel communication I / O 19b. Here, the print processor 23 has the PRT
The file names of the spooled files can be given from the DRV 21. Appropriate files are accessed using these file names, and processing corresponding to the control data in each packet is executed. .

【0042】すなわち、与えられるファイル名に対して
上記ローカルスプールファイル15b中のパケットで示
される分割スプールファイル15c1,15c2のパス
に適宜アクセスし、当該分割スプールファイル中の印刷
データをパラレル通信用I/O19bに出力する。ここ
で、プリントプロセッサ23はすでに出力した印刷デー
タにかかる分割スプールファイルを上記ハードディスク
ドライブ15から削除することができる。
That is, the path of the divided spool files 15c1 and 15c2 indicated by the packet in the local spool file 15b is appropriately accessed for the given file name, and the print data in the divided spool files is transferred to the parallel communication I / O. Output to O19b. Here, the print processor 23 can delete the divided spool file relating to the print data already output from the hard disk drive 15.

【0043】従って、上記APL25にて非常に大きな
印刷データを印刷する場合でも、ハードディスクドライ
ブ15に当該印刷データと同程度の空き容量を必要とせ
ず、印刷を実行することができる。尚、本実施形態にお
いては、上述のようにローカル接続のプリンタ40aに
対しても、ネットワーク接続のプリンタ40bに対して
も印刷を実行することが可能であり、PRTDRV21
およびプリントプロセッサ23は両者に対して汎用的に
使用可能なプログラムである。以下では、まず図2に示
すようにローカル接続されているプリンタ40aに対す
る処理を説明する。
Therefore, even when very large print data is printed by the APL 25, printing can be performed without requiring the hard disk drive 15 to have the same free space as the print data. In the present embodiment, as described above, it is possible to execute printing on both the locally connected printer 40a and the network connected printer 40b.
And the print processor 23 are programs that can be used for both purposes. In the following, processing for the locally connected printer 40a as shown in FIG. 2 will be described first.

【0044】図5,図6は、上記PRTDRV21が印
刷ジョブの実行に際して行う本発明にかかる処理のフロ
ーである。利用者がAPL25を操作することによって
所定の印刷ジョブが投入されると、同図において、PR
TDRV21はステップS100にて上記プリントプロ
セッサ23にアクセスし、同プリントプロセッサ23が
本発明にかかる方式に対応しているか否かを判別する。
同ステップS100にて本方式に対応していると判別さ
れないときには、従来通りに印刷データを分割しないで
印刷ジョブを実行する。同ステップS100にてプリン
トプロセッサ23が本方式に対応していると判別された
ときには、ステップS110にて上記プリントプロセッ
サ23に対して本方式による処理を開始する旨を通知す
る。
FIGS. 5 and 6 are flow charts of the processing according to the present invention performed by the PRTDRV 21 when executing a print job. When a predetermined print job is submitted by the user operating the APL 25, the PR shown in FIG.
The TDRV 21 accesses the print processor 23 in step S100, and determines whether the print processor 23 supports the method according to the present invention.
If it is not determined in step S100 that this method is supported, the print job is executed without dividing the print data as in the related art. If it is determined in step S100 that the print processor 23 is compatible with the present method, it is notified to the print processor 23 in step S110 that processing by the present method is started.

【0045】そして、ステップS120おいてプリント
プロセッサ23に対して上記コマンドファイル15aの
名称を通知し、ステップS130〜ステップS250の
ページ毎処理ルーチンを実行する。ステップS140に
おいては同PRTDRV21の通常の機能を実行する別
モジュールから印刷画像の1ページ分のCMYKデータ
や部数印刷等の印刷条件データを取得する。ステップS
150においては、上記印刷条件データに基づいて上記
種々のエスケープパケットを作成するとともに所定の印
刷データパケットを作成し、上記CMYKデータ等の印
刷データを所定のバッファリング領域にバッファリング
していく。
In step S120, the name of the command file 15a is notified to the print processor 23, and the page-by-page processing routine of steps S130 to S250 is executed. In step S140, print condition data such as CMYK data for one page of a print image or the number of copies is acquired from another module that executes a normal function of the PRTDRV 21. Step S
In 150, the various escape packets are created based on the print condition data, and a predetermined print data packet is created, and the print data such as the CMYK data is buffered in a predetermined buffering area.

【0046】ステップS160において印刷データが当
該バッファリング領域からあふれるか否かを判別し、同
バッファリング領域をあふれるまでステップS140以
降の処理を繰り返す。そして、ステップS170にて上
記バッファリングした印刷データを格納するファイル名
を決定し、ステップS180にて当該バッファリングデ
ータに制御データを付加し、印刷データパケットとして
上記ファイルに対して出力する。スプーラ22は当該出
力に応じてパケットを上記ファイルに対して格納してス
プールファイルを生成していく。
In step S160, it is determined whether or not the print data overflows from the buffering area, and the process from step S140 is repeated until the print data overflows the buffering area. Then, in step S170, a file name for storing the buffered print data is determined. In step S180, control data is added to the buffered data and output to the file as a print data packet. The spooler 22 generates a spool file by storing the packet in the file according to the output.

【0047】尚、上記ステップS150にて生成された
エスケープパケットに対してもステップS170,S1
80と同様の処理が実行され、スプーラ22によってロ
ーカルスプールファイル15bがスプールされる。ステ
ップS180におけるファイル名はステップS190に
て上記プリントプロセッサ23に出力され、同プリント
プロセッサ23にて同ファイル名を使用してファイルに
アクセスされるようになる。
It should be noted that steps S170 and S1 are also performed on the escape packet generated in step S150.
The same processing as 80 is executed, and the spooler 22 spools the local spool file 15b. The file name in step S180 is output to the print processor 23 in step S190, and the print processor 23 accesses the file using the same file name.

【0048】ステップS200では、印刷ジョブがキャ
ンセルされたか否か、すなわちPRTDRV21におけ
る所定のキャンセルフラグがオンになっているか否かを
判別する。同ステップS200にて印刷ジョブがキャン
セルされたと判別されたときにはステップS210にて
キャンセル処理を実行する。図7は当該キャンセル処理
のフローであり、ステップS212においてPRTDR
V21は上記コマンドファイル15aに対して制御コマ
ンドパケットを出力し、ステップS214にてPRTD
RV21のキャンセルフラグをオンにする。従って、こ
れ以後、プリントプロセッサ23が上記コマンドファイ
ル15aのサイズを参照すると、当該コマンドファイル
15aが通常サイズより大きいと判別し、キャンセル処
理を実行することができる。
In step S200, it is determined whether or not the print job has been canceled, that is, whether or not a predetermined cancel flag in PRTDRV 21 has been turned on. If it is determined in step S200 that the print job has been canceled, a cancel process is executed in step S210. FIG. 7 shows the flow of the cancellation process. In step S212, PRTDR is executed.
V21 outputs a control command packet to the command file 15a.
The cancel flag of the RV 21 is turned on. Therefore, thereafter, when the print processor 23 refers to the size of the command file 15a, it is determined that the command file 15a is larger than the normal size, and the cancel processing can be executed.

【0049】上記ステップS200にて印刷ジョブがキ
ャンセルされていると判別されないときには、ステップ
S220にて上記PRTDRV21の別モジュールが出
力する1ページ分のCMYKデータをすべて処理したか
否かを判別する。同ステップS220にて1ページ分の
CMYKデータをすべて処理したと判別されるまで上記
ステップS140を繰り返すと、ステップS230にて
ページ処理ルーチンを終了する。そして、ステップS2
40にて上記APL25にて投入された印刷ジョブにか
かる印刷データの前ページに対する処理が終了したと判
別されるまで上記ステップS130以降の処理を繰り返
す。従って、本実施形態においては、PRTDRV21
の上記ステップS130〜S240の処理が上記分割出
力機能を構成し、上記スプーラ22が上記スプール機能
を構成する。
If it is not determined in step S200 that the print job has been canceled, it is determined in step S220 whether all the CMYK data for one page output by another module of the PRTDRV 21 has been processed. If step S140 is repeated until it is determined in step S220 that all the CMYK data for one page has been processed, the page processing routine ends in step S230. Then, step S2
The process from step S130 is repeated until it is determined at 40 that the process for the previous page of the print data relating to the print job submitted by the APL 25 has been completed. Therefore, in the present embodiment, PRTDRV21
The processes in steps S130 to S240 constitute the divided output function, and the spooler 22 constitutes the spool function.

【0050】このように、PRTDRV21がローカル
スプールファイル15bと分割スプールファイル15c
1,15c2をスプールすると、上記プリントプロセッ
サ23が上記パラレル通信用I/O19bに印刷データ
を出力する。図8はプリントプロセッサ23が実行する
処理のメインフローを示している。同図において、ステ
ップS300では、上記PRTDRV21がステップS
110において本方式に対応した印刷ジョブの処理を開
始したか否かを判別する。同ステップS300にて本方
式に対応した処理ではないと判別されたときには、従来
通りに印刷データを分割しないで印刷ジョブを実行す
る。
As described above, the PRTDRV 21 has the local spool file 15b and the split spool file 15c.
After spooling 1, 15c2, the print processor 23 outputs print data to the parallel communication I / O 19b. FIG. 8 shows a main flow of a process executed by the print processor 23. In the figure, in step S300, the PRTDRV 21 performs step S300.
At 110, it is determined whether or not the processing of the print job corresponding to this method has been started. If it is determined in step S300 that the process does not correspond to this method, the print job is executed without dividing the print data as in the related art.

【0051】ステップS300にて本方式に対応した印
刷ジョブの処理を開始したと判別されたときには、ステ
ップS310にて上記ハードディスクドライブ15に格
納されたファイルにアクセスする際の出力バッファを確
保する。ステップS320においては、本印刷ジョブが
ローカル接続されたプリンタ40aに対するものである
かネットワーク接続されたプリンタ40bに対するもの
であるかを判別し、ローカルプリンタ40aに対するも
のであると判別されないときには、後述するネットワー
ク出力処理を実行する。
When it is determined in step S300 that the processing of the print job corresponding to this method has been started, an output buffer for accessing the file stored in the hard disk drive 15 is secured in step S310. In step S320, it is determined whether the print job is for the locally-connected printer 40a or the network-connected printer 40b. If it is not determined that the print job is for the local printer 40a, the process proceeds to step S320. Execute output processing.

【0052】ステップS330〜ステップS380にお
いてはローカルスプールファイル15bを読み込んで各
エスケープパケット種別毎の実行を繰り返すようになっ
ている。ステップS330においては所定のフラグがセ
ットされているか否かを判別することにより最終パケッ
トであるファイルの終了を示すパケットを読み込んだか
否かを判別する。同ステップS330にて最終パケット
を読み込んだと判別したときにはステップS390にて
上記ステップS310で確保した出力用バッファを破棄
して一連の処理を終了するようになっている。ステップ
S330にてファイルの終了を示すパケットを読み込ん
だと判別しなかった時には、ステップS340以降でロ
ーカルスプールファイル15bに格納されているパケッ
トを順次読み込んでいく。
In steps S330 to S380, the local spool file 15b is read and the execution for each escape packet type is repeated. In step S330, it is determined whether or not a packet indicating the end of the file, which is the last packet, is read by determining whether or not a predetermined flag is set. If it is determined in step S330 that the last packet has been read, the output buffer secured in step S310 is discarded in step S390, and a series of processing ends. If it is not determined in step S330 that the packet indicating the end of the file has been read, the packets stored in the local spool file 15b are sequentially read from step S340.

【0053】ステップS340では各パケットのヘッダ
を読み込み、ステップS350では後述のステップS4
55にて取得するコマンドファイル15aのサイズが変
化しているか否かを判別することにより印刷ジョブがキ
ャンセルされたか否かを判別する。同ステップS350
にてキャンセルされたと判別されたときには、ステップ
S360にて上記ハードディスクドライブ15に格納さ
れていたローカルスプールファイル15bおよび分割ス
プールファイル15c1,15c2等の不要スプールフ
ァイルを削除する。ステップS350にて印刷ジョブが
キャンセルされたと判別されないときには、ステップS
370にて上記ステップS340で読み込んだパケット
ヘッダに記録されているパケットデータのサイズを取得
し、ステップS380にて各パケット種別毎の処理を実
行する。その後、再びステップS330に戻り、所定の
ファイル終了パケットを処理するまで同様の処理を続け
る。
In step S340, the header of each packet is read, and in step S350, a later-described step S4
It is determined at 55 whether or not the print job has been canceled by determining whether or not the size of the command file 15a acquired has changed. Step S350
If it is determined in step S360 that the spool file has been canceled, unnecessary spool files such as the local spool file 15b and the split spool files 15c1 and 15c2 stored in the hard disk drive 15 are deleted in step S360. If it is not determined in step S350 that the print job has been canceled, the process proceeds to step S350.
At step 370, the size of the packet data recorded in the packet header read at step S340 is acquired, and at step S380, processing for each packet type is executed. Thereafter, the flow returns to step S330, and the same processing is continued until a predetermined file end packet is processed.

【0054】図9は上記ステップS380における各パ
ケット種別毎の処理のフローであり、同図においては、
まず上記パケットのパケットコードを取得する。そし
て、ステップS400,S410ではそれぞれ当該処理
中のパケットがヘッダパケットであるか、フッタパケッ
トであるかを判別し、ヘッダパケットあるいはフッタパ
ケットであるときには特段の処理を実行することなく上
記図8のフローに復帰する。ステップS420において
は、当該処理中のパケットがエスケープパケットである
か否かを判別し、エスケープパケットであると判別され
なければ同様に図8における処理の復帰する。
FIG. 9 is a flowchart of the processing for each packet type in step S380.
First, the packet code of the above packet is obtained. In steps S400 and S410, it is determined whether the packet being processed is a header packet or a footer packet. If the packet is a header packet or a footer packet, the flow in FIG. Return to. In step S420, it is determined whether or not the packet being processed is an escape packet. If it is not determined that the packet is an escape packet, the process in FIG. 8 returns similarly.

【0055】ステップS420にて処理中のパケットが
エスケープパケットであると判別されたときには、ステ
ップS430〜S470にてパケット種別を判別し、対
応する処理を実行する。ステップS430では上記パケ
ットコードがエスケープ方法を示すパケットのものであ
るか否かを判別する。同ステップS430にてパケット
コードがエスケープ方法を示すものであると判別された
ときには、ステップS435にて上記パケットデータ領
域に格納されているデスプール情報を上記出力用バッフ
ァにセーブし、上記図8に示す処理に復帰する。
If it is determined in step S420 that the packet being processed is an escape packet, the packet type is determined in steps S430 to S470, and the corresponding processing is performed. In step S430, it is determined whether or not the packet code is a packet indicating an escape method. If it is determined in step S430 that the packet code indicates the escape method, the despool information stored in the packet data area is saved in the output buffer in step S435, and is shown in FIG. Return to processing.

【0056】ステップS440では上記パケットコード
が部数印刷処理方法を示すパケットのものであるか否か
を判別する。同ステップS440にてパケットコードが
部数印刷処理方法を示すものであると判別されたときに
は、ステップS445にて上記ステップS430にてセ
ーブしたデスプール情報がネットワークであるか否かを
判別する。同ステップS445にてデスプール情報がネ
ットワークであると判別されないときには上記図8に示
すフローに復帰し、ステップS445にてデスプール情
報がネットワークであると判別されたときには、ステッ
プS446にて上記デスプール情報と部数印刷処理情報
を上記コンピュータ50に送信する。
In step S440, it is determined whether or not the packet code is a packet indicating a copy printing processing method. If it is determined in step S440 that the packet code indicates the copy printing method, it is determined in step S445 whether the despool information saved in step S430 is a network. If it is not determined in step S445 that the despool information is a network, the flow returns to the flow shown in FIG. 8. If it is determined in step S445 that the despool information is a network, the despool information and the number of copies are determined in step S446. The print processing information is transmitted to the computer 50.

【0057】ステップS450では上記パケットコード
がコマンドファイルのパスを示すパケットのものである
か否かを判別する。同ステップ450にてパケットコー
ドがコマンドファイルのパスを示すものであると判別さ
れたときには、ステップS455にてコマンドファイル
15aをオープンし、ファイルサイズを取得する。この
後、上記図8に示すフローに復帰し、同ステップS45
5にて取得したコマンドファイル15aのサイズは上記
ステップS350におけるキャンセル判別に使用され
る。
In step S450, it is determined whether or not the packet code is for a packet indicating the path of the command file. If it is determined in step 450 that the packet code indicates the path of the command file, the command file 15a is opened in step S455 to acquire the file size. Thereafter, the flow returns to the flow shown in FIG.
The size of the command file 15a acquired in Step 5 is used for the cancellation determination in Step S350.

【0058】ステップS460では上記パケットコード
が分割スプールファイルのパスを示すパケットのもので
あるか否かを判別する。同ステップS460にてパケッ
トコードが分割スプールファイルのパスを示すものであ
ると判別されたときには、ステップS465にて後述す
る印刷処理を実行する。ステップS470では上記パケ
ットコードがファイル終了を示すものであるか否かを判
別する。同ステップS470にてパケットコードがファ
イル終了を示すものであると判別されたときには、ステ
ップS475にて上記ステップS330の判別に使用す
る最終パケット読み込み済みフラグをセットし、図8に
示すフローに復帰する。
In step S460, it is determined whether or not the packet code is for a packet indicating the path of the divided spool file. If it is determined in step S460 that the packet code indicates the path of the divided spool file, a printing process described later is executed in step S465. In step S470, it is determined whether the packet code indicates the end of the file. If it is determined in step S470 that the packet code indicates the end of the file, the final packet read flag used for determination in step S330 is set in step S475, and the flow returns to the flow shown in FIG. .

【0059】このように、パケット種別毎の処理におい
ては、ステップS430〜S446において後述するネ
ットワーク接続されたプリンタ40bに対する処理を実
行し、ステップS450,S455にてPRTDRV2
1におけるキャンセルの有無を判別するための処理を実
行し、ステップS460,S465にて分割スプールフ
ァイルの印刷データを印刷するための処理を行う。図1
0は同ステップS465における印刷処理のフローを示
しており、同図において、ステップS500では上記P
RTDRV21がステップS190にて出力した分割ス
プールファイル名を取得する。
As described above, in the processing for each packet type, the processing for the network-connected printer 40b described later is executed in steps S430 to S446, and the PRTDRV2 is executed in steps S450 and S455.
In step S460, steps S460 and S465 are performed to print the print data of the split spool file. FIG.
0 indicates the flow of the printing process in the step S465, and in FIG.
The RTDRV 21 acquires the split spool file name output in step S190.

【0060】ステップS510では上記ステップS46
0にて判別したパケットのパケットデータを参照し、当
該パスに格納された分割スプールファイルをオープンす
る。さらに、ステップS520にて当該分割スプールフ
ァイルサイズを取得してメモリを確保し、ステップS5
30にて確保したメモリに分割スプールファイルを読み
込む。ここで、ステップS540にてデスプール情報が
ネットワークであるか否かを判別し、同ステップS54
0にてデスプール情報がネットワークであると判別され
たときにはステップS600にて上記読み込んだ分割ス
プールファイルの印刷データパケットをコンピュータ5
0に送信し、ステップS610にて同分割スプールファ
イルを削除して上記確保したメモリデータを破棄する。
すなわち、本実施形態においては、印刷処理の段階で印
刷データパケットをコンピュータ50に送信することも
可能になっている。
In step S510, the above-described step S46 is performed.
Referring to the packet data of the packet determined at 0, the split spool file stored in the path is opened. Further, in step S520, the size of the divided spool file is acquired and a memory is secured.
The divided spool file is read into the memory secured at 30. Here, in step S540, it is determined whether or not the despool information is a network.
0, if the despool information is determined to be a network, the print data packet of the read divided spool file is sent to the computer 5 in step S600.
0, and the split spool file is deleted in step S610 to discard the secured memory data.
That is, in the present embodiment, it is possible to transmit the print data packet to the computer 50 at the stage of the printing process.

【0061】ステップS540にてデスプール情報がネ
ットワークであると判別されないときには、ステップS
550,S560にて処理中パケットのパケットコード
を参照し、当該パケットが、図4(a)に示す種々のパ
ケットのうちヘッダパケットおよびフッタパケットであ
るか否かを判別する。同ステップS550,S560に
てヘッダパケットおよびフッタパケットであると判別さ
れたときには、ステップS590以降の処理を行う。ス
テップS550,S560にてヘッダパケットおよびフ
ッタパケットであると判別されないときには、ステップ
S570にて処理中パケットのパケットコードを参照
し、印刷データパケットであるか否かを判別する。
If it is not determined in step S540 that the despool information is a network, the process proceeds to step S540.
In 550 and S560, it is determined whether or not the packet is a header packet and a footer packet among various packets shown in FIG. If it is determined in steps S550 and S560 that the packet is a header packet and a footer packet, the process from step S590 is performed. If it is not determined in steps S550 and S560 that the packet is a header packet or a footer packet, in step S570, it is determined whether or not the packet is a print data packet by referring to the packet code of the packet being processed.

【0062】同ステップS570にて処理中パケットが
印刷データパケットであると判別されたときには、ステ
ップS572にて上記ステップS350と同様にしてコ
マンドファイル15aを参照し、印刷ジョブがキャンセ
ルされたか否かを判別する。同ステップS572にて印
刷ジョブがキャンセルされたと判別されないときには、
ステップS574にて当該印刷データパケット中のパケ
ットデータを上記パラレル通信用I/O19bを介して
出力する。
If it is determined in step S570 that the packet being processed is a print data packet, the command file 15a is referenced in step S572 in the same manner as in step S350 to determine whether the print job has been canceled. Determine. If it is not determined in step S572 that the print job has been cancelled,
In step S574, the packet data in the print data packet is output via the parallel communication I / O 19b.

【0063】従って、プリンタ40aに対しては、印刷
に必要なスタートジョブコマンドやRawデータ等のみ
が出力されることになる。ステップS580では、処理
中パケットのパケットコードを参照し、ファイル終了を
示すパケットであるか否かを判別する。同ステップS5
80にて処理中パケットがファイル終了を示すパケット
であると判別されたときには、ステップS610にて上
記読み込んだ分割スプールファイルを上記ハードディス
クドライブ15から削除し、上記確保したメモリを破棄
して上記図9に示す処理に復帰する。
Accordingly, only the start job command, Raw data, and the like necessary for printing are output to the printer 40a. In step S580, by referring to the packet code of the packet being processed, it is determined whether or not the packet indicates the end of the file. Step S5
If it is determined in step 80 that the packet being processed is a packet indicating the end of the file, the read divided spool file is deleted from the hard disk drive 15 in step S610, the secured memory is discarded, and FIG. The process returns to the process indicated by.

【0064】すなわち、各分割スプールファイル15c
1,15c2,,,はその印刷データが出力された段階
で各分割スプールファイル毎に削除され、非常に大きな
印刷データを印刷する場合でも、ハードディスクドライ
ブ15に当該印刷データと同程度の空き容量を必要しな
い。このように、本実施形態においては、プリントプロ
セッサ23の図8〜10に示す処理が上記印刷データ出
力機能に該当し、ステップS610における処理が上記
分割データ削除機能に該当する。また、上記ステップS
580にて処理中パケットがファイル終了を示すパケッ
トであると判別されないときには、ステップS590に
て再び上記ステップS455と同様にコマンドファイル
15aのサイズを監視し、ステップS550以下の処理
を繰り返す。
That is, each split spool file 15c
1, 15c2,... Are deleted for each divided spool file when the print data is output, and even when printing very large print data, the hard disk drive 15 has the same free space as the print data. No need. As described above, in the present embodiment, the processing of the print processor 23 shown in FIGS. 8 to 10 corresponds to the print data output function, and the processing in step S610 corresponds to the divided data deletion function. In addition, the above step S
If it is not determined in 580 that the packet being processed is a packet indicating the end of the file, the size of the command file 15a is monitored again in step S590, as in step S455, and the processing in step S550 and subsequent steps is repeated.

【0065】図11は、上記構成および制御フローにお
ける印刷ジョブ実行の一例を概念的に示す図である。こ
こでは、上述の図2に示すプリンタ40aに対して所定
の印刷を実行することを想定しており、デスプール方法
ではローカルが指定され、部数印刷処理方法において特
段の指定がなされない状態について説明する。尚、印刷
ジョブのキャンセルは行われない状態を想定しており、
また、図においてEscape(・・・)などと書かれ
た実線のブロックはパケットを示しており、Rawデー
タなどと書かれた点線のブロックはパケットではないデ
ータ列を示している。
FIG. 11 is a diagram conceptually showing an example of execution of a print job in the above configuration and control flow. Here, it is assumed that predetermined printing is performed on the printer 40a shown in FIG. 2 described above, and a description will be given of a state in which local is specified in the despooling method and no special specification is made in the copy number printing processing method. . It is assumed that the print job is not canceled,
In the drawing, solid-line blocks written as Escape (...) indicate packets, and dotted-line blocks written as Raw data indicate data strings that are not packets.

【0066】同図において、上記APL25から所定の
ジョブを投入されたPRTDRV21は、ステップS1
10にて本方式にかかる処理を開始することをプリント
プロセッサ23に通知し、ステップS120にてコマン
ドファイル15aのファイル名をプリントプロセッサ2
3に出力する。ステップS140〜ステップS160で
は同図示す各パケットを作成し、ステップS170にて
ハードディスクドライブ15に格納させるローカルスプ
ールファイル15bと分割スプールファイル15c1,
15c2,15c3のファイル名を決定する。
In the figure, the PRTDRV 21 to which a predetermined job has been input from the APL 25 is determined in step S1.
In step S120, the print processor 23 notifies the print processor 23 of the start of the process according to the present method.
Output to 3. In steps S140 to S160, each packet shown in the drawing is created, and in step S170, the local spool file 15b and the split spool file 15c1, which are stored in the hard disk drive 15, are divided.
The file names 15c2 and 15c3 are determined.

【0067】そして、ステップS180の処理によっ
て、ハードディスクドライブ15に所定のエスケープパ
ケットやヘッダ,フッタパケットからなる図3(b)に
示すようなローカルスプールファイル15bが格納され
る。また、所定のエスケープパケットやヘッダ,フッタ
パケットおよび印刷データパケットからなる図4(a)
のような分割スプールファイル15c1〜15c3が複
数個格納される。ここで、図4(a)に示す構造におい
ては印刷ジョブのスタートを示すパケットから印刷ジョ
ブのエンドを示すパケットまでが一つのファイルに格納
されているが、分割スプールファイルが複数個になる場
合には、必ずしもこのような構造になるわけではない。
Then, by the processing in step S180, a local spool file 15b composed of a predetermined escape packet, header, and footer packet as shown in FIG. 3B is stored in the hard disk drive 15. FIG. 4 (a) comprising a predetermined escape packet, header, footer packet and print data packet.
A plurality of such divided spool files 15c1 to 15c3 are stored. Here, in the structure shown in FIG. 4A, a packet from the packet indicating the start of the print job to the packet indicating the end of the print job is stored in one file. Does not always have such a structure.

【0068】すなわち、印刷データは通常スタートジョ
ブコマンドから始まり、エンドジョブコマンドに終わ
る。さらにこれらのコマンドの間にはページシーケンス
データが挿入されるようになっており、スタートページ
コマンドとエンドページコマンドとの間に印刷する画像
データ等のRawデータが存在する。従って、大容量の
印刷データを分割して図11のように分割スプールファ
イルが3つになった場合には、最初の分割スプールファ
イル15c1にのみスタートジョブコマンドからなる印
刷データパケットが存在し、最後の分割スプールファイ
ル15c3にのみエンドジョブコマンドからなる印刷デ
ータパケットが存在する。いずれにしても、各ファイル
の最後にはファイル終了を示すエスケープパケットが格
納される。
That is, print data usually starts with a start job command and ends with an end job command. Further, page sequence data is inserted between these commands, and Raw data such as image data to be printed exists between the start page command and the end page command. Therefore, when a large amount of print data is divided into three divided spool files as shown in FIG. 11, only the first divided spool file 15c1 has a print data packet including a start job command, The print data packet including the end job command exists only in the divided spool file 15c3. In any case, an escape packet indicating the end of the file is stored at the end of each file.

【0069】ハードディスクドライブ15に分割スプー
ルファイルが格納されると、プリントプロセッサ23は
まず最初にローカルスプールファイル15bを読み込
む。ステップS340,S370にてパケットヘッダに
基づいてパケットデータサイズを取得し、ステップS4
00〜S470にてパケットコードを参照すると、上記
ローカルスプールファイル15bの各エスケープパケッ
トに対応した処理が行われる。ここでは、上述のように
ローカル印刷であってキャンセルを実行しない状態を想
定しているので、ステップS460にて上記ローカルス
プールファイル15bの分割スプールファイルのパスを
示すエスケープパケットを判別し、ステップS465に
てまず分割スプールファイル15c1に対する処理を実
行する。
When the divided spool file is stored in the hard disk drive 15, the print processor 23 first reads the local spool file 15b. In steps S340 and S370, the packet data size is obtained based on the packet header, and in step S4
Referring to the packet code in 00 to S470, processing corresponding to each escape packet of the local spool file 15b is performed. Here, since it is assumed that local printing is performed and cancellation is not performed as described above, an escape packet indicating the path of the split spool file of the local spool file 15b is determined in step S460, and the process proceeds to step S465. First, processing is performed on the divided spool file 15c1.

【0070】この印刷処理において、プリントプロセッ
サ23はステップS500〜S530にて上記RAM1
4に対して所定の記憶領域を確保し、分割スプールファ
イル15c1を格納する。そして、ステップS550以
降で同分割スプールファイル15c1の各パケットに対
して処理を実行し始め、ステップS550,S590お
よびステップS570の判別を経て最初の印刷データが
格納されているスタートジョブコマンドのパケットを処
理する。本例においては印刷ジョブはキャンセルされな
いので、ステップS574にて上記スタートジョブコマ
ンドパケットのパケットデータ領域に格納されているス
タートジョブコマンドのみが上記パラレル通信用I/O
19bに出力される。
In this printing process, the print processor 23 determines in steps S500 to S530 that the RAM 1
4, a predetermined storage area is secured, and the divided spool file 15c1 is stored. Then, after step S550, the processing of each packet of the same split spool file 15c1 is started, and after the determination of steps S550, S590 and S570, the processing of the packet of the start job command in which the first print data is stored is performed. I do. In this example, since the print job is not canceled, only the start job command stored in the packet data area of the start job command packet in step S574 is stored in the parallel communication I / O.
19b.

【0071】プリントプロセッサ23はその後、ステッ
プS550以降の処理を繰り返すので、分割スプールフ
ァイル15c1においてスタートジョブコマンドパケッ
トの次に格納されるスタートページコマンドパケットに
対してステップS570,S572にて同様の処理を実
行し、スタートページコマンドが上記パラレル通信用I
/O19bに出力される。さらに、続くRawデータも
同様にパラレル通信用I/O19bに出力される。この
ようにして、図11に示すように分割スプールファイル
15c1中のスタートジョブコマンド,Rawデータ等
の印刷データのみがパラレル通信用I/O19bに出力
される。当該分割スプールファイル15c1の最後のパ
ケットであるファイル終了を示すエスケープパケットを
処理する際には、ステップS580の判別を経てステッ
プS610にて分割スプールファイル15c1を上記R
AM14およびハードディスクドライブ15から削除す
る。
After that, the print processor 23 repeats the processing from step S550, so that the same processing is performed in steps S570 and S572 on the start page command packet stored next to the start job command packet in the divided spool file 15c1. Execute, and the start page command is
/ O19b. Further, the following Raw data is similarly output to the parallel communication I / O 19b. In this way, as shown in FIG. 11, only the print data such as the start job command and the RAW data in the divided spool file 15c1 is output to the parallel communication I / O 19b. When processing the escape packet indicating the end of the file, which is the last packet of the divided spool file 15c1, the divided spool file 15c1 is stored in the above-mentioned R in step S610 after the determination in step S580.
AM 14 and hard disk drive 15 are deleted.

【0072】この結果、印刷ジョブがすべて終了する前
にすでに印刷した印刷データにかかるファイルをハード
ディスクドライブ15から削除することが可能になる。
従って、大きな印刷データにかかる印刷ジョブを実行す
る際に、当該印刷データをすべてスプールしなくとも印
刷を実行することが可能になり、印刷開始が早くなると
ともに、スプールに必要なハードディスクドライブの空
き容量が低減される。また、印刷データを送信する際に
一時的にファイルを格納するRAM14においてh必要
とされる記憶容量も低減される。
As a result, it is possible to delete from the hard disk drive 15 the file relating to the print data already printed before all the print jobs are completed.
Therefore, when a print job involving large print data is executed, printing can be executed without spooling all the print data, so that printing can be started quickly and the free space of the hard disk drive required for spooling can be obtained. Is reduced. Further, the required storage capacity of the RAM 14 for temporarily storing a file when transmitting print data is also reduced.

【0073】以上述べてきた動作はローカル接続された
プリンタ40aに対して印刷を実行する場合のものであ
ったが、むろん印刷先はネットワークを介して接続され
るプリンタ40bに対してでも可能である。図12は上
記図1に示すコンピュータ50がプリンタ40bのプリ
ンタサーバとして機能する場合における概略構成図を示
している。同図において、コンピュータ50は通常上記
図1,図2に示すコンピュータ10と同様の構成にて実
現されるが、すでに述べたプリントプロセッサの処理フ
ローはネットワークに対応しており、本発明を実施する
ためには、コンピュータ50のOSに同プリントプロセ
ッサが組み込まれていればよい。
The operation described above is for the case where printing is performed on the locally connected printer 40a. However, it is needless to say that the printing destination can be the printer 40b connected via a network. . FIG. 12 is a schematic configuration diagram when the computer 50 shown in FIG. 1 functions as a printer server of the printer 40b. In the figure, the computer 50 is usually realized by the same configuration as the computer 10 shown in FIGS. 1 and 2, but the processing flow of the print processor already described corresponds to a network, and the present invention is implemented. For this purpose, the print processor may be incorporated in the OS of the computer 50.

【0074】図12に示すように本実施形態にかかるコ
ンピュータ10では、上述の構成と同様にプリンタドラ
イバ(PRTDRV)21とスプーラ22とプリントプ
ロセッサ23とがOS20に組み込まれている。ここに
おいてもPRTDRV21はAPL25からの印刷ジョ
ブにかかるデータに対して通常のPRTDRVが実行す
る処理と、CMYKデータに制御情報を付加したパケッ
ト、あるいは所定の制御情報からなるパケットの生成と
を実行する。スプーラ22は当該複数のパケットから構
成される複数のファイルを上記ハードディスクドライブ
15にスプールする。すなわち、上述のローカルスプー
ルファイル15bおよび分割スプールファイル15c
1,,,がスプールされる。
As shown in FIG. 12, in the computer 10 according to the present embodiment, a printer driver (PRTDRV) 21, a spooler 22, and a print processor 23 are incorporated in the OS 20 in the same manner as in the above-described configuration. Also in this case, the PRTDRV 21 executes a process executed by the normal PRTDRV on the data relating to the print job from the APL 25, and generates a packet in which control information is added to CMYK data or a packet including predetermined control information. The spooler 22 spools a plurality of files composed of the plurality of packets to the hard disk drive 15. That is, the above-described local spool file 15b and split spool file 15c
1,, are spooled.

【0075】また、コンピュータ50ではそのOS20
0にコンピュータ10と同様のスプーラ220とプリン
トプロセッサ230とが組み込まれている。同スプーラ
220は10BASE−T用I/O190cを介して上
記コンピュータ10のプリントプロセッサ23が出力す
るパケットを取得し、ハードディスクドライブ150に
ネットワークスプールファイル150dおよびネットワ
ークページスプールファイル150eをスプールする。
プリントプロセッサ230はこれらのスプールファイル
中のパケットから印刷データを抽出してパラレル通信用
I/O190bを介して出力させるようになっている。
従って、プリンタ40bに対して印刷データが出力され
て所定の印刷ジョブが実行される。
In the computer 50, the OS 20
0 has a spooler 220 and a print processor 230 similar to those of the computer 10. The spooler 220 acquires a packet output from the print processor 23 of the computer 10 via the 10BASE-T I / O 190c, and spools the network spool file 150d and the network page spool file 150e on the hard disk drive 150.
The print processor 230 extracts print data from packets in these spool files and outputs the print data via the parallel communication I / O 190b.
Therefore, the print data is output to the printer 40b and a predetermined print job is executed.

【0076】本例において上述のコンピュータ10のロ
ーカルスプールファイル15bの各パケットのうち、デ
スプール方法ではネットワークが指定され、部数印刷処
理方法では部数印刷および帳合い印刷の要否が指定され
る。これらの指定により、プリントプロセッサ23は所
定のパケットを10BASE−T用I/O19cから出
力し、帳合い印刷用のネットワークスプールファイル1
50dをスプールし、あるいは部数印刷用のネットワー
クページスプールファイル150eをスプールさせる。
また、プリントプロセッサ230においてはこれらのフ
ァイルのエスケープパケットを使用して帳合い印刷ある
いは部数印刷に応じた印刷データの出力を実行する。
In this example, of the packets of the local spool file 15b of the computer 10 described above, the network is designated by the despooling method, and the necessity of the copy printing and the book printing is designated by the copy printing method. According to these designations, the print processor 23 outputs a predetermined packet from the 10BASE-T I / O 19c, and outputs the
50d is spooled, or a network page spool file 150e for printing copies is spooled.
The print processor 230 uses the escape packets of these files to output print data in accordance with the book print or the number of copies.

【0077】図13は上記ネットワークスプールファイ
ル150dを構成するパケットを示している。同ネット
ワークスプールファイル150dは、帳合い印刷時にプ
リントプロセッサ23が上記ローカルスプールファイル
15bと分割スプールファイル15c1,,,の双方に
基づいて所定のパケットを出力することにより、コンピ
ュータ50のスプーラ220によってスプールされる。
同ネットワークスプールファイル150dは部数印刷処
理方法を示すエスケープパケットや印刷データパケット
等からなり、複数のページがある場合でも一つの印刷ジ
ョブにかかる印刷データを一つのスプールファイルに保
存するようになっている。
FIG. 13 shows a packet constituting the network spool file 150d. The network spool file 150d is spooled by the spooler 220 of the computer 50 when the print processor 23 outputs a predetermined packet based on both the local spool file 15b and the divided spool files 15c1,. You.
The network spool file 150d is composed of an escape packet, a print data packet, and the like indicating the number of copies print processing method. Even if there are a plurality of pages, print data for one print job is stored in one spool file. .

【0078】プリントプロセッサ230は、後述する処
理により上記部数印刷処理方法にて示される印刷部数と
同回数だけ印刷データを上記パラレル通信用I/O19
bに出力する。従って、プリンタ40bにおいては一連
の文書等が文書頭から文書末まで一旦印刷され、この処
理が当該部数回繰り返される。すなわち、一つの印刷ジ
ョブにかかるデータを複数回使用することにより、コン
ピュータ50において全ページ数×部数分のデータをス
プールすることなく帳合い印刷が実行できるようになっ
ている。
The print processor 230 transmits the print data by the same number of times as the number of print copies indicated by the above-mentioned print processing method by the processing described later.
b. Therefore, in the printer 40b, a series of documents and the like are printed once from the beginning of the document to the end of the document, and this process is repeated several times. In other words, by using the data for one print job a plurality of times, it is possible to execute book printing without spooling the data of the total number of pages × the number of copies in the computer 50.

【0079】図14は上記ネットワークページスプール
ファイル150eを構成するパケットを示している。同
ネットワークページスプールファイル150eはプリン
トプロセッサ23が上記分割スプールファイル15c
1,,,に基づいて所定のパケットを出力することによ
り、コンピュータ50のスプーラ220がスプールする
ものであり、印刷データパケットおよびファイル終了を
示すエスケープパケットからなる。同ネットワークペー
ジスプールファイル150eは複数のページがある場合
に、1ページ毎に一つのスプールファイルに保存するよ
うになっている。
FIG. 14 shows a packet constituting the network page spool file 150e. The network processor spool file 150e is sent to the print processor 23 by the split spool file 15c.
The spooler 220 of the computer 50 spools by outputting a predetermined packet based on 1,,, and consists of a print data packet and an escape packet indicating the end of the file. When there are a plurality of pages, the network page spool file 150e is stored in one spool file for each page.

【0080】そして、プリントプロセッサ230が各ペ
ージの印刷データを上記部数印刷処理方法にて示される
印刷部数の回数分上記パラレル通信用I/O19bに出
力することにより、当該部数の印刷がなされる。すなわ
ち、一つの印刷ページにかかるデータを複数回使用する
ことにより、コンピュータ50において当該ページのデ
ータを部数分スプールすることなく部数印刷が実行でき
るようになっている。また、当該印刷ページの印刷が終
了した時点で当該印刷ページのネットワークページスプ
ールファイル150eを順次削除していくことができる
ので、一つの印刷ジョブにかかるデータを全てコンピュ
ータ50にスプールする必要がなく、ハードディスクド
ライブ150に大きな空き容量を必要としない。
Then, the print processor 230 outputs the print data of each page to the parallel communication I / O 19b as many times as the number of print copies indicated by the above-described copy print processing method, so that the number of copies is printed. In other words, by using the data for one print page a plurality of times, the computer 50 can execute the print copy without spooling the data of the page by the number of copies. Further, since the network page spool file 150e of the print page can be sequentially deleted when the printing of the print page is completed, it is not necessary to spool all the data relating to one print job to the computer 50. The hard disk drive 150 does not require a large free space.

【0081】図15,16は、コンピュータ10のプリ
ントプロセッサ23がネットワークを介してコンピュー
タ50に接続されたプリンタ40bにて所定の印刷ジョ
ブを実行すべく印刷データを出力する際のフローであ
る。本実施形態において、プリントプロセッサ23およ
びプリントプロセッサ230の処理は上記第一の実施形
態におけるプリントプロセッサの処理フローと概略共通
している。ここでは、同第一の実施形態において説明し
なかったネットワークに関する処理について説明する。
FIGS. 15 and 16 show a flow when the print processor 23 of the computer 10 outputs print data to execute a predetermined print job on the printer 40b connected to the computer 50 via the network. In the present embodiment, the processing of the print processor 23 and the print processor 230 is substantially common to the processing flow of the print processor in the first embodiment. Here, a description will be given of a network-related process not described in the first embodiment.

【0082】本実施形態における上記APL25から印
刷ジョブが投入されると、PRTDRV21の処理によ
ってコンピュータ10のハードディスクドライブ15に
コマンドファイル15a,ローカルスプールファイル1
5b,分割スプールファイル15c1,,,がスプール
される。このときプリントプロセッサ23も処理を開始
するが、ステップS320にて印刷ジョブがローカルプ
リンタに対するものであると判別せずに、図15に示す
ネットワーク出力処理に移行する。ステップS700に
おいて、上記ステップS340,S370における処理
と同様にしてローカルスプールファイル15b中の各パ
ケットのパケットヘッダに基づいてパケットデータサイ
ズを把握する。そして、ステップS710以降でパケッ
トコードを参照することによりパケット種別毎の処理を
実行する。
When a print job is input from the APL 25 in this embodiment, the command file 15 a and the local spool file 1 are stored in the hard disk drive 15 of the computer 10 by the processing of the PRTDRV 21.
5b, the split spool files 15c1,... Are spooled. At this time, the print processor 23 also starts processing, but shifts to the network output processing shown in FIG. 15 without determining that the print job is for the local printer in step S320. In step S700, the packet data size is ascertained based on the packet header of each packet in the local spool file 15b in the same manner as in the processing in steps S340 and S370. Then, the process for each packet type is executed by referring to the packet code in step S710 and thereafter.

【0083】ステップS710では上記パケットコード
が部数印刷処理方法を示すパケットのものであるか否か
を判別する。同ステップS710にてパケットコードが
部数印刷処理方法を示すものであると判別されたときに
は、ステップS712にてさらに当該パケットデータに
て複数部数の印刷を指示しているか否かを判別する。同
ステップS712にて複数部数の印刷を指示していると
判別されないときには、ステップS716にて複数部数
出力を示すファイル出力フラグをリセットする。ステッ
プS712にて複数部数の印刷を指示していると判別さ
れたときには、上記ファイル出力フラグをセットして印
刷データ格納用の一時ファイル名を決定する。ここで、
一時ファイルは上記ネットワークスプールファイル15
0dあるいはネットワークページスプールファイル15
0eのいずれかである。
In step S710, it is determined whether or not the packet code is for a packet indicating a copy printing method. If it is determined in step S710 that the packet code indicates the copy printing method, it is further determined in step S712 whether or not the packet data instructs printing of a plurality of copies. If it is not determined in step S712 that printing of a plurality of copies has been instructed, the file output flag indicating the output of a plurality of copies is reset in step S716. If it is determined in step S712 that printing of a plurality of copies has been instructed, the file output flag is set and a temporary file name for storing print data is determined. here,
The temporary file is the network spool file 15
0d or network page spool file 15
0e.

【0084】これらのファイル出力フラグの処理の後、
ステップS700以降の処理を繰り返し、ステップS7
20では上記パケットコードがスタートページコマンド
を示す印刷パケットであるか否かを判別する。同ステッ
プS720にてパケットコードがスタートページコマン
ドを示すものであると判別されたときには、ステップS
722にて上記ファイル出力フラグがセット済みである
か否かを判別する。同ステップS722にてファイル出
力フラグがセット済みであると判別されないときには複
数部数の印刷ではないので、ステップS726にて10
BASE−T用I/O19cを介して印刷データを出力
する。このとき、コンピュータ50のプリントプロセッ
サ230はハードディスクドライブ150にスプールフ
ァイルを作成することなく、印刷データたるスタートペ
ージコマンドをパラレル通信用I/O190bに出力す
る。
After the processing of these file output flags,
The processing after step S700 is repeated, and step S7
At 20, it is determined whether or not the packet code is a print packet indicating a start page command. If it is determined in step S720 that the packet code indicates the start page command, the process proceeds to step S720.
At 722, it is determined whether or not the file output flag has been set. If it is not determined in step S722 that the file output flag has been set, the printing is not performed for a plurality of copies.
The print data is output via the BASE-T I / O 19c. At this time, the print processor 230 of the computer 50 outputs a start page command as print data to the parallel communication I / O 190b without creating a spool file in the hard disk drive 150.

【0085】ステップS722にてファイル出力フラグ
がセット済みであると判別されないときには、ステップ
S724にて一時ファイルをオープンし、ステップS7
28にて印刷データパケットを10BASE−T用I/
O19cを介して出力する。このとき、コンピュータ5
0では当該パケットを10BASE−T用I/O190
cを介して受信し、スプーラ220がネットワークスプ
ールファイル150dあるいはネットワークページスプ
ールファイル150eに格納する。
If it is not determined in step S722 that the file output flag has been set, the temporary file is opened in step S724, and the process proceeds to step S7.
28, the print data packet is sent to the 10BASE-T I /
Output via O19c. At this time, the computer 5
In the case of 0, the packet is transferred to the 10BASE-T I / O 190.
c, and is stored in the network spool file 150d or the network page spool file 150e by the spooler 220.

【0086】ステップS730では上記パケットコード
がスタートページコマンド以外を示すものであるか否か
を判別する。同ステップS730にてパケットコードが
スタートページコマンド以外であると判別されたときに
は、ステップS732にて上記ファイル出力フラグがセ
ット済みであるか否かを判別する。同ステップS732
にてファイル出力フラグがセット済みであると判別され
ないときには、ステップS736にて上記ステップS7
26と同様に10BASE−T用I/O19cを介して
印刷データを出力する。
In step S730, it is determined whether or not the packet code indicates anything other than the start page command. If it is determined in step S730 that the packet code is other than the start page command, it is determined in step S732 whether the file output flag has been set. Step S732
If it is not determined in step S736 that the file output flag has been set, the process proceeds to step S736.
26, print data is output via the 10BASE-T I / O 19c.

【0087】ステップS732にてファイル出力フラグ
がセット済みであると判別されたときには、ステップS
734にて当該処理中の印刷データパケットを10BA
SE−T用I/O19cを介して出力する。コンピュー
タ50では上記と同様に当該パケットを10BASE−
T用I/O190cを介して受信し、スプーラ220が
ネットワークスプールファイル150dあるいはネット
ワークページスプールファイル150eに格納する。
If it is determined in step S732 that the file output flag has been set, the process proceeds to step S732.
At 734, the print data packet being processed is
Output through the I / O 19c for SE-T. In the computer 50, the packet is transmitted as 10BASE-
It is received via the T I / O 190c and stored by the spooler 220 in the network spool file 150d or the network page spool file 150e.

【0088】ステップS740では上記パケットコード
がエンドページを示すものであるか否かを判別する。同
ステップS740にてパケットコードがエンドページを
示すものであると判別されたときには、ステップS74
2にて上記ファイル出力フラグがセット済みであるか否
かを判別する。同ステップS742にてファイル出力フ
ラグがセット済みであると判別された時にはステップS
744でファイル終了を示すエスケープパケットを10
BASE−T用I/O19cを介して出力する。コンピ
ュータ50では上記と同様に当該パケットを10BAS
E−T用I/O190cを介して受信し、スプーラ22
0がネットワークスプールファイル150dあるいはネ
ットワークページスプールファイル150eに格納す
る。
In step S740, it is determined whether the packet code indicates an end page. If it is determined in step S740 that the packet code indicates the end page, the process proceeds to step S74.
At 2, it is determined whether or not the file output flag has been set. If it is determined in step S742 that the file output flag has been set, the process proceeds to step S742.
In 744, the escape packet indicating the end of the file is set to 10
Output via the BASE-T I / O 19c. In the computer 50, the packet is sent to the
Received via the I / O 190c for ET,
0 is stored in the network spool file 150d or the network page spool file 150e.

【0089】さらに、ステップS746では、上記ステ
ップS710にて判別したエスケープパケットの部数処
理方法において帳合い印刷が指定されているか否かを判
別し、同ステップS746にて帳合い印刷が指定されて
いると判別されないときにステップS748にてコンピ
ュータ50のプリントプロセッサ230に印刷処理を実
行させる。すなわち、上記ステップS744までの処理
によって一つの一時ファイルに一ページ分の印刷データ
が格納されており、この段階で印刷を開始することによ
って当該ページの複数部数の印刷が実行される。従っ
て、この場合の一時ファイルは上記ネットワークページ
スプールファイル150eである。
Further, in step S746, it is determined whether or not book printing is specified in the escape packet copy processing method determined in step S710, and book printing is specified in step S746. If not determined, the print processor 230 of the computer 50 is caused to execute a printing process in step S748. That is, one page of print data is stored in one temporary file by the processing up to step S744, and printing of a plurality of copies of the page is executed by starting printing at this stage. Therefore, the temporary file in this case is the network page spool file 150e.

【0090】帳合い印刷の時には上記ステップS746
の判別を経て再びステップS700以降の処理が実行さ
れるので、一連の処理によって上記一時ファイルにさら
に次のページの印刷データが追加されていく。すなわ
ち、この場合の一時ファイルが上記ネットワークスプー
ルファイル150dである。上記処理はステップS75
0にて上記パケットコードがファイル終了を示すもので
あると判別されるまで繰り返される。同ステップS75
0にてパケットコードがファイル終了を示すものである
と判別されたときには、ステップS760で上記ステッ
プS710にて判別したエスケープパケットの部数処理
方法において帳合い印刷が指定されているか否かを判別
し、同ステップS760にて帳合い印刷が指定されてい
ると判別されたときにステップS762にてコンピュー
タ50のプリントプロセッサ230に印刷処理を実行さ
せる。
At the time of book printing, the above step S746 is performed.
After the determination in step S700, the processing after step S700 is executed again, so that the print data of the next page is further added to the temporary file by a series of processing. That is, the temporary file in this case is the network spool file 150d. The above processing is performed in step S75.
This process is repeated until it is determined at 0 that the packet code indicates the end of the file. Step S75
When it is determined at 0 that the packet code indicates the end of the file, at step S760, it is determined whether or not set printing is designated in the escape packet copy processing method determined at step S710. If it is determined in step S760 that the book printing is designated, the print processor 230 of the computer 50 causes the print processor 230 of the computer 50 to execute the printing process in step S762.

【0091】図17は、コンピュータ50のプリントプ
ロセッサ230が上記ネットワークスプールファイル1
50dあるいはネットワークページスプールファイル1
50eを使用してプリンタ40bにて所定の印刷を実行
する際のフローである。同図において、ステップS80
0の判別により、当該印刷処理が部数印刷である場合、
すなわちステップS746の判別を経て実行されている
場合には、ステップS830以降の処理を実行する。同
ステップS830では上記ネットワークページスプール
ファイル150eに基づいて最初のページから出力を開
始する。
FIG. 17 shows that the print processor 230 of the computer 50
50d or network page spool file 1
It is a flow when a predetermined print is executed by the printer 40b using the printer 50e. In the figure, step S80
If the print processing is a copy print by the determination of 0,
That is, if the processing has been performed after the determination in step S746, the processing after step S830 is performed. In step S830, output starts from the first page based on the network page spool file 150e.

【0092】ここでの出力は上記図10に示す処理とほ
ぼ同様であり、分割スプールファイルの代わりにネット
ワークページスプールファイル150eを使用してい
る。また、上記ステップS610における削除処理は実
行しない。同ステップS830にて1ページ分の印刷を
実行するとステップS840にて上記部数印刷処理方法
で指定された部数分印刷したか否かを判別し、当該部数
分印刷するまで同ページ出力を実行する。そして、ステ
ップS850にて当該印刷済みページのネットワークペ
ージスプールファイル150eを削除しメモリを破棄し
て上記図15,16の処理に復帰し、次の印刷ページデ
ータのスプールおよび印刷を実行する。
The output here is almost the same as the processing shown in FIG. 10, and a network page spool file 150e is used instead of the split spool file. Further, the deletion processing in step S610 is not executed. When printing for one page is performed in step S830, it is determined in step S840 whether or not the number of copies specified by the above-described number print processing method has been printed, and the same page is output until the number of copies is printed. In step S850, the network page spool file 150e of the printed page is deleted, the memory is discarded, and the process returns to the processing in FIGS. 15 and 16 to execute the spooling and printing of the next print page data.

【0093】当該印刷処理が帳合い印刷である場合、す
なわちステップS760の判別を経て実行されている場
合には、ステップS810以降の処理を実行する。同ス
テップS810では上記ネットワークスプールファイル
150dに基づいて最初のページから全ページ分の出力
を開始する。ここでの出力も上記図10に示す処理とほ
ぼ同様であり、分割スプールファイルの代わりにネット
ワークスプールファイル150dを使用している。ま
た、上記ステップS610における削除処理は実行しな
いようになっている。
If the printing process is the book printing, that is, if the printing process has been performed after the determination in step S760, the processes in and after step S810 are performed. In step S810, output of all pages starts from the first page based on the network spool file 150d. The output here is almost the same as the processing shown in FIG. 10, and the network spool file 150d is used instead of the split spool file. Further, the deletion processing in step S610 is not executed.

【0094】ステップS810にて当該ネットワークス
プールファイル150dの印刷を実行すると、印刷ジョ
ブにかかる印刷データが一旦文書頭から文書末まで出力
される。そして、ステップS820にて上記上記部数印
刷処理方法で指定された部数分印刷したか否かを判別
し、当該部数分印刷するまで同出力を実行する。そし
て、ステップS850にて当該印刷済みページのネット
ワークスプールファイル150dを削除しメモリを破棄
して上記図15,16の処理に復帰し全体の印刷処理を
終了する。以上のように本発明は、ネットワーク接続さ
れたコンピュータ50のプリンタ40bにおいて所定の
印刷ジョブにかかる印刷データを出力する際に、コンピ
ュータ50にスプールするファイルを低減するために使
用することもできる。
When printing of the network spool file 150d is executed in step S810, print data relating to the print job is output once from the beginning of the document to the end of the document. Then, in step S820, it is determined whether or not the number of copies specified by the above-described number print processing method has been printed, and the same output is executed until the number of copies is printed. Then, in step S850, the network spool file 150d of the printed page is deleted, the memory is discarded, and the process returns to the processes of FIGS. 15 and 16 to complete the entire printing process. As described above, the present invention can also be used to reduce the number of files spooled in the computer 50 when the printer 40b of the computer 50 connected to the network outputs print data relating to a predetermined print job.

【0095】このように、本発明においては、印刷ジョ
ブにかかるデータを分割してスプールし、プリントプロ
セッサにて当該分割スプールファイルの印刷データをプ
リンタに対して出力させる。さらに、印刷済みデータに
かかる分割スプールファイルは順次削除していく。従っ
て、大容量データに基づく印刷ジョブの実行に必要なリ
ソースを低減することが可能である。
As described above, in the present invention, the data concerning the print job is divided and spooled, and the print processor outputs the print data of the divided spool file to the printer. Further, the divided spool files related to the printed data are sequentially deleted. Therefore, it is possible to reduce resources required for executing a print job based on large-capacity data.

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

【図1】コンピュータのハードウェア構成の概略図であ
る。
FIG. 1 is a schematic diagram of a hardware configuration of a computer.

【図2】コンピュータのOS上のモジュールの概略構成
図である。
FIG. 2 is a schematic configuration diagram of a module on an OS of a computer.

【図3】パケットのデータ構造およびローカルスプール
ファイルのパケット構造を示す図である。
FIG. 3 is a diagram showing a data structure of a packet and a packet structure of a local spool file.

【図4】分割スプールファイルおよびコマンドファイル
のパケット構造を示す図である。
FIG. 4 is a diagram showing a packet structure of a split spool file and a command file.

【図5】プリンタドライバのフローチャートである。FIG. 5 is a flowchart of a printer driver.

【図6】プリンタドライバのフローチャートである。FIG. 6 is a flowchart of a printer driver.

【図7】キャンセル処理のフローチャートである。FIG. 7 is a flowchart of a cancel process.

【図8】プリントプロセッサのフローチャートである。FIG. 8 is a flowchart of a print processor.

【図9】プリントプロセッサのフローチャートである。FIG. 9 is a flowchart of a print processor.

【図10】プリントプロセッサのフローチャートであ
る。
FIG. 10 is a flowchart of a print processor.

【図11】印刷ジョブ実行の一例を概念的に示す図であ
る。
FIG. 11 is a diagram conceptually illustrating an example of execution of a print job.

【図12】ネットワーク接続対応時のOS上のモジュー
ルの概略構成図である。
FIG. 12 is a schematic configuration diagram of a module on an OS when a network connection is supported.

【図13】ネットワークスプールファイルのパケット構
造を示す図である。
FIG. 13 is a diagram showing a packet structure of a network spool file.

【図14】ネットワークページスプールファイルのパケ
ット構造を示す図である。
FIG. 14 is a diagram showing a packet structure of a network page spool file.

【図15】ネットワーク接続対応時のジョブ投入側プリ
ントプロセッサのフローチャートである。
FIG. 15 is a flowchart of a print job print processor when a network connection is supported.

【図16】ネットワーク接続対応時のジョブ投入側プリ
ントプロセッサのフローチャートである。
FIG. 16 is a flowchart of a print job-side print processor when a network connection is supported.

【図17】ネットワーク接続対応時のサーバ側プリント
プロセッサのフローチャートである。
FIG. 17 is a flowchart of a server-side print processor when a network connection is supported.

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

10,50…コンピュータ 11…CPU 12…システムバス 13…ROM 14…RAM 15…ハードディスクドライブ 15a…コマンドファイル 15b…ローカルスプールファイル 15c1〜15c3…分割スプールファイル 150d…ネットワークスプールファイル 150e…ネットワークページスプールファイル 16…フロッピーディスクドライブ 16a…フロッピーディスク 17…CD−ROMドライブ 17a…CD−ROM 18…ディスプレイ 19a…シリアル通信用I/O 19b,190b…パラレル通信用I/O 19c,190c…10BASE−T用I/O 20…OS 31…キーボード 32…マウス 40a,40b…プリンタ 10, 50 ... Computer 11 ... CPU 12 ... System bus 13 ... ROM 14 ... RAM 15 ... Hard disk drive 15a ... Command file 15b ... Local spool file 15c1-15c3 ... Split spool file 150d ... Network spool file 150e ... Network page spool file 16 Floppy disk drive 16a Floppy disk 17 CD-ROM drive 17a CD-ROM 18 Display 19a Serial communication I / O 19b, 190b Parallel communication I / O 19c, 190c 10BASE-T I / O O 20 OS 31 Keyboard 32 Mouse 40a, 40b Printer

Claims (27)

【特許請求の範囲】[Claims] 【請求項1】 所定の印刷ジョブを実行して印刷装置に
対して印刷データを出力する印刷制御プログラムを記録
した媒体であって、 投入された印刷ジョブにかかる印刷データを取得して分
割し、制御データを付加して出力する分割出力機能と、 同分割出力機能が出力する分割データを所定のスプール
領域に格納するスプール機能と、 上記制御データに基づいて同スプール機能によってスプ
ールされた分割データを取得するとともに当該分割デー
タ中の印刷データを上記印刷装置に出力する印刷データ
出力機能と、 同印刷データ出力機能によって出力された印刷データに
かかるスプールファイルを上記スプール領域から削除す
る分割データ削除機能とをコンピュータに実現させるこ
とを特徴とする印刷制御プログラムを記録した媒体。
1. A medium on which a print control program for executing a predetermined print job and outputting print data to a printing apparatus is recorded, wherein the print data relating to the input print job is obtained and divided, A split output function for adding and outputting control data; a spool function for storing the split data output by the split output function in a predetermined spool area; and a split data spooled by the spool function based on the control data. A print data output function of acquiring and outputting print data in the divided data to the printing apparatus; a divided data deleting function of deleting a spool file related to the print data output by the print data output function from the spool area; Recording a print control program that causes a computer to realize the above.
【請求項2】 上記請求項1に記載の印刷制御プログラ
ムを記録した媒体において、 上記分割出力機能では、上記印刷データ出力機能におけ
るスループットが最適となる容量に上記印刷データを分
割することが可能であることを特徴とする印刷制御プロ
グラムを記録した媒体。
2. The medium on which the print control program according to claim 1 is recorded, wherein the divided output function is capable of dividing the print data into a capacity for optimizing the throughput in the print data output function. A medium on which a print control program according to claim 1 is recorded.
【請求項3】 上記請求項1または請求項2のいずれか
に記載の印刷制御プログラムを記録した媒体において、 上記制御データは、上記分割データを適正に読み出すた
めのデータと上記印刷データの出力先を示すデータと印
刷態様を示すデータとのいずれかまたは組み合わせから
なることを特徴とする印刷制御プログラムを記録した媒
体。
3. A medium in which a print control program according to claim 1 or 2 is recorded, wherein the control data includes data for properly reading the divided data and an output destination of the print data. Characterized by comprising one or a combination of data indicating a print mode and data indicating a print mode.
【請求項4】 上記請求項3に記載の印刷制御プログラ
ムを記録した媒体において、 上記分割出力機能では、上記出力データを所定形式のデ
ータ構造にすることを特徴とする印刷制御プログラムを
記録した媒体。
4. A medium in which a print control program according to claim 3 is recorded, wherein said output data has a data structure of a predetermined format in said divided output function. .
【請求項5】 上記請求項1〜請求項4のいずれかに記
載の印刷制御プログラムを記録した媒体において、 上記分割出力機能では、上記スプール領域に格納される
各分割データを読み出すための情報を上記印刷データ出
力機能に対して出力することを特徴とする印刷制御プロ
グラムを記録した媒体。
5. A medium on which a print control program according to claim 1 is recorded, wherein said divided output function includes information for reading each divided data stored in said spool area. A medium in which a print control program is output for the print data output function.
【請求項6】 上記請求項1〜請求項5のいずれかに記
載の印刷制御プログラムを記録した媒体において、 上記分割出力機能と上記印刷データ出力機能とは、所定
領域に格納された外部ファイルにアクセス可能であり、
同外部ファイル内容に基づいて互いに連携することを特
徴とする印刷制御プログラムを記録した媒体。
6. A medium in which a print control program according to any one of claims 1 to 5 is recorded, wherein the divided output function and the print data output function are stored in an external file stored in a predetermined area. Accessible and
A medium in which a print control program recorded in cooperation with each other based on the contents of the external file is recorded.
【請求項7】 上記請求項1〜請求項6のいずれかに記
載の印刷制御プログラムを記録した媒体において、 上記印刷データ出力機能では、ネットワークを介して分
割データを取得可能であり、ネットワークを介して印刷
データを出力可能であることを特徴とする印刷制御プロ
グラムを記録した媒体。
7. A medium in which a print control program according to any one of claims 1 to 6 is recorded, wherein the print data output function is capable of acquiring divided data via a network, and A print control program capable of outputting print data by printing.
【請求項8】 上記請求項1〜請求項7のいずれかに記
載の印刷制御プログラムを記録した媒体において、 上記印刷データ出力機能では、同一分割データを複数回
出力可能であることを特徴とする印刷制御プログラムを
記録した媒体。
8. A medium in which the print control program according to claim 1 is recorded, wherein the print data output function can output the same divided data a plurality of times. A medium on which a print control program is recorded.
【請求項9】 上記請求項1〜請求項8のいずれかに記
載の印刷制御プログラムを記録した媒体において、 上記印刷データ出力機能では、上記分割データを所定の
順序で出力可能であることを特徴とする印刷制御プログ
ラムを記録した媒体。
9. A medium in which the print control program according to claim 1 is recorded, wherein the print data output function can output the divided data in a predetermined order. A medium on which a print control program to be described is recorded.
【請求項10】 所定の印刷ジョブを実行して印刷装置
に対して印刷データを出力する印刷制御装置であって、 投入された印刷ジョブにかかる印刷データを取得して分
割し、制御データを付加して出力する分割出力手段と、 同分割出力手段が出力する分割データを所定のスプール
領域に格納するスプール手段と、 上記制御データに基づいて同スプール手段によってスプ
ールされた分割データを取得するとともに当該分割デー
タ中の印刷データを上記印刷装置に出力する印刷データ
出力手段と、 同印刷データ出力手段によって出力された印刷データに
かかるスプールファイルを上記スプール領域から削除す
る分割データ削除手段とを具備することを特徴とする印
刷制御装置。
10. A print control apparatus for executing a predetermined print job and outputting print data to a printing apparatus, wherein the print data relating to an input print job is acquired, divided, and control data is added. Divided output means for outputting the divided data output by the divided output means in a predetermined spool area; and obtaining the divided data spooled by the spool means based on the control data. Print data output means for outputting print data in the divided data to the printing apparatus; and divided data deleting means for deleting a spool file related to the print data output by the print data output means from the spool area. A print control device characterized by the above-mentioned.
【請求項11】 上記請求項10に記載の印刷制御装置
において、 上記分割出力手段は、上記印刷データ出力手段における
スループットが最適となる容量に上記印刷データを分割
することが可能であることを特徴とする印刷制御装置。
11. The print control device according to claim 10, wherein said divided output means is capable of dividing said print data into a capacity for optimizing a throughput of said print data output means. Printing control device.
【請求項12】 上記請求項10または請求項11のい
ずれかに記載の印刷制御装置において、 上記制御データは、上記分割データを適正に読み出すた
めのデータと上記印刷データの出力先を示すデータと印
刷態様を示すデータとのいずれかまたは組み合わせから
なることを特徴とする印刷制御装置。
12. The print control device according to claim 10, wherein the control data includes data for properly reading the divided data and data indicating an output destination of the print data. A print control device comprising any one or a combination with data indicating a print mode.
【請求項13】 上記請求項12に記載の印刷制御装置
において、 上記分割出力手段は、上記出力データを所定形式のデー
タ構造にすることを特徴とする印刷制御装置。
13. The print control apparatus according to claim 12, wherein said divided output means converts said output data into a data structure of a predetermined format.
【請求項14】 上記請求項10〜請求項13のいずれ
かに記載の印刷制御装置において、 上記分割出力手段は、上記スプール領域に格納される各
分割データを読み出すための情報を上記印刷データ出力
手段に対して出力することを特徴とする印刷制御装置。
14. The print control apparatus according to claim 10, wherein the divided output means outputs information for reading each divided data stored in the spool area to the print data. A print control device for outputting to the means.
【請求項15】 上記請求項10〜請求項14のいずれ
かに記載の印刷制御装置において、 上記分割出力手段と上記印刷データ出力手段とは、所定
領域に格納された外部ファイルにアクセス可能であり、
同外部ファイル内容に基づいて互いに連携することを特
徴とする印刷制御装置。
15. The print control device according to claim 10, wherein said divided output means and said print data output means are capable of accessing an external file stored in a predetermined area. ,
A print control apparatus that cooperates with each other based on the contents of the external file.
【請求項16】 上記請求項10〜請求項15のいずれ
かに記載の印刷制御装置において、 上記印刷データ出力手段は、ネットワークを介して分割
データを取得可能であり、ネットワークを介して印刷デ
ータを出力可能であることを特徴とする印刷制御装置。
16. The print control device according to claim 10, wherein the print data output means is capable of acquiring the divided data via a network, and transmitting the divided data via the network. A print control device capable of outputting.
【請求項17】 上記請求項10〜請求項16のいずれ
かに記載の印刷制御装置において、 上記印刷データ出力手段は、同一分割データを複数回出
力可能であることを特徴とする印刷制御装置。
17. The print control apparatus according to claim 10, wherein said print data output means is capable of outputting the same divided data a plurality of times.
【請求項18】 上記請求項10〜請求項17のいずれ
かに記載の印刷制御装置において、 上記印刷データ出力手段は、上記分割データを所定の順
序で出力可能であることを特徴とする印刷制御装置。
18. A print control apparatus according to claim 10, wherein said print data output means is capable of outputting said divided data in a predetermined order. apparatus.
【請求項19】 所定の印刷ジョブを実行して印刷装置
に対して印刷データを出力する印刷制御方法であって、 投入された印刷ジョブにかかる印刷データを取得して分
割し、制御データを付加して出力する分割出力工程と、 同分割出力工程が出力する分割データを所定のスプール
領域に格納するスプール工程と、 上記制御データに基づいて同スプール工程によってスプ
ールされた分割データを取得するとともに当該分割デー
タ中の印刷データを上記印刷装置に出力する印刷データ
出力工程と、 同印刷データ出力工程によって出力された印刷データに
かかるスプールファイルを上記スプール領域から削除す
る分割データ削除工程とを具備することを特徴とする印
刷制御方法。
19. A print control method for executing a predetermined print job and outputting print data to a printing apparatus, wherein the print data relating to an input print job is acquired, divided, and control data is added. A divided output step of storing the divided data output by the divided output step in a predetermined spool area; and obtaining the divided data spooled by the spool step based on the control data. A print data output step of outputting print data in the divided data to the printing apparatus; and a divided data deleting step of deleting a spool file related to the print data output in the print data output step from the spool area. A printing control method characterized by the following.
【請求項20】 上記請求項19に記載の印刷制御方法
において、 上記分割出力工程は、上記印刷データ出力工程における
スループットが最適となる容量に上記印刷データを分割
することが可能であることを特徴とする印刷制御方法。
20. The print control method according to claim 19, wherein said division output step is capable of dividing said print data into a capacity for optimizing a throughput in said print data output step. Printing control method.
【請求項21】 上記請求項19または請求項20のい
ずれかに記載の印刷制御方法において、 上記制御データは、上記分割データを適正に読み出すた
めのデータと上記印刷データの出力先を示すデータと印
刷態様を示すデータとのいずれかまたは組み合わせから
なることを特徴とする印刷制御方法。
21. The print control method according to claim 19, wherein the control data includes data for properly reading the divided data and data indicating an output destination of the print data. A print control method comprising any one or a combination with data indicating a print mode.
【請求項22】 上記請求項21に記載の印刷制御方法
において、 上記分割出力工程は、上記出力データを所定形式のデー
タ構造にすることを特徴とする印刷制御方法。
22. The print control method according to claim 21, wherein in the division output step, the output data has a data structure of a predetermined format.
【請求項23】 上記請求項19〜請求項22のいずれ
かに記載の印刷制御方法において、 上記分割出力工程は、上記スプール領域に格納される各
分割データを読み出すための情報を上記印刷データ出力
工程に対して出力することを特徴とする印刷制御方法。
23. The print control method according to claim 19, wherein the divided output step includes outputting information for reading each divided data stored in the spool area to the print data. A print control method characterized by outputting for a process.
【請求項24】 上記請求項19〜請求項23のいずれ
かに記載の印刷制御方法において、 上記分割出力工程と上記印刷データ出力工程とは、所定
領域に格納された外部ファイルにアクセス可能であり、
同外部ファイル内容に基づいて互いに連携することを特
徴とする印刷制御方法。
24. The print control method according to claim 19, wherein the division output step and the print data output step are capable of accessing an external file stored in a predetermined area. ,
A print control method, wherein the print control method cooperates with each other based on the contents of the external file.
【請求項25】 上記請求項19〜請求項24のいずれ
かに記載の印刷制御方法において、 上記印刷データ出力工程は、ネットワークを介して分割
データを取得可能であり、ネットワークを介して印刷デ
ータを出力可能であることを特徴とする印刷制御方法。
25. The print control method according to claim 19, wherein in the print data output step, the divided data can be acquired via a network, and the print data is transmitted via the network. A print control method characterized in that output is possible.
【請求項26】 上記請求項19〜請求項25のいずれ
かに記載の印刷制御方法において、 上記印刷データ出力工程は、同一分割データを複数回出
力可能であることを特徴とする印刷制御方法。
26. The print control method according to claim 19, wherein in the print data output step, the same divided data can be output a plurality of times.
【請求項27】 上記請求項19〜請求項26のいずれ
かに記載の印刷制御方法において、 上記印刷データ出力工程は、上記分割データを所定の順
序で出力可能であることを特徴とする印刷制御方法。
27. The print control method according to claim 19, wherein said print data output step is capable of outputting said divided data in a predetermined order. Method.
JP2000049837A 2000-02-25 2000-02-25 Medium recording print control program, print control device, and print control method Pending JP2001243028A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2000049837A JP2001243028A (en) 2000-02-25 2000-02-25 Medium recording print control program, print control device, and print control method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2000049837A JP2001243028A (en) 2000-02-25 2000-02-25 Medium recording print control program, print control device, and print control method

Publications (1)

Publication Number Publication Date
JP2001243028A true JP2001243028A (en) 2001-09-07

Family

ID=18571708

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2000049837A Pending JP2001243028A (en) 2000-02-25 2000-02-25 Medium recording print control program, print control device, and print control method

Country Status (1)

Country Link
JP (1) JP2001243028A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011113231A (en) * 2009-11-26 2011-06-09 Kyocera Mita Corp Image forming apparatus
US8149448B2 (en) 2005-08-31 2012-04-03 Sharp Laboratories Of America, Inc. Systems and methods for rapidly creating an image from a document
US8520243B2 (en) 2010-05-10 2013-08-27 Kyocera Document Solutions Inc. Image forming apparatus, computer-readable recording medium on which print data processing program code is recorded, and print data processing method

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8149448B2 (en) 2005-08-31 2012-04-03 Sharp Laboratories Of America, Inc. Systems and methods for rapidly creating an image from a document
JP2011113231A (en) * 2009-11-26 2011-06-09 Kyocera Mita Corp Image forming apparatus
US8520243B2 (en) 2010-05-10 2013-08-27 Kyocera Document Solutions Inc. Image forming apparatus, computer-readable recording medium on which print data processing program code is recorded, and print data processing method

Similar Documents

Publication Publication Date Title
US5600762A (en) Method of processing a job, in a printing system, with a composite job ticket
US7319533B2 (en) System for face-up printing from a duplex printer
JP4900530B1 (en) Image processing apparatus and program
JPH11170627A (en) Printing system and job management method therefor
JP2009146251A (en) Image processing device, and image forming system and program
JP2000039972A (en) Print system, printer and print server
JP3588005B2 (en) Printing method in printing system
JP2006041764A (en) Log recording apparatus, log recording program, and recording medium
US7333222B2 (en) Methods for creating printing data and for transferring printing data
US6552816B1 (en) Printing system and printer
JP6904697B2 (en) Information processing device and communication control method
US20030226464A1 (en) Method to keep copies of device queued jobs in the network queue until print delivery is guaranteed
JP4463498B2 (en) Printing method and printing system
JP2007329919A (en) Image forming apparatus and control method thereof
US20120320423A1 (en) Printing apparatus provided with plural processing systems for generating print data, printing method and recording medium
JP2001243028A (en) Medium recording print control program, print control device, and print control method
JP3812277B2 (en) Recording medium, computer, print data creation method and print data transfer method
JP2008187672A (en) Image output system
JPH10214164A (en) Network printing processing method
JP2000112684A (en) Document print processing system
JP2002091716A (en) Print control device and print control method
JP2003099398A (en) Method and device for message communication
JP2003087476A (en) Information processing system, method and apparatus, program, and storage medium
JP2000148418A (en) Printing equipment
JP2001236186A (en) PRINT PROCESSING SYSTEM, PRINT DATA PROCESSING METHOD, AND RECORDING MEDIUM CONTAINING PROGRAM FOR IMPLEMENTING THE METHOD