JPH09193482A - Printing data transfer device - Google Patents

Printing data transfer device

Info

Publication number
JPH09193482A
JPH09193482A JP8009040A JP904096A JPH09193482A JP H09193482 A JPH09193482 A JP H09193482A JP 8009040 A JP8009040 A JP 8009040A JP 904096 A JP904096 A JP 904096A JP H09193482 A JPH09193482 A JP H09193482A
Authority
JP
Japan
Prior art keywords
print data
transfer
unit
compression
data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP8009040A
Other languages
Japanese (ja)
Inventor
Jun Sato
順 佐藤
Hideaki Nagase
秀明 長瀬
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Fujifilm Business Innovation Corp
Original Assignee
Fuji Xerox Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Fuji Xerox Co Ltd filed Critical Fuji Xerox Co Ltd
Priority to JP8009040A priority Critical patent/JPH09193482A/en
Publication of JPH09193482A publication Critical patent/JPH09193482A/en
Pending legal-status Critical Current

Links

Landscapes

  • Record Information Processing For Printing (AREA)
  • Image Processing (AREA)
  • Storing Facsimile Image Data (AREA)

Abstract

PROBLEM TO BE SOLVED: To provide a printing data transfer device which can shorten the total of compression time and transfer time required for transfer of printing data. SOLUTION: A compression time measuring circuit 17 determines the time required for compressing one page in the previous measurement. A compression, transfer indication means 19 determines a minimum number of pages such that the transfer time under condition of non-compression is longer than the previous compression time of one page. A transfer circuit 14 transfers printing data corresponding to the minimum number of pages from the top thereof without compressing the data to a printing device 12. In parallel, pages to be transferred next are compressed by means of a compressing circuit 15. After completion of transfer of non-compression data, compressed data are transferred to the printing device 12 via the circuit 14. Since compression and transfer are performed parallelly to each other, the total transfer time can be made shorter. And transfer can be effected without disturbing the order of pages.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【発明の属する技術分野】本発明は、文字コードや制御
コードからなる印刷データあるいはイメージ情報に展開
された後の印刷データを印刷装置に転送する印刷データ
転送装置に係わり、特に印刷データを圧縮することによ
り転送時間の短縮を図る印刷データ転送装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a print data transfer device for transferring print data consisting of character codes and control codes or print data after being expanded into image information to a printing device, and particularly compressing the print data. The present invention relates to a print data transfer device that shortens transfer time.

【0002】[0002]

【従来の技術】ホストコンピュータなどの文書作成装置
で作成された印刷データは、文字コードや各種制御コー
ドなどのコード情報の形式で、あるいは印刷される各ド
ットごとに展開したイメージ情報の形式で印刷装置に転
送される。作成された文書の印刷指示を出してから、印
刷物を得るまでに要する時間は、コード情報やイメージ
情報を印刷装置に転送する時間と、転送されてきた印刷
データを基に印刷装置が記録用紙にプリントする時間の
和になる。したがって、転送時間を短くすることで最終
的に印刷物を得るまでの時間を短縮することができる。
また、印刷データの転送時間を短縮することで文書作成
装置を印刷のための処理から早期に開放することができ
る。そこで、印刷データの転送時間を短縮するための技
術が種々提案されている。
2. Description of the Related Art Print data created by a document creation device such as a host computer is printed in the form of code information such as character codes and various control codes, or in the form of image information developed for each dot to be printed. Transferred to the device. The time required to obtain the printed matter after issuing the print instruction for the created document is the time to transfer the code information and image information to the printing device, and the printing device prints on the recording paper based on the transferred print data. It is the sum of the time to print. Therefore, by shortening the transfer time, the time required to finally obtain a printed matter can be shortened.
Further, by shortening the transfer time of the print data, the document creating apparatus can be released from the processing for printing at an early stage. Therefore, various techniques have been proposed for reducing the transfer time of print data.

【0003】特開平3−275370号公報には、イメ
ージ情報を圧縮してから転送するようにした印刷データ
転送装置が開示されている。この装置では、イメージ情
報の送出側となる印刷制御装置と印刷装置との間に、バ
ッファメモリを備えたバッファ装置を設けている。印刷
制御装置は、イメージ情報を圧縮してバッファ装置に転
送する。バッファ装置は、送られてくる圧縮後の印刷デ
ータを一時的に保持し、元のイメージ情報に伸張して順
次印刷装置に送出している。
Japanese Patent Laid-Open No. 3-275370 discloses a print data transfer apparatus which transfers image information after compressing it. In this device, a buffer device having a buffer memory is provided between the printing control device and the printing device on the image information sending side. The print control device compresses the image information and transfers it to the buffer device. The buffer device temporarily holds the compressed print data that has been sent, expands the original image information, and sends it to the printing device in sequence.

【0004】[0004]

【発明が解決しようとする課題】印刷データを圧縮して
転送するには、転送時間のほかに圧縮処理を行う時間が
必要になる。たとえば、複数ページ分の印刷データを1
ページ分づつ圧縮して転送する場合には、それぞれのペ
ージを圧縮する時間と、圧縮した後のデータを転送する
時間の双方が必要になる。また、圧縮に要する時間は、
圧縮の対象となる印刷データによって個々に変化する。
さらに圧縮される前よりも圧縮後の方がデータ量が増加
してしまうこともある。したがって圧縮の時間と圧縮後
のデータを転送する時間の合計が、圧縮せずに印刷デー
タを転送するのに必要な時間よりも長くなる場合があ
り、圧縮を行っても必ずしも効率的な転送ができないと
いう問題がある。
In order to compress and transfer print data, a time for performing compression processing is required in addition to the transfer time. For example, print data for multiple pages
When the data is compressed page by page and transferred, both the time for compressing each page and the time for transferring the compressed data are required. Also, the time required for compression is
It changes individually depending on the print data to be compressed.
Further, the amount of data after compression may be larger than that before compression. Therefore, the sum of the compression time and the time to transfer the compressed data may be longer than the time required to transfer the print data without compression, and even if compression is performed, efficient transfer is not always required. There is a problem that you cannot do it.

【0005】そこで本発明の目的は、印刷データの転送
時間を短縮することのできる印刷データ転送装置を提供
することにある。
SUMMARY OF THE INVENTION Therefore, an object of the present invention is to provide a print data transfer device capable of shortening the transfer time of print data.

【0006】[0006]

【課題を解決するための手段】請求項1記載の発明で
は、印刷データを蓄積する印刷データ蓄積手段と、この
印刷データ蓄積手段に蓄積されている印刷データのうち
第1の印刷領域に対応する印刷データを圧縮する圧縮手
段と、この圧縮手段が第1の印刷領域に対応する印刷デ
ータを圧縮しているときこれと並行して他の領域として
の第2の印刷領域の印刷データを所定の転送先に圧縮手
段を介さずに転送する第1の転送手段と、この第1の転
送手段による第1の印刷領域の印刷データの転送および
圧縮手段による第2の印刷領域の印刷データの圧縮の双
方が終了したとき圧縮された後の第2の印刷領域の印刷
データを所定の転送先に転送する第2の転送手段とを印
刷データ転送装置に具備させている。
According to a first aspect of the present invention, there is provided a print data storage unit for storing print data, and a first print area of the print data stored in the print data storage unit. A compression unit for compressing the print data, and when the compression unit is compressing the print data corresponding to the first print region, in parallel with this, the print data of the second print region as another region is predetermined. First transfer means for transferring to the transfer destination without passing through the compression means, transfer of print data in the first print area by the first transfer means, and compression of print data in the second print area by the compression means. The print data transfer device is provided with a second transfer unit that transfers the print data in the second print area, which has been compressed when both of them are completed, to a predetermined transfer destination.

【0007】すなわち請求項1記載の発明では、第1の
印刷領域に対応する印刷データを圧縮している間に、こ
れと並行して第2の印刷領域に対応する圧縮前の印刷デ
ータを転送し圧縮処理の終了したとき圧縮後の印刷デー
タを転送している。印刷データを圧縮している間に、非
圧縮の印刷データの転送を並行して行うので印刷データ
の転送に要する時間が短縮される。
That is, according to the first aspect of the invention, while the print data corresponding to the first print area is being compressed, the pre-compression print data corresponding to the second print area is transferred in parallel with this. When the compression process is completed, the compressed print data is transferred. Since the uncompressed print data is transferred in parallel while the print data is compressed, the time required to transfer the print data is shortened.

【0008】請求項2記載の発明では、印刷データを蓄
積する印刷データ蓄積手段と、この印刷データ蓄積手段
に蓄積されている印刷データのうち予め定めた一定の大
きさの印刷領域に対応する量の印刷データを圧縮するの
に要する時間を求める圧縮時間取得手段と、印刷データ
蓄積手段に蓄積されている印刷データのうちこの圧縮時
間取得手段によって求めた時間の間に転送可能な量の印
刷データを所定の転送先に圧縮せずに転送する第1の転
送手段と、この第1の転送手段が印刷データの転送を行
っているときこれと並行して印刷データ蓄積手段に蓄積
されている印刷データのうち第1の転送手段によって今
回転送される印刷データの次に転送すべき予め定めた一
定の大きさの印刷領域に対応する量の印刷データを圧縮
する圧縮手段と、第1の転送手段と交互に動作しこの圧
縮手段による印刷データの圧縮および第1の転送手段に
よる印刷データの転送が終了したとき圧縮手段によって
今回圧縮された後の印刷データを所定の転送先に転送す
る第2の転送手段とを印刷データ転送装置に具備させて
いる。
According to the second aspect of the invention, the print data storage means for storing the print data, and the amount corresponding to the print area of a predetermined fixed size among the print data stored in the print data storage means. Of the print data stored in the print data storage means and the amount of print data that can be transferred during the time obtained by the compression time acquisition means. To a predetermined transfer destination without compressing the print data, and the print data stored in the print data storage means in parallel with the print data being transferred by the first transfer means. Of the data, a compression unit that compresses an amount of print data that corresponds to a print area of a predetermined size to be transferred next to the print data that is currently transferred by the first transfer unit, When the compression of the print data by the compression unit and the transfer of the print data by the first transfer unit are completed, the print data after being compressed this time by the compression unit is transferred to a predetermined transfer destination. And a second transfer means for controlling the print data transfer device.

【0009】すなわち請求項2記載の発明では、1回の
圧縮処理に要する時間に転送できるだけの非圧縮の印刷
データを転送するとともに、これと並行して、次に転送
すべき順の印刷データを圧縮する。そして、非圧縮の印
刷データの転送および印刷データの圧縮処理を終了した
とき圧縮後の印刷データを転送する。このように非圧縮
の印刷データの転送と並行して圧縮処理を行うことで、
圧縮および転送に要するトータルの時間が短縮される。
また、非圧縮のまま転送した印刷データの次に転送すべ
き順の印刷データを圧縮することで、転送順序を崩すこ
となく印刷データを転送できる。
That is, according to the second aspect of the invention, the uncompressed print data that can be transferred in the time required for one compression process is transferred, and at the same time, the print data in the order to be transferred next is transferred. Compress. Then, when the transfer of the uncompressed print data and the compression processing of the print data are completed, the compressed print data is transferred. By performing compression processing in parallel with the transfer of uncompressed print data in this way,
The total time required for compression and transfer is reduced.
In addition, by compressing the print data that should be transferred next to the print data that has been transferred without being compressed, the print data can be transferred without breaking the transfer order.

【0010】請求項3記載の発明では、印刷データを蓄
積する印刷データ蓄積手段と、この印刷データ蓄積手段
に蓄積されている印刷データを所定の大きさの印刷領域
に対応する量ごとの単位印刷データに分割しこれらに印
刷すべき順序を表わした順序情報を付加する順序情報付
加手段と、この順序情報付加手段によって順序情報の付
加された単位印刷データの中の任意の1つを所定の転送
先に転送する第1の転送手段と、この第1の転送手段が
任意の1つの単位印刷データの転送を開始したときから
他の任意の1つの単位印刷データを圧縮する圧縮手段
と、第1の転送手段が1つの単位印刷データの転送を終
了した時点でこの圧縮手段による他の1つの単位印刷デ
ータの圧縮が終了していないとき未だ圧縮あるいは転送
の行われていないいずれか1つの単位印刷データの転送
を第1の転送手段に指示する継続転送指示手段と、第1
の転送手段が1つの単位印刷データの転送を終了した時
点で圧縮手段による他の1つの単位印刷データの圧縮が
終了しているとき圧縮された後の他の1つの単位印刷デ
ータを所定の転送先に転送する第2の転送手段とを印刷
データ転送装置に具備させている。
According to the third aspect of the present invention, print data storage means for storing print data, and print data stored in the print data storage means are printed in unit prints for each amount corresponding to a print area of a predetermined size. Order information adding means for dividing the data into pieces and adding order information indicating the order of printing to these, and any one of the unit print data to which the order information is added by the order information adding means is transferred in a predetermined manner. A first transfer unit that transfers first, a compression unit that compresses another arbitrary unit print data from the time when the first transfer unit starts the transfer of the arbitrary unit print data, and a first transfer unit. When the transfer means has finished transferring one unit print data, and the compression means has not finished compressing another one unit print data, the compression or transfer has not been performed yet. Transfer of one unit print data and continue transfer instruction means for instructing the first transfer means or Re, first
When the other transfer unit of one unit print data has finished transferring one unit print data, the other transfer unit of the unit print data has been compressed by the compressing unit. The print data transfer apparatus is provided with the second transfer unit that transfers first.

【0011】すなわち請求項3記載の発明では、印刷デ
ータを所定の印刷領域ごとに分割し、それらに印刷の順
序を表わした順序情報を付加する。そして分割後の任意
の印刷データの転送と、他の任意の1つの印刷データの
圧縮を並行して行う。分割後の印刷データの転送を終了
したとき、印刷データの圧縮処理が終了していなけれ
ば、次の任意の1つの印刷データの転送を継続して行
う。分割後の印刷データの転送を終了したとき圧縮処理
が終了していれば、圧縮された印刷データの転送を行
う。このように順序情報を付加しておけば、印刷装置側
でこれを基に印刷の順序を判別することができるので、
分割後の単位印刷データを任意の順に転送することがで
きる。
That is, according to the third aspect of the invention, the print data is divided into predetermined print areas, and order information indicating the print order is added to them. Then, the transfer of the arbitrary print data after the division and the compression of the other arbitrary one print data are performed in parallel. When the transfer of the print data after the division is completed and the compression process of the print data is not completed, the transfer of the next arbitrary one print data is continuously performed. If the compression process is completed when the transfer of the divided print data is completed, the compressed print data is transferred. If the order information is added in this way, the printing order can be determined based on this by the printing device side.
The divided unit print data can be transferred in any order.

【0012】請求項4記載の発明では、印刷データを蓄
積する印刷データ蓄積手段と、この印刷データ蓄積手段
に蓄積されている印刷データを所定の大きさの印刷領域
に対応する量ごとの単位印刷データに分割しこれらに印
刷すべき順序を表わした順序情報を付加する順序情報付
加手段と、この順序情報付加手段によって順序情報の付
加された各単位印刷データが所定のデータ形式であるか
否かを判別するデータ形式判別手段と、このデータ形式
判別手段によって所定の形式でないと判別された任意の
1つの単位印刷データを所定の転送先に転送する第1の
転送手段と、この第1の転送手段が任意の1つの単位印
刷データの転送を開始したときから所定の形式と判別さ
れた他の1つの単位印刷データを圧縮する圧縮手段と、
第1の転送手段が1つの単位印刷データの転送を終了し
た時点でこの圧縮手段が所定の形式と判別された他の1
つの単位印刷データの圧縮を終了していないとき所定の
形式でない単位印刷データの中で未だ転送されていない
任意の1つの単位印刷データの転送を第1の転送手段に
指示する継続転送指示手段と、第1の転送手段が1つの
単位印刷データの転送を終了した時点で圧縮手段が所定
の形式と判別された他の1つの単位印刷データの圧縮を
終了しているとき圧縮された後の他の1つの単位印刷デ
ータを所定の転送先に転送する第2の転送手段とを印刷
データ転送装置に具備させている。
According to another aspect of the present invention, the print data storage means for storing print data, and the print data stored in the print data storage means are subjected to unit printing for each amount corresponding to a print area of a predetermined size. Sequence information adding means for dividing the data into data and adding order information indicating the order of printing to each of them, and whether or not each unit print data to which the order information is added by the order information adding means has a predetermined data format A data format discriminating means, a first transfer means for transferring any one unit print data discriminated by the data format discriminating means not to be in a predetermined format to a predetermined transfer destination, and the first transfer. Compression means for compressing another unit print data which is determined to have a predetermined format from the time when the means starts transferring any one unit print data,
When the first transfer unit finishes the transfer of one unit print data, the compression unit is determined to have a predetermined format.
A continuous transfer instruction means for instructing the first transfer means to transfer any one unit print data which has not been transferred among the unit print data which is not in a predetermined format when the compression of one unit print data is not completed; , When the first transfer unit finishes transferring one unit print data, and when the compression unit finishes compressing another unit print data determined to have a predetermined format And a second transfer unit that transfers one unit of print data to a predetermined transfer destination in the print data transfer device.

【0013】すなわち請求項4記載の発明では、印刷デ
ータを所定サイズの印刷領域ごとに分割しそれらに印刷
の順序を表わした順序情報を付加するとともに、分割後
の印刷データが圧縮すべき所定の形式であるかどうかを
判別する。そして、所定の形式の印刷データの圧縮とそ
れ以外の形式の印刷データの転送を並行して行う。
That is, according to the fourth aspect of the invention, the print data is divided into print areas of a predetermined size, order information indicating the printing order is added to the print areas, and the print data after the division has a predetermined size to be compressed. Determine if it is a format. Then, compression of print data of a predetermined format and transfer of print data of other formats are performed in parallel.

【0014】たとえば、ページごとに印刷データを分割
し、ラスタデータで表わされたページと文字コードなど
のコードデータで表わされたページが混在しているもの
とする。非圧縮のデータを転送している間に1ページ分
の圧縮処理を行うので、1ページの非圧縮のデータを転
送する時間よりも1ページを圧縮する時間が大幅に短い
と、圧縮処理と転送処理の並行して行われる時間が短く
なる。そこで、1ページ分の圧縮に要する時間の長いペ
ージを優先的に圧縮すれば、圧縮処理と非圧縮のデータ
の転送が並行して行われる時間が増し、転送効率が良く
なる。通常、ラスタデータは1ページ当たりのデータ量
がコードデータの場合に比べて多く圧縮に要する時間も
長いので、印刷データの種別を基に圧縮に適したページ
を判別しすることで転送効率の向上を図っている。
For example, it is assumed that the print data is divided into pages and that the pages represented by the raster data and the pages represented by the code data such as the character code are mixed. Since one page of compression processing is performed while transferring uncompressed data, if the time for compressing one page is significantly shorter than the time for transferring one page of uncompressed data, the compression processing and transfer The time when the processing is performed in parallel is shortened. Therefore, by preferentially compressing a page that takes a long time to compress one page, the time during which the compression process and the transfer of uncompressed data are performed in parallel increases, and the transfer efficiency improves. Normally, the amount of raster data is larger and the time required for compression is longer than in the case of code data, so the transfer efficiency is improved by determining the page suitable for compression based on the type of print data. I am trying to

【0015】請求項5記載の発明では、印刷データを蓄
積する印刷データ蓄積手段と、この印刷データ蓄積手段
に蓄積されている印刷データを所定の大きさの印刷領域
に対応する量ごとの単位印刷データに分割しこれらに印
刷すべき順序を表わした順序情報を付加する順序情報付
加手段と、この順序情報付加手段によって順序情報の付
加されたそれぞれの単位印刷データのデータ量を求める
データ量算出手段と、このデータ量算出手段によって求
めたデータ量の少ない順に次に転送すべき1つの単位印
刷データを選択する第1の選択手段と、データ量算出手
段によって求めたデータ量の多い順に次に圧縮すべき1
つの単位印刷データを選択する第2の選択手段と、第1
の選択手段によって選択された1つの単位印刷データを
所定の転送先に転送する第1の転送手段と、第1の転送
手段が単位印刷データの転送を開始したときから第2の
選択手段によって選択された1つの単位印刷データの圧
縮を行う圧縮手段と、第1の転送手段が1つの単位印刷
データの転送を終了した時点でこの圧縮手段が第2の選
択手段によって選択された1つの単位印刷データの圧縮
を終了していないとき次にデータ量の少ない1つの単位
印刷データを第1の選択手段に選択させこれを第1の転
送手段によって所定の転送先に転送させる継続転送指示
手段と、第1の転送手段が1つの単位印刷データの転送
を終了した時点で圧縮手段が第2の選択手段によって選
択された1つの単位印刷データの圧縮を終了していると
きその圧縮の終了した単位印刷データを所定の転送先に
転送する第2の転送手段とを印刷データ転送装置に具備
させている。
According to a fifth aspect of the present invention, print data storage means for storing print data, and print data stored in the print data storage means are subjected to unit printing for each amount corresponding to a print area of a predetermined size. Order information adding means for dividing the data into data and adding order information indicating the order of printing to the data, and data amount calculating means for obtaining the data amount of each unit print data to which the order information is added by the order information adding means And a first selecting unit for selecting one unit print data to be transferred next in the ascending order of the data amount obtained by the data amount calculating unit, and then a compressing process in the descending order of the data amount obtained by the data amount calculating unit. Should be 1
Second selection means for selecting one unit print data, and first
First transfer means for transferring one unit print data selected by the selecting means to a predetermined transfer destination, and selected by the second selecting means from the time when the first transfer means starts transferring the unit print data. A compression unit for compressing the selected unit print data and a unit print selected by the second selection unit when the first transfer unit completes the transfer of the unit print data. Continuous transfer instructing means for causing the first selecting means to select one unit print data having the next smallest amount of data when the data compression is not completed, and transferring the selected unit print data to a predetermined transfer destination by the first transfer means; When the compression means has completed the compression of one unit print data selected by the second selection means at the time when the first transfer means has completed the transfer of one unit print data, the end of the compression The unit print data and is provided with a second transfer means for transferring a predetermined transfer destination to the print data transfer device.

【0016】すなわち請求項5記載の発明では、印刷デ
ータを所定サイズの印刷領域ごとに分割しそれらに印刷
の順序を表わした順序情報を付加するとともに、分割後
の印刷データのデータ量をそれぞれ求める。そして、デ
ータ量の多いものから優先して圧縮を行い、これと並行
してデータ量の少ないものから優先して非圧縮のままで
転送する。通常、データ量の多いものほど圧縮に時間が
かかるので、データ量の多い印刷データの圧縮と並行し
てデータ量の少ない印刷データの転送を行えば、転送と
圧縮が同時に行われる期間の割合が増加し転送効率を向
上させることができる。
That is, according to the fifth aspect of the invention, the print data is divided into print areas of a predetermined size, order information indicating the printing order is added to them, and the data amount of the print data after the division is obtained. . Then, the data having a large amount of data is preferentially compressed, and in parallel with this, the data having a small amount of data is preferentially transferred without being compressed. Usually, the larger the amount of data, the longer it takes to compress. Therefore, if the print data with a small amount of data is transferred in parallel with the compression of the print data with a large amount of data, the ratio of the period in which the transfer and the compression are performed at the same time is increased. It is possible to increase the transfer efficiency.

【0017】[0017]

【発明の実施の形態】BEST MODE FOR CARRYING OUT THE INVENTION

【0018】[0018]

【実施例】図1は、本発明の一実施例における印刷デー
タ転送装置を用いた印刷システムの構成の概要を表わし
たものである。このシステムは、印刷データを送信する
印刷データ転送装置11と、送られてきた印刷データを
受信しこれに応じて記録用紙に印刷する印刷装置12と
から構成されている。印刷データ転送装置11は、転送
すべき印刷データを蓄積する転送バッファメモリ13
と、通信ケーブルを通じて印刷データを印刷装置12に
転送する転送回路14と、印刷データの圧縮を行う圧縮
回路15を備えている。圧縮回路15は、印刷データを
ページ単位に圧縮するようになっている。圧縮方式はど
のようなものでもよいが、伸張したときに圧縮前と同一
のデータを得ることのできる可逆性のあるものが好まし
い。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS FIG. 1 shows an outline of the configuration of a printing system using a print data transfer device according to an embodiment of the present invention. This system is composed of a print data transfer device 11 for transmitting print data, and a print device 12 for receiving the sent print data and printing it on a recording sheet in response to the print data. The print data transfer device 11 includes a transfer buffer memory 13 that stores print data to be transferred.
A transfer circuit 14 for transferring print data to the printing device 12 through a communication cable, and a compression circuit 15 for compressing the print data. The compression circuit 15 is configured to compress the print data page by page. Any compression method may be used, but a reversible one that can obtain the same data as before compression when decompressed is preferable.

【0019】圧縮回路15の出力は、圧縮後のデータを
一時的に記憶する圧縮バッファメモリ16に入力されて
いる。転送回路14は、圧縮バッファメモリ16に格納
されている圧縮された印刷データ(以後、圧縮データと
呼ぶ)または転送元バッファメモリ13に格納されてい
る圧縮されていない印刷データ(以後、生データと呼
ぶ)のいずれかを印刷装置12に転送するようになって
いる。圧縮時間計測回路17は、圧縮回路15が1ペー
ジ分の印刷データを圧縮するのに要した時間を計測する
回路である。
The output of the compression circuit 15 is input to the compression buffer memory 16 which temporarily stores the compressed data. The transfer circuit 14 stores compressed print data stored in the compression buffer memory 16 (hereinafter referred to as compressed data) or uncompressed print data stored in the transfer source buffer memory 13 (hereinafter referred to as raw data). Any of the above (referred to) is transferred to the printing device 12. The compression time measuring circuit 17 is a circuit that measures the time required for the compression circuit 15 to compress one page of print data.

【0020】圧縮時間推測回路18は、圧縮時間計測回
路17によって計測された前回までの圧縮時間を基に、
次のページの圧縮にかかる時間を推測する回路である。
圧縮・転送指示回路19は、圧縮時間推測回路18で推
測した時間を基にして何ページ先の印刷データを次に圧
縮すべきかを決定する回路である。また、圧縮回路15
にこのページを圧縮する指示を与え、これと同時に圧縮
すべきページの前のページまでを生データの状態で印刷
装置12に転送する指示を転送回路14に与える。
The compression time estimation circuit 18 uses the compression time measured by the compression time measurement circuit 17 up to the previous time as the basis.
This is a circuit that estimates the time required to compress the next page.
The compression / transfer instruction circuit 19 is a circuit that determines, based on the time estimated by the compression time estimation circuit 18, which page of print data is to be compressed next. In addition, the compression circuit 15
Is given to the transfer circuit 14, and at the same time, an instruction to transfer up to the page before the page to be compressed in the raw data state to the printing device 12 is given to the transfer circuit 14.

【0021】たとえば、1ページ分の生データを転送す
る時間が10秒で、圧縮時間推測回路18で推測された
時間が15秒であったとすると、2ページ分の生データ
を転送している間に1ページ分の印刷データの圧縮を終
了することができる。そこで、次に転送すべきページが
第5ページであったとすると、第6ページと第7ページ
を生データで転送させ、第8ページの印刷データを圧縮
回路15により圧縮させる。これにより第6、第7ペー
ジの生データの転送後に、第8ページの圧縮データを転
送することができ、ぺージ順が崩れない。また、推測が
正しければ第7ページの転送を終了したときには第8ペ
ージの圧縮処理が終了しているので、データ転送の行わ
れない空き時間が無くなり効率の良い転送を行うことが
できる。
For example, assuming that the time for transferring the raw data for one page is 10 seconds and the time estimated by the compression time estimation circuit 18 is 15 seconds, while the raw data for two pages is being transferred. Then, the compression of the print data for one page can be completed. Therefore, if the next page to be transferred is the fifth page, the sixth and seventh pages are transferred as raw data, and the print data of the eighth page is compressed by the compression circuit 15. As a result, the compressed data of the eighth page can be transferred after the raw data of the sixth and seventh pages can be transferred, and the page order is not broken. If the guess is correct, the compression processing of the eighth page is completed when the transfer of the seventh page is completed, so that there is no idle time for data transfer, and efficient transfer can be performed.

【0022】印刷装置12は、印刷データ転送装置11
から送られてきた生データあるいは圧縮データを蓄積す
る受信バッファメモリ21と、受信したデータが圧縮デ
ータであるか生データであるかを判別する圧縮判別回路
22を備えている。伸張回路23は、圧縮データを伸張
し圧縮される前の状態に復元する回路である。印刷部2
4は、印刷データを基にして記録用紙に印刷する部分で
ある。生データと判別されたデータは、受信バッファメ
モリ21からそのまま印刷部24に送られ、圧縮データ
と判別されたデータは、伸張回路23で伸張された後、
印刷部24に送られて印刷される。
The printing device 12 is a print data transfer device 11
It has a reception buffer memory 21 for accumulating raw data or compressed data sent from the device, and a compression discrimination circuit 22 for discriminating whether the received data is compressed data or raw data. The decompression circuit 23 is a circuit that decompresses compressed data and restores the compressed data to the state before compression. Printing unit 2
Reference numeral 4 is a portion for printing on recording paper based on print data. The data determined as raw data is sent from the reception buffer memory 21 to the printing unit 24 as it is, and the data determined as compressed data is decompressed by the decompression circuit 23.
It is sent to the printing unit 24 and printed.

【0023】図2は、図1に示した印刷データ転送装置
の回路構成の概要を表わしたものである。印刷データ転
送装置11は、各種制御の中枢的な働きをするCPU
(中央処理装置)31を備えている。CPU31には、
データバスや入出力バスなどの各種バス32を介して各
種回路装置が接続されている。このうち、ROM(リー
ド・オンリ・メモリ)33は、プログラムや固定的デー
タを記憶する読み出し専用メモリである。RAM(ラン
ダム・アクセス・メモリ)34は、プログラムを実行す
る上で一時的に必要になるデータを格納する作業用メモ
リである。
FIG. 2 shows an outline of the circuit configuration of the print data transfer apparatus shown in FIG. The print data transfer device 11 is a CPU that plays a central role in various controls.
A (central processing unit) 31 is provided. The CPU 31 has
Various circuit devices are connected via various buses 32 such as a data bus and an input / output bus. Of these, the ROM (Read Only Memory) 33 is a read-only memory that stores programs and fixed data. A RAM (Random Access Memory) 34 is a working memory that stores data temporarily required for executing a program.

【0024】バッファメモリ35は、圧縮される前の生
データおよび圧縮された後の圧縮データを格納するメモ
リである。圧縮回路36は、印刷データを所定のアルゴ
リズムに従って圧縮する回路である。転送制御回路37
は、生データあるいは圧縮データを通信ケーブルを介し
て印刷装置に送出する回路である。DAM(ダイレクト
・メモリ・アクセス)コントローラ38は、バッファメ
モリ35に蓄積されている圧縮データあるいは生データ
をCPU31を介することなく直接、転送制御回路37
に転送する回路である。
The buffer memory 35 is a memory for storing raw data before being compressed and compressed data after being compressed. The compression circuit 36 is a circuit that compresses print data according to a predetermined algorithm. Transfer control circuit 37
Is a circuit for sending raw data or compressed data to a printing device via a communication cable. The DAM (Direct Memory Access) controller 38 directly transfers the compressed data or raw data stored in the buffer memory 35 without passing through the CPU 31.
It is a circuit to transfer to.

【0025】CPU31には、圧縮回路36から出力さ
れる圧縮処理の終了を示す割り込み信号が入力されてい
る。CPU31は、圧縮開始の指示を出してから圧縮回
路15から割り込み信号が入力されるまでの時間を計測
することで、1ページ分の印刷データを圧縮するのに要
した圧縮時間を測定する。また、ROM33には1バイ
トを転送するのに要する時間が記憶されている。CPU
31は1バイトの転送時間に1ページの総バイト数を掛
け合わせて1ページ分の生データで転送するのに要する
時間を求める。そして、圧縮時間と1ページ当たりの生
データの転送時間とを基に、次に圧縮すべきページを求
める。
An interrupt signal indicating the end of the compression process output from the compression circuit 36 is input to the CPU 31. The CPU 31 measures the compression time required to compress the print data for one page by measuring the time from when the compression start instruction is issued until the interrupt signal is input from the compression circuit 15. Further, the ROM 33 stores the time required to transfer 1 byte. CPU
Reference numeral 31 multiplies the transfer time of 1 byte by the total number of bytes of 1 page to obtain the time required to transfer 1 page of raw data. Then, the page to be compressed next is obtained based on the compression time and the transfer time of the raw data per page.

【0026】図3は、印刷データ転送装置の行う処理の
流れを表わしたものである。まず、転送すべき生データ
がバッファメモリ35に用意される。その後、CPU3
1は、各種のパラメータの初期化を行う(ステップS1
01)。次に転送するページ番号を表わした転送ページ
番号(i)および1回の圧縮処理中に転送すべきページ
数を表わした連続転送ページ数(x)をそれぞれ“1”
に初期化する。このほか、圧縮に要した時間を保持して
おく圧縮時間パラメータ(a)を“0”に、圧縮後のデ
ータサイズを表わすパラメータの圧縮データサイズ
(b)を“0”にそれぞれ初期化する。
FIG. 3 shows the flow of processing performed by the print data transfer apparatus. First, raw data to be transferred is prepared in the buffer memory 35. After that, CPU3
1 initializes various parameters (step S1).
01). The transfer page number (i) representing the page number to be transferred next and the continuous transfer page number (x) representing the number of pages to be transferred during one compression process are each “1”.
Initialize to In addition, the compression time parameter (a) for holding the time required for compression is initialized to "0", and the compressed data size (b) of the parameter indicating the data size after compression is initialized to "0".

【0027】次に、CPU31は連続転送ページ数
(x)が“0”であるかどうかを判別する(ステップS
102)。連続転送ページ数(x)は、次回、1ページ
分の印刷データを圧縮している間に、これと並行して転
送すべき生データのページ数を表わしているが、“x”
の値が“0”のときは生データの転送を行わずに、圧縮
だけを行うことを示している。そこで、連続転送ページ
数(x)が“0”のときは(ステップS102;Y)、
第iページの印刷データの圧縮だけを行う(ステップS
103)。連続転送ページ数(x)が“0”でないとき
は(ステップS102;N)、第iページから“x”ペ
ージ分の生データの転送、すなわち第iページから第
(i+x−1)ページまでの生データの転送を行う。ま
た生データの転送と並行して第(i+x)ページの印刷
データの圧縮処理を行う(ステップS104)。こうし
て、生データの転送中に第(i+x)ページの圧縮処理
が行われる。
Next, the CPU 31 determines whether or not the continuous transfer page number (x) is "0" (step S).
102). The continuous transfer page number (x) represents the number of pages of raw data that should be transferred in parallel with the print data for one page next time while compressing the print data for one page.
When the value of is 0, it means that the raw data is not transferred and only the compression is performed. Therefore, when the continuous transfer page number (x) is "0" (step S102; Y),
Only the print data of the i-th page is compressed (step S
103). When the continuous transfer page number (x) is not "0" (step S102; N), the raw data for the "i" th page to the "x" page is transferred, that is, from the ith page to the (i + x-1) th page. Transfer raw data. Further, the print data of the (i + x) th page is compressed in parallel with the transfer of the raw data (step S104). Thus, the compression process of the (i + x) th page is performed during the transfer of the raw data.

【0028】圧縮処理が終了した時点で、CPU31は
圧縮後のデータサイズが圧縮前の1ページ分の生データ
のサイズよりも大きいかどうかを判別する(ステップS
105)。圧縮後のデータサイズが圧縮前のデータサイ
ズよりも大きくなったときは(ステップS105;
Y)、第(i+x)ページの生データを転送し(ステッ
プS106)、圧縮したデータは廃棄する。圧縮後のデ
ータサイズが圧縮前のデータサイズより大きくないとき
は(ステップS105;N)、第(i+x)ページの圧
縮データを印刷装置12に転送する(ステップS10
7)。
When the compression process is completed, the CPU 31 determines whether the data size after compression is larger than the size of raw data for one page before compression (step S).
105). When the data size after compression becomes larger than the data size before compression (step S105;
Y), the raw data of the (i + x) th page is transferred (step S106), and the compressed data is discarded. When the data size after compression is not larger than the data size before compression (step S105; N), the compressed data of the (i + x) th page is transferred to the printing device 12 (step S10).
7).

【0029】第(i+x)ページの転送終了後、次に転
送すべきページ番号を表わした変数(i)に“1”を加
えて、ページ番号を更新する(ステップS108)。図
3には示していないが、CPU31は、第(i+x)ペ
ージの圧縮に要した時間を変数(a)に、また、圧縮後
のデータサイズを変数(b)に代入する。なお、圧縮デ
ータのサイズが1ページ分の生データのサイズよりも大
きくなったときは、変数(b)に1ページ分の生データ
のサイズを代入する。
After the transfer of the (i + x) th page is completed, "1" is added to the variable (i) representing the page number to be transferred next to update the page number (step S108). Although not shown in FIG. 3, the CPU 31 substitutes the time required for compression of the (i + x) th page into a variable (a) and the data size after compression into a variable (b). When the size of the compressed data becomes larger than the size of the raw data for one page, the size of the raw data for one page is substituted into the variable (b).

【0030】CPU31は、圧縮時間(a)圧縮後のデ
ータサイズ(b)および1ページ分の生データのバイト
数(c)と1バイト当たりの転送時間(d)とを基に、
次回の圧縮中に連続して転送すべき生データのページ数
(x)の値を求める(ステップS109)。連続転送ペ
ージ数(x)は以下に示した条件式から求まる。 (x−1)cd<a=<xcd (xは整数) (1)式 ただし、次式の関係が成立するときは、xを“0”とし
て、生データの転送は行わずに圧縮だけを行うように設
定する。 cd<2a (2)式
Based on the compression time (a), the data size after compression (b), the number of bytes of raw data for one page (c), and the transfer time per byte (d), the CPU 31
The value of the number of pages (x) of raw data to be continuously transferred during the next compression is calculated (step S109). The number of continuous transfer pages (x) is obtained from the conditional expression shown below. (X-1) cd <a = <xcd (x is an integer) Expression (1) However, when the relationship of the following expression is established, x is set to “0” and only the compression is performed without transferring the raw data. Set to do. cd <2a (2) formula

【0031】(1)式は、xページ分の生データを転送
する時間(xcd)が、1ページ分の印刷データを圧縮
する時間(a)よりも大きく、かつ最小の“x”を求め
ている。すなわち、ページ単位に生データの転送を行う
とき、1ページ分の印刷データを圧縮するのに要する時
間よりも生データの転送時間が長くなり、かつ最小のペ
ージ数を求めている。次の圧縮に要する時間の推測が正
しければ、xページ分の生データの転送を終了する前に
1ページ分の圧縮処理が終了しているので、生データの
転送終了直後に圧縮データの転送を開始することができ
る。
In the equation (1), the time (xcd) for transferring the raw data for x pages is longer than the time (a) for compressing the print data for one page, and the minimum "x" is calculated. There is. That is, when the raw data is transferred page by page, the transfer time of the raw data is longer than the time required to compress the print data for one page, and the minimum number of pages is obtained. If the estimation of the time required for the next compression is correct, the compression process for one page is completed before the transfer of the raw data for x pages is completed, so that the transfer of the compressed data is completed immediately after the transfer of the raw data is completed. You can start.

【0032】(2)式は、生データの転送と圧縮処理を
並行して行うよりも、圧縮処理と圧縮データの転送だけ
を交互に繰り返し行う方が、トータルの転送時間が短く
なるケースを判別している。すなわち、生データの転送
中に次のページの圧縮処理を並行して行い、生データの
転送後に圧縮データを転送した場合に要する時間をT1
とすると、T1は次式で表される。 T1=cd+bd (3)式 これに対し2ページをすべて圧縮し、圧縮後に圧縮デー
タを転送するのに要する時間であるT2は、次式で表さ
れる。 T2=2a+2bd (4)式
The equation (2) determines that the total transfer time is shortened by alternately repeating only the compression process and the transfer of the compressed data, rather than performing the transfer of the raw data and the compression process in parallel. doing. That is, the time required when the compression process of the next page is performed in parallel during the transfer of raw data and the compressed data is transferred after the transfer of the raw data is T1.
Then, T1 is expressed by the following equation. T1 = cd + bd (3) On the other hand, T2, which is the time required to compress all two pages and transfer the compressed data after compression, is expressed by the following equation. T2 = 2a + 2bd (4) Formula

【0033】T2がT1よりも小さくなれば、生データ
の転送を行わずに圧縮処理と圧縮データの転送だけを繰
り返し行う方がトータルの転送時間が短くなる。これを
式で表わすと次式になる。 cd+bd>2a+2bd (5)式 圧縮後のデータの転送時間(bd)が十分短いとすると
(2)式に示した関係が成立すれば、生データの転送と
圧縮処理を並行して行わない方が、転送時間が短くな
る。
If T2 becomes smaller than T1, the total transfer time will be shorter if the compression process and the transfer of the compressed data are repeated without transferring the raw data. This can be expressed by the following equation. cd + bd> 2a + 2bd Expression (5) If the transfer time (bd) of compressed data is sufficiently short, if the relationship shown in Expression (2) holds, it is better not to perform raw data transfer and compression processing in parallel. , The transfer time becomes shorter.

【0034】このようにして求めた連続転送ページ数
(x)分だけ先のページが次回圧縮すべきページであ
る。そこで、CPU31は転送すべき残りのページ数と
“x”の値を比較する(ステップS110)。“x”の
値が残りページ数より大きいときは(ステップS11
0;Y)、もはや残りページの中に圧縮すべきページが
存在しないことになるので、残りのページを順次生デー
タのままで転送する(ステップS111)。“x”の値
が残りページ数より大きくないときは(ステップS11
0;N))、残りページの中に圧縮すべきページが存在
するので、ステップS102に戻って処理を継続して行
う。
A page ahead by the number of continuous transfer pages (x) thus obtained is a page to be compressed next time. Therefore, the CPU 31 compares the number of remaining pages to be transferred with the value of "x" (step S110). If the value of "x" is larger than the number of remaining pages (step S11)
0; Y), there is no page to be compressed among the remaining pages, so the remaining pages are sequentially transferred as raw data (step S111). If the value of "x" is not larger than the number of remaining pages (step S11)
0; N)), and there is a page to be compressed among the remaining pages, so the processing returns to step S102 and continues.

【0035】図4は、生データ転送時間、圧縮時間およ
び圧縮データの転送時間の一例を表わしたものである。
ここでは、第1ページから第11ページまでについて、
生データ転送時間と、各ページを圧縮するのに要する圧
縮時間と、圧縮データの転送時間をそれぞれ示してあ
る。また、各ページの生データは、各ドットごとに展開
された後のイメージデータであるものとする。1ページ
当たり画像領域のサイズが同一であるとすると、イメー
ジデータ、すなわち生データのサイズは同一である。こ
こでは、生データを1ページ分転送するのに要する時間
は各ページ10秒になっている。圧縮時間は、各ページ
のイメージデータの内容により個々に変化し、第1、第
2ページの圧縮に各12秒を、第3〜第5ページの圧縮
に各8秒を、第6〜第8ページの圧縮に各4秒を、第9
〜第11ページの圧縮に各6秒を要している。また、圧
縮された後のデータ量も相違するので、第1、第2ペー
ジの圧縮データの転送には各4秒を、第3〜第11ペー
ジの圧縮データの転送には各2秒を要している。
FIG. 4 shows an example of the raw data transfer time, the compression time, and the compressed data transfer time.
Here, from page 1 to page 11,
The raw data transfer time, the compression time required to compress each page, and the compressed data transfer time are shown. In addition, the raw data of each page is assumed to be image data after being developed for each dot. If the size of the image area per page is the same, the size of the image data, that is, the raw data is the same. Here, the time required to transfer one page of raw data is 10 seconds for each page. The compression time changes individually depending on the contents of the image data of each page. Each compression time is 12 seconds for the first and second pages, each 8 seconds for the compression of the third to fifth pages, and the sixth to the eighth. 4 seconds each for page compression, 9th
~ It takes 6 seconds each to compress the 11th page. Further, since the amount of data after being compressed is different, it takes 4 seconds to transfer the compressed data of the first and second pages, and 2 seconds to transfer the compressed data of the third to 11th pages. doing.

【0036】図5は、図4に各時間の表わされた印刷デ
ータが転送される際の様子を模式的に表わしたものであ
る。図5の各横軸は時間を表わしている。また、図中の
実線は、生データを転送している期間を、点線は圧縮処
理を行っている期間を、斜線部分は圧縮データを転送し
ている期間をそれぞれ表わしている。各ページを全て生
データで転送した場合(同図a)は、各ページの転送時
間(51)はそれぞれ10秒かかるので、11ページ分
の印刷データの転送時間(52)は、110秒である。
1ページ分の圧縮処理を行い、その次に圧縮データを転
送することを各ページごとに繰り返し行う場合(同図
b)の場合には、合計の処理時間(53)は、104秒
になる。第1ページと第2ページでは、圧縮時間と圧縮
データの転送時間の和(54)がそれぞれ16秒であ
り、生データのまま転送した場合の10秒よりも長くな
っている。
FIG. 5 schematically shows a state in which the print data represented by each time is transferred in FIG. Each horizontal axis in FIG. 5 represents time. The solid line in the figure represents the period during which raw data is being transferred, the dotted line represents the period during which compression processing is being performed, and the shaded part represents the period during which compressed data is being transferred. When all the pages are transferred as raw data (a in the figure), the transfer time (51) of each page takes 10 seconds, so the transfer time (52) of the print data for 11 pages is 110 seconds. .
In the case of performing compression processing for one page and then transferring compressed data for each page repeatedly (b in the same figure), the total processing time (53) becomes 104 seconds. In the first page and the second page, the sum (54) of the compression time and the transfer time of the compressed data is 16 seconds, which is longer than 10 seconds when the raw data is transferred as it is.

【0037】図3に示した流れ図に従って生データの転
送と圧縮処理を並行して行う場合(同図c)には、合計
の転送時間(55)は、76秒になっており、大幅に転
送時間が短縮されている。図5cでは、第1ページ(P
1)を生データで転送している期間に、第2ページ(P
2)の圧縮処理を並行して行っている。初期状態では、
圧縮に要する時間が分からないので、第1ページの転送
と並行して第2ページの圧縮を無条件に行っている。こ
こでは、第1ページの生データの転送時間よりも第2ペ
ージの圧縮時間の方が長いので、生データの転送終了
後、圧縮処理の終了を2秒間待っており、データの転送
されない期間が生じている。
When the raw data transfer and the compression process are performed in parallel according to the flow chart shown in FIG. 3 (c in the same figure), the total transfer time (55) is 76 seconds, which is a significant transfer. The time has been shortened. In FIG. 5c, the first page (P
While the 1) is being transferred as raw data, the second page (P
The compression process of 2) is performed in parallel. In the initial state,
Since the time required for compression is unknown, the second page is unconditionally compressed in parallel with the transfer of the first page. Here, since the compression time of the second page is longer than the transfer time of the raw data of the first page, the end of the compression process is waited for 2 seconds after the end of the transfer of the raw data, and the period during which the data is not transferred is Has occurred.

【0038】第2ページの圧縮に要した時間が、1ペー
ジ分の生データの転送時間よりも長かったので、次回の
圧縮処理と並行して、第3ページ(P3)、第4ページ
(P4)の2ページ分の生データを転送している。これ
により圧縮時間よりも生データ転送時間が長くなる。第
4ページの次に転送すべき順の第5ページ(P5)の圧
縮を並行して行い、第4ページの生データ転送終了後、
第5ページの圧縮データを転送している。第5ページの
圧縮時間が、1ページの生データの転送時間である10
秒よりも短い8秒であったので、第6ページ(P6)だ
けの生データを転送する間に第7ページ(P7)の圧縮
処理を並行してい行い、第6ページの転送終了後に、第
7ページの圧縮データを転送している。第7ページの圧
縮に要した時間は4秒であり、その2倍の時間が1ペー
ジの転送時間(10秒)より短い。したがって、(2)
式に示した関係が成立する。
Since the time required for the compression of the second page was longer than the transfer time of the raw data for one page, the third page (P3) and the fourth page (P4) are executed in parallel with the next compression process. ) 2 pages of raw data are transferred. This makes the raw data transfer time longer than the compression time. The fifth page (P5) in the order to be transferred next to the fourth page is compressed in parallel, and after the completion of the raw data transfer of the fourth page,
The compressed data of the fifth page is being transferred. The compression time of the fifth page is the transfer time of the raw data of one page 10
Since it was 8 seconds, which was shorter than the second, the compression processing of the 7th page (P7) was performed in parallel while the raw data of the 6th page (P6) was transferred, and after the transfer of the 6th page was completed, 7 pages of compressed data are being transferred. The time required to compress the seventh page is 4 seconds, which is twice as long as the transfer time (10 seconds) for one page. Therefore, (2)
The relationship shown in the equation holds.

【0039】このため第8ページ(P8)を圧縮してい
るときに生データの転送を並行して行わない。また、第
8ページの圧縮時間も4秒であったので、第9ページ
(P9)の圧縮処理中に生データの転送を行っていな
い。第9ページの圧縮に6秒を要したので(2)式の関
係が成立せず、第10ページ(P10)は生データで転
送し、その間に並行して第11ページ(P11)の圧縮
を行っている。そして第10ページの転送終了後、第1
1ページの圧縮データを転送している。このように、圧
縮と転送を並行して行うことによって、印刷データの転
送に要するトータル時間が短縮される。また前回の圧縮
に要した時間を基にして、圧縮と並行して生データのま
ま転送すべきページ数を求めるとともに、生データで転
送されるページの次のページを圧縮しているので、ペー
ジ順を崩すこと無く印刷データを転送されている。
Therefore, the raw data is not transferred in parallel while the eighth page (P8) is being compressed. Further, since the compression time of the eighth page was also 4 seconds, the raw data was not transferred during the compression process of the ninth page (P9). Since the compression of the 9th page took 6 seconds, the relation of the equation (2) was not established, and the 10th page (P10) was transferred as raw data, while the compression of the 11th page (P11) was performed in parallel. Is going. After the transfer of the 10th page is completed, the 1st page
One page of compressed data is being transferred. By thus performing compression and transfer in parallel, the total time required for transfer of print data is shortened. In addition, based on the time required for the previous compression, the number of pages to be transferred as raw data is calculated in parallel with the compression, and the page next to the page transferred by the raw data is compressed. The print data is transferred without breaking the order.

【0040】次に図3に示した流れ図に従って転送する
ことによって、図5(a)および図5(b)に示した流
れ転送する場合に比べて確実に転送時間が短くなること
を説明する。
Next, it will be explained that the transfer time is surely shortened by performing the transfer according to the flow chart shown in FIG. 3 as compared with the case of the flow transfer shown in FIGS. 5 (a) and 5 (b).

【0041】平均の圧縮時間を(a)、圧縮後の平均の
データサイズを(b)、1ページ分の生データのデータ
サイズを(c)、1バイトを転送する時間を(d)とす
る。また、1ページの圧縮処理中に転送する生データの
ページ数を(x)とする。生データだけで“x”ページ
を転送するのに必要な転送時間は次式で表わされる。 xcd (6)式 また、図3の流れ図に示したように、(x−1)だけの
ページを生データで転送している間に1つのページを圧
縮し、生データの転送後に圧縮データを転送するのに要
する時間は次式で表わされる。 (x−1)cd+bd=xcd−cd+bd (7)式
The average compression time is (a), the average data size after compression is (b), the data size of raw data for one page is (c), and the time for transferring one byte is (d). . Further, the number of pages of raw data transferred during the compression process of one page is (x). The transfer time required to transfer an "x" page with only raw data is given by: xcd (6) Expression Also, as shown in the flow chart of FIG. 3, one page is compressed while transferring only (x−1) pages of raw data, and the compressed data is transferred after the raw data is transferred. The time required for transfer is expressed by the following equation. (X-1) cd + bd = xcd-cd + bd Expression (7)

【0042】圧縮後のデータサイズ(b)が生データの
データサイズ(c)よりも大きくなった場合には生デー
タを転送するので、bd=<cdが常に成り立つ。した
がって、(6)式と(7)式の間には次式の関係があ
る。 xcd>=(x−1)cd+bd (8)式 すなわち、(7)式で表されるデータ量は(6)式で表
される生データのみで転送する場合のデータ量よりも等
しいか小さくなる。
When the data size (b) after compression becomes larger than the data size (c) of the raw data, the raw data is transferred, so that bd = <cd always holds. Therefore, there is the following relationship between the expressions (6) and (7). xcd> = (x−1) cd + bd (8) That is, the data amount represented by the formula (7) is equal to or smaller than the data amount when only the raw data represented by the formula (6) is transferred. .

【0043】図5(b)に示したように、圧縮処理と圧
縮データの転送を交互に行う場合に要する転送時間は次
式で表される。 x(a+bd) (9)式 (7)式に示した転送時間が(9)式に示した転送時間
より短くなるには次式を満足する必要がある。 x(a+bd)>(x−1)cd+bd (10)式 これを変形すると次式になる。 ax+xbd > (x−1)cd+bd (11)式 ax > (x−1)cd−(x−1)bd (12)式
As shown in FIG. 5B, the transfer time required when the compression process and the transfer of the compressed data are alternately performed is expressed by the following equation. x (a + bd) Expression (9) In order for the transfer time shown in Expression (7) to become shorter than the transfer time shown in Expression (9), the following expression must be satisfied. x (a + bd)> (x-1) cd + bd (10) Formula When this is modified, the following formula is obtained. ax + xbd> (x-1) cd + bd (11) Formula ax> (x-1) cd- (x-1) bd (12) Formula

【0044】(7)式の場合には、生データの転送と圧
縮を並行して行うので、最低2ページ分の転送時間につ
いて比較する必要がある。また、圧縮時間が短いほど生
データの転送と並行して圧縮を行うことによる転送時間
短縮の効果が小さくなるので、1ページを転送する間に
1ページの圧縮を行う場合を比較の対象とすればよい。
したがって、xが“2”の場合に(12)式の関係が成
立すればよい。xに“2”を代入すると(12)式は次
式にように表される。 2a > cd−bd (13)式 圧縮データの転送時間(bd)が小さくて無視できるも
のとすると(13)式は次式になる。 2a > cd (14)式 このような関係が成立しないとき、すなわち、圧縮処理
時間の2倍の時間(2a)が1ページ分の生データの転
送時間(cd)よりも短くなる場合、すなわち(2)式
の関係が成立するとき圧縮処理と並行して生データの転
送を行わなければよい。このようにすることで圧縮処理
と圧縮データの転送を交互に行う場合よりも転送時間が
長くなることがない。
In the case of the expression (7), since the raw data is transferred and compressed in parallel, it is necessary to compare the transfer time of at least two pages. Also, the shorter the compression time is, the smaller the effect of shortening the transfer time by performing the compression in parallel with the transfer of the raw data is. Therefore, the case where one page is compressed during the transfer of one page is a comparison target. Good.
Therefore, when x is “2”, the relationship of the expression (12) may be established. Substituting "2" for x, equation (12) is expressed as the following equation. 2a> cd-bd Expression (13) If the transfer time (bd) of compressed data is small and can be ignored, Expression (13) becomes the following expression. 2a> cd (14) When such a relationship is not established, that is, when the time (2a) that is twice the compression processing time is shorter than the transfer time (cd) of the raw data for one page, that is, ( When the relation of the expression (2) is established, the raw data need not be transferred in parallel with the compression processing. By doing so, the transfer time does not become longer than in the case where the compression processing and the transfer of the compressed data are alternately performed.

【0045】第1の変形例 First Modified Example

【0046】これまで説明した実施例では、印刷データ
をそのページ順を崩さないように転送しているが、第1
の変形例では印刷すべき順序を表わした順序情報を印刷
データに付加し、任意の順に印刷データの転送を行う。
印刷装置12は、受信した印刷データに付加されている
順序情報を基に受信した印刷データを並べ換えて印刷を
行うようになっている。印刷データ転送装置の構成は、
図1および図2に示したものと同一であるのでその説明
を省略し、動作の流れについてだけ以後説明する。
In the embodiments described so far, the print data is transferred so as not to break the page order.
In the modified example, the order information indicating the order of printing is added to the print data, and the print data is transferred in an arbitrary order.
The printing device 12 rearranges the received print data based on the order information added to the received print data to perform printing. The configuration of the print data transfer device is
Since it is the same as that shown in FIGS. 1 and 2, its description is omitted, and only the flow of operation will be described below.

【0047】図6は、第1の変形例における印刷データ
転送装置の行う処理の流れを表わしたものである。転送
すべき生データがバッファメモリ35に用意された後、
CPU31は、各ページごとの印刷データに印刷の順序
を表わした順序情報を付加する。その後、各種のパラメ
ータの初期化を行う(ステップS201)。ここでは、
転送するページ番号を表わした転送ページ番号(i)を
“1”に、また圧縮を行うページ番号を表わした圧縮ペ
ージ番号(x)を“2”に初期化する。すなわち、第1
ページ目を生データで転送し、これと並行して第2ペー
ジの圧縮処理が行われるように初期化する。このほか、
圧縮に要した時間を保持しておく圧縮時間パラメータ
(a)を“0”に、圧縮後のデータサイズを表わす圧縮
データサイズ(b)を“0”にそれぞれ初期化する。
FIG. 6 shows the flow of processing performed by the print data transfer apparatus in the first modification. After the raw data to be transferred is prepared in the buffer memory 35,
The CPU 31 adds order information representing the printing order to the print data for each page. After that, various parameters are initialized (step S201). here,
The transfer page number (i) representing the page number to be transferred is initialized to "1", and the compressed page number (x) representing the page number to be compressed is initialized to "2". That is, the first
The page number is transferred as raw data, and initialization is performed so that the compression processing of the second page is performed in parallel with this. other than this,
The compression time parameter (a) for holding the time required for compression is initialized to "0", and the compressed data size (b) representing the data size after compression is initialized to "0".

【0048】次に、CPU31は圧縮ページ番号(x)
が転送ページ番号(i)と同一であるかどうかを判別す
る(ステップS202)。これらが一致するときは、圧
縮処理と並行して生データの転送を行うよりも、圧縮処
理のみを実行した方がトータルの転送時間が短くなるこ
とを表わしている。そこでCPU31は、圧縮ページ番
号(x)が転送ページ番号“i”と一致するときは(ス
テップS202;Y)、第xページの印刷データの圧縮
だけを行う(ステップS203)。“x”と“i”が一
致しないときは(ステップS202;N)、第iページ
の生データの転送と第xページの印刷データの圧縮処理
を並行して行う(ステップS204)。
Next, the CPU 31 determines the compression page number (x)
Is determined to be the same as the transfer page number (i) (step S202). When they match, it means that the total transfer time is shorter when only the compression process is executed than when the raw data is transferred in parallel with the compression process. Therefore, when the compressed page number (x) matches the transfer page number "i" (step S202; Y), the CPU 31 only compresses the print data of the xth page (step S203). If "x" and "i" do not match (step S202; N), the raw data of the i-th page and the compression processing of the print data of the x-th page are performed in parallel (step S204).

【0049】CPU31は、第iページの生データの転
送が終了した時点で、第xページの圧縮処理が終了して
いるかどうかを判別する(ステップS205)。第iペ
ージの1ページ分の生データの転送終了時点で、まだ第
xページの圧縮処理が終了していないときは(ステップ
S205;N)、第xページの圧縮処理が終了するまで
第iページに続けて他の1つのページの生データの転送
を順次行う(ステップS206)。生データで転送され
るページは、圧縮処理の行われている第xページ以外の
ページが選択される。
When the transfer of the raw data of the i-th page is completed, the CPU 31 determines whether or not the compression processing of the x-th page is completed (step S205). At the time when the transfer of the raw data for one page of the i-th page is completed, if the compression processing of the x-th page is not completed yet (step S205; N), the i-th page is compressed until the compression processing of the x-th page is completed. After that, the raw data of another one page is sequentially transferred (step S206). A page other than the x-th page that has been compressed is selected as the page to be transferred as raw data.

【0050】CPU31は、第xページの圧縮処理が終
了するまで生データの転送を行った後、第xページの圧
縮データのデータサイズと1ページ分の生データのデー
タサイズの大小を比較する(ステップS207)。圧縮
後のデータサイズが生データのそれよりも大きいときは
(ステップS207;Y)、第xページの生データを転
送し(ステップS208)、圧縮データを廃棄する。こ
の際、転送するデータの先頭にそのページの印刷順序を
表わした順序情報を付加する。
The CPU 31 transfers the raw data until the compression processing of the xth page is completed, and then compares the data size of the compressed data of the xth page with the data size of the raw data of one page ( Step S207). When the data size after compression is larger than that of the raw data (step S207; Y), the raw data of page x is transferred (step S208) and the compressed data is discarded. At this time, the order information indicating the printing order of the page is added to the beginning of the data to be transferred.

【0051】圧縮後のデータサイズが生データのそれよ
りも大きくないときは(ステップS207;N)、第x
ページの圧縮データの先頭に順序情報を付加して印刷装
置12に転送する(ステップS209)。その後、CP
U31は次回、生データのまま転送するページ番号を表
わした転送ページ番号(i)を現在の値に“1”を加え
た値に更新する。また、次に圧縮すべきページ番号を表
わした圧縮ページ番号(x)を更新後の転送ページ番号
(i)に“1”を加えた値に変更する(ステップS21
0)。
When the data size after compression is not larger than that of the raw data (step S207; N), the xth
The order information is added to the head of the compressed data of the page and transferred to the printing device 12 (step S209). After that, CP
Next, U31 updates the transfer page number (i) representing the page number to be transferred as raw data to the current value plus "1". Further, the compressed page number (x) representing the page number to be compressed next is changed to a value obtained by adding "1" to the updated transfer page number (i) (step S21).
0).

【0052】CPU31は、前回の圧縮に要した時間の
2倍の時間が、1ページ分の生データの転送時間よりも
短いかどうかを判別する(ステップS211)。すなわ
ち、(2)式に示した2a<cdの関係が成立している
かどうかを調べる。これは先に説明したように、圧縮処
理と並行して生データの転送を行うべきかどうかを判断
している。圧縮時間の2倍の時間の方が短いときは(ス
テップS211;Y)、圧縮ページ番号(x)を転送ペ
ージ番号(i)と同一の値に変更する(ステップS21
2)。その後、圧縮ページ番号(x)が、転送すべき残
りページの範囲内にあるかどうかを判別する(ステップ
S213)。圧縮ページ番号が残りページの範囲外の場
合には(ステップS213;N)、もはや圧縮すべきペ
ージが無いことになるので残りページの全てを生データ
のまま転送する(ステップS214)。圧縮ページ番号
(x)が残りページの範囲内のときは(ステップS21
3;Y)、ステップS202も戻り処理を継続して行
う。
The CPU 31 determines whether the time which is twice the time required for the previous compression is shorter than the transfer time of the raw data for one page (step S211). That is, it is checked whether or not the relationship of 2a <cd shown in the equation (2) is established. As described above, this determines whether or not the raw data should be transferred in parallel with the compression processing. When the time which is twice the compression time is shorter (step S211; Y), the compression page number (x) is changed to the same value as the transfer page number (i) (step S21).
2). Then, it is determined whether the compressed page number (x) is within the range of the remaining pages to be transferred (step S213). When the compressed page number is out of the range of the remaining pages (step S213; N), there is no page to be compressed, so all the remaining pages are transferred as raw data (step S214). If the compressed page number (x) is within the range of the remaining pages (step S21)
3; Y), step S202 also returns and continues the process.

【0053】このように、印刷の順序を表わした順序情
報を付加して転送する場合には、転送すべきページ順を
任意にすることができるので、次に圧縮すべきページを
容易に得ることができ、ページ順を崩さないで転送する
場合に比べて処理の簡略化を図ることができる。
As described above, when the order information indicating the printing order is added and transferred, the order of pages to be transferred can be set arbitrarily, so that the page to be compressed next can be easily obtained. Therefore, the processing can be simplified as compared with the case of transferring without breaking the page order.

【0054】第2の変形例 Second modification

【0055】生データを転送している間に1ページ分の
圧縮処理が行われるので、1ページ分の生データを転送
する時間よりも1ページを圧縮する時間が短いと、それ
だけ圧縮処理と転送処理が並行して行われる時間が短く
なる。そこで、1ページ分の圧縮に要する時間の長いペ
ージを優先的に圧縮すれば、圧縮処理と生データの転送
が並行して行われる時間が増し、トータルの転送時間を
短くすることができる。
Since the compression process for one page is performed during the transfer of the raw data, if the time for compressing one page is shorter than the time for transferring the raw data for one page, the compression process and the transfer are performed accordingly. The processing time is reduced in parallel. Therefore, by preferentially compressing a page that takes a long time to compress one page, the time during which the compression process and the raw data transfer are performed in parallel increases, and the total transfer time can be shortened.

【0056】一般に、イメージに展開された後のラスタ
データはデータ量が多く、またその圧縮にも時間がかか
る。これに対し文字コードや制御コードで表された印刷
データは、ラスタデータに比べて1ページ当たりのデー
タ量が少なくまた圧縮に要する時間が短いことが多い。
そこで、第2の変形例では、コードデータとラスタデー
タのページの混在する印刷データを転送するとき、ラス
タデータのページを優先して圧縮するようにしている。
Generally, the raster data after being developed into an image has a large data amount, and its compression also takes time. On the other hand, the print data represented by the character code or the control code has a smaller data amount per page than the raster data, and the compression time is often short.
Therefore, in the second modification, when the print data in which the code data and the raster data pages are mixed is transferred, the raster data pages are preferentially compressed.

【0057】図7は、第2の変形例における印刷データ
転送装置の行う処理の流れを表わしたものである。CP
U31は、各ページの印刷データに印刷の順序を表わし
た順序情報を付加するとともに、転送に先立って各種パ
ラメータの初期化を行う(ステップS301)。次回、
圧縮せずに転送するコードデータで表されたぺージの番
号を表わした転送ページ番号(i)を“1”に初期化す
る。また、CPU31は、先頭ページからその印刷デー
タがラスタデータであるかどうかを順に判別し、ページ
順で最初に現れるラスタページの番号を圧縮ページ番号
(x)に設定する。このほか、圧縮後のデータサイズを
表わした圧縮データサイズ(a)と、圧縮に要した時間
を表わす圧縮時間(b)をそれぞれ“0”に初期化す
る。
FIG. 7 shows the flow of processing performed by the print data transfer apparatus in the second modification. CP
The U 31 adds order information indicating the printing order to the print data of each page and initializes various parameters prior to transfer (step S301). next time,
The transfer page number (i) representing the page number represented by the code data to be transferred without compression is initialized to "1". Further, the CPU 31 sequentially determines whether or not the print data is raster data from the first page, and sets the number of the raster page that first appears in the page order as the compressed page number (x). In addition, a compressed data size (a) representing the data size after compression and a compression time (b) representing the time required for compression are initialized to "0".

【0058】次に、CPU31は、圧縮ページ番号
(x)が“0”であるかどうかを判別する(ステップS
302)。圧縮ページ番号(x)が“0”のときは、ラ
スタページの圧縮処理と並行してコードデータで表され
たページの転送を行うよりも、圧縮処理のみを実行した
方がトータルの転送時間が短くなることを表わしてい
る。そこで、圧縮ページ番号(x)が“0”のときは
(ステップS302;Y)、第xページのラスタデータ
の圧縮だけを行う(ステップS203)。“x”が
“0”でないときは(ステップS302;N)、第iペ
ージのコードデータ(生データ)の転送と第xページの
ラスタデータの圧縮処理を並行して行う(ステップS3
04)。
Next, the CPU 31 determines whether or not the compressed page number (x) is "0" (step S).
302). When the compressed page number (x) is “0”, the total transfer time is better when only the compression process is executed than when the page represented by the code data is transferred in parallel with the compression process of the raster page. It means shortening. Therefore, when the compressed page number (x) is "0" (step S302; Y), only the raster data of the xth page is compressed (step S203). When "x" is not "0" (step S302; N), the transfer of the i-th page code data (raw data) and the compression processing of the x-th page raster data are performed in parallel (step S3).
04).

【0059】第iページの生データの転送が終了した時
点で、第xページの圧縮処理が終了しているかどうかを
判別する(ステップS305)。第iページの生データ
の転送を終了した時点でまだ第xページの圧縮処理が終
了していないときは(ステップS305;N)、第xペ
ージの圧縮処理が終了するまで第iページに続けて、コ
ードデータで表された他の1つのページの転送を順次行
う(ステップS306)。生データで転送されるページ
は、ラスタデータ以外のページであって未だ転送されて
いない任意のページが選択される。
When the transfer of the raw data of the i-th page is completed, it is judged whether or not the compression processing of the x-th page is completed (step S305). If the compression processing of the x-th page is not yet completed when the transfer of the raw data of the i-th page is completed (step S305; N), the i-th page is continued until the compression processing of the x-th page is completed. , Another one page represented by the code data is sequentially transferred (step S306). A page other than raster data, which has not been transferred yet, is selected as the page to be transferred as raw data.

【0060】CPU31は、第xページの圧縮処理が終
了するまで生データの転送を行った後、第xページの圧
縮データのデータサイズと圧縮前の1ページ分のラスタ
データのデータサイズの大小を比較する(ステップS3
07)。圧縮後のデータサイズが圧縮前のそれよりも大
きいときは(ステップS307;Y)、第xページを圧
縮前のラスタデータの先頭に順序情報を付加して転送し
(ステップS308)、圧縮データを廃棄する。圧縮後
のデータサイズが圧縮前よりも大きくないときは(ステ
ップS307;N)、第xページの圧縮データにそのペ
ージの順序情報を付加して印刷装置12に転送する(ス
テップS309)。その後、CPU31は、転送してい
ない残りのページの中にラスタデータで表されたページ
が存在するか否かを判別する(ステップS310)。
After transferring the raw data until the compression processing of the x-th page is completed, the CPU 31 determines the size of the compressed data of the x-th page and the size of the raster data of one page before compression. Compare (step S3)
07). If the data size after compression is larger than that before compression (step S307; Y), the xth page is transferred with the order information added to the beginning of the raster data before compression (step S308), and the compressed data is transferred. Discard. When the data size after compression is not larger than that before compression (step S307; N), the order information of the page is added to the compressed data of the x-th page and transferred to the printing device 12 (step S309). After that, the CPU 31 determines whether or not the page represented by the raster data exists in the remaining pages that have not been transferred (step S310).

【0061】転送すべき残りのページの中にラスタデー
タで表わされたページがないときは(ステップS31
0;N)、残りのページを全て生データのまま転送する
(ステップS311)。転送すべき残りのページの生に
ラスタデータで表わされたページが存在するときは(ス
テップS310;Y)、前回の圧縮に要した時間の2倍
の時間が、1ページ分のラスタデータの転送時間よりも
短いかどうかを判別する(ステップS312)。すなわ
ち、(2)式に示した2a<cdの関係が成立している
かどうかを調べる。圧縮時間の2倍の方が短くないとき
は(ステップS312;N)、次のラスタページの番号
を圧縮ページ番号(x)に設定する(ステップS31
3)。圧縮時間の2倍の時間の方が短いとき(ステップ
S312;Y)、圧縮処理だけを行う方が転送時間が短
くなるので圧縮ページ番号(x)に“0”を代入する
(ステップS314)。
If there is no page represented by raster data among the remaining pages to be transferred (step S31)
0; N), the remaining pages are all transferred as raw data (step S311). When there is a page represented by raster data in the remaining remaining pages to be transferred (step S310; Y), the time required for the previous compression is twice as long as the raster data for one page. It is determined whether it is shorter than the transfer time (step S312). That is, it is checked whether or not the relationship of 2a <cd shown in the equation (2) is established. If twice the compression time is not shorter (step S312; N), the number of the next raster page is set to the compression page number (x) (step S31).
3). When the time that is twice the compression time is shorter (step S312; Y), "0" is assigned to the compression page number (x) because the transfer time is shorter when only compression processing is performed (step S314).

【0062】CPU31は、コードデータのままで転送
すべきページ番号を表わした転送ページ番号(i)を、
現在の値に“1”を加えた値に変更する(ステップS3
15)。但し、転送ページ番号(i)の値が、圧縮ペー
ジ番号(x)と一致するときは、“x”と異なる値であ
ってラスタページでないページの番号の値を設定する。
次に、更新後の圧縮ページ番号(x)の値が、転送すべ
き残りページの範囲内にあるかどうかを判別する(ステ
ップS316)。
The CPU 31 assigns the transfer page number (i) representing the page number to be transferred with the code data as it is,
The value is changed to the value obtained by adding "1" to the current value (step S3).
15). However, when the value of the transfer page number (i) matches the compressed page number (x), the value of the page number which is different from “x” and which is not the raster page is set.
Next, it is determined whether or not the value of the updated compressed page number (x) is within the range of the remaining pages to be transferred (step S316).

【0063】圧縮ページ番号(x)が残りページの範囲
外の場合には(ステップS316;N)、もはや圧縮す
べきページが無いので残りページの全てをコードデータ
(生データ)のまま転送する(ステップS311)。圧
縮ページ番号(x)が残りページの範囲内のときは(ス
テップS316;Y)、ステップS302も戻り残りの
ページの転送処理を継続して行う。このように、圧縮に
適したラスタデータのページを優先して圧縮処理を行う
ことで、転送時間の短縮を効果的に図るとができる。
When the compressed page number (x) is out of the range of the remaining pages (step S316; N), there is no page to be compressed anymore, so all the remaining pages are transferred as code data (raw data) ( Step S311). When the compressed page number (x) is within the range of the remaining pages (step S316; Y), step S302 also returns and the transfer processing of the remaining pages is continued. As described above, the page of raster data suitable for compression is preferentially subjected to the compression process, whereby the transfer time can be effectively shortened.

【0064】第3の変形例 Third Modification

【0065】第3の変形例では、1ページ当たりの印刷
データのデータ量が多いものから優先して圧縮処理を行
い、データ量の少ないものから優先して生データのまま
転送を行っている。通常、データ量の多いものほど圧縮
に要する時間が長くなるので、このような優先順位に従
って転送と圧縮を行うことによって、1ページの圧縮中
に複数ページの生データを転送できるケースが多くな
る。これにより、圧縮処理と生データの転送が並行して
行われる時間の割合が増え、転送効率の向上を図ること
ができる。
In the third modified example, the compression processing is preferentially performed for the print data having a large amount of print data per page, and the raw data is preferentially transferred for the one having a small data amount. Normally, the larger the amount of data, the longer the time required for compression. Therefore, by performing transfer and compression in accordance with such a priority order, it is often possible to transfer raw data of a plurality of pages during compression of one page. As a result, the ratio of the time during which the compression process and the raw data transfer are performed in parallel increases, and the transfer efficiency can be improved.

【0066】図8は、第3の変形例における印刷データ
転送装置の行う処理の流れを表わしたものである。CP
U31は印刷の順序を表わした順序情報を各ページごと
の印刷データに付加するとともに、1ページ分の印刷デ
ータのデータ量が多いページ順に印刷データをソートす
る(ステップS401)。以後、ソートした後のページ
順をソートページ番号と呼ぶことにする。次にCPU3
1は、各種パラメータの初期化を行う(ステップS40
2)。圧縮して転送すべきページをソートページ番号で
表わした圧縮ソートページ番号(x)を“1”に、ま
た、圧縮せずにそのまま転送すべきページをソートペー
ジ番号で表わした転送ソートページ番号(i)を、総ペ
ージ数に設定する。このほか、圧縮後のデータサイズを
表わした圧縮データサイズ(a)と、圧縮に要した時間
を表わす圧縮時間(b)をそれぞれ“0”に初期化す
る。
FIG. 8 shows the flow of processing performed by the print data transfer apparatus in the third modification. CP
U31 adds the order information indicating the printing order to the print data for each page, and sorts the print data in the order of pages having the largest amount of print data for one page (step S401). Hereinafter, the page order after sorting will be referred to as a sorted page number. Next CPU3
1 initializes various parameters (step S40).
2). The compressed sort page number (x), which represents the page to be compressed and transferred by the sort page number, is set to "1", and the page to be transferred as it is without being compressed is the sort page number (x). Set i) to the total number of pages. In addition, a compressed data size (a) representing the data size after compression and a compression time (b) representing the time required for compression are initialized to "0".

【0067】次に、CPU31は圧縮ソートページ番号
(x)が転送ソートページ番号(i)と一致するか否か
を判別する(ステップS403)。圧縮ソートページ番
号(x)と転送ソートページ番号(i)が一致するとき
は、圧縮処理と並行して生データのページの転送を行う
よりも、圧縮処理のみを実行した方がトータルの転送時
間が短くなることを表わしている。そこで、圧縮ソート
ページ番号(x)が転送ソートページ番号(i)と一致
するときは(ステップS403;Y)、第xページの圧
縮だけを行う(ステップS404)。“x”が“i”と
一致しないときは(ステップS403;N)、第iペー
ジの生データの転送と第xページの圧縮処理を並行して
行う(ステップS405)。
Next, the CPU 31 determines whether the compression sort page number (x) matches the transfer sort page number (i) (step S403). When the compression sort page number (x) and the transfer sort page number (i) match, the total transfer time is better when only the compression process is executed than when the raw data page is transferred in parallel with the compression process. Indicates that becomes shorter. Therefore, when the compression sort page number (x) matches the transfer sort page number (i) (step S403; Y), only the xth page is compressed (step S404). When "x" does not match "i" (step S403; N), raw data transfer of the i-th page and compression processing of the x-th page are performed in parallel (step S405).

【0068】CPU31は、第iページの生データの転
送が終了した時点で、第xページの圧縮処理が終了して
いるかどうかを判別する(ステップS406)。第iペ
ージの生データの転送を終了した時点でまだ第xページ
の圧縮処理が終了していないときは(ステップS40
6;N)、第xページの圧縮処理が終了するまでデータ
量の少ないものから1ページ分ずつ生データの転送を順
次行う(ステップS407)。CPU31は、第xペー
ジの圧縮処理が終了するまで生データの転送を行った
後、第xページの圧縮データのデータサイズと圧縮前の
1ページ分の生データのデータサイズの大小を比較する
(ステップS408)。圧縮後のデータサイズが圧縮前
のそれよりも大きいときは(ステップS408;Y)、
圧縮前の第xページの生データにそのページの順序情報
を付加して転送する(ステップS409)。
When the transfer of the raw data of the i-th page is completed, the CPU 31 determines whether or not the compression process of the x-th page is completed (step S406). If the compression processing of the x-th page is not yet completed when the transfer of the raw data of the i-th page is completed (step S40).
6; N), the raw data is sequentially transferred page by page from the smallest data amount until the compression processing of the x-th page is completed (step S407). After transferring the raw data until the compression processing of the x-th page is completed, the CPU 31 compares the data size of the compressed data of the x-th page with the data size of the raw data of one page before compression ( Step S408). When the data size after compression is larger than that before compression (step S408; Y),
The order information of the page is added to the raw data of page x before compression and the raw data is transferred (step S409).

【0069】圧縮後のデータサイズが圧縮前よりも大き
くないときは(ステップS408;N)、第xページの
圧縮データにそのページの順序情報を付加して印刷装置
12に転送する(ステップS410)。その後、CPU
31は、転送ソートページ番号(i)を“1”だけ減算
した値に更新する。また、圧縮ソートページ番号(x)
を“1”だけ増加させる(ステップS411)。前回の
圧縮に要した時間の2倍の時間が、1ページ分の生デー
タの転送時間よりも短いかどうか、すなわち、(2)式
に示した2a<cdの関係が成立しているかどうかを調
べる(ステップS412)。圧縮時間の2倍の方が短か
いときは(ステップS412;Y)、圧縮ソートページ
番号(x)を転送ソートページ番号(i)と同一の値に
変更する(ステップS413)。
If the data size after compression is not larger than that before compression (step S408; N), the page order information of the page x is added to the compressed data of page x and the data is transferred to the printer 12 (step S410). . Then the CPU
31 updates the transfer sort page number (i) to a value obtained by subtracting “1”. Also, the compression sort page number (x)
Is incremented by "1" (step S411). Whether twice the time required for the previous compression is shorter than the transfer time of the raw data for one page, that is, whether the relationship of 2a <cd shown in the equation (2) is established. Check (step S412). If twice the compression time is shorter (step S412; Y), the compression sort page number (x) is changed to the same value as the transfer sort page number (i) (step S413).

【0070】圧縮時間の2倍が生データの転送時間より
も短くないとき(ステップS412;N)、あるいはス
テップS413で“x”の値を“i”と同一の値に変更
した後、CPU31は圧縮ソートページ番号(x)が転
送すべき残りのページの中に存在しているかどうかを判
別する(ステップS414)。残りページの中に存在し
ないときは(ステップS414;N)、ステップS40
3に戻って残りのページの転送処理を継続して行う。残
りのページの中に圧縮すべきページが存在しないときは
(ステップS414;Y)、残りのページ全てを生デー
タのまま転送して(ステップS415)処理を終了する
(エンド)。このようにデータ量の多いものを優先して
圧縮処理を行っているので、圧縮による転送時間の短縮
を効果的に図ることができる。
When twice the compression time is not shorter than the transfer time of the raw data (step S412; N), or after changing the value of "x" to the same value as "i" in step S413, the CPU 31 It is determined whether or not the compressed sort page number (x) exists in the remaining pages to be transferred (step S414). If it does not exist in the remaining pages (step S414; N), step S40
Returning to step 3, transfer processing of the remaining pages is continued. When there is no page to be compressed among the remaining pages (step S414; Y), all the remaining pages are transferred as raw data (step S415), and the process ends (end). As described above, since the compression processing is performed by giving priority to the data having a large amount of data, it is possible to effectively reduce the transfer time by the compression.

【0071】第1〜第3の変形例においても、(2)式
の関係が成立するときは圧縮と生データの転送を並行し
て行わず、圧縮処理だけを行うようにしている。これに
より、実施例で説明したように、圧縮処理のみを行う場
合よりも転送時間が長くならず、転送時間を確実に短縮
することができる。
Also in the first to third modifications, when the relation of the expression (2) is established, the compression and the raw data transfer are not performed in parallel, but only the compression process is performed. As a result, as described in the embodiment, the transfer time is not longer than that when only the compression process is performed, and the transfer time can be surely shortened.

【0072】以上説明した実施例および変形例では、最
初のページの圧縮処理が終了するまでは、参考とすべき
圧縮処理時間(a)が存在しない。このため、転送を開
始するときは生データの転送と圧縮処理を必ず並行して
行うようにしている。この場合、第5図に示したように
第1ページ目の転送終了後に、第2ページ目の圧縮が未
だ終了せず、圧縮終了まで待ち時間が生じることがあ
る。そこで、第1のページ目の転送をより効率良く行う
ために、前回の文書の印刷データの転送に要した平均の
圧縮時間を、圧縮処理時間(a)の初期値として用いる
ようにしてもよい。
In the embodiment and the modification described above, there is no compression processing time (a) to be used as a reference until the compression processing of the first page is completed. Therefore, when starting the transfer, the transfer of the raw data and the compression process are always performed in parallel. In this case, as shown in FIG. 5, after the transfer of the first page is completed, the compression of the second page may not be completed yet, and a waiting time may occur until the compression is completed. Therefore, in order to transfer the first page more efficiently, the average compression time required to transfer the print data of the previous document may be used as the initial value of the compression processing time (a). .

【0073】すなわち、ページ順を崩さずに転送する実
施例の場合には、前回の平均の圧縮時間を基にして、最
初に圧縮すべきページ番号を求める。また、実施例およ
び変形例において前回の平均の圧縮時間の2倍が生デー
タの転送時間よりも短いかどうかを調べ、第1ページ目
についても圧縮処理と生データの転送を並行して行うべ
きかを判別するようにする。
That is, in the case of the embodiment in which the transfer is performed without breaking the page order, the page number to be compressed first is obtained based on the previous average compression time. Further, in the embodiment and the modified examples, it is checked whether twice the average compression time of the previous time is shorter than the transfer time of raw data, and the compression process and the transfer of raw data should be performed in parallel for the first page. Try to determine whether.

【0074】また実施例および変形例では、1ページを
単位に、生データの転送あるいは圧縮処理を行うように
したが、これらの単位はページごとでなくても良い。1
ページを複数に分割したブロック単位に転送あるいは圧
縮を行っても良い。さらに、複数ページを1つのブロッ
クとしてい取り扱ってもよい。また1ページ中にイメー
ジデータとコードデータが混在するような場合には、そ
れらの境界で印刷データを分割し、転送あるいは圧縮を
行っても良い。
Further, in the embodiment and the modification, the raw data transfer or compression processing is performed in units of one page, but these units may not be in units of pages. 1
The page may be transferred or compressed in units of blocks obtained by dividing the page. Further, a plurality of pages may be treated as one block. When image data and code data are mixed in one page, the print data may be divided at the boundary between them and transferred or compressed.

【0075】[0075]

【発明の効果】以上説明したように請求項1記載の発明
によれば、圧縮処理と並行して非圧縮の印刷データを転
送し圧縮処理終了後に圧縮された印刷データの転送を行
ったので、印刷データの転送に要するトータルの時間を
短縮することができる。
As described above, according to the first aspect of the present invention, the uncompressed print data is transferred in parallel with the compression process, and the compressed print data is transferred after the compression process is completed. The total time required to transfer print data can be shortened.

【0076】また請求項2記載の発明によれば、非圧縮
の印刷データの転送と並行して圧縮処理を行うので、印
刷データの転送に要するトータルの時間を短縮すること
ができる。また、非圧縮のまま転送される印刷データの
次に転送すべき順序の印刷データを圧縮しているので、
印刷データの順序を崩すことなく転送することができ
る。
According to the second aspect of the invention, since the compression process is performed in parallel with the transfer of the uncompressed print data, the total time required for the transfer of the print data can be shortened. Also, since the print data in the order that should be transferred next to the print data that is transferred without being compressed is compressed,
The print data can be transferred without breaking the order.

【0077】さらに請求項3記載の発明によれば、印刷
データを所定の印刷領域ごとに分割し、それらに印刷の
順序を表わした順序情報を付加したので、印刷データを
任意の順に転送することができる。これにより転送順序
を崩さないための1回の転送量や転送と並行して圧縮す
べき印刷データの箇所を判別する処理が不要になり、印
刷データ転送装置の構成を簡略化することができる。
Further, according to the third aspect of the invention, the print data is divided into predetermined print areas and the order information indicating the print order is added to them, so that the print data can be transferred in an arbitrary order. You can This eliminates the need for a process of determining the transfer amount for one transfer or the position of the print data to be compressed in parallel with the transfer in order not to disturb the transfer order, and the configuration of the print data transfer device can be simplified.

【0078】また請求項4記載の発明によれば、所定の
形式の印刷データを優先して圧縮し、これと並行して所
定の形式以外の印刷データを転送している。たとえば、
文字コードなどのコードデータで表わされたページの転
送と並行してラスタデータで表されたページを圧縮すれ
ば、転送時間を効率良く短縮することができる。
According to the fourth aspect of the present invention, the print data in the predetermined format is preferentially compressed, and in parallel with this, the print data other than the predetermined format is transferred. For example,
If the page represented by the raster data is compressed in parallel with the transfer of the page represented by the code data such as the character code, the transfer time can be shortened efficiently.

【0079】さらに請求項5記載の発明によれば、デー
タ量の多いものから優先して圧縮を行い、これと並行し
てデータ量の少ないものから優先して非圧縮のまま転送
を行っている。通常、データ量の多いものほど圧縮処理
に時間がかかるので、データ量の多いものの圧縮と並行
してデータ量の少ない印刷データの転送を行えば、転送
と圧縮が並行して行われる期間の割合が増加し転送効率
を向上させることができる。
Further, according to the invention described in claim 5, the data having a large amount of data is preferentially compressed, and in parallel with this, the data having a small amount of data is preferentially transferred without being compressed. . Usually, the larger the amount of data, the longer the compression process takes. Therefore, if the print data with a large amount of data and a small amount of data is transferred in parallel with the compression, the ratio of the period during which the transfer and the compression are performed in parallel. Can be increased and the transfer efficiency can be improved.

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

【図1】 本発明の一実施例における印刷データ転送装
置を用いて印刷システムの構成の概要を表わしたブロッ
ク図である。
FIG. 1 is a block diagram showing an outline of a configuration of a printing system using a print data transfer device according to an embodiment of the present invention.

【図2】 図1に示した印刷データ転送装置の回路構成
の概要を表わしたブロック図である。
FIG. 2 is a block diagram showing an outline of a circuit configuration of the print data transfer apparatus shown in FIG.

【図3】 印刷データ転送装置の行う処理の流れを表わ
した流れ図である。
FIG. 3 is a flowchart showing a flow of processing performed by the print data transfer apparatus.

【図4】 生データ転送時間と圧縮時間と圧縮データを
転送する時間の一例を表わした説明図である。
FIG. 4 is an explanatory diagram showing an example of a raw data transfer time, a compression time, and a time for transferring compressed data.

【図5】 印刷データの転送される様子を模式的に表わ
した説明図である。
FIG. 5 is an explanatory diagram schematically showing how print data is transferred.

【図6】 第1の変形例における印刷データ転送装置の
行う処理の流れを表わした流れ図である。
FIG. 6 is a flowchart showing a flow of processing performed by a print data transfer apparatus in the first modified example.

【図7】 第2の変形例における印刷データ転送装置の
行う処理の流れを表わした流れ図である。
FIG. 7 is a flowchart showing a flow of processing performed by a print data transfer device in a second modified example.

【図8】 第3の変形例における印刷データ転送装置の
行う処理の流れを表わした流れ図である。
FIG. 8 is a flowchart showing a flow of processing performed by a print data transfer apparatus in a third modified example.

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

11…印刷データ転送装置、12…印刷装置、13…転
送元バッファメモリ、14…転送回路、15、36…圧
縮回路、16…圧縮バッファメモリ、17…圧縮時間計
測回路、18…圧縮時間推測回路、19…圧縮・転送指
示回路、31…CPU、32…バス、33…ROM、3
4…RAM、35…バッファメモリ、37…DMAコン
トローラ、38…転送制御回路
11 ... Print data transfer device, 12 ... Printing device, 13 ... Transfer source buffer memory, 14 ... Transfer circuit, 15, 36 ... Compression circuit, 16 ... Compression buffer memory, 17 ... Compression time measurement circuit, 18 ... Compression time estimation circuit , 19 ... Compression / transfer instruction circuit, 31 ... CPU, 32 ... Bus, 33 ... ROM, 3
4 ... RAM, 35 ... Buffer memory, 37 ... DMA controller, 38 ... Transfer control circuit

Claims (5)

【特許請求の範囲】[Claims] 【請求項1】 印刷データを蓄積する印刷データ蓄積手
段と、 この印刷データ蓄積手段に蓄積されている印刷データの
うち第1の印刷領域に対応する印刷データを圧縮する圧
縮手段と、 この圧縮手段が前記第1の印刷領域に対応する印刷デー
タを圧縮しているときこれと並行して他の領域としての
第2の印刷領域の印刷データを所定の転送先に前記圧縮
手段を介さずに転送する第1の転送手段と、 この第1の転送手段による前記第1の印刷領域の印刷デ
ータの転送および前記圧縮手段による前記第2の印刷領
域の印刷データの圧縮の双方が終了したとき圧縮された
後の第2の印刷領域の印刷データを前記所定の転送先に
転送する第2の転送手段とを具備することを特徴とする
印刷データ転送装置。
1. A print data storage unit for storing print data, a compression unit for compressing print data corresponding to a first print area in the print data stored in the print data storage unit, and the compression unit. Is compressing the print data corresponding to the first print area, in parallel with this, the print data of the second print area as another area is transferred to a predetermined transfer destination without the compression means. Compressed when the transfer of the print data of the first print area by the first transfer means and the compression of the print data of the second print area by the compression means are completed. And a second transfer unit for transferring the print data of the second print area after the transfer to the predetermined transfer destination.
【請求項2】 印刷データを蓄積する印刷データ蓄積手
段と、 この印刷データ蓄積手段に蓄積されている印刷データの
うち予め定めた一定の大きさの印刷領域に対応する量の
印刷データを圧縮するのに要する時間を求める圧縮時間
取得手段と、 前記印刷データ蓄積手段に蓄積されている印刷データの
うちこの圧縮時間取得手段によって求めた時間の間に転
送可能な量の印刷データを所定の転送先に圧縮せずに転
送する第1の転送手段と、 この第1の転送手段が印刷データの転送を行っていると
きこれと並行して前記印刷データ蓄積手段に蓄積されて
いる印刷データのうち第1の転送手段によって今回転送
される印刷データの次に転送すべき前記予め定めた一定
の大きさの印刷領域に対応する量の印刷データを圧縮す
る圧縮手段と、 前記第1の転送手段と交互に動作しこの圧縮手段による
印刷データの圧縮および第1の転送手段による印刷デー
タの転送が終了したとき圧縮手段によって今回圧縮され
た後の印刷データを前記所定の転送先に転送する第2の
転送手段とを具備することを特徴とする印刷データ転送
装置。
2. A print data storage means for storing print data, and a quantity of print data corresponding to a print area of a predetermined fixed size among the print data stored in the print data storage means. Of the print data accumulated in the print data accumulating unit, and a predetermined transfer destination for the amount of print data that can be transferred during the time obtained by the compression time acquiring unit. A first transfer means for transferring the print data to the print data storage means without compressing the print data, and a first transfer means for transferring the print data while the first transfer means transfers the print data. A compression unit that compresses an amount of print data corresponding to the print area of a predetermined size to be transferred next to the print data that is currently transferred by one transfer unit; When the transfer means operates alternately and the compression of the print data by the compression means and the transfer of the print data by the first transfer means are completed, the print data compressed this time by the compression means is transferred to the predetermined transfer destination. A print data transfer apparatus comprising: a second transfer unit.
【請求項3】 印刷データを蓄積する印刷データ蓄積手
段と、 この印刷データ蓄積手段に蓄積されている印刷データを
所定の大きさの印刷領域に対応する量ごとの単位印刷デ
ータに分割しこれらに印刷すべき順序を表わした順序情
報を付加する順序情報付加手段と、 この順序情報付加手段によって順序情報の付加された単
位印刷データの中の任意の1つを所定の転送先に転送す
る第1の転送手段と、 この第1の転送手段が前記任意の1つの単位印刷データ
の転送を開始したときから他の任意の1つの単位印刷デ
ータを圧縮する圧縮手段と、 前記第1の転送手段が1つの単位印刷データの転送を終
了した時点でこの圧縮手段による前記他の1つの単位印
刷データの圧縮が終了していないとき未だ圧縮あるいは
転送の行われていないいずれか1つの単位印刷データの
転送を前記第1の転送手段に指示する継続転送指示手段
と、 前記第1の転送手段が1つの単位印刷データの転送を終
了した時点で前記圧縮手段による前記他の1つの単位印
刷データの圧縮が終了しているとき圧縮された後の前記
他の1つの単位印刷データを前記所定の転送先に転送す
る第2の転送手段とを具備することを特徴とする印刷デ
ータ転送装置。
3. A print data storage unit for storing print data, and the print data stored in the print data storage unit is divided into unit print data for each amount corresponding to a print area of a predetermined size. Order information adding means for adding order information indicating the order of printing, and a first one for transferring any one of the unit print data to which the order information is added by the order information adding means to a predetermined transfer destination. And a compression unit that compresses another arbitrary unit print data from the time when the first transfer unit starts the transfer of the arbitrary unit print data, and the first transfer unit. When the transfer of one unit print data is completed and the compression of the other one unit print data by the compression means is not completed, either compression or transfer is not yet performed. 1 Continuous transfer instructing means for instructing the first transfer means to transfer the unit print data, and when the first transfer means completes the transfer of one unit print data, the other one by the compression means A second transfer means for transferring the other one unit print data after being compressed when the compression of the unit print data is completed, to a predetermined transfer destination. apparatus.
【請求項4】 印刷データを蓄積する印刷データ蓄積手
段と、 この印刷データ蓄積手段に蓄積されている印刷データを
所定の大きさの印刷領域に対応する量ごとの単位印刷デ
ータに分割しこれらに印刷すべき順序を表わした順序情
報を付加する順序情報付加手段と、 この順序情報付加手段によって順序情報の付加された各
単位印刷データが所定のデータ形式であるか否かを判別
するデータ形式判別手段と、 このデータ形式判別手段によって前記所定の形式でない
と判別された任意の1つの単位印刷データを所定の転送
先に転送する第1の転送手段と、 この第1の転送手段が前記任意の1つの単位印刷データ
の転送を開始したときから前記所定の形式と判別された
他の1つの単位印刷データを圧縮する圧縮手段と、 前記第1の転送手段が1つの単位印刷データの転送を終
了した時点でこの圧縮手段が前記所定の形式と判別され
た前記他の1つの単位印刷データの圧縮を終了していな
いとき前記所定の形式でない単位印刷データの中で未だ
転送されていない任意の1つの単位印刷データの転送を
前記第1の転送手段に指示する継続転送指示手段と、 前記第1の転送手段が1つの単位印刷データの転送を終
了した時点で前記圧縮手段が前記所定の形式と判別され
た前記他の1つの単位印刷データの圧縮を終了している
とき圧縮された後の前記他の1つの単位印刷データを前
記所定の転送先に転送する第2の転送手段とを具備する
ことを特徴とする印刷データ転送装置。
4. A print data storage unit for storing print data, and the print data stored in the print data storage unit is divided into unit print data for each amount corresponding to a print area of a predetermined size. Order information adding means for adding order information indicating the order of printing, and data format determination for determining whether each unit print data to which the order information is added by the order information adding means has a predetermined data format Means, a first transfer means for transferring any one unit print data which is determined not to be the predetermined format by the data format determination means to a predetermined transfer destination, and the first transfer means is for the arbitrary transfer means. A compression unit that compresses another unit print data that is determined to have the predetermined format from the time when the transfer of one unit print data is started; When the compression unit has not finished compressing the other unit print data that has been determined to have the predetermined format at the time when the transfer of the unit print data is completed, the unit print data that is not in the predetermined format is not yet processed. Continuous transfer instruction means for instructing the first transfer means to transfer any one unit print data that has not been transferred; and the compression when the first transfer means completes the transfer of one unit print data. A second means for transferring the other one unit print data after being compressed to a predetermined transfer destination when the means finishes compressing the other one unit print data determined to be the predetermined format; And a print data transfer device.
【請求項5】 印刷データを蓄積する印刷データ蓄積手
段と、 この印刷データ蓄積手段に蓄積されている印刷データを
所定の大きさの印刷領域に対応する量ごとの単位印刷デ
ータに分割しこれらに印刷すべき順序を表わした順序情
報を付加する順序情報付加手段と、 この順序情報付加手段によって順序情報の付加されたそ
れぞれの単位印刷データのデータ量を求めるデータ量算
出手段と、 このデータ量算出手段によって求めたデータ量の少ない
順に次に転送すべき1つの単位印刷データを選択する第
1の選択手段と、 前記データ量算出手段によって求めたデータ量の多い順
に次に圧縮すべき1つの単位印刷データを選択する第2
の選択手段と、 前記第1の選択手段によって選択された1つの単位印刷
データを所定の転送先に転送する第1の転送手段と、 前記第1の転送手段が単位印刷データの転送を開始した
ときから前記第2の選択手段によって選択された1つの
単位印刷データの圧縮を行う圧縮手段と、 前記第1の転送手段が1つの単位印刷データの転送を終
了した時点でこの圧縮手段が前記第2の選択手段によっ
て選択された1つの単位印刷データの圧縮を終了してい
ないとき次にデータ量の少ない1つの単位印刷データを
前記第1の選択手段に選択させこれを前記第1の転送手
段によって前記所定の転送先に転送させる継続転送指示
手段と、 前記第1の転送手段が1つの単位印刷データの転送を終
了した時点で前記圧縮手段が前記第2の選択手段によっ
て選択された1つの単位印刷データの圧縮を終了してい
るときその圧縮の終了した単位印刷データを前記所定の
転送先に転送する第2の転送手段とを具備することを特
徴とする印刷データ転送装置。
5. A print data storage unit for storing print data, and the print data stored in the print data storage unit is divided into unit print data for each amount corresponding to a print area of a predetermined size. Order information adding means for adding order information indicating the order to be printed, data amount calculating means for calculating the data amount of each unit print data to which the order information is added by the order information adding means, and this data amount calculation First selecting means for selecting one unit print data to be transferred next in the ascending order of the data amount obtained by the means; and one unit for compressing next in the descending order of the data amount obtained by the data amount calculating means. Second to select print data
Selection unit, a first transfer unit that transfers one unit print data selected by the first selection unit to a predetermined transfer destination, and the first transfer unit starts transfer of the unit print data. From time to time, a compression unit that compresses one unit print data selected by the second selection unit, and a compression unit that compresses the unit print data when the first transfer unit finishes transferring one unit print data. When the compression of one unit print data selected by the second selecting unit is not completed, the unit selecting unit selects the unit print data having the next smallest data amount by the first selecting unit. Continuous transfer instructing means for transferring to a predetermined transfer destination by the compression means, and the compression means selected by the second selection means when the first transfer means finishes transferring one unit print data. And a second transfer means for transferring the compressed unit print data to the predetermined transfer destination when the compression of the compressed unit print data is completed. .
JP8009040A 1996-01-23 1996-01-23 Printing data transfer device Pending JPH09193482A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP8009040A JPH09193482A (en) 1996-01-23 1996-01-23 Printing data transfer device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP8009040A JPH09193482A (en) 1996-01-23 1996-01-23 Printing data transfer device

Publications (1)

Publication Number Publication Date
JPH09193482A true JPH09193482A (en) 1997-07-29

Family

ID=11709542

Family Applications (1)

Application Number Title Priority Date Filing Date
JP8009040A Pending JPH09193482A (en) 1996-01-23 1996-01-23 Printing data transfer device

Country Status (1)

Country Link
JP (1) JPH09193482A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2006054618A1 (en) * 2004-11-17 2006-05-26 Naltec Inc. Method and device for transferring data to peripheral device
US7693328B2 (en) 2005-09-12 2010-04-06 Sharp Kabushiki Kaisha Printing apparatus, printing processing method, and storage medium
JP2013146938A (en) * 2012-01-20 2013-08-01 Seiko Epson Corp Printer, method for controlling printer, program, and recording medium
JP2020127156A (en) * 2019-02-06 2020-08-20 三菱電機インフォメーションシステムズ株式会社 Transmission device, transmission method, transmission program, and transfer system

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2006054618A1 (en) * 2004-11-17 2006-05-26 Naltec Inc. Method and device for transferring data to peripheral device
US7693328B2 (en) 2005-09-12 2010-04-06 Sharp Kabushiki Kaisha Printing apparatus, printing processing method, and storage medium
JP2013146938A (en) * 2012-01-20 2013-08-01 Seiko Epson Corp Printer, method for controlling printer, program, and recording medium
JP2020127156A (en) * 2019-02-06 2020-08-20 三菱電機インフォメーションシステムズ株式会社 Transmission device, transmission method, transmission program, and transfer system

Similar Documents

Publication Publication Date Title
JP3604722B2 (en) Printer system and method for receiving and printing raster print data
JPH06233141A (en) Adaptive type data compressing method for minimizing memory
US6809832B2 (en) Print control apparatus with decompression, and method and storage medium
US5367620A (en) Character output device
JP3039152B2 (en) Printer with automatic emulation switching function
JPH09193482A (en) Printing data transfer device
JPH10329371A (en) Printer memory boost
US20040120007A1 (en) Method and apparatus for forming a display list
JPH09147093A (en) Printing system, information processor and information processing method
JP3230815B2 (en) Printer
JPH1198367A (en) Digital copying machine
JPH09300732A (en) Printing control apparatus
JP2002120411A (en) White sheet detector and image recorder, imaging apparatus and image reader comprising it
JP4521936B2 (en) Printing apparatus and control method
JP2003244452A (en) Image processor
JP2006217007A (en) Interface apparatus for companding module
JPH10305641A (en) Printing system and printing method
JP2002358175A (en) Printing controller and printing control method and printing system
JP3146197B2 (en) Data transfer device and storage device
JP3280171B2 (en) Output device for compressing and holding data and data compression control method
JP2001100970A (en) Printer host, printer system, and storage medium storing operation program of printer host
JPH0811356A (en) Printer
JP2010274487A (en) Image forming apparatus and image forming system
JPH03237526A (en) Printing device
JP2002132466A (en) Image output unit, image output system, image processing method and storage medium