JP3267269B2 - Printing apparatus and printing method - Google Patents

Printing apparatus and printing method

Info

Publication number
JP3267269B2
JP3267269B2 JP15989599A JP15989599A JP3267269B2 JP 3267269 B2 JP3267269 B2 JP 3267269B2 JP 15989599 A JP15989599 A JP 15989599A JP 15989599 A JP15989599 A JP 15989599A JP 3267269 B2 JP3267269 B2 JP 3267269B2
Authority
JP
Japan
Prior art keywords
data
page
compressed data
type
image data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP15989599A
Other languages
Japanese (ja)
Other versions
JP2000350042A (en
Inventor
敦 吉野
雅成 窪田
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Seiko Epson Corp
Original Assignee
Seiko Epson Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Seiko Epson Corp filed Critical Seiko Epson Corp
Priority to JP15989599A priority Critical patent/JP3267269B2/en
Publication of JP2000350042A publication Critical patent/JP2000350042A/en
Application granted granted Critical
Publication of JP3267269B2 publication Critical patent/JP3267269B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、印刷データを圧縮
保存する機能を有する印刷装置と、印刷データを一時的
に保存した後、その印刷データに応じた印刷を行う印刷
方法に関する。
[0001] 1. Field of the Invention [0002] The present invention relates to a printing apparatus having a function of compressing and storing print data, and a printing method for temporarily storing print data and then performing printing in accordance with the print data.

【0002】[0002]

【従来の技術】近年、使用されている印刷装置の中に
は、受信した印刷データを印刷することなく保存し、操
作パネルに対して印刷を指示する操作がなされたときに
実際の印刷を行なう機能を有するものが知られている。
なお、この機能は、離れた場所に設置されたホスト装置
を用いて出力を指示した印刷物が、出力を指示した者以
外の不特定の人々にその内容を見られてしまうことを防
止することなどを目的として設けられているものであ
る。
2. Description of the Related Art Recently, received printing data is stored in a printing apparatus used without printing, and actual printing is performed when an operation for instructing printing is performed on an operation panel. Those having a function are known.
In addition, this function is to prevent a printed matter whose output has been instructed using a host device installed at a remote place from being viewed by unspecified people other than the person who instructed the output. It is provided for the purpose.

【0003】[0003]

【発明が解決しようとする課題】上記のような印刷装置
は、受信した印刷データを、そのままの形態、或いは、
中間コードに変換した形態で圧縮保存するものと、印刷
データを展開しイメージデータ化した上で圧縮保存する
ものに大別される。前者のタイプの印刷装置は、一般
に、印刷データの圧縮保存に必要とされる記憶容量が少
ないという利点を有するものの、圧縮データのイメージ
データへの変換にその内容に応じた時間がかかるため、
正常な印刷結果が得られない(オーバーランエラーが発
生する)ことがある装置となっている。一方、後者のタ
イプの印刷装置は、圧縮データの伸張に要する時間が、
イメージデータの内容にほとんど因らないので、オーバ
ーランエラーが発生しないという利点を有するものの、
圧縮データの格納に比較的大きな記憶容量が必要とされ
る装置となっていた。
The printing apparatus as described above converts the received print data into a form as it is,
It is broadly classified into a method of compressing and saving in a form converted to an intermediate code, and a method of compressing and saving print data after expanding it into image data. The former type of printing apparatus generally has the advantage that the storage capacity required for compressing and storing print data is small, but since the conversion of compressed data to image data takes time corresponding to the content,
In this device, a normal print result cannot be obtained (an overrun error occurs). On the other hand, the latter type of printing device requires a
It has the advantage that no overrun error occurs because it hardly depends on the contents of the image data,
The apparatus requires a relatively large storage capacity to store the compressed data.

【0004】そこで、本発明の課題は、印刷用のイメー
ジデータを高い圧縮率で、かつ、比較的高速に圧縮保存
できる装置を提供することにある。
An object of the present invention is to provide an apparatus capable of compressing and storing image data for printing at a high compression rate and at a relatively high speed.

【0005】また、本発明の他の課題は、印刷用のイメ
ージデータを高い圧縮率で、かつ、比較的に高速に圧縮
保存した後、そのイメージデータに応じた印刷を行える
印刷方法を提供することにある。
Another object of the present invention is to provide a printing method capable of compressing and storing image data for printing at a high compression rate and at a relatively high speed, and then performing printing in accordance with the image data. It is in.

【0006】[0006]

【課題を解決するための手段】上記、課題を解決するた
めに、本発明の印刷装置、方法では、以下の構成を採用
する。
Means for Solving the Problems In order to solve the above problems, the printing apparatus and method of the present invention employ the following arrangement.

【0007】[0007]

【0008】[0008]

【0009】[0009]

【0010】[0010]

【0011】本発明の第の態様の印刷装置は、圧縮デ
ータを記憶するための記憶手段と、供給されたイメージ
データに応じたイメージを用紙上に印刷する印刷手段
と、所定の指示が入力されたときに、記憶手段に記憶さ
れた圧縮データを復元することによってイメージデータ
を生成し、印刷手段に供給する生成供給手段と、受信し
た印刷データに含まれるページ単位のデータ毎にイメー
ジデータを生成するイメージデータ生成手段と、このイ
メージデータ生成手段で生成された各イメージデータを
符号化することによって印刷データが表す各ページに関
する第1種圧縮データを作成する第1種圧縮データ作成
手段と、イメージデータ生成手段で生成されたイメージ
データに基づき、印刷データが表す第2ページ以降の各
ページに対して、そのページに関するイメージデータと
特定ページに関するイメージデータとを、各イメージデ
ータを構成している所定サイズのデータである単位デー
タ毎に比較することにより、当該ページに関するイメー
ジデータに含まれる、同じ内容の1つ以上の単位データ
が連続する領域であり、特定ページに関するイメージデ
ータの対応する部分には当該内容の単位データが存在し
ていない領域である要置換領域の開始位置を示す開始位
置情報と、その要置換領域を構成している単位データの
数を示す連続数情報と、その要置換領域で用いられてい
る単位データの内容を示す置換データとからなる要素デ
ータを複数個含む第2種圧縮データを作成する第2種圧
縮データ作成手段と、第1種圧縮データ作成手段で作成
された第1ページに関する第1種圧縮データを含み、第
2ページ以降に各ページに関しては、第1種圧縮データ
のサイズが第2種圧縮データのサイズよりも小さい場合
には、第1種圧縮データを含み、そうでない場合には、
第2種圧縮データを含むデータを、印刷データに関する
圧縮データとして記憶手段に保存する保存手段とを備え
る。すなわち、本発明の第の態様の印刷装置、印刷
データが複数ページの印刷物であって、各ページが共通
した部分を多く有する印刷物が得られるものであった場
合、第2種圧縮データ作成手段で作成される第2種圧縮
データのサイズが、第1種圧縮データ作成手段によって
作成される第1種圧縮データのサイズよりも小さくなる
ことを利用して、印刷用のイメージデータの高圧縮率保
存を図った装置となっている。従って、この印刷装置を
用いれば、各ページが共通した部分を多く有する印刷物
の印刷データ、例えば、表計算ソフトで作成されたドキ
ュメントの印刷データや、請求書等の定型のドキュメン
トの印刷データを、高圧縮率で、かつ、比較的高速に圧
縮保存できることになる。
According to a first aspect of the present invention, there is provided a printing apparatus, comprising: a storage unit for storing compressed data; a printing unit for printing an image corresponding to the supplied image data on a sheet; Then, the image data is generated by decompressing the compressed data stored in the storage means and supplied to the printing means, and the image data is generated for each page unit data included in the received print data. Image data generating means for generating; first type compressed data generating means for generating first type compressed data for each page represented by print data by encoding each image data generated by the image data generating means; On the basis of the image data generated by the image data generating means, each of the second and subsequent pages represented by the print data is By comparing the image data relating to the page with the image data relating to the specific page for each unit data which is data of a predetermined size constituting each image data, one of the same contents included in the image data relating to the page concerned A start position information indicating a start position of a required replacement area, which is an area where the above unit data is continuous and an area where no unit data of the content exists in a corresponding portion of image data relating to a specific page, The second type compressed data including a plurality of element data composed of continuous number information indicating the number of unit data constituting the replacement area and replacement data indicating the contents of the unit data used in the required replacement area. A second-type compressed data creating means for creating, and a first-type compression for the first page created by the first-type compressed data creating means For each page after the second page, if the size of the type 1 compressed data is smaller than the size of the type 2 compressed data, the type 1 compressed data is included. ,
A storage unit for storing data including the second type of compressed data in the storage unit as compressed data relating to the print data. In other words, the printing apparatus according to the first aspect of the present invention, when the print data is a print of a plurality of pages and obtains a print having many portions in which each page has a common portion, creates the second type of compressed data. Utilizing the fact that the size of the second-type compressed data created by the means is smaller than the size of the first-type compressed data created by the first-type compressed data creating means, high compression of the image data for printing is performed. The device is designed to save the rate. Therefore, if this printing apparatus is used, print data of a printed matter having many portions where each page is common, for example, print data of a document created by spreadsheet software or print data of a standard document such as an invoice, The compression can be stored at a high compression rate and at a relatively high speed.

【0012】[0012]

【0013】[0013]

【0014】また、本発明の第の態様の印刷装置は、
圧縮データを記憶するための記憶手段と、供給されたイ
メージデータに応じたイメージを用紙上に印刷する印刷
手段と、所定の指示が入力されたときに、記憶手段に記
憶された圧縮データを復元することによってイメージデ
ータを生成し、印刷手段に供給する生成供給手段と、受
信した印刷データに含まれるページ単位のデータ毎に第
1ないし第nイメージデータを生成するイメージデータ
生成手段と、このイメージデータ生成手段で生成された
各イメージデータを符号化することによって印刷データ
が表す各ページに関する第1ないし第nの第1種圧縮デ
ータを作成する第1種圧縮データ作成手段と、イメージ
データ生成手段で生成されたイメージデータに基づき、
印刷データが表す第2ページ以降の各ページ、並びに、
1〜nの各kに対して、そのページに関する第kイメー
ジデータと、特定ページに関する第kイメージデータと
を、各イメージデータを構成している所定サイズのデー
タである単位データ毎に比較することにより、当該ペー
ジに関する第kイメージデータに含まれる、同じ内容の
1つ以上の単位データが連続する領域であり、特定ペー
ジに関する第kイメージデータの対応する部分には当該
内容の単位データが存在していない領域である要置換領
域の開始位置を示す開始位置情報と、その要置換領域を
構成している単位データの数を示す連続数情報と、その
要置換領域で用いられている単位データの内容を示す置
換データとからなる要素データを複数個含む第kの第2
種圧縮データを作成する第2種圧縮データ作成手段と、
第1種圧縮データ作成手段で作成された第1ページに関
する第1ないし第nの第1種圧縮データを含み、第2ペ
ージ以降の各ページに関しては、1〜nの各kに対し
て、第kの第1種圧縮データのサイズが第kの第2種圧
縮データのサイズよりも小さい場合には、第kの第1種
圧縮データを含み、そうでない場合には、第kの第2種
圧縮データを含むデータを、印刷データに関する圧縮デ
ータとして記憶手段に保存する保存手段とを備える。
Further, a printing apparatus according to a second aspect of the present invention comprises:
Storage means for storing the compressed data, printing means for printing an image corresponding to the supplied image data on paper, and restoration of the compressed data stored in the storage means when a predetermined instruction is input Generating and supplying the printing data to the printing means, image data generating means for generating the first to n-th image data for each page unit of data included in the received print data, First-type compressed data creating means for creating first to n-th first-type compressed data for each page represented by print data by encoding each image data generated by the data generating means; and image data generating means Based on the image data generated in
Each page after the second page represented by the print data, and
For each k of 1 to n, the k-th image data of the page and the k-th image data of the specific page are compared for each unit data which is data of a predetermined size constituting each image data. Is an area where one or more unit data of the same content included in the k-th image data related to the page are continuous, and the unit data of the content exists in a corresponding portion of the k-th image data related to the specific page. Start position information indicating the start position of the required replacement area, which is a non-replacement area, continuous number information indicating the number of unit data forming the required replacement area, and the unit data used in the required replacement area. A k-th second element including a plurality of element data including replacement data indicating contents
A second kind compressed data creating means for creating kind compressed data;
It includes first to n-th compressed data of the first kind for the first page created by the compressed data creating means of the first kind. If the size of the k-th type compressed data is smaller than the size of the k-th type 2 compressed data, the k-th type compressed data is included. Otherwise, the k-th type 2nd type compressed data is included. Storage means for storing data including compressed data in the storage means as compressed data relating to print data.

【0015】この第の態様の印刷装置は、圧縮データ
を作成する処理が、ページ単位ではなく、それより小さ
なデータ単位(第1ないし第nイメージデータのサイズ
単位)で行なわれる構成を有する。従って、この印刷装
置を用いれば、各ページが共通した部分を多く有する印
刷物の印刷データ、例えば、表計算ソフトで作成された
ドキュメントの印刷データや、請求書等の定型のドキュ
メントの印刷データを、高圧縮率で、かつ、比較的高速
に圧縮保存できることになる。
The printing apparatus according to the second aspect has a configuration in which the process of creating compressed data is performed not in page units but in smaller data units (units of the first to n-th image data). Therefore, if this printing apparatus is used, print data of a printed matter having many portions where each page is common, for example, print data of a document created by spreadsheet software or print data of a standard document such as an invoice, The compression can be stored at a high compression rate and at a relatively high speed.

【0016】本発明の第の態様の印刷装置は、圧縮デ
ータを記憶するための記憶手段と、供給されたイメージ
データに応じたイメージを用紙上に印刷する印刷手段
と、所定の指示が入力されたときに、記憶手段に記憶さ
れた圧縮データを復元することによってイメージデータ
を生成し、印刷手段に供給する生成供給手段と、受信し
た印刷データに含まれるページ単位のデータ毎にイメー
ジデータを生成するイメージデータ生成手段と、このイ
メージデータ生成手段で生成された各イメージデータを
符号化することによって印刷データが表す各ページに関
する第1種圧縮データを作成する第1種圧縮データ作成
手段と、イメージデータ生成手段で生成されたイメージ
データに基づき、印刷データが表す第2ページ以降の各
ページに対して、それぞれ、対応するページに関するイ
メージデータの、特定ページに関するイメージデータと
異なっている部分の位置及び内容を示す第2種圧縮デー
タを作成する第2種圧縮データ作成手段と、第1種圧縮
データ作成手段で作成された第1ページに関する第1種
圧縮データを含み、第2ページ以降に各ページに関して
は、第1種圧縮データのサイズが第2種圧縮データのサ
イズよりも小さい場合には、第1種圧縮データを含み、
そうでない場合には、第2種圧縮データを含むデータ
を、印刷データに関する圧縮データとして記憶手段に保
存する保存手段と、第2種圧縮データ作成手段によって
作成される第2種圧縮データのサイズの合計が最小とな
るように特定ページを決定する特定ページ決定手段とを
備える。
According to a third aspect of the present invention, there is provided a printing apparatus, comprising: storage means for storing compressed data; printing means for printing an image corresponding to the supplied image data on a sheet; Then, the image data is generated by decompressing the compressed data stored in the storage means and supplied to the printing means, and the image data is generated for each page unit data included in the received print data. Image data generating means for generating; first type compressed data generating means for generating first type compressed data for each page represented by print data by encoding each image data generated by the image data generating means; On the basis of the image data generated by the image data generating means, each of the second and subsequent pages represented by the print data is A second-type compressed data generating means for generating a second-type compressed data indicating a position and a content of a portion of the image data relating to the corresponding page different from the image data relating to the specific page; If the size of the first-type compressed data is smaller than the size of the second-type compressed data for each page after the second page, the first-type compressed data is included. Including one kind of compressed data,
Otherwise, the storage unit stores the data including the second type compressed data in the storage unit as compressed data relating to the print data, and the size of the second type compressed data created by the second type compressed data creation unit. Specific page determining means for determining a specific page so that the total is minimized.

【0017】また、本発明の第の態様の印刷装置は、
圧縮データを記憶するための記憶手段と、供給されたイ
メージデータに応じたイメージを用紙上に印刷する印刷
手段と、所定の指示が入力されたときに、記憶手段に記
憶された圧縮データを復元することによってイメージデ
ータを生成し、印刷手段に供給する生成供給手段と、受
信した印刷データに含まれるページ単位のデータ毎に第
1ないし第nイメージデータを生成するイメージデータ
生成手段と、このイメージデータ生成手段で生成された
各イメージデータを符号化することによって印刷データ
が表す各ページに関する第1ないし第nの第1種圧縮デ
ータを作成する第1種圧縮データ作成手段と、イメージ
データ生成手段で生成されたイメージデータに基づき、
印刷データが表す第2ページ以降の各ページに対して、
それぞれ、対応するページに関する第1ないし第nイメ
ージデータの、特定ページに関する第1ないし第nイメ
ージデータと異なっている部分の位置及び内容を示す第
1ないし第nの第2種圧縮データを作成する第2種圧縮
データ作成手段と、第1種圧縮データ作成手段で作成さ
れた第1ページに関する第1ないし第nの第1種圧縮デ
ータを含み、第2ページ以降の各ページに関しては、1
〜nの各kに対して、第kの第1種圧縮データのサイズ
が第kの第2種圧縮データのサイズよりも小さい場合に
は、第kの第1種圧縮データを含み、そうでない場合に
は、第kの第2種圧縮データを含むデータを、印刷デー
タに関する圧縮データとして記憶手段に保存する保存手
段と、第2種圧縮データ作成手段によって作成される各
ページに関する第1ないし第nの第2種圧縮データのサ
イズの合計が最小となるように特定ページをページ毎に
決定する特定ページ決定手段とを備える。
Further, a printing apparatus according to a fourth aspect of the present invention includes:
Storage means for storing the compressed data, printing means for printing an image corresponding to the supplied image data on paper, and restoration of the compressed data stored in the storage means when a predetermined instruction is input Generating and supplying the printing data to the printing means, image data generating means for generating the first to n-th image data for each page unit of data included in the received print data, First-type compressed data creating means for creating first to n-th first-type compressed data for each page represented by print data by encoding each image data generated by the data generating means; and image data generating means Based on the image data generated in
For each page after the second page represented by the print data,
First to n-th second type compressed data indicating the position and content of a portion of the first to n-th image data relating to the corresponding page, respectively, which is different from the first to n-th image data relating to the specific page are created. A second-type compressed data generating unit; and first to n-th first-type compressed data for the first page generated by the first-type compressed data generating unit.
If the size of the k-th type 1 compressed data is smaller than the size of the k-th type 2 compressed data for each of k to n, the k-th type 1 compressed data is included and the k-th type 1 compressed data is not included. In this case, a storage unit for storing data including the k-th type 2 compressed data in the storage unit as compressed data relating to print data, and a first to a second format for each page created by the second type compressed data creating unit. specific page determining means for determining a specific page for each page such that the total size of n second-type compressed data is minimized.

【0018】このように、本発明の第3、第4の印刷装
置には、それぞれ、第2種圧縮データ作成手段によって
作成される第2種圧縮データのサイズの合計が最小とな
るように特定ページを決定する特定ページ決定手段、第
2種圧縮データ作成手段によって作成される各ページに
関する第1ないし第nの第2種圧縮データのサイズの合
計が最小となるように特定ページをページ毎に決定する
特定ページ決定手段が備えられている。従って、これら
の印刷装置によれば、圧縮データの作成時により多くの
時間がかかることになるものの、より高い圧縮率で印刷
データを保存できることになる。
As described above, each of the third and fourth printing apparatuses according to the present invention is designed so that the total size of the second type compressed data created by the second type compressed data creating means is minimized. The specific page determining means for determining the page, and the specific page for each page such that the total of the sizes of the first to n-th second type compressed data relating to each page generated by the second type compressed data generating means is minimized. A specific page determining means for determining is provided. Therefore, according to these printing apparatuses, although it takes more time to create compressed data, print data can be stored at a higher compression rate.

【0019】本発明の第1、第2の態様の印刷装置を実
現する際には、特定ページを、対応するページの前ペー
ジとすることも、第1ページとすることもできる。ま
た、第2種圧縮データ作成手段によって作成される第2
種圧縮データのサイズの合計が最小となるように特定ペ
ージを決定する特定ページ決定手段を付加して、本発明
の第の態様の印刷装置を実現することもできる。ま
た、第2種圧縮データ作成手段によって作成される各ペ
ージに関する第1ないし第nの第2種圧縮データのサイ
ズの合計が最小となるように特定ページをページ毎に決
定する特定ページ決定手段を付加して、本発明の第
態様の印刷装置を実現することもできる。
In realizing the printing apparatus according to the first or second aspect of the present invention, the specific page can be set as the previous page of the corresponding page or the first page. In addition, the second kind of compressed data created by the second kind compressed data creating means
The printing apparatus according to the first aspect of the present invention can be implemented by adding a specific page determining unit that determines a specific page so that the total size of the seed compressed data is minimized. Also, a specific page determining means for determining a specific page for each page such that the total of the sizes of the first to n-th compressed data of the second type for each page created by the compressed data of the second kind is minimized. In addition, the printing apparatus according to the second aspect of the present invention can be realized.

【0020】なお、本発明の各態様の印刷装置を実現す
る際には、ユーザがその場で印刷の実行を指示できるよ
うにするために、生成供給手段に所定の指示を入力する
ための指示入力パネルを付加しておくことが望ましい。
It should be noted that the printing apparatus according to each aspect of the present invention is realized.
User can instruct the user to execute printing on the spot.
Input a predetermined instruction to the generating and supplying means
It is desirable to add an instruction input panel for this.

【0021】そして、本発明の各態様の印刷方法では、
本発明の各態様の印刷装置で行なわれているものと同じ
手順で印刷が行なわれる。
In the printing method according to each aspect of the present invention,
Same as what is done in the printing device of each aspect of the present invention
Printing is performed according to the procedure.

【0022】 従って、本発明の各態様の印刷方法を用い
れば、各ページが共通した部分を多く有する印刷物の印
刷データ、例えば、表計算ソフトで作成されたドキュメ
ントの印刷データや、請求書等の定型のドキュメントの
印刷データを、高圧縮率で圧縮保存できることになる。
[0022] Therefore,Of each aspect of the present inventionUsing a printing method
If you have a printed mark that has many common parts on each page
Printing data, for example, documents created with spreadsheet software
Print data and standard documents such as invoices
The print data can be compressed and stored at a high compression ratio.

【0023】[0023]

【発明の実施の形態】以下、本発明の実施の形態を図面
を参照して具体的に説明する。
Embodiments of the present invention will be specifically described below with reference to the drawings.

【0024】まず、本発明の第1ないし第6実施形態に
係る印刷装置のハードウェア構成並びに動作の概要を説
明する。
First, an outline of the hardware configuration and operation of the printing apparatus according to the first to sixth embodiments of the present invention will be described.

【0025】図1に、本発明の各実施形態に係る印刷装
置のハードウェア構成を示す。図示したように、各実施
形態に係る印刷装置は、通信制御部11と印刷部12と
操作パネル部13とRAM14とHDD15と主制御部
16とを備える。
FIG. 1 shows a hardware configuration of a printing apparatus according to each embodiment of the present invention. As illustrated, the printing apparatus according to each embodiment includes a communication control unit 11, a printing unit 12, an operation panel unit 13, a RAM 14, an HDD 15, and a main control unit 16.

【0026】通信制御部11は、ホスト装置から送信さ
れてくる印刷データを受信し、受信した印刷データを主
制御部16が処理できる形態のデータに変換するユニッ
トである。各実施形態に係る印刷装置では、通信制御部
11として、セントロニクスインタフェース回路並びに
ネットワークインタフェース回路としての機能を有する
ものが用いられている。すなわち、印刷装置(通信制御
部11)は、セントロニクスケーブル21及びLANケ
ーブル22を介して何台かのホスト装置と接続される。
The communication control unit 11 is a unit that receives print data transmitted from the host device and converts the received print data into data that can be processed by the main control unit 16. In the printing apparatus according to each embodiment, the communication control unit 11 having a function as a Centronics interface circuit and a network interface circuit is used. That is, the printing device (communication control unit 11) is connected to some host devices via the Centronics cable 21 and the LAN cable 22.

【0027】印刷部12は、用紙上への印刷を実際に行
うユニットであり、供給されたイメージデータに応じた
イメージを用紙上に印刷する印刷部、印刷部に用紙を供
給する給紙機構、及び、印刷済みの用紙を排出する排出
機構等からなる。なお、印刷部12は、1ページ分のイ
メージデータを、バンド単位の複数(Bmax個)のイメ
ージデータに分けて供給するタイプのユニットとなって
いる。
The printing unit 12 is a unit that actually performs printing on paper, and includes a printing unit that prints an image corresponding to the supplied image data on paper, a paper feeding mechanism that supplies paper to the printing unit, And a discharge mechanism for discharging printed paper. The printing unit 12 is a unit of a type that supplies one page of image data to a plurality of (Bmax) image data in band units.

【0028】操作パネル部13は、主制御部16がユー
ザから各種の指示を受けるためのユニットであり、タッ
チスクリーンと幾つかのボタンとからなる。RAM14
は、主制御部16が、作業領域として利用するメモリで
ある。HDD15は、圧縮データファイル(詳細は後
述)を記憶しておくために使用される補助記憶装置であ
る。主制御部16は、CPUと、CPUの動作手順を規
定するプログラムが記録されたROM等からなるユニッ
トである。
The operation panel unit 13 is a unit for the main control unit 16 to receive various instructions from the user, and includes a touch screen and some buttons. RAM14
Is a memory used by the main control unit 16 as a work area. The HDD 15 is an auxiliary storage device used to store a compressed data file (details will be described later). The main control unit 16 is a unit including a CPU, a ROM in which a program that defines an operation procedure of the CPU is recorded, and the like.

【0029】以下、図2を用いて、各実施形態に係る印
刷装置の全体的な動作を説明する。なお、図2は、各実
施形態に係る印刷装置が備える主制御部16の電源導入
後の全体的な動作手順を示した流れ図である。
Hereinafter, the overall operation of the printing apparatus according to each embodiment will be described with reference to FIG. FIG. 2 is a flowchart illustrating an overall operation procedure of the main control unit 16 included in the printing apparatus according to each embodiment after power is supplied.

【0030】図示したように、電源が投入された際、主
制御部16は、各種のイベント(通信制御部11による
印刷データの受信、操作パネル部13に対する圧縮デー
タファイルの復元指示入力)の発生を監視する状態(ス
テップS001)をとる。そして、通信制御部11によ
って印刷データが受信されたことを検出した場合(ステ
ップS002;データ受信)、主制御部13は、その印
刷データが保存指示情報を含むものであるか否かを判断
する(ステップS004)。保存指示情報とは、ホスト
装置のプリンタドライバによって印刷データに含められ
る情報であり、この保存指示情報には、自身が保存指示
情報であることを示すデータと、ユーザが印刷データの
出力操作時に入力したパスワードとデータ名称とが含ま
れる。
As shown in the figure, when the power is turned on, the main control unit 16 generates various events (reception of print data by the communication control unit 11, input of an instruction to restore the compressed data file to the operation panel unit 13). Is monitored (step S001). When the communication control unit 11 detects that the print data has been received (step S002; data reception), the main control unit 13 determines whether the print data includes the storage instruction information (step S002). S004). The storage instruction information is information included in the print data by the printer driver of the host device. The storage instruction information includes data indicating that the storage instruction information is itself, and a user input when the print data is output. The password and the data name are included.

【0031】印刷データが保存指示情報を含まないもの
であった場合(ステップS004;NO)、すなわち、
通常の印刷データであった場合、主制御部13は、印刷
データに応じた印刷物が出力されるように印刷部12を
制御する(ステップS005)。その後、ステップS0
01に戻り、再び、各種イベントの発生の監視を開始す
る。一方、印刷データが保存指示情報を含むものであっ
た場合(ステップS004;YES)、主制御部16
は、印刷データに基づき圧縮データファイルを作成する
処理である圧縮処理(ステップS006)を実行する。
この圧縮処理時、主制御部16は、作成した圧縮データ
ファイルを、印刷データ内の保存指示情報に含まれてい
たデータ名称及びパスワードに関連付けた形でHDD1
5内に保存する。その後、主制御部16は、ステップS
001に戻り、再び、各種イベントの発生の監視を開始
する。
If the print data does not include the storage instruction information (step S004; NO),
If the print data is normal print data, the main control unit 13 controls the print unit 12 so that a printed matter corresponding to the print data is output (step S005). Then, step S0
01, and monitoring of occurrence of various events is started again. On the other hand, when the print data includes the save instruction information (step S004; YES), the main control unit 16
Executes a compression process (step S006) for creating a compressed data file based on print data.
At the time of this compression processing, the main control unit 16 associates the created compressed data file with the data of the HDD 1 in a form associated with the data name and the password included in the storage instruction information in the print data.
Store in 5. Thereafter, the main control unit 16 determines in step S
Returning to 001, monitoring of the occurrence of various events is started again.

【0032】圧縮データファイルの復元指示入力がなさ
れたことを検出した場合(ステップS002;復元指示
入力)、主制御部16は、圧縮データファイルを復元す
ることによってその元となった印刷データに応じた印刷
結果を出力する処理である復元処理(ステップS00
3)を実行する。なお、主制御部16は、以下の一連の
操作が行われたときに圧縮データファイルの復元指示入
力がなされたと判断し、復元処理を開始する。
When it is detected that a compressed data file restoration instruction has been input (step S002; restoration instruction input), the main control unit 16 decompresses the compressed data file and responds to the original print data. (Step S00)
Execute 3). Note that the main control unit 16 determines that a compressed data file restoration instruction has been input when the following series of operations are performed, and starts the restoration processing.

【0033】主制御部16は、操作パネル部13に対し
て所定の操作がなされた場合、HDD15内に記憶され
ている圧縮データファイルに関するデータ名称のリスト
を操作パネル部13に表示する。その後、そのリストか
ら1つのデータ名称を選択する操作がなされたことを検
出した際には、パスワードの入力を促すメッセージを操
作パネル部13に表示し、ユーザからパスワードの入力
を受ける。そして、操作パネル部13を用いて入力され
たパスワードが、選択されたデータ名称に関連付けて記
憶されているパスワードと一致していた場合にのみ、圧
縮データファイルの復元指示入力がなされたと判断す
る。復元指示入力がなされたと判断した場合には、さら
に、印刷開始ページPs、印刷終了ページPe(≧P
s)、印刷部数、印刷後に圧縮データファイルを破棄す
るか否かを指定する破棄諾否指示情報をユーザから取得
する。そして、復元処理を開始する。
When a predetermined operation is performed on the operation panel unit 13, the main control unit 16 displays a list of data names of the compressed data files stored in the HDD 15 on the operation panel unit 13. Thereafter, when it is detected that an operation of selecting one data name from the list is performed, a message prompting the user to enter a password is displayed on the operation panel unit 13 and the password is received from the user. Only when the password input using the operation panel unit 13 matches the password stored in association with the selected data name, it is determined that a compressed data file restoration instruction input has been made. If it is determined that the restoration instruction has been input, the print start page Ps and the print end page Pe (≧ P
s) Acquire from the user information indicating whether or not to discard the compressed data file after printing. Then, the restoration process is started.

【0034】第1ないし第6実施形態の印刷装置は、こ
の流れ図における圧縮処理及び復元処理時の主制御部1
6の動作(ROMに記憶されているプログラムの内容)
が異なったものとなっている。以下、圧縮処理、復元処
理時の動作を中心に、各実施形態に係る印刷装置の動作
を詳細に説明する。
The printing apparatus according to the first to sixth embodiments uses the main control unit 1 at the time of compression processing and decompression processing in this flowchart.
Operation 6 (contents of program stored in ROM)
Are different. Hereinafter, the operation of the printing apparatus according to each embodiment will be described in detail focusing on the operation at the time of compression processing and restoration processing.

【0035】<第1実施形態>まず、図3を用いて、第
1実施形態に係る印刷装置によって作成される圧縮デー
タファイルの構成を説明する。
<First Embodiment> First, the structure of a compressed data file created by the printing apparatus according to the first embodiment will be described with reference to FIG.

【0036】図3(a)に示したように、第1実施形態
に係る印刷装置によって作成される圧縮データファイル
31は、管理データと、それぞれ、第1ないし第Mmax
ページデータ(第1ないし第Mmaxページを構成するイ
メージデータ)の圧縮データであるページ圧縮データ#
1〜Mmaxとからなる。
As shown in FIG. 3A, the compressed data file 31 created by the printing apparatus according to the first embodiment includes management data and first to Mmax
Page compressed data # which is compressed data of page data (image data forming the first to M-th pages)
1 to Mmax.

【0037】管理データは、図3(b)に示したよう
に、圧縮データ数Mmax、種別フラグ#2〜Mmax、先頭
位置データ#1〜Mmaxを含む。圧縮データ数Mmaxは、
圧縮データファイル31に含まれているページ圧縮デー
タの数(圧縮データファイル31の復元によって得られ
る印刷物の総ページ数)を示すデータである。先頭位置
データ#1〜Mmaxは、それぞれ、ページ圧縮データ#
1〜Mmaxの先頭位置を、圧縮データファイル31の先
頭からの相対アドレスで表したデータである。種別フラ
グ#M(M=2〜Mmax)は、ページ圧縮データ#M
が、第1種ページ圧縮データ、第2種ページ圧縮データ
のいずれであるかを、“0/1”で示したデータであ
り、圧縮データファイル31では、圧縮データ数Mmax
に続く、“INT((Mmax−2)/8)+1”バイトのデータ
内のMmax−1個のビットが、種別フラグ#2〜Mmaxと
して使用されている。
As shown in FIG. 3B, the management data includes the number of compressed data Mmax, type flags # 2 to Mmax, and head position data # 1 to Mmax. The number of compressed data Mmax is
This is data indicating the number of page compressed data included in the compressed data file 31 (total number of pages of printed matter obtained by restoring the compressed data file 31). The head position data # 1 to Mmax are respectively the page compressed data #
1 to Mmax are represented by relative addresses from the beginning of the compressed data file 31. The type flag #M (M = 2 to Mmax) indicates that the page compression data #M
Is data indicating "0/1" as to which of the first-type page compressed data and the second-type page compressed data. In the compressed data file 31, the number of compressed data Mmax
, Mmax-1 bits in the data of "INT ((Mmax-2) / 8) +1" bytes are used as type flags # 2 to Mmax.

【0038】第1種ページ圧縮データ(対応する種別フ
ラグが“0”であるページ圧縮データ)は、図3(c)
に示したように、Bmax個の通常圧縮データ#1〜Bmax
からなる。第1種ページ圧縮データであるページ圧縮デ
ータ#Pの通常圧縮データ#B(B=1〜Bmax)は、
第Pページの第Bバンドに関するイメージデータの符号
化により作成される圧縮データである。すなわち、第1
種ページ圧縮データは、元となった1ページ分のイメー
ジデータを単独で復元できるデータとなっている。な
お、図3(a)に示してあるように、対応する種別フラ
グが用意されていないページ圧縮データ#1も、第1種
ページ圧縮データとなっている。
The first type page compressed data (page compressed data whose corresponding type flag is "0") is shown in FIG.
, Bmax pieces of normal compressed data # 1 to Bmax
Consists of The normal compressed data #B (B = 1 to Bmax) of the page compressed data #P which is the first type page compressed data is
This is compressed data created by encoding image data relating to the B-th band of the P-th page. That is, the first
The seed page compressed data is data that can independently restore the original image data of one page. As shown in FIG. 3A, the page compressed data # 1 for which the corresponding type flag is not prepared is also the first type page compressed data.

【0039】一方、第2種ページ圧縮データは、図3
(d)に示したように、Bmax個の差分圧縮データ#1
〜Bmaxからなる。差分圧縮データは、図3(e)に示
したように、要素データ数Nmaxと、位置データ及び置
換データからなるNmaxの要素データとで構成されてお
り、第2種ページ圧縮データであるページ圧縮データ#
Pの差分圧縮データ#B(B=1〜Bmax)は、第Pペ
ージの第Bバンドのイメージデータを、他のページ(本
実施形態では、第P−1ページ)の対応するバンドのイ
メージデータと比較(詳細は後述)することよって作成
される圧縮データとなっている。すなわち、第2種ペー
ジ圧縮データは、元となった1ページ分のイメージデー
タを単独では復元できない(復元に他ページのイメージ
データが必要とされる)データとなっている。
On the other hand, the compressed data of the second kind page is shown in FIG.
As shown in (d), Bmax differential compressed data # 1
~ Bmax. As shown in FIG. 3E, the differential compressed data is composed of the element data number Nmax and the Nmax element data composed of the position data and the replacement data. data#
P differential compressed data #B (B = 1 to Bmax) is obtained by converting the image data of the B-th band of the P-th page into the image data of the corresponding band of another page (the P-th page in this embodiment). And (compared in detail later) with compressed data. That is, the second-type page compressed data is data that cannot restore the original image data of one page by itself (image data of another page is required for restoration).

【0040】以下、本印刷装置の、圧縮処理時、復元処
理時の動作を詳細に説明する。なお、以下では、説明の
便宜上、バンド圧縮データD(P,B)という表現を、圧
縮データファイル31に含まれる第Pページに関する通
常圧縮データ#B及び第Pページに関する差分圧縮デー
タ#Bの総称として用いることにする。
The operation of the printing apparatus during compression processing and decompression processing will be described in detail below. In the following, for convenience of description, the expression band compressed data D (P, B) is a general term for the normal compressed data #B for the Pth page and the differential compressed data #B for the Pth page included in the compressed data file 31. Will be used.

【0041】図4に、本印刷装置において実行される圧
縮処理の流れ図を示す。既に図2を用いて説明したよう
に、この圧縮処理は、受信された印刷データに、データ
名称とパスワードとを含む保存指定情報が含まれていた
ときに実行される。
FIG. 4 shows a flowchart of a compression process performed in the printing apparatus. As described above with reference to FIG. 2, this compression process is executed when the received print data includes storage designation information including a data name and a password.

【0042】図示したように、圧縮処理時、主制御部1
6は、まず、処理したページ数をカウントするための変
数Mと、処理したバンド数をカウントするための変数B
に、それぞれ、“1”を設定する(ステップS10
1)。
As shown in the figure, the main controller 1
6 is a variable M for counting the number of processed pages and a variable B for counting the number of processed bands.
Are set to "1" (step S10).
1).

【0043】その後、主制御部16は、受信した印刷デ
ータに基づき、第Mページの第Bバンドのイメージデー
タであるバンドイメージ#BをRAM14上に作成する
(ステップS102)。次に、主制御部16は、作成し
たバンドイメージ#Bを符号化(本実施形態では、ラン
レングス符号化)することにより、第1ページの第Bバ
ンドに関するバンド圧縮データD(M(=1),B)をRA
M14上に作成する(ステップS103)。その後、B
=Bmaxが成立するか否かを判断することによって、第
1ページの最終バンドに関する処理が完了したか否かを
判断(ステップS104)し、最終バンドに関する処理
が完了していなかった場合(ステップS104;NO)
には、Bに“1”を加算する(ステップS105)。そ
して、ステップS102に戻り、次のバンドに関する処
理を開始する。
Thereafter, the main controller 16 creates a band image #B, which is image data of the B-th band of the M-th page, on the RAM 14 based on the received print data (step S102). Next, the main control unit 16 encodes the created band image #B (in this embodiment, run-length encoding), so that the band compression data D (M (= 1) for the B-th band of the first page. ), B) to RA
It is created on M14 (step S103). Then, B
= Bmax is determined to determine whether or not the processing on the last band of the first page has been completed (step S104). If the processing on the last band has not been completed (step S104) ; NO)
, Add "1" to B (step S105). Then, the process returns to step S102 to start the processing for the next band.

【0044】このような処理を、1ページ分の印刷デー
タに対して行うことによってBmax個のバンド圧縮デー
タの作成が完了した際(ステップS104;YES)、
主制御部16は、ステップS106に進み、次ページに
関する印刷データが通信制御部11によって受信されて
いるか否かを判断する。そして、次ページに関する印刷
データが受信されている場合(ステップS106;YE
S)には、Mに“1”を加算(ステップS107)した
後、ページ圧縮データ#Mを作成する処理であるページ
圧縮データ作成処理(ステップS108)を開始する。
When such processing is performed on the print data for one page, and the creation of the Bmax band compressed data is completed (step S104; YES),
The main controller 16 proceeds to step S <b> 106, and determines whether the print data for the next page has been received by the communication controller 11. If the print data for the next page has been received (step S106; YE)
In S), after adding "1" to M (step S107), a page compressed data creation process (step S108) for creating page compressed data #M is started.

【0045】図5、6に、それぞれ、ページ圧縮データ
作成処理、ページ圧縮データ作成処理時に実行される差
分圧縮データ作成処理の流れ図を示す。
FIGS. 5 and 6 show flow charts of page compressed data creation processing and differential compressed data creation processing executed at the time of page compressed data creation processing, respectively.

【0046】図5に示したように、ページ圧縮データ作
成処理時、主制御部16は、まず、変数Bを“1”に初
期化する(ステップS201)。その後、ステップS2
02に進み、受信した印刷データに基づき、第Mページ
のバンドイメージ#BをRAM14上に作成する処理を
行う。そして、差分圧縮データ作成処理(ステップS2
03)を開始する。
As shown in FIG. 5, at the time of the page compression data creation processing, the main control unit 16 first initializes a variable B to "1" (step S201). Then, step S2
Then, the process proceeds to step S 02, where the band image #B of the Mth page is created in the RAM 14 based on the received print data. Then, the differential compressed data creation processing (step S2
03) is started.

【0047】このステップで実行される差分圧縮データ
作成処理は、第Mページのバンドイメージ#Bに関する
差分圧縮データ#Bを作成する処理であり、第M−1ペ
ージのバンドイメージ#Bを基準イメージとし、第Mペ
ージのバンドイメージ#Bを生成イメージとして実行さ
れる。
The differential compressed data creating process executed in this step is a process of creating differential compressed data #B relating to the band image #B of the Mth page, and uses the band image #B of the M-1 page as the reference image. And the band image #B of the Mth page is executed as a generated image.

【0048】具体的には、図6に示してあるように、差
分圧縮データ作成処理時、主制御部16は、まず、処理
を行う単位データの単位データ番号を記憶するための変
数kに“1”を設定するとともに、差分圧縮データ#B
に含めた要素データ数をカウントするための変数iに
“0”を設定する(ステップS301)。なお、単位デ
ータ番号とは、バンドイメージを構成しているkmax個
の単位データから1つの単位データを識別するための情
報であり、本装置では、バンドイメージの先頭の単位デ
ータに単位データ番号“1”が与えられている。
Specifically, as shown in FIG. 6, at the time of differential compressed data creation processing, the main control unit 16 first sets “k” in a variable k for storing the unit data number of the unit data to be processed. 1 "and differential compressed data #B
Is set to "0" for a variable i for counting the number of element data included in (1) (step S301). The unit data number is information for identifying one unit data from the kmax unit data forming the band image. In the present apparatus, the unit data number at the head of the band image is "unit data number". 1 "is provided.

【0049】この後、主制御部16は、生成イメージ
(第Mページの第Bバンドのイメージデータ)の単位デ
ータ#kと、基準イメージ(第M−1ページの第Bバン
ドのイメージデータ)の単位データ#kとを比較する
(ステップS302)。そして、両者が一致していた場
合(ステップS303;YES)には、kに“1”を加
算(ステップS306)し、kがkmax以下であるか否
かを判断する(ステップS307)。
Thereafter, the main control unit 16 determines whether the unit data #k of the generated image (image data of the B-th band of the M-th page) and the unit image #k of the reference image (the image data of the B-th band of the (M-1) -th page). A comparison is made with the unit data #k (step S302). If they match (step S303; YES), “1” is added to k (step S306), and it is determined whether k is equal to or smaller than kmax (step S307).

【0050】一方、生成イメージの単位データ#kと基
準イメージの単位データ#kとが一致していなかった場
合(ステップS303;NO)、主制御部16は、iに
“1”を加算する(ステップS304)。そして、k、
生成イメージの単位データ#kを、それぞれ、差分圧縮
データ#Bの要素データ#iを構成する位置データ#
i、置換データ#iとして記憶する(ステップS30
5)。すなわち、要素データを構成している位置データ
は、生成イメージの1単位データの位置を表すデータで
あって、基準イメージの対応する位置の単位データと内
容が異なっている単位データの位置を示すデータとなっ
ている。そして、位置データとともに要素データを構成
している置換データは、生成イメージの、その位置デー
タが示す位置の単位データの内容を示すデータとなって
いる。
On the other hand, when the unit data #k of the generated image does not match the unit data #k of the reference image (step S303; NO), the main control unit 16 adds "1" to i (step S303). Step S304). And k,
The unit data #k of the generated image is replaced with the position data # constituting the element data #i of the differential compressed data #B.
i, and stored as replacement data #i (step S30)
5). That is, the position data constituting the element data is data representing the position of one unit data of the generated image, and is data representing the position of the unit data whose content is different from the unit data of the corresponding position of the reference image. It has become. The replacement data forming the element data together with the position data is data indicating the contents of the unit data at the position indicated by the position data in the generated image.

【0051】その後、主制御部16は、kに“1”を加
算(ステップS306)してから、kがkmax以下であ
るか否かを判断する(ステップS307)。そして、k
がkmax以下であった場合(ステップS307;YE
S)には、ステップS302に戻り、次の単位データに
対する処理を開始する。一方、kがkmaxを超えていた
場合(ステップS307;NO)、すなわち、単位デー
タ#kmaxの比較がステップS302で行われていた場
合には、その時点におけるiの値を、差分圧縮データ#
Bの要素データ数Nmaxとして記憶(ステップS30
8)し、差分圧縮データ作成処理を終了する。
Thereafter, the main controller 16 adds "1" to k (step S306), and then determines whether k is equal to or smaller than kmax (step S307). And k
Is less than or equal to kmax (step S307; YE
In step S), the process returns to step S302 to start processing for the next unit data. On the other hand, if k exceeds kmax (step S307; NO), that is, if the comparison of the unit data #kmax has been performed in step S302, the value of i at that time is replaced with the difference compressed data #
Stored as the number Nmax of element data of B (step S30)
8) Then, the differential compressed data creation processing ends.

【0052】差分圧縮データ作成処理(図5:ステップ
S203)の終了後、主制御部16は、バンドイメージ
#Bの符号化により通常圧縮データ#Bを作成する(ス
テップS204)。なお、このステップで作成される通
常圧縮データ#Bは、自身のサイズを表すデータを含む
ものである。そして、RAM14上の基準イメージ(第
M−1ページのバンドイメージ#B)を破棄する(ステ
ップS205)。すなわち、当該基準イメージの記憶に
使用されていた記憶領域を開放し、他のデータの記憶に
使用できるようにする。そして、主制御部16は、ステ
ップS206に進み、処理したバンドが最終バンドであ
るか否かを判断し、最終バンドでなかった場合(ステッ
プS206;NO)、Bに“1”を加算(ステップS2
07)した後、再度、ステップS202〜S206の処
理を行う。
After completion of the differential compressed data creation processing (FIG. 5, step S203), the main control unit 16 creates normal compressed data #B by encoding the band image #B (step S204). Note that the normal compressed data #B created in this step includes data representing its own size. Then, the reference image (band image #B of the (M-1) th page) on the RAM 14 is discarded (step S205). That is, the storage area used for storing the reference image is released so that it can be used for storing other data. Then, the main controller 16 proceeds to step S206, determines whether or not the processed band is the last band, and if not, adds “1” to B (step S206; NO) (step S206). S2
07), the processes of steps S202 to S206 are performed again.

【0053】このような処理を繰り返すことによって第
Mページの全てのバンドに対する処理を終えたとき(ス
テップS206;YES)、すなわち、差分圧縮データ
#1〜Bmaxと、通常圧縮データ#1〜Bmaxの作成が完
了したときに、主制御部16は、ステップS202〜S
207のループを抜け出す。そして、ステップS208
に進み、作成した差分圧縮データ#1〜Bmaxのサイズ
の合計Sと、作成した通常圧縮データ#1〜Bmaxの
サイズの合計SRLEとを算出する。
When the processing for all bands of the M-th page is completed by repeating such processing (step S206; YES), that is, the difference compression data # 1 to Bmax and the normal compression data # 1 to Bmax When the creation is completed, the main control unit 16 executes steps S202 to S202.
Break out of loop 207. Then, step S208
The processing proceeds to calculate the total S D of size of the differential compressed data # 1~Bmax created, and the total S RLE size usually compressed data # 1~Bmax created.

【0054】その後、主制御部16は、算出した両値の
間に、SRLE<Sが成立しているか否かを判断(ス
テップS209)し、SRLE<Sが成立していた場
合(ステップS209;YES)には、作成してある第
Mページに関する通常圧縮データ#1〜Bmaxを、それ
ぞれ、ページ圧縮データ#Mの、対応するバンドについ
てのバンド圧縮データ(D(M,1)〜D(M,Bmax))と
して記憶する(ステップS210)。また、種別フラグ
#Mを記憶するための変数であるF(M)に“0”を設
定する(ステップS211)。すなわち、F(M)を
“0”とすることによって、ページ圧縮データ#Mを第
1種ページ圧縮データとした(ページ圧縮データ#M内
の各バンド圧縮データとして通常圧縮データを選択し
た)ことを記憶する。そして、不要となったデータ(例
えば、差分圧縮データ#1〜Bmax)を破棄(図示せ
ず)し、ページ圧縮データ作成処理を終了する。
Thereafter, the main controller 16 determines whether or not S RLE < SD holds between the calculated values (step S209). If S RLE < SD holds, (Step S209; YES), the normal compressed data # 1 to Bmax for the created M-th page are respectively converted to band compressed data (D (M, 1)) for the corresponding band of the page compressed data #M. DD (M, Bmax)) (step S210). Further, “0” is set to F (M) which is a variable for storing the type flag #M (step S211). That is, by setting F (M) to “0”, the page compressed data #M is set to the first type page compressed data (normal compressed data is selected as each band compressed data in the page compressed data #M). Is stored. Then, the unnecessary data (for example, differential compressed data # 1 to Bmax) is discarded (not shown), and the page compressed data creation processing ends.

【0055】一方、SRLE<Sが成立していなかっ
た場合(ステップS209;NO)、主制御部16は、
ステップS203で作成した第Mページに関する差分圧
縮データ#1〜Bmaxを、それぞれ、ページ圧縮データ
#Mの、対応するバンドについてのバンド圧縮データ
(D(M,1)〜D(M,Bmax))として記憶する(ステッ
プS212)。そして、圧縮データ#M内の各バンド圧
縮データが差分圧縮データであることを、F(M)に
“1”を設定することによって記憶する(ステップS2
13)。その後、主制御部16は、不要となったデータ
を破棄(図示せず)して、ページ圧縮データ作成処理を
終了する。
On the other hand, if S RLE < SD is not satisfied (step S209; NO), the main control unit 16
The difference compressed data # 1 to Bmax for the Mth page created in step S203 are respectively converted to band compressed data (D (M, 1) to D (M, Bmax)) for the corresponding band of the page compressed data #M. (Step S212). The fact that each band compressed data in the compressed data #M is differential compression data is stored by setting F (M) to "1" (step S2).
13). Thereafter, the main control unit 16 discards unnecessary data (not shown), and ends the page compressed data creation processing.

【0056】ページ圧縮データ作成処理(図4:ステッ
プS108)の終了後、主制御部16は、ステップS1
06に戻る。そして、次ページの有無を判断し、次ペー
ジがあった場合(ステップS106;YES)には、再
び、ステップS107、S108を実行する。
After the end of the page compression data creation processing (FIG. 4: step S108), the main control unit 16 proceeds to step S1.
Return to 06. Then, it is determined whether there is a next page. If there is a next page (step S106; YES), steps S107 and S108 are executed again.

【0057】圧縮処理時、主制御部16は、このような
処理を繰り返し、処理すべきページがなくなったとき
(ステップS106;NO)に、それまでに生成した各
種データに基づき圧縮データファイル31をHDD15
内に作成する処理(ステップS109)を行う。すなわ
ち、主制御部16は、その時点におけるM値をMmaxと
して認識するとともに、1〜Mmaxの各M値に対して得
られているページ圧縮データ#M(バンド圧縮データD
(M,1)〜D(M,Bmax))のサイズとMmax値の関数であ
る管理データのサイズとに基づき、先頭位置データ#1
〜Mmaxを求める。そして、Mmax、F(2)〜F(Mma
x)、先頭位置データ#1〜Mmax、ページ圧縮データ#
1〜Mmaxを組み合わせることによって、図3に示した
構成の圧縮データファイル31を作成し、保存指示情報
に含まれていたデータ名称、パスワードと関連づけてH
DD15内に記憶する。そして、圧縮処理を終了する。
At the time of compression processing, the main control unit 16 repeats such processing, and when there are no more pages to be processed (step S106; NO), the main control unit 16 stores the compressed data file 31 based on the various data generated so far. HDD15
(Step S109). That is, the main control unit 16 recognizes the M value at that time as Mmax, and obtains the page compressed data #M (band compressed data D
Based on the size of (M, 1) to D (M, Bmax)) and the size of the management data as a function of the Mmax value, the top position data # 1
To Mmax. Then, Mmax, F (2) to F (Mma
x), top position data # 1 to Mmax, page compression data #
1 to Mmax, a compressed data file 31 having the configuration shown in FIG. 3 is created, and H is associated with the data name and password included in the storage instruction information.
Store in DD15. Then, the compression process ends.

【0058】すなわち、本印刷装置では、例えば、全5
ページの印刷データに対して、図7に模式的に示したよ
うな手順で圧縮データファイル31が作成される。ま
ず、第1ページに対しては、通常圧縮データからなる第
1種ページ圧縮データ40のみが作成される。また、
第2ページ以降の第Pページに対しては、通常圧縮デー
タからなる第1種ページ圧縮データ40と、差分圧縮
データからなる第2種ページ圧縮データ41とが作成
される。そして、第1種ページ圧縮データ40と、第
2ないし第5ページに対して作成されたサイズがより小
さい方のページ圧縮データと、第2〜第5ページに対し
ていずれのタイプのページ圧縮データが用いられている
かを示す種別フラグ#2〜5(図示したケースでは、
“1”、“0”、“1”、“1”)が含められた管理デ
ータとを組み合わせることによって圧縮データファイル
31が作成される。
That is, in this printing apparatus, for example, all five
A compressed data file 31 is created for the print data of the page in the procedure schematically shown in FIG. First, for the first page, only the first kind page compression data 40 1 made of ordinary compressed data are generated. Also,
For the P page of the second and subsequent pages, and the one page compression data 40 P, and the two page compression data 41 P consisting differential compression data is created consisting of ordinary compressed data. Then, the first one page compression data 40 1, and page compressed data size of the smaller created for the second to fifth pages, page compression of any type for the second to fifth pages Type flags # 2 to 5 indicating whether data is used (in the illustrated case,
The compressed data file 31 is created by combining with management data including “1”, “0”, “1”, and “1”).

【0059】次に、図8ないし図10を用いて、本印刷
装置における圧縮データファイル31の復元手順を説明
する。なお、図8は、本印刷装置において実行される復
元処理の流れ図である。また、図9は、復元処理時に実
行される差分圧縮ページ復元処理の流れ図であり、図1
0は、差分圧縮ページ復元処理時に実行される差分圧縮
データ復元処理の流れ図である。既に図2を用いて説明
したように、この復元処理は、復元(印刷)する圧縮デ
ータファイル31が指定され、印刷開始ページPs、印
刷終了ページPe(≧Ps)、印刷部数、破棄諾否指示情
報が与えられた後に実行される。
Next, a procedure for restoring the compressed data file 31 in the printing apparatus will be described with reference to FIGS. FIG. 8 is a flowchart of a restoration process performed in the printing apparatus. FIG. 9 is a flowchart of the differential compression page restoration process executed during the restoration process.
0 is a flowchart of the differential compressed data decompression process executed during the differential compressed page decompression process. As described above with reference to FIG. 2, in this restoration processing, the compressed data file 31 to be restored (printed) is specified, the print start page Ps, the print end page Pe (≧ Ps), the number of copies, the discard approval / disapproval instruction information Is executed after is given.

【0060】図8に示したように、復元処理開始時、主
制御部16は、まず、復元(印刷)が指示された圧縮デ
ータファイル31である処理対象圧縮データファイルの
管理データ、すなわち、圧縮データ数Mmax、種別フラ
グ#2〜Mmax、先頭位置データ#1〜Mmaxを取得する
(ステップS401)。なお、主制御部16は、このス
テップにおいて、種別フラグ#2〜Mmaxの値を、それ
ぞれ、F(2)〜F(Mmax)として記憶する。
As shown in FIG. 8, at the start of the decompression processing, the main control unit 16 firstly manages the management data of the processing target compressed data file which is the compressed data file 31 instructed to be decompressed (printed), that is, compresses the data. The number of data Mmax, type flags # 2 to Mmax, and head position data # 1 to Mmax are acquired (step S401). In this step, the main control unit 16 stores the values of the type flags # 2 to Mmax as F (2) to F (Mmax), respectively.

【0061】次に、主制御部16は、F(1)に“0”、
MにPsを設定する(ステップS402)。その後、主
制御部16は、F(M)が“0”であるか否かを判断(ス
テップS403)し、F(M)が“0”でなかった場合
(ステップS403;NO)には、Mから“1”を減ず
る(ステップS404)。そして、ステップS403に
戻り、値を更新したMについてF(M)=0が成立してい
るか否かを判断する。
Next, the main controller 16 sets "0" to F (1),
Ps is set to M (step S402). Thereafter, the main control unit 16 determines whether or not F (M) is “0” (step S403). If F (M) is not “0” (step S403; NO), "1" is subtracted from M (step S404). Then, the process returns to step S403, and it is determined whether or not F (M) = 0 holds for M whose value has been updated.

【0062】F(Ps)=0であった場合、或いは、ステ
ップS404を1回以上実行することによってF(M)=
0を満たすMを見出した場合(ステップS403;YE
S)、主制御部16は、ページ圧縮データ#Mを処理対
象とする通常圧縮ページ復元処理(ステップS405)
を実行する。
When F (Ps) = 0, or by executing step S404 one or more times, F (M) =
When M that satisfies 0 is found (step S403; YE)
S), the main control unit 16 performs a normal compressed page restoration process for the page compressed data #M (Step S405).
Execute

【0063】この通常圧縮ページ復元処理時、主制御部
16は、先頭位置データ#Mによってその先頭位置が示
されているページ圧縮データ#M(F(M)=0であるの
で、このデータは、第1種ページ圧縮データである)の
各バンド圧縮データを読み出し、復号する。すなわち、
RAM14上に、第Mページのバンドイメージ#1〜B
maxを生成する。また、Ps≦M≦Peが成立していた場
合、主制御部16は、復号によって得られたバンドイメ
ージ#1〜Bmaxを印刷部12に供給する処理も行う。
At the time of the normal compressed page decompression processing, the main control unit 16 sets the page compressed data #M (F (M) = 0) whose head position is indicated by the head position data #M. , Compressed data of the first type) is read and decoded. That is,
In the RAM 14, band images # 1 to B of the M-th page
Generate max. When Ps ≦ M ≦ Pe is satisfied, the main control unit 16 also performs a process of supplying the band images # 1 to Bmax obtained by decoding to the printing unit 12.

【0064】通常圧縮ページ復元処理の実行後、主制御
部16は、M=Psが成立しているか否かを判断する
(ステップS406)。そして、M=Psが成立してい
なかった場合(ステップS406;NO)には、Mに
“1”を加算する(ステップS407)。そして、ペー
ジ圧縮データ#Mを対象とする処理である差分圧縮ペー
ジ復元処理(ステップS408)を開始する。
After executing the normal compressed page restoration process, the main control unit 16 determines whether M = Ps is satisfied (step S406). If M = Ps is not satisfied (step S406; NO), “1” is added to M (step S407). Then, the difference compression page restoration process (step S408), which is the process for the page compression data #M, is started.

【0065】図9に示したように、差分圧縮ページ復元
処理時、主制御部16は、まず、Bに“1”を設定する
(ステップS501)。そして、第M−1ページのバン
ドイメージ#Bを基準イメージとして用いて、差分圧縮
データであるバンド圧縮データD(M,B)を復元する処
理である差分圧縮データ復元処理(ステップS502)
を開始する。
As shown in FIG. 9, at the time of the differential compression page restoration process, the main control unit 16 first sets B to "1" (step S501). Then, using the band image #B of the (M−1) th page as a reference image, a difference compressed data restoration process for restoring the band compression data D (M, B) as the difference compression data (step S502).
To start.

【0066】図10に示したように、差分圧縮データ復
元処理開始時、主制御部16は、バンド圧縮データD
(M,B)の要素データ数Nmaxを取得する(ステップS5
51)。なお、このステップをB=1の状態で実行する
際、主制御部16は、処理対象圧縮データファイル内の
D(M,1)の先頭位置を、先頭位置データ#Mによって
認識する。また、B≠1の状態でこのステップを実行す
る際には、処理対象圧縮データファイル内の、既に処理
したデータの次位置に記憶されている所定サイズのデー
タを、D(M,B)の要素データ数Nmaxとして認識する。
As shown in FIG. 10, at the start of the differential compressed data decompression process, the main control unit 16
The number Nmax of element data of (M, B) is obtained (step S5).
51). When performing this step in the state of B = 1, the main control unit 16 recognizes the start position of D (M, 1) in the processing target compressed data file by the start position data #M. When this step is executed in the state of B ≠ 1, the data of a predetermined size stored at the next position of the already processed data in the processing target compressed data file is replaced with the data of D (M, B). It is recognized as the number of element data Nmax.

【0067】要素データ数Nmaxの取得後、主制御部1
6は、変数iに“1”を設定する(ステップS55
2)。そして、i≦Nmaxが成立していた場合(ステッ
プS553;YES)には、処理対象圧縮データファイ
ル内の、既に処理したデータの次位置に記憶されている
所定サイズのデータを読み出すことによって、D(M,
B)の要素データ#i(位置データ#i及び置換データ
#i)を取得する(ステップS554)。その後、主制
御部16は、RAM14上の基準イメージ内の位置デー
タ#iが示す位置に、置換データ#iを書き込む(ステ
ップS555)。そして、iに“1”を加算(ステップ
S556)して、ステップS553に戻る。
After obtaining the number of element data Nmax, the main control unit 1
6 sets “1” to a variable i (step S55)
2). If i ≦ Nmax is satisfied (step S553; YES), data of a predetermined size stored at the next position of the already processed data in the processing target compressed data file is read, thereby obtaining D (M,
The element data #i (position data #i and replacement data #i) of B) is obtained (step S554). Thereafter, the main control unit 16 writes the replacement data #i at the position indicated by the position data #i in the reference image on the RAM 14 (step S555). Then, “1” is added to i (step S556), and the process returns to step S553.

【0068】主制御部16は、このような処理をi≦N
maxが成立する限り繰り返し、i>Nmaxとなったとき
(ステップS553;NO)、すなわち、基準イメージ
の書き換えによって第Mページのバンドイメージ#Bの
生成が完了した際に、差分圧縮データ復元処理を終了す
る。
The main control unit 16 determines that such processing is i ≦ N
The difference compressed data restoration process is performed when i> Nmax is satisfied (step S553; NO), that is, when the generation of the band image #B of the Mth page is completed by rewriting the reference image. finish.

【0069】差分圧縮データ復元処理の完了後、主制御
部16は、Ps≦M≦Peが成立しているか否かを判断す
る(図9:ステップS503)。そして、Ps≦M≦Pe
が成立している場合(ステップS503;YES)に
は、そのバンドイメージ#Bを印刷部12に供給(ステ
ップS504)し、ステップS505に進む。一方、P
s≦M≦Peが成立していない場合(ステップS503;
NO)には、直接、ステップS505を実行する。
After the completion of the differential compressed data restoring process, the main control unit 16 determines whether or not Ps ≦ M ≦ Pe is satisfied (FIG. 9: step S503). And Ps ≦ M ≦ Pe
Is satisfied (step S503; YES), the band image #B is supplied to the printing unit 12 (step S504), and the process proceeds to step S505. On the other hand, P
If s ≦ M ≦ Pe is not satisfied (step S503;
In the case of NO), step S505 is directly executed.

【0070】ステップS505において、主制御部16
は、復元したバンドイメージ#Bが最終バンドに関する
ものであるか否かを判断し、バンドイメージ#Bが最終
バンドに関するものでなかった場合(ステップS50
5:NO)には、Bに“1”を加算(ステップS50
6)して、ステップS502に戻る。そして、バンドイ
メージ#Bが最終バンドに関するものであったとき(ス
テップS505;YES)に、差分圧縮ページ復元処理
を終了する。
In step S505, the main control unit 16
Determines whether the restored band image #B is related to the final band, and determines whether the band image #B is related to the final band (step S50).
5: NO), "1" is added to B (step S50).
6) Then, the process returns to step S502. Then, when the band image #B relates to the last band (step S505; YES), the differential compression page restoration processing ends.

【0071】図8に戻って復元処理の説明を続ける。ス
テップS408における差分圧縮ページ復元処理の完了
後、主制御部16は、ステップS406に戻り、M=P
sが成立しているか否かを判断する。そして、M≠Psで
あった場合(ステップS406;NO)には、再び、ス
テップS407、S408を実行する。すなわち、主制
御部16は、ステップS404を実行した回数分、ステ
ップS407、S408を実行する。そして、M=Ps
が成立したとき(ステップS406;YES)に、ステ
ップS409に進む。
Returning to FIG. 8, the description of the restoration processing will be continued. After the completion of the differential compression page restoration processing in step S408, the main control unit 16 returns to step S406, and M = P
It is determined whether or not s is satisfied. If M ≠ Ps (step S406; NO), steps S407 and S408 are executed again. That is, the main control unit 16 executes steps S407 and S408 for the number of times step S404 is executed. And M = Ps
Is satisfied (step S406; YES), the process proceeds to step S409.

【0072】ステップS409において、主制御部16
は、M<Peが成立しているか否かを判断する。そし
て、M<Peが成立していなかった場合(ステップS4
09;NO)には、復元処理を終了する。すなわち、P
s=Peであった場合、ステップS405またはステップ
S408の処理により第Psページの印刷が行われた
後、ステップS409で“NO”側への分岐が行われ、
復元処理が終了される。
In step S409, the main control unit 16
Determines whether M <Pe holds. If M <Pe is not satisfied (step S4)
09; NO), the restoration process ends. That is, P
If s = Pe, the Ps page is printed by the processing of step S405 or S408, and then a branch to “NO” is performed in step S409,
The restoration processing ends.

【0073】M<Peが成立していた場合(ステップS
409;YES)、主制御部16は、Mに“1”を加算
する(ステップS410)。そして、F(M)=0である
か否か、すなわち、ページ圧縮データ#Mが第1種ペー
ジ圧縮データであるか第2種ページ圧縮データであるか
を判断(ステップS411)し、第2種ページ圧縮デー
タであった場合(ステップS411;NO)には、その
ページ圧縮データ#Mに対して、ステップS408で行
われているものと同じ差分圧縮ページ復元処理を実行す
る(ステップS412)。そして、ステップS409に
戻る。
If M <Pe holds (step S
409; YES), the main control unit 16 adds “1” to M (step S410). Then, it is determined whether or not F (M) = 0, that is, whether the page compressed data #M is the first type page compressed data or the second type page compressed data (step S411). If it is the seed page compressed data (step S411; NO), the same differentially compressed page restoration processing as that performed in step S408 is executed on the page compressed data #M (step S412). Then, the process returns to step S409.

【0074】一方、F(M)=0が成立していた場合(ス
テップS411;YES)、すなわち、ページ圧縮デー
タ#Mが第1種ページ圧縮データであった場合、主制御
部16は、第M−1ページデータ(第M−1ページのバ
ンドイメージ#1〜Mmax)を破棄する(ステップS4
13)。その後、そのページ圧縮データ#Mに対してス
テップS405で行われているものと同じ通常圧縮ペー
ジ復元処理を実行(ステップS414)し、ステップS
409に戻る。
On the other hand, if F (M) = 0 holds (step S411; YES), that is, if the page compressed data #M is the first type page compressed data, the main control unit 16 The M-1 page data (band images # 1 to Mmax of the (M-1) th page) are discarded (step S4).
13). After that, the same normal compressed page decompression process as that performed in step S405 is performed on the page compressed data #M (step S414), and step S414 is performed.
Return to 409.

【0075】主制御部16は、復元処理時、このような
処理を繰り返す。そして、M<Peが成立しなくなった
とき(ステップS409;NO)に、復元処理を終了す
る。なお、流れ図中への記載は省略したが、ステップS
409において、M=Mmaxが成立していた場合(Peと
してMmax以上の値が設定されていた場合)にも、主制
御部16は、“NO”側への分岐を行う。また、ステッ
プS409で“NO”側への分岐を行った場合、主制御
部16は、指定されている印刷部数の印刷が完了したか
否かを判断し、完了していなかった場合には、ステップ
S402からの処理を再び実行する。一方、指定されて
いる印刷部数の印刷が完了していた場合には、破棄諾否
指示情報が、印刷後に圧縮データファイルを破棄するこ
とを指示するものであるか否かを判断する。そして、破
棄諾否指示情報が破棄を指示するものであった場合に
は、処理を行った圧縮データファイル31を破棄(消
去)した後に、復元処理を終了し、破棄諾否指示情報が
破棄を指示するものでなかった場合には、処理を行った
圧縮データファイル31をHDD15内に残した状態
で、復元処理を終了する。
The main control section 16 repeats such processing at the time of restoration processing. Then, when M <Pe is not satisfied (step S409; NO), the restoration processing is terminated. Although not shown in the flowchart, step S
At 409, also when M = Mmax is satisfied (when Pe is set to a value equal to or greater than Mmax), the main control unit 16 branches to the “NO” side. Further, when branching to the “NO” side is performed in step S409, the main control unit 16 determines whether or not printing of the designated number of print copies has been completed. The processing from step S402 is executed again. On the other hand, if the printing of the designated number of copies has been completed, it is determined whether or not the discard permission / non-permission instruction information indicates that the compressed data file is to be discarded after printing. If the discard permission / instruction information indicates discard, the compressed data file 31 that has been processed is discarded (erased), the restoration process ends, and the discard permission / instruction information indicates discard. If not, the decompression process ends with the processed compressed data file 31 remaining in the HDD 15.

【0076】以下、図7に示した、全5ページの印刷デ
ータから作成された圧縮データファイル31(ページ圧
縮データ#2、4、5が、第2種ページ圧縮データであ
り、ページ圧縮データ#1、3が第1種ページ圧縮デー
タである圧縮データファイル)に対して、全ページの復
元が指示された場合と、第4、5ページの復元が指示さ
れた場合とを例に、上記した復元処理の内容をさらに具
体的に説明する。
Hereinafter, a compressed data file 31 (page compressed data # 2, # 4, # 5) which is created from the print data of all five pages shown in FIG. As described above, the case where restoration of all pages is instructed and the case where restoration of fourth and fifth pages are instructed for compressed data files in which the first and third pages are the first-type page compressed data). The contents of the restoration processing will be described more specifically.

【0077】全ページの復元が指示された場合(Ps=
1、Pe=5)には、F(Ps)=0であるので、最初に実
行されるステップS403で“YES”側への分岐が行
われる。その結果、ページ圧縮データ#M(M=1)に
対する通常圧縮ページ復元処理が行われ、RAM14上
に、第1ページのバンドイメージ#1〜Bmaxが生成さ
れる。また、Ps≦M≦Peが成立しているため、ステッ
プS405において、生成したバンドイメージ#1〜B
maxの印刷部12への供給(第1ページの印刷)も行わ
れる。
When restoration of all pages is instructed (Ps =
(1, Pe = 5), since F (Ps) = 0, a branch to the “YES” side is performed in step S403 executed first. As a result, normal compressed page restoration processing is performed on the page compressed data #M (M = 1), and band images # 1 to Bmax of the first page are generated on the RAM 14. In addition, since Ps ≦ M ≦ Pe holds, in step S405, the generated band images # 1 to B
The supply of max to the printing unit 12 (printing of the first page) is also performed.

【0078】その後に実行されるステップS406で
は、M=Psが成立する。従って、ステップS407、
S408が実行されることなく、ステップS409以降
の処理が実行される。
In step S406 executed thereafter, M = Ps is established. Therefore, step S407,
The processing after step S409 is executed without executing S408.

【0079】この時点におけるM値(=Ps=1)に対
してはM<Peが成立するため、ステップS409では
“YES”側への分岐が行われる。そして、Mが“2”
に変更される。次のステップS411では、F(2)が
“1”であるため、“NO”側への分岐が行われ、ペー
ジ圧縮データ#2に対する差分圧縮ページ復元処理が実
行される。すなわち、差分圧縮データであるバンド圧縮
データD(2、1)〜D(2、Bmax)に応じて、RAM1
4上の第1ページに関するバンドイメージ#1〜Bmax
が書き換えられ、第2ページに関するバンドイメージ#
1〜Bmaxが生成される。また、Ps≦M≦Peが成立し
ているので、バンドイメージ#1〜Bmaxの印刷部12
への供給(第2ページの印刷)が行われる。
Since M <Pe holds for the M value (= Ps = 1) at this time, a branch to the “YES” side is performed in step S409. And M is "2"
Is changed to In the next step S411, since F (2) is "1", a branch to the "NO" side is performed, and a differentially compressed page restoration process for the page compressed data # 2 is executed. In other words, according to the band compression data D (2, 1) to D (2, Bmax) which is the difference compression data, the RAM 1
Band images # 1 to Bmax for the first page on page 4
Is rewritten and the band image for the second page #
1 to Bmax are generated. Also, since Ps ≦ M ≦ Pe is satisfied, the printing unit 12 of the band images # 1 to Bmax
(Printing of the second page) is performed.

【0080】この後、再び、ステップS409からの処
理が行われる。そして、M(=2)<Peであるので、
Mが“3”に変更され、ステップS411が実行され
る。ステップS411では、F(3)=0であるので“Y
ES”側への分岐が行われ、その結果、第2ページデー
タの破棄と、ページ圧縮データ#3に対する通常圧縮ペ
ージ復元処理が行われる。すなわち、第1種ページ圧縮
データであるページ圧縮データ#3の復元には、基準イ
メージが必要とされないので、第2ページデータが破棄
される。そして、通常圧縮データであるバンド圧縮デー
タD(3,1)〜D(3,Bmax)の復号により第3ページの
バンドイメージ#1〜Bmaxが生成される。また、Ps≦
M≦Peが成立するので、ステップS414では、それ
らのバンドイメージの印刷部12への供給も行なわれる
(第3ページが印刷される)。
Thereafter, the processing from step S409 is performed again. And since M (= 2) <Pe,
M is changed to “3”, and step S411 is executed. In step S411, since F (3) = 0, "Y
A branch to the ES "side is performed, and as a result, the second page data is discarded, and the normal compressed page decompression process is performed on the page compressed data # 3. The second page data is discarded because the reference image is not required for the restoration of 3. The band compressed data D (3,1) to D (3, Bmax), which are the normal compressed data, are decoded. Band images # 1 to Bmax of three pages are generated, and Ps ≦
Since M ≦ Pe holds, in step S414, these band images are also supplied to the printing unit 12 (the third page is printed).

【0081】この後、再び、ステップS409からの処
理が行われる。そして、M(=3)<Peであるので、
Mが“4”に変更される。そして、F(4)=1であるの
で、ページ圧縮データ#4に対する差分圧縮ページ復元
処理が実行される。すなわち、RAM14上の第3ペー
ジのバンドイメージ#1〜Bmaxが、第4ページのバン
ドイメージ#1〜Bmaxに書き換えられる。また、Ps≦
M≦Peが成立するので、生成されたバンドイメージ#
1〜Bmaxの印刷部12への供給(第4ページの印刷)
が行われる。
Thereafter, the processing from step S409 is performed again. And since M (= 3) <Pe,
M is changed to “4”. Then, since F (4) = 1, the difference compression page restoration process is performed on the page compression data # 4. That is, the band images # 1 to Bmax of the third page on the RAM 14 are rewritten to the band images # 1 to Bmax of the fourth page. Also, Ps ≦
Since M ≦ Pe holds, the generated band image #
Supply of 1 to Bmax to the printing unit 12 (4th page printing)
Is performed.

【0082】この後、4<Peであるので、Mが“5”
に変更され、再び、ステップS411が実行される。F
(5)=1であるため、ページ圧縮データ#5に対する差
分圧縮ページ復元処理が行われ、第5ページのバンドイ
メージ#1〜Bmaxの生成、印刷部への供給が行われ
る。そして、M<Peが成立しなくなるので、復元処理
が終了される。
Thereafter, since 4 <Pe, M is set to “5”.
And step S411 is executed again. F
Since (5) = 1, differential compression page restoration processing is performed on the page compression data # 5, and band images # 1 to Bmax of the fifth page are generated and supplied to the printing unit. Then, since M <Pe does not hold, the restoration process ends.

【0083】一方、第4、5ページの復元(印刷)が指
示された場合(Ps=4、Pe=5)、以下のような手順
で、第4、5ページが印刷される。
On the other hand, when restoration (printing) of the fourth and fifth pages is instructed (Ps = 4, Pe = 5), the fourth and fifth pages are printed in the following procedure.

【0084】F(4)=1であるので、最初に実行される
ステップS403で“NO”側への分岐が行われる。す
なわち、Mが“3”に変更された後、再び、ステップS
403が実行される。今回のステップS403では、F
(3)=0であるので、“YES”側への分岐が行われ、
第1種ページ圧縮データであるページ圧縮データ#3に
対する通常圧縮ページ復元処理により、RAM14上に
第3ページのバンドイメージ#1〜Bmaxが生成され
る。なお、Ps≦M≦Peが成立しないので、この通常圧
縮ページ復元処理は、バンドイメージ#1〜Bmaxの印
刷部12への供給が行われることなく、実行される。
Since F (4) = 1, branching to the "NO" side is performed in step S403 executed first. That is, after M is changed to “3”, step S is performed again.
Step 403 is executed. In this step S403, F
(3) = 0, the branch to the “YES” side is performed,
The band images # 1 to Bmax of the third page are generated on the RAM 14 by the normal compressed page decompression process for the page compressed data # 3 which is the first type page compressed data. Since Ps ≦ M ≦ Pe does not hold, the normal compressed page restoration processing is executed without supplying the band images # 1 to Bmax to the printing unit 12.

【0085】その後に実行されるステップS406で
は、M=Psが成立しないため、“NO”側への分岐が
行われる。すなわち、M値が“4”に変更され、圧縮デ
ータ#4に対する差分圧縮ページ復元処理によって、R
AM14上に存在している第3ページのバンドイメージ
#1〜Bmaxが、第4ページのバンドイメージ#1〜Bm
axに書き換えられる。また、Ps≦M≦Peが成立するの
で、バンドイメージ#1〜Bmaxの印刷部12への供給
(第4ページの印刷)が行われる。
In step S406 executed thereafter, since M = Ps is not established, a branch is made to the “NO” side. That is, the M value is changed to “4”, and the difference compressed page restoration
The band images # 1 to Bmax of the third page existing on the AM 14 are changed to the band images # 1 to Bm of the fourth page.
Rewritten as ax. In addition, since Ps ≦ M ≦ Pe is satisfied, the supply of the band images # 1 to Bmax to the printing unit 12 (the printing of the fourth page) is performed.

【0086】この時点におけるM値(=Ps=4)に対
しては、M<Peが成立する。従って、ステップS40
9では、“YES”側への分岐が行われ、Mの値が
“5”に変更される。F(5)は“1”であるので、差分
圧縮ページ復元処理が実行される。すなわち、差分圧縮
データであるバンド圧縮データD(5、1)〜D(5、Bm
ax)に応じて、それぞれ、RAM14上の第4ページに
関するバンドイメージ#1〜Bmaxが書き換えられ、第
5ページに関するバンドイメージ#1〜Bmaxが生成さ
れる。また、Ps≦M≦Peが成立するので、バンドイメ
ージ#1〜Bmaxの印刷部への供給(第5ページの印
刷)が行われる。そして、M<Peが成立しなくなるの
で、復元処理が終了される。
For the M value (= Ps = 4) at this time, M <Pe holds. Therefore, step S40
At 9, a branch is made to the "YES" side, and the value of M is changed to "5". Since F (5) is "1", the differential compression page restoration processing is executed. That is, the band compression data D (5, 1) to D (5, Bm
ax), the band images # 1 to Bmax for the fourth page on the RAM 14 are rewritten, and the band images # 1 to Bmax for the fifth page are generated. In addition, since Ps ≦ M ≦ Pe is satisfied, the supply of the band images # 1 to Bmax to the printing unit (the printing of the fifth page) is performed. Then, since M <Pe does not hold, the restoration process ends.

【0087】以上、説明したように、本実施形態に係る
印刷装置では、受信した印刷データから作成されたイメ
ージデータに対して、ランレングス符号化によって圧縮
データを作成する通常圧縮と、当該イメージデータの、
前ページの対応するイメージデータとの違いを表すデー
タを圧縮データとして作成する差分圧縮とが行なわれ
る。そして、全体としてのサイズがより小さくなる方
の、圧縮データが用いられて、印刷データの圧縮データ
ファイル31が作成される。
As described above, in the printing apparatus according to the present embodiment, normal compression for creating compressed data by run-length encoding on image data created from received print data, of,
Differential compression is performed in which data representing a difference from the corresponding image data of the previous page is created as compressed data. Then, the compressed data file 31 of the print data is created by using the compressed data having the smaller overall size.

【0088】処理対象とされた印刷データが表している
連続した2ページ(第P−1ページと第Pページ)が共
通した部分を多く有するものであった場合、第Pページ
の各バンドに対して作成される差分圧縮データの合計サ
イズは、それらのバンドに対して作成された通常圧縮デ
ータの合計サイズよりも小さくなる。従って、本印刷装
置によれば、連続した2ページが共通した部分を多く有
するドキュメントが印刷されることになる印刷データ
(例えば、表計算ソフトで作成されたドキュメントや、
請求書等の定型のドキュメントの印刷データ)を、従来
装置よりも高い圧縮率で圧縮保存できることになる。
If two consecutive pages (the P-1 page and the P page) represented by the print data to be processed have many common portions, each band of the P page is The total size of the differentially compressed data created in this way is smaller than the total size of the normal compressed data created for those bands. Therefore, according to this printing apparatus, a print data (for example, a document created by spreadsheet software,
Print data of a fixed document such as an invoice) can be compressed and stored at a higher compression ratio than the conventional device.

【0089】<第2実施形態>図11に、本発明の第2
実施形態に係る印刷装置によって作成される圧縮データ
ファイル32の構成を示す。図11(a)に示したよう
に、圧縮データファイル32は、圧縮データファイル3
1と同様に、管理データと、それぞれ、第1ないし第M
maxページデータ(第1ないし第Mmaxページを構成する
イメージデータ)の圧縮データであるページ圧縮データ
#1〜Mmaxとからなる。
<Second Embodiment> FIG. 11 shows a second embodiment of the present invention.
2 shows a configuration of a compressed data file 32 created by the printing apparatus according to the embodiment. As shown in FIG. 11A, the compressed data file 32 is a compressed data file 3
1, the management data and the first to M-th data, respectively.
It is composed of page compressed data # 1 to Mmax which are compressed data of max page data (image data forming the first to Mth pages).

【0090】図11(b)に示してあるように、圧縮デ
ータファイル32の管理データは、圧縮データファイル
31の管理データと全く同じ構成のデータとなってい
る。また、図示は省略したが、圧縮データファイル32
に使用されている第1種ページ圧縮データも、圧縮デー
タファイル31で用いられている第1種ページ圧縮デー
タと同じ構成のデータとなっている。
As shown in FIG. 11B, the management data of the compressed data file 32 has exactly the same configuration as the management data of the compressed data file 31. Although not shown, the compressed data file 32
The first type page compressed data used in the compressed data file 31 has the same configuration as the first type page compressed data used in the compressed data file 31.

【0091】第2種ページ圧縮データとしても、図11
(c)に示したように、第1実施形態の圧縮データファ
イル31と同様にBmax個の差分圧縮データからなるデ
ータが用いられている。ただし、第2種ページ圧縮デー
タであるページ圧縮データ#Pの差分圧縮データ#B
(B=1〜Bmax)は、第Pページの第Bバンドのイメ
ージデータを、第1ページのイメージデータと比較する
ことよって作成されたデータとなっている。
As the type 2 page compression data, FIG.
As shown in (c), data composed of Bmax pieces of differentially compressed data is used as in the compressed data file 31 of the first embodiment. However, difference compressed data #B of page compressed data #P which is the second type page compressed data
(B = 1 to Bmax) is data created by comparing the image data of the B-th band of the P-th page with the image data of the first page.

【0092】以下、第2実施形態に係る印刷装置で実行
される圧縮処理、復元処理の詳細を説明する。なお、本
印刷装置で実行される圧縮処理、復元処理は、第1実施
形態に係る印刷装置で実行される圧縮処理、復元処理と
類似したものとなっている。このため、以下では、内容
が異なる部分を中心に、本印刷装置で実行される圧縮処
理、復元処理の説明を行うことにする。まず、第2実施
形態に係る印刷装置の圧縮処理時における動作を説明す
る。
Hereinafter, details of compression processing and decompression processing executed by the printing apparatus according to the second embodiment will be described. Note that the compression processing and decompression processing executed by the printing apparatus are similar to the compression processing and decompression processing executed by the printing apparatus according to the first embodiment. For this reason, a description will be given below of the compression processing and the decompression processing executed by the printing apparatus, focusing on portions having different contents. First, the operation of the printing apparatus according to the second embodiment during compression processing will be described.

【0093】本印刷装置では、圧縮処理(図4参照)時
に、図12に示した手順のページ圧縮データ作成処理が
実行される。すなわち、第M(≧2)ページに関するペ
ージ圧縮データを作成する際、第2実施形態に係る印刷
装置内の主制御部16は、まず、変数Bを“1”に初期
化する(ステップS601)。その後、ステップS60
2に進み、受信した印刷データに基づき、バンドイメー
ジ#BをRAM14上に作成する処理を行う。そして、
そのバンドイメージ#Bを処理対象(生成イメージ)と
した差分圧縮データ作成処理(ステップS603)を実
行する。このステップで実行される差分圧縮データ作成
処理は、図5を用いて既に説明したものと全く同じ処理
である。ただし、このステップS603では、第1ペー
ジのバンドイメージ#Mが基準イメージとして用いられ
て、差分圧縮データ#Bが作成される。
In the printing apparatus, during the compression processing (see FIG. 4), the page compressed data creation processing of the procedure shown in FIG. 12 is executed. That is, when creating the page compression data for the M-th (≧ 2) page, the main control unit 16 in the printing apparatus according to the second embodiment first initializes the variable B to “1” (step S601). . Then, step S60
Then, the process proceeds to step S2, where the band image #B is created on the RAM 14 based on the received print data. And
A differential compressed data creation process (step S603) is performed with the band image #B as a processing target (generation image). The differential compressed data creation processing executed in this step is exactly the same processing as that already described with reference to FIG. However, in this step S603, the differential compressed data #B is created using the band image #M of the first page as the reference image.

【0094】ステップS603において差分圧縮データ
#Bを作成した後、主制御部16は、バンドイメージ#
Bの符号化により通常圧縮データ#Bを作成する(ステ
ップS604)。そして、RAM14上の存在している
生成イメージを破棄する(ステップS605)。すなわ
ち、基準イメージ(第1ページのバンドイメージ#B)
ではなく、生成イメージ(第Mページのバンドイメージ
#B)の記憶に使用されていた記憶領域を開放し、他の
データの記憶に使用できるようにする。その後、主制御
部16は、ステップS606に進み、BとBmaxとが一
致しているか否かを判定することによって、最終バンド
(第Bmaxバンド)に関する処理が完了したか否かを判
断する。
After creating the differential compressed data #B in step S603, the main control unit 16
The normal compressed data #B is created by encoding B (step S604). Then, the generated image existing in the RAM 14 is discarded (step S605). That is, the reference image (band image #B of the first page)
Instead, the storage area used for storing the generated image (the band image #B of the Mth page) is released so that it can be used for storing other data. Thereafter, the main controller 16 proceeds to step S606, and determines whether or not B and Bmax match, thereby determining whether or not the processing for the final band (Bmax band) has been completed.

【0095】最終バンドに関する処理が完了していなか
った場合(ステップS606;NO)、主制御部16
は、Bに“1”を加算する(ステップS607)。その
後、ステップS602に戻り、次バンドに関する差分圧
縮データと通常圧縮データとを作成する処理を行う。
If the processing for the last band has not been completed (step S606; NO), the main control unit 16
Adds "1" to B (step S607). After that, the process returns to step S602 to perform processing for creating differential compressed data and normal compressed data for the next band.

【0096】ページ圧縮データ作成処理時、主制御部1
6は、このような処理を繰り返す。そして、B=Bmax
が成立したとき(ステップS606;YES)、すなわ
ち、差分圧縮データ#1〜Bmax及び通常圧縮データ#
1〜Bmaxの作成が完了したときに、ステップS602
〜S607のループを抜け出して、ステップS608に
進む。そして、通常圧縮データ#1〜Bmaxのサイズの
合計SRLEと、差分圧縮データ#1〜Bmaxのサイズ
の合計Sとを算出する。
At the time of page compression data creation processing, the main control unit 1
No. 6 repeats such processing. And B = Bmax
Holds (step S606; YES), that is, the difference compressed data # 1 to Bmax and the normal compressed data #
When the creation of 1 to Bmax is completed, step S602
The process exits the loop of steps S607 to S607 and proceeds to step S608. Then, it calculates a normal sum S RLE size of the compressed data # 1~Bmax, a total S D size of compressed difference data # 1~Bmax.

【0097】その後、主制御部16は、算出した両値の
間にSRLE<Sが成立しているか否かを判断(ステ
ップS609)し、SRLE<Sが成立していた場合
(ステップS609;YES)には、通常圧縮データ#
1〜Bmaxを、それぞれ、ページ圧縮データ#Mの、対
応するバンドについてのバンド圧縮データ(D(M,1)
〜D(M,Bmax))として記憶する(ステップS61
0)。また、種別フラグ#Mを記憶するための変数であ
るF(M)に“0”を設定する(ステップS611)。
そして、差分圧縮データ#1〜Bmax等の不要となった
データを破棄(図示せず)し、ページ圧縮データ作成処
理を終了する。
Thereafter, the main controller 16 determines whether or not S RLE < SD is satisfied between the calculated values (step S609). If S RLE < SD is satisfied (step S609) In step S609; YES), the normal compressed data #
1 to Bmax are respectively set to the band compression data (D (M, 1)) for the corresponding band of the page compression data #M.
DD (M, Bmax)) (step S61).
0). Further, “0” is set to F (M) which is a variable for storing the type flag #M (step S611).
Then, unnecessary data such as the differential compressed data # 1 to Bmax and the like are discarded (not shown), and the page compressed data creation processing ends.

【0098】一方、SRLE<Sが成立していなかっ
た場合(ステップS609;NO)、主制御部16は、
差分圧縮データ#1〜Bmaxを、それぞれ、ページ圧縮
データ#Mの、対応するバンドについてのバンド圧縮デ
ータ(D(M,1)〜D(M,Bmax))として記憶する(ス
テップS612)。そして、F(M)に“1”を設定
(ステップS613)し、不要となったデータ(通常圧
縮データ#1〜Bmax等)を破棄(図示せず)して、ペ
ージ圧縮データ作成処理を終了する。
On the other hand, if S RLE < SD is not satisfied (step S609; NO), the main control unit 16
The difference compression data # 1 to Bmax are stored as band compression data (D (M, 1) to D (M, Bmax)) for the corresponding band of the page compression data #M, respectively (step S612). Then, F (M) is set to "1" (step S613), unnecessary data (normal compressed data # 1 to Bmax, etc.) is discarded (not shown), and the page compressed data creation processing ends. I do.

【0099】次に、図13及び図14を用いて、本印刷
装置における圧縮データファイル32の復元手順を説明
する。なお、図13は、本印刷装置において圧縮データ
ファイル32の復元が指示された際(図2参照)に実行
される復元処理の流れ図であり、図14は、復元処理時
に実行される差分圧縮ページ復元処理の流れ図である。
Next, the procedure for restoring the compressed data file 32 in the printing apparatus will be described with reference to FIGS. FIG. 13 is a flowchart of a decompression process executed when decompression of the compressed data file 32 is instructed in the printing apparatus (see FIG. 2). FIG. It is a flowchart of a restoration process.

【0100】図13に示したように、復元処理開始時、
主制御部16は、まず、復元(印刷)が指示された圧縮
データファイル32である処理対象圧縮データファイル
の管理データ、すなわち、圧縮データ数Mmax、種別フ
ラグ#2〜Mmax、先頭位置データ#1〜Mmaxを取得す
る(ステップS701)。なお、主制御部16は、この
ステップにおいて、種別フラグ#2〜Mmaxの値を、そ
れぞれ、F(2)〜F(Mmax)として記憶する。
As shown in FIG. 13, when the restoration process starts,
The main control unit 16 first manages the management data of the processing target compressed data file which is the compressed data file 32 instructed to be restored (printed), that is, the number of compressed data Mmax, the type flags # 2 to Mmax, and the head position data # 1. MMmax is obtained (step S701). In this step, the main control unit 16 stores the values of the type flags # 2 to Mmax as F (2) to F (Mmax), respectively.

【0101】次に、主制御部16は、MにPsを設定
(ステップS702)し、Psが“1”であるか否かを
判断する(ステップS704)。Psが“1”でなかっ
た場合(ステップS704;NO)、主制御部16は、
先頭位置データ#1によってその先頭位置が示されてい
るページ圧縮データ#1を復元することによって、第1
ページに関するバンドイメージ#1〜MmaxをRAM1
4上に生成する(ステップS705)。そして、ステッ
プS708に進む。
Next, the main controller 16 sets Ps in M (step S702), and determines whether Ps is "1" (step S704). If Ps is not “1” (step S704; NO), the main control unit 16
By decompressing the page compressed data # 1 whose head position is indicated by the head position data # 1, the first
RAM1 for band images # 1 to Mmax related to page
4 (step S705). Then, the process proceeds to step S708.

【0102】一方、Ps=1であった場合(ステップS
704;YES)、主制御部16は、ページ圧縮データ
#1に対して通常圧縮ページ復元処理(ステップS70
6)を実行する。このステップで実行される通常圧縮ペ
ージ復元処理は、ステップS405で実行されている処
理と同じものである。すなわち、主制御部16は、ステ
ップS706において、先頭位置データ#M(=Ps=
1)によってその先頭位置が示されているページ圧縮デ
ータ#Mの各バンド圧縮データを読み出し、復号する。
その際、Ps≦M≦Peが成立しているため、復号によっ
て得られたバンドイメージ#1〜Bmaxを印刷部12に
供給する処理を併せて行う。
On the other hand, if Ps = 1 (step S
704; YES), the main control unit 16 performs the normal compression page restoration process on the page compression data # 1 (step S70).
Execute 6). The normal compressed page restoration processing executed in this step is the same as the processing executed in step S405. That is, the main control unit 16 determines in step S706 that the head position data #M (= Ps =
Each band compressed data of the page compressed data #M whose head position is indicated by 1) is read and decoded.
At this time, since Ps ≦ M ≦ Pe is satisfied, processing for supplying the band images # 1 to Bmax obtained by decoding to the printing unit 12 is also performed.

【0103】通常圧縮ページ復元処理(ステップS70
6)の実行後、主制御部16は、Mに“1”を加算(ス
テップS707)して、ステップS708に進む。すな
わち、主制御部16は、第1ページからの復元(印刷)
が指示された場合(Ps=1の場合)には、第1ページ
の印刷を行った後、Mに“2”を設定してから、ステッ
プS708に進む。また、第1ページ以外の第Psペー
ジからの復元(印刷)が指示された場合には、M値をP
sに維持したまま、第1ページに関するBmax個のバンド
イメージをRAM14上に用意して、ステップS708
に進む。
Normal compressed page restoration processing (step S70)
After the execution of 6), the main control unit 16 adds “1” to M (step S707), and proceeds to step S708. That is, the main control unit 16 restores (prints) the first page.
Is instructed (when Ps = 1), the first page is printed, M is set to "2", and the process proceeds to step S708. When restoration (printing) from the Ps page other than the first page is instructed, the M value is set to P
s, the Bmax band images for the first page are prepared on the RAM 14 and the process proceeds to step S708.
Proceed to.

【0104】ステップS708において、主制御部16
は、M≦Peが成立しているか否かを判断する。M≦Pe
が成立していた場合(ステップS708;YES)に
は、さらに、F(M)=1であるか否か(ページ圧縮デー
タ#Mが第2種ページ圧縮データであるか否か)を判断
する(ステップS709)。そして、F(M)=1でなか
った場合(ステップS709;NO)には、ステップS
706で実行されているものと同じ通常圧縮データ復元
処理(ステップS710)を実行する。なお、ステップ
S709〜S711は、Ps≦M≦Peが成立するMに対
して行なわれるステップであるので、ステップ710に
おける通常圧縮データ復元処理時には、常に、復号によ
って得られたバンドイメージ#1〜Bmaxを印刷部12
に供給する処理が行われる。
In step S708, the main control unit 16
Determines whether M ≦ Pe holds. M ≦ Pe
Is satisfied (step S708; YES), it is further determined whether or not F (M) = 1 (whether or not the page compressed data #M is the second type page compressed data). (Step S709). If F (M) is not equal to 1 (Step S709; NO), Step S709
The same normal compressed data decompression process as that executed in 706 (step S710) is executed. Steps S709 to S711 are steps performed for M that satisfies Ps ≦ M ≦ Pe. Therefore, in the normal compression data decompression processing in step 710, band images # 1 to Bmax obtained by decoding are always used. Print unit 12
Is performed.

【0105】一方、F(M)=1であった場合(ステップ
S709;YES)、すなわち、ページ圧縮データ#M
が第2種ページ圧縮データであった場合、主制御部16
は、差分圧縮ページ復元処理(ステップS711)を開
始する。
On the other hand, if F (M) = 1 (step S709; YES), that is, the page compressed data #M
Is the second type page compressed data, the main control unit 16
Starts the differential compressed page restoration process (step S711).

【0106】図14に示したように、差分圧縮ページ復
元処理時、主制御部16は、まず、Bに“1”を設定す
る(ステップS801)。その後、基準イメージとして
使用する第1ページのバンドイメージ#BのコピーをR
AM14上に作成(ステップS802)し、差分圧縮デ
ータ復元処理(ステップS803)を実行する。このス
テップで実行される差分圧縮データ復元処理は、第1実
施形態に係る印刷装置で実行される差分圧縮データ復元
処理(図10にその流れ図を示したもの)と同じもので
ある。
As shown in FIG. 14, at the time of the differential compressed page restoration processing, the main control unit 16 first sets B to “1” (step S801). Then, a copy of band image #B of the first page used as a reference image is copied to R
The data is created on the AM 14 (step S802), and the differential compression data restoration process (step S803) is executed. The differential compressed data decompression processing executed in this step is the same as the differential compressed data decompression processing (the flowchart shown in FIG. 10) executed by the printing apparatus according to the first embodiment.

【0107】差分圧縮データ復元処理の完了後、主制御
部16は、バンドイメージ#Bを印刷部12へ供給する
(ステップS805)。その後、処理したバンド圧縮デ
ータが最終のバンド圧縮データであるか否かを判断する
(ステップS806)。当該バンド圧縮データが最終バ
ンドに関するものでなかった場合(ステップS806:
NO)、主制御部16は、Bに“1”を加算(ステップ
S807)して、ステップS802に戻り、次のバンド
圧縮データに対する処理を行う。そして、主制御部16
は、処理したバンド圧縮データが最終のバンド圧縮デー
タであった場合(ステップS806;YES)に、差分
圧縮ページ復元処理を終了する。
After the completion of the differential compressed data restoration processing, the main control unit 16 supplies the band image #B to the printing unit 12 (Step S805). Thereafter, it is determined whether or not the processed band compressed data is the final band compressed data (step S806). When the band compression data is not related to the last band (step S806:
NO), the main control unit 16 adds "1" to B (step S807), returns to step S802, and performs processing for the next band compressed data. Then, the main control unit 16
When the processed band compressed data is the final band compressed data (step S806; YES), the differential compression page restoration process ends.

【0108】図13に戻って復元処理の説明を続ける。
差分圧縮ページ復元処理の完了後、主制御部16は、ス
テップS712に進み、第Mページデータ(第Mページ
に関するバンドイメージ#1〜Bmax)を破棄する。す
なわち、圧縮データファイル31内の各第2種ページ圧
縮データは、その復元に前ページのイメージデータを必
要とするものであったが、本印刷装置によって作成され
る圧縮データファイル32内の各第2種ページ圧縮デー
タは、その復元に前ページのイメージデータを必要とし
ない(第1ページのイメージデータを必要とする)もの
となっている。このため、第Mページデータを破棄して
いるのである。
Returning to FIG. 13, the description of the restoration processing will be continued.
After the completion of the differential compression page restoration processing, the main control unit 16 proceeds to step S712, and discards the Mth page data (band images # 1 to Bmax related to the Mth page). That is, each type 2 page compressed data in the compressed data file 31 requires the image data of the previous page for the decompression, but each type 2 page compressed data in the compressed data file 32 created by the printing apparatus is used. The two-page compressed data does not require the image data of the previous page for its decompression (requires the image data of the first page). Therefore, the M-th page data is discarded.

【0109】第Mページデータの破棄後、主制御部16
は、Mに“1”を加算(ステップS713)し、ステッ
プS708からの処理を再び実行する。そして、M≦P
eが成立しなくなったとき(ステップS708;NO)
に、復元処理を終了する。なお、このステップS708
において、M=Mmaxが成立していた場合(PeとしてM
max以上の値が設定されていた場合)にも、主制御部1
6は、“NO”側への分岐を行う。また、ステップS7
08で“NO”側への分岐を行った場合、主制御部16
は、指定されている印刷部数の印刷が完了したか否かを
判断し、完了していなかった場合には、ステップS70
2からの処理を再び実行する。そして、指定されている
印刷部数の印刷が完了した際には、破棄諾否指示情報
が、印刷後に圧縮データファイルを破棄することを指示
するものであるか否かを判断し、破棄を指示するもので
あった場合には、処理を行った圧縮データファイルを破
棄(消去)した後、復元処理を終了する。
After discarding the M-th page data, the main control unit 16
Adds “1” to M (step S713), and executes the processing from step S708 again. And M ≦ P
When e is not satisfied (step S708; NO)
Then, the restoration processing ends. This step S708
, When M = Mmax holds (Pe is M
main control unit 1).
6 branches to the "NO" side. Step S7
When the branch to the “NO” side is made at 08, the main control unit 16
Determines whether printing of the specified number of copies has been completed, and if not completed, determines in step S70
The processing from step 2 is executed again. When printing of the specified number of copies is completed, it is determined whether the discard approval / disapproval instruction information indicates that the compressed data file is to be discarded after printing, and the discard instruction is issued. If, the compressed data file that has been processed is discarded (erased), and then the decompression process is terminated.

【0110】以下、ページ圧縮データ#2、4、5が、
第2種ページ圧縮データであり、ページ圧縮データ#3
が第1種ページ圧縮データである圧縮データファイル3
2に対して、全ページの復元が指示された場合と、第
4、5ページの復元が指示された場合とを例に、上記し
た復元処理の内容をさらに具体的に説明する。
Hereafter, the page compressed data # 2, 4, 5
It is the second kind page compressed data, and the page compressed data # 3
Is a compressed data file 3 which is the first kind page compressed data
The contents of the above-described restoration processing will be described more specifically by taking as an example a case where restoration of all pages is instructed and a case where restoration of fourth and fifth pages is instructed.

【0111】全ページの復元が指示された場合(Ps=
1、Pe=5)には、Ps=1であるので、ステップS7
04で“YES”側への分岐が行われる。その結果、ペ
ージ圧縮データ#M(M=1)に対する通常圧縮ページ
復元処理が行われる。すなわち、RAM14上に、第1
ページのバンドイメージ#1〜Bmaxが生成され、それ
らの印刷部12への供給(第1ページの印刷)が行われ
る。
When restoration of all pages is instructed (Ps =
1, Pe = 5), since Ps = 1, step S7
At 04, a branch is made to the "YES" side. As a result, normal compressed page restoration processing is performed on the page compressed data #M (M = 1). That is, on the RAM 14, the first
The band images # 1 to Bmax of the page are generated, and are supplied to the printing unit 12 (the first page is printed).

【0112】その後、Mが“2”に変更され、ステップ
S709以降の処理が実行される。
After that, M is changed to “2”, and the processing after step S709 is executed.

【0113】この時点におけるM値(=2)に対しては
M≦Peが成立するため、ステップS709では“YE
S”側への分岐が行われる。そして、F(2)が“1”で
ある(ページ圧縮データ#2が第2種ページ圧縮データ
である)ため、“YES”側への分岐が行われ、ページ
圧縮データ#2に対する差分圧縮ページ復元処理が実行
される。すなわち、RAM14上の第1ページに関する
バンドイメージ#1〜Bmaxのコピーが生成され、それ
らがバンド圧縮データD(2,1)〜D(2,Bmax)に応じ
て書き換えられて、第2ページに関するバンドイメージ
#1〜Bmaxが生成、印刷部12へ供給される。そし
て、第2ページに関するバンドイメージ#1〜Bmaxが
破棄された後、Mが“3”に変更され、再び、ステップ
S708からの処理が行われる。
Since M ≦ Pe holds for the M value (= 2) at this time, “YE” is determined in step S709.
A branch is made to the “S” side, and since F (2) is “1” (page compressed data # 2 is the second-type page compressed data), a branch is made to the “YES” side. , A differential compressed page restoration process is performed on the page compressed data # 2, that is, copies of the band images # 1 to Bmax relating to the first page on the RAM 14 are generated, and these are copied to the band compressed data D (2, 1) to Rewritten in accordance with D (2, Bmax), band images # 1 to Bmax for the second page are generated and supplied to the printing unit 12. Then, band images # 1 to Bmax for the second page are discarded. Thereafter, M is changed to “3”, and the processing from step S708 is performed again.

【0114】M(=3)≦Peであるので、ステップS
708では“YES”側への分岐が行われる。そして、
ステップS709では、F(3)=0であるので“NO”
側への分岐が行われ、通常圧縮ページ復元処理の実行に
より、第3ページに関するバンドイメージ#1〜Bmax
がRAM14上に生成される。また、生成されたバンド
イメージ#1〜Bmaxが印刷部12へ供給される。そし
て、第3ページに関するバンドイメージ#1〜Bmaxが
破棄された後、Mが“4”に変更され、再び、ステップ
S708からの処理が行われる。
Since M (= 3) ≦ Pe, step S
At 708, a branch is made to the "YES" side. And
In step S709, "NO" because F (3) = 0.
Side, and the normal compressed page decompression process is executed, so that band images # 1 to Bmax for the third page are obtained.
Is generated on the RAM 14. Further, the generated band images # 1 to Bmax are supplied to the printing unit 12. Then, after the band images # 1 to Bmax relating to the third page are discarded, M is changed to “4”, and the processing from step S708 is performed again.

【0115】M=4に対するステップS708〜S71
2では、M=2に対するステップS708〜S712と
全く同様の処理が、第2種ページ圧縮データであるペー
ジ圧縮データ#4に対して行われる。また、その後に行
われるM=5に対するステップS708〜S712で
も、M=2に対するステップS708〜S712と全く
同様の処理が、第2種ページ圧縮データであるページ圧
縮データ#5に対して行われる。そして、第5ページデ
ータの破棄後に実行されるステップS713においてM
が“6”に変更されるため、続くステップS709にお
いて“NO”側への分岐が行われ、復元処理が終了され
る。
Steps S708 to S71 for M = 4
In 2, the same processing as that in steps S708 to S712 for M = 2 is performed on page compressed data # 4, which is the second type page compressed data. Also, in steps S708 to S712 for M = 5 that are performed thereafter, exactly the same processing as in steps S708 to S712 for M = 2 is performed on page compressed data # 5, which is the second type page compressed data. Then, in step S713 executed after discarding the fifth page data, M
Is changed to "6", so that a branch is made to the "NO" side in the following step S709, and the restoration processing is terminated.

【0116】一方、第4、5ページの復元(印刷)が指
示された場合(Ps=4、Pe=5)、以下のような手順
で、第4、5ページが印刷される。
On the other hand, when restoration (printing) of the fourth and fifth pages is instructed (Ps = 4, Pe = 5), the fourth and fifth pages are printed in the following procedure.

【0117】この場合、Ps≠1であるので、ステップ
S704で“NO”側への分岐が行われる。すなわち、
RAM14上に、第1ページに関するバンドイメージ#
1〜Mmaxが生成され、M=Psの状態でステップS70
8からの処理が開始される。
In this case, since Ps ≠ 1, branch to the “NO” side is performed in step S704. That is,
A band image for the first page on the RAM 14
1 to Mmax are generated, and step S70 is performed in a state where M = Ps.
Processing from step 8 is started.

【0118】M(=4=Ps)≦Peが成立するため、ス
テップS708では“YES”側への分岐が行われる。
そして、F(4)が“1”である(ページ圧縮データ#2
が第2種ページ圧縮データである)ため、ステップS7
09では“YES”側への分岐が行われ、ページ圧縮デ
ータ#4に対する差分圧縮ページ復元処理が実行され
る。すなわち、RAM14上の第1ページに関するバン
ドイメージ#1〜Bmaxのコピーが生成される。そし
て、それらがバンド圧縮データD(4,1)〜D(4,Bma
x)に応じて書き換えられて、第4ページに関するバンド
イメージ#1〜Bmaxが生成され、印刷部12へ供給さ
れる。その後、第4ページに関するバンドイメージ#1
〜Bmaxが破棄された後、Mが“5”に変更され、再
び、ステップS708からの処理が行われる。
Since M (= 4 = Ps) ≦ Pe is satisfied, a branch is made to the “YES” side in step S708.
Then, F (4) is “1” (page compressed data # 2).
Is the second-type page compressed data), so that step S7
At 09, a branch to the “YES” side is performed, and a differentially compressed page restoration process is performed on the page compressed data # 4. That is, copies of the band images # 1 to Bmax for the first page on the RAM 14 are generated. Then, they are the band compressed data D (4,1) to D (4, Bma
Rewritten according to (x), band images # 1 to Bmax for the fourth page are generated and supplied to the printing unit 12. Then, band image # 1 on the fourth page
After discarding Bmax, M is changed to “5”, and the processing from step S708 is performed again.

【0119】M=5に対するステップS708〜S71
2でも、M=4に対するステップS708〜S712と
全く同様の処理が、第2種ページ圧縮データであるペー
ジ圧縮データ#5に対して行われる。そして、第5ペー
ジデータの破棄後に実行されるステップS713におい
てMが“6”に変更されるため、続くステップS709
において“NO”側への分岐が行われ、復元処理が終了
される。
Steps S708 to S71 for M = 5
Even in the case of 2, the same processing as steps S708 to S712 for M = 4 is performed on page compressed data # 5, which is the second type page compressed data. Then, since M is changed to “6” in step S713 executed after the fifth page data is discarded, the subsequent step S709
The branch to the "NO" side is performed at the step S, and the restoration processing is terminated.

【0120】以上、説明したように、本実施形態に係る
印刷装置では、受信した印刷データと同じ印刷結果が得
られる圧縮データファイル32であって、その印刷デー
タに応じた印刷に必要とされる1ページ分のバンドのイ
メージデータに関する圧縮データとして、当該イメージ
データの、第1ページの対応するバンドのイメージデー
タとの違いを表す差分圧縮データが用いられた圧縮デー
タファイル32が作成される。
As described above, in the printing apparatus according to the present embodiment, the compressed data file 32 which can obtain the same print result as the received print data is required for printing according to the print data. As compressed data relating to the image data of the band for one page, a compressed data file 32 is created using differential compressed data representing a difference between the image data and the image data of the corresponding band of the first page.

【0121】処理対象とされた印刷データが表している
第1ページと第Pページとが共通した部分を多く有する
ものであった場合、第Pページの各バンドに対して作成
される差分圧縮データの合計サイズは、それらのバンド
に対して作成された通常圧縮データの合計サイズよりも
小さくなる。従って、本印刷装置によれば、各ページが
共通した部分を多く有するドキュメントが印刷されるこ
とになる印刷データ(例えば、表計算ソフトで作成され
たドキュメントや、請求書等の定型のドキュメントの印
刷データ)を、従来よりも高い圧縮率で圧縮保存できる
ことになる。
If the first page and the P-th page represented by the print data to be processed have many common portions, the differential compressed data created for each band of the P-th page Is smaller than the total size of the normal compressed data created for those bands. Therefore, according to the printing apparatus, a document having many common portions in each page is printed (for example, printing of a document created by spreadsheet software or a standard document such as an invoice). ) Can be compressed and stored at a higher compression ratio than before.

【0122】また、本印刷装置が作成する圧縮データフ
ァイル32の第2種ページ圧縮データは、第1ページの
イメージデータがあれば復元できるものなっている。換
言すれば、本印刷装置は、途中ページからの復元が、第
1実施形態に係る印刷装置よりも高速に行える形態で印
刷データを圧縮保存できる装置となっている。
The second type page compressed data of the compressed data file 32 created by the printing apparatus can be restored if there is image data of the first page. In other words, the printing apparatus is an apparatus capable of compressing and saving print data in such a manner that restoration from an intermediate page can be performed at a higher speed than the printing apparatus according to the first embodiment.

【0123】<第3実施形態>図15に、本発明の第3
実施形態に係る印刷装置によって作成される圧縮データ
ファイルの構成を示す。図15(a)に示したように、
第3実施形態に係る印刷装置によって作成される圧縮デ
ータファイル33は、圧縮データファイル31、32と
同様に、管理データと、それぞれ、第1ないし第Mmax
ページを構成するイメージデータの圧縮データであるペ
ージ圧縮データ#1〜Mmaxとからなる。
<Third Embodiment> FIG. 15 shows a third embodiment of the present invention.
2 shows a configuration of a compressed data file created by the printing apparatus according to the embodiment. As shown in FIG.
Similarly to the compressed data files 31 and 32, the compressed data file 33 created by the printing apparatus according to the third embodiment includes management data and first to Mmax
It is composed of page compressed data # 1 to Mmax which are compressed data of image data constituting a page.

【0124】図15(b)に示してあるように、圧縮デ
ータファイル33の管理データは、圧縮データファイル
31、32の管理データと全く同じ構成のデータとなっ
ている。また、図示は省略したが、圧縮データファイル
33に使用されている第1種ページ圧縮データも、圧縮
データファイル31、32で用いられている第1種ペー
ジ圧縮データと同じ構成のデータとなっている。
As shown in FIG. 15B, the management data of the compressed data file 33 has exactly the same configuration as the management data of the compressed data files 31 and 32. Although not shown, the type 1 page compressed data used in the compressed data file 33 has the same configuration as the type 1 page compressed data used in the compressed data files 31 and 32. I have.

【0125】そして、圧縮データファイル33では、図
15(c)に模式的に示したように、第2種ページ圧縮
データとして、バンドフラグ#1〜Bmaxと、Bmax個の
バンド圧縮データとからなるデータであって、対応する
バンドフラグが“1”となっているバンド圧縮データが
差分圧縮データであり、対応するバンドフラグが“0”
となっているバンド圧縮データが通常圧縮データである
データが用いられている。なお、圧縮データファイル3
3(第2種ページ圧縮データ)に用いられている各差分
圧縮データは、圧縮データファイル31で用いられてい
る差分圧縮データと同様に、対象ページのバンドのイメ
ージデータを、前ページの対応バンドのイメージデータ
と比較することよって作成される、図3(e)に示した
ものと同じ構成のデータとなっている。
As shown schematically in FIG. 15C, the compressed data file 33 includes band flags # 1 to Bmax and Bmax pieces of band compressed data as second-type page compressed data. The band compressed data whose data is the corresponding band flag being “1” is differential compressed data, and the corresponding band flag is “0”.
The data whose band compression data is normally compressed data is used. The compressed data file 3
Each of the differential compressed data used for the third type (second type page compressed data), similar to the differential compressed data used for the compressed data file 31, converts the image data of the band of the target page into the corresponding band of the previous page. 3 (e), which is created by comparing with the image data of FIG.

【0126】以下、第3実施形態に係る印刷装置で実行
される圧縮処理、復元処理の詳細を説明する。本印刷装
置で実行される圧縮処理、復元処理も、第1実施形態に
係る印刷装置で実行される圧縮処理、復元処理と類似し
たものとなっている。このため、以下では、内容が異な
る部分の説明のみを行うことにする。
Hereinafter, details of the compression processing and the decompression processing executed by the printing apparatus according to the third embodiment will be described. The compression processing and decompression processing executed by the printing apparatus are similar to the compression processing and decompression processing executed by the printing apparatus according to the first embodiment. For this reason, hereinafter, only the portions having different contents will be described.

【0127】本印刷装置では、圧縮処理(図4参照)時
に、図16に示した手順のページ圧縮データ作成処理が
実行される。
In the printing apparatus, during the compression process (see FIG. 4), the page compressed data creation process of the procedure shown in FIG. 16 is executed.

【0128】すなわち、ページ圧縮データ#M(M≧
2)の作成時、主制御部16は、まず、種別フラグ#M
を記憶するための変数F(M)に“0”を設定し、処理し
たバンド数をカウントするための変数Bに“1”を設定
する(ステップS901)。その後、ステップS902
に進み、受信した印刷データに基づき、第Mページのバ
ンドイメージ#BをRAM14上に作成する処理を行
う。そして、差分圧縮データ作成処理(ステップS90
3)を実行する。このステップで実行される差分圧縮デ
ータ作成処理は、図6を用いて既に説明したものと全く
同じものである。
That is, page compressed data #M (M ≧ M
When creating 2), the main control unit 16 first sets the type flag #M
Is set to "0" for a variable F (M) for storing the number of processed bands, and "1" is set for a variable B for counting the number of processed bands (step S901). After that, step S902
Then, a process of creating a band image #B of the Mth page on the RAM 14 based on the received print data is performed. Then, the differential compressed data creation processing (step S90)
Execute 3). The differential compressed data creation process executed in this step is exactly the same as that already described with reference to FIG.

【0129】差分圧縮データ作成処理の終了後、主制御
部16は、バンドイメージ#Bの符号化により通常圧縮
データ#Bを作成する(ステップS904)。そして、
RAM14上の存在している基準イメージ(第M−1ペ
ージのバンドイメージ#B)を破棄する(ステップS9
05)。
After the completion of the differential compressed data creation processing, the main control unit 16 creates the normal compressed data #B by encoding the band image #B (step S904). And
The reference image (band image #B of the (M-1) th page) existing in the RAM 14 is discarded (step S9).
05).

【0130】その後、主制御部16は、ステップS90
3で作成した差分圧縮データ#BのサイズSと、ステ
ップS904で作成した通常圧縮データ#BのサイズS
RLEとを比較する(ステップS906)。SRLE
が成立していた場合(ステップS906;YE
S)、主制御部16は、通常圧縮データ#Bを、ページ
圧縮データ#Mのバンド圧縮データD(M,B)として記
憶する(ステップS907)。そして、バンドフラグ#
Bを記憶するための変数であるBF(B)に“0”を設
定する(ステップS908)。その後、主制御部16
は、ステップS911に進み、処理したバンドが最終バ
ンドであるか否かを判断する。
Thereafter, the main control unit 16 proceeds to step S90.
And size S D of the differential compressed data #B created in 3, the size S of the regular compressed data #B created in step S904
Compare with RLE (step S906). S RLE
If SD has been established (step S906; YE
S), the main controller 16 stores the normal compressed data #B as the band compressed data D (M, B) of the page compressed data #M (step S907). And the band flag #
“0” is set to BF (B) which is a variable for storing B (step S908). After that, the main control unit 16
Proceeds to step S911, and determines whether or not the processed band is the final band.

【0131】一方、SRLE≦Sが成立していなかっ
た場合(ステップS906;NO)、主制御部16は、
差分圧縮データ#Bを、ページ圧縮データ#Mのバンド
圧縮データD(M,B)として記憶する(ステップS90
9)。そして、BF(M)に“1”を設定するととも
に、種別フラグ#M用の変数F(M)に“1”を設定する
(ステップS910)。そして、ステップS911に進
み、処理したバンドが最終バンドであるか否かを判断す
る。
On the other hand, if S RLESD is not satisfied (step S906; NO), the main control unit 16
The difference compression data #B is stored as the band compression data D (M, B) of the page compression data #M (step S90).
9). Then, “1” is set to BF (M), and “1” is set to the variable F (M) for the type flag #M (step S910). The process advances to step S911 to determine whether the processed band is the final band.

【0132】処理したバンドが最終バンドでなかった場
合(ステップS911;NO)、主制御部16は、Bに
“1”を加算(ステップS912)した後、再度、ステ
ップS902〜S910の処理を行う。そして、主制御
部16は、第Mページの全てのバンドに対する処理を終
えたとき(ステップS911;YES)に、ページ圧縮
データ作成処理を終了する。
If the processed band is not the final band (step S911; NO), the main control unit 16 adds "1" to B (step S912), and then performs the processing of steps S902 to S910 again. . Then, when completing the processing for all the bands of the M-th page (step S911; YES), the main control unit 16 ends the page compressed data creation processing.

【0133】このようなページ圧縮データ作成処理を、
印刷データが表している2ページ目以降の各ページに対
して繰り返した後、本印刷装置内の主制御部16は、ス
テップS109相当のステップにおいて、それまでに得
られている情報を基に、図15に示した構成の圧縮デー
タファイル33を作成する。具体的には、F(M)=0で
あるページ圧縮データ#Mとして、D(M,1)〜D(M,
Bmax)からなるデータを用い、F(M)=1であるページ
圧縮データ#Mとして、バンドフラグ#1〜Bmaxと、
D(M,1)〜D(M,Bmax)とからなるデータを用いて、
圧縮データファイル33を作成する。
[0133] Such page compressed data creation processing is performed as follows.
After repeating the process for each of the second and subsequent pages represented by the print data, the main control unit 16 in the printing apparatus performs a step corresponding to step S109 on the basis of the information obtained so far. A compressed data file 33 having the configuration shown in FIG. 15 is created. Specifically, D (M, 1) to D (M, M) are set as page compressed data #M where F (M) = 0.
Bmax) and band flags # 1 to Bmax as page compressed data #M where F (M) = 1.
Using data consisting of D (M, 1) to D (M, Bmax),
A compressed data file 33 is created.

【0134】すなわち、第1、第2実施形態に係る印刷
装置では、第2ページ以降の各ページに対して、ページ
単位で、圧縮データファイル31、32に含めるバンド
圧縮データのタイプが選択されていたのに対し、本印刷
装置では、図17に模式的に示したように、第2ページ
以降の各ページに対して、バンド毎に、圧縮データファ
イル33に含めるバンド圧縮データのタイプが選択され
る。そして、差分圧縮データが選択されたバンドがある
ページに対しては、バンドフラグ、及び、差分圧縮デー
タと通常圧縮データ(或いは差分圧縮データのみ)を含
む第2種ページ圧縮データ41が用いられ、差分圧縮デ
ータが選択されたバンドが1つもないページに対して
は、通常圧縮データだけで構成された第1種ページ圧縮
データ40が用いられた圧縮データファイル33が作成
される。
That is, in the printing apparatuses according to the first and second embodiments, the type of band compression data to be included in the compression data files 31 and 32 is selected for each page from the second page onward. On the other hand, in this printing apparatus, as schematically shown in FIG. 17, the type of band compression data to be included in the compression data file 33 is selected for each band for each of the second and subsequent pages. You. For a page having a band for which differential compressed data has been selected, a band flag and second-type page compressed data 41 including differential compressed data and normal compressed data (or only differential compressed data) are used, For a page in which no band has been selected for which differential compressed data has been selected, a compressed data file 33 is created using first-type page compressed data 40 composed of only normal compressed data.

【0135】次に、本印刷装置における復元処理を説明
する。本印刷装置では、復元処理(図8参照)時に、図
18に示した手順の差分圧縮ページ復元処理が実行され
る。
Next, the restoration processing in the printing apparatus will be described. In the printing apparatus, during the restoration process (see FIG. 8), the difference compressed page restoration process of the procedure shown in FIG. 18 is executed.

【0136】すなわち、ページ圧縮データ#Mに対する
差分圧縮ページ復元処理時、第3実施形態に係る印刷装
置内の主制御部16は、まず、ページ圧縮データ#Mの
先頭に存在するバンドフラグ#1〜Bmax(以下、BF
(1)〜BF(Bmax)と表記する)を読み出す(ステップ
S1000)。そして、変数Bに“1”を設定(ステッ
プS1001)し、BF(B)=1が成立するか否か、す
なわち、ページ圧縮データ#Mのバンド圧縮データD
(M,B)が差分圧縮データであるか通常圧縮データであ
るかを判断する(ステップS1002)。
That is, at the time of the differential compression page restoration processing for the page compression data #M, the main control unit 16 in the printing apparatus according to the third embodiment firstly sets the band flag # 1 existing at the head of the page compression data #M. ~ Bmax (hereinafter BF
(1) to BF (Bmax)) (step S1000). Then, "1" is set to the variable B (step S1001), and whether or not BF (B) = 1 holds, that is, the band compression data D of the page compression data #M
It is determined whether (M, B) is differential compressed data or normal compressed data (step S1002).

【0137】バンド圧縮データD(M,B)が差分圧縮デ
ータであった場合(ステップS1002;YES)、主
制御部16は、第M−1ベージのバンドイメージ#B
(このイメージは、RAM14上に既に存在している)
を基準イメージとしたD(M,B)に対する差分圧縮デー
タ復元処理(ステップS1005)を実行する。このス
テップで実行される差分圧縮データ復元処理は、図10
にその流れ図を示した処理と全く同じものである。すな
わち、ステップS1005の処理により、RAM14上
の第M−1ベージのバンドイメージ#Bが、第Mページ
のバンドイメージ#Bに書き換えられる。
If the band compressed data D (M, B) is differential compressed data (step S1002; YES), the main control unit 16 sets the (M-1) th band image #B
(This image already exists on the RAM 14)
Then, a differential compressed data decompression process (step S1005) is performed on D (M, B) with reference to. The differential compressed data decompression processing executed in this step is the same as that in FIG.
Is exactly the same as the process shown in the flowchart in FIG. That is, by the processing in step S1005, the band image #B of the (M-1) th page on the RAM 14 is rewritten to the band image #B of the Mth page.

【0138】一方、BF(B)=1が成立していなかった
場合(ステップS1002;NO)、主制御部16は、
第M−1ページのバンドイメージ#Bを破棄する(ステ
ップS1003)。そして、通常圧縮データであるバン
ド圧縮データD(M,B)の復号により、第Mページのバ
ンドイメージ#BをRAM14上に作成する(ステップ
S1004)。
On the other hand, if BF (B) = 1 is not satisfied (step S1002; NO), the main control unit 16
The band image #B on the M-1 page is discarded (step S1003). Then, the band image #B of the Mth page is created on the RAM 14 by decoding the band compression data D (M, B) which is the normal compression data (step S1004).

【0139】ステップS1004或いはステップS10
05において、第Mページのバンドイメージ#Bを作成
した後、主制御部16は、Ps≦M≦Peが成立している
か否かを判断する(ステップS1006)。そして、P
s≦M≦Peが成立している場合(ステップS1006;
YES)には、そのバンドイメージ#Bを印刷部12に
供給(ステップS1007)し、バンドイメージ#Bが
最終バンドに関するものであるか否かを判断する(ステ
ップS1008)。一方、Ps≦M≦Peが成立していな
い場合(ステップS1006;NO)には、直接、ステ
ップS1008を実行する。
Step S1004 or step S10
After creating the band image #B of the Mth page in 05, the main control unit 16 determines whether or not Ps ≦ M ≦ Pe is satisfied (step S1006). And P
When s ≦ M ≦ Pe is satisfied (Step S1006;
If YES, the band image #B is supplied to the printing unit 12 (step S1007), and it is determined whether or not the band image #B relates to the last band (step S1008). On the other hand, when Ps ≦ M ≦ Pe is not satisfied (step S1006; NO), step S1008 is directly executed.

【0140】そして、バンドイメージ#Bが最終バンド
に関するものでなかった場合(ステップS1008:N
O)には、Bに“1”を加算(ステップS1009)し
て、ステップS1002に戻り、最終バンドに関するバ
ンドイメージの処理が完了したとき(ステップS100
8;YES)に、差分圧縮ページ復元処理を終了する。
If band image #B does not relate to the final band (step S1008: N
To O), “1” is added to B (step S1009), and the process returns to step S1002 to complete the band image processing for the final band (step S100).
8; YES), the differential compression page restoration process ends.

【0141】以上、説明したように、本実施形態に係る
印刷装置では、受信した印刷データと同じ印刷結果が得
られる圧縮データファイル33であって、その印刷デー
タに応じた印刷に必要とされる幾つかのバンドのイメー
ジデータに関する圧縮データとして、当該イメージデー
タの、前ページの対応するバンドのイメージデータとの
違いを表す差分圧縮データを含む圧縮データファイル3
3が作成される。
As described above, in the printing apparatus according to the present embodiment, the compressed data file 33 that can obtain the same print result as the received print data is required for printing according to the print data. Compressed data file 3 including, as compressed data relating to image data of some bands, differential compressed data representing a difference between the image data and the image data of the corresponding band on the previous page.
3 is created.

【0142】処理対象とされた印刷データが表している
連続した2ページ(第P−1ページと第Pページ)が共
通した部分を多く有するものであった場合、第Pページ
の各バンドに対して作成される差分圧縮データの合計サ
イズは、それらのバンドに対して作成された通常圧縮デ
ータの合計サイズよりも小さくなる。また、差分圧縮デ
ータの合計サイズが、通常圧縮データの合計サイズより
小さくならない2ページであっても、バンド単位で差分
圧縮データと通常圧縮データのサイズの比較を行えば、
通常、差分圧縮データのサイズの方が小さくなっている
バンドが存在する。すなわち、本実施形態に係る印刷装
置は、第1、第2実施形態に係る印刷装置よりも、バン
ド圧縮データとして差分圧縮データが用いられることが
多い装置となっている。
When two consecutive pages (the P-1 page and the P page) represented by the print data to be processed have many common portions, each band of the P page is The total size of the differentially compressed data created in this way is smaller than the total size of the normal compressed data created for those bands. Further, even if the total size of the differentially compressed data is two pages that does not become smaller than the total size of the normal compressed data, by comparing the sizes of the differentially compressed data and the normal compressed data in band units,
Usually, there is a band in which the size of the differential compressed data is smaller. That is, the printing apparatus according to the present embodiment is an apparatus that often uses differential compression data as band compression data, compared to the printing apparatuses according to the first and second embodiments.

【0143】従って、本印刷装置を用いれば、連続した
2ページが共通した部分を多く有するドキュメントが印
刷されることになる印刷データ(例えば、表計算ソフト
で作成されたドキュメントや、請求書等の定型のドキュ
メントの印刷データ)を、従来装置及び第1、第2実施
形態に係る印刷装置よりも高い圧縮率で圧縮保存できる
ことになる。
Therefore, if the printing apparatus is used, a print data (for example, a document created by spreadsheet software, a bill, etc. Print data of a fixed document) can be compressed and stored at a higher compression ratio than the conventional apparatus and the printing apparatuses according to the first and second embodiments.

【0144】<第4実施形態>まず、第4実施形態に係
る印刷装置によって作成される圧縮データファイルの構
成を説明する。
<Fourth Embodiment> First, the structure of a compressed data file created by a printing apparatus according to a fourth embodiment will be described.

【0145】図19(a)に示したように、第4実施形
態に係る印刷装置によって作成される圧縮データファイ
ル34は、管理データと、ページ圧縮データ#1〜Mma
xとからなる。管理データは、図19(b)に示したよ
うに、圧縮データ数Mmax、種別フラグ#2〜Mmax、先
頭位置データ#1〜Mmax、生成ページ番号#1〜Mmax
とを含む。管理データを構成している圧縮データ数Mma
x、種別フラグ#2〜Mmax、先頭位置データ#1〜Mma
xは、圧縮データファイル31〜33の管理データで用
いられている圧縮データ数Mmax、種別フラグ#2〜Mm
ax、先頭位置データ#1〜Mmaxと同じものである。す
なわち、圧縮データファイル34内のページ圧縮データ
#1と、対応する種別フラグが“0”であるページ圧縮
データは、第1種ページ圧縮データとなっており、対応
する種別フラグが“1”であるページ圧縮データは、第
2種ページ圧縮データとなっている。
As shown in FIG. 19A, the compressed data file 34 created by the printing apparatus according to the fourth embodiment includes management data and page compressed data # 1 to Mma.
x. As shown in FIG. 19B, the management data includes the number of compressed data Mmax, type flags # 2 to Mmax, head position data # 1 to Mmax, and generated page numbers # 1 to Mmax.
And Number of compressed data Mma constituting management data
x, type flags # 2 to Mmax, head position data # 1 to Mma
x is the number of compressed data Mmax used in the management data of the compressed data files 31 to 33, the type flag # 2 to Mm
ax, which is the same as the head position data # 1 to Mmax. That is, the page compressed data # 1 in the compressed data file 34 and the page compressed data whose corresponding type flag is “0” are the first type page compressed data, and the corresponding type flag is “1”. Certain page compressed data is second-type page compressed data.

【0146】生成ページ番号#1〜Mmax(以下、P
(1)〜P(Mmax)とも表記する)は、それぞれ、ページ
圧縮データ#1〜Mmaxの復元によって得られるページ
のページ番号を示すデータとなっている。また、生成ペ
ージ番号#1は、各第2種ページ圧縮データの作成時に
基準として用いられているページのページ番号を示すデ
ータともなっている。すなわち、圧縮データファイル3
4内のページ圧縮データ#1〜Mmaxは、それぞれ、第
P(1)〜第P(Mmax)ページのイメージデータの圧縮デ
ータとなっており、ページ圧縮データ#2〜Mmaxに含
まれる各第2種ページ圧縮データは、図19(c)に示し
たように、第P(1)ページの対応バンドのイメージデー
タを基準として作成されたBmax個の差分圧縮データで
構成されたデータとなっている。
Generated page numbers # 1 to Mmax (hereinafter P
(1) to P (Mmax)) are data indicating the page numbers of the pages obtained by restoring the page compressed data # 1 to Mmax, respectively. The generated page number # 1 is also data indicating the page number of a page used as a reference when each type 2 page compressed data is created. That is, the compressed data file 3
4 are the compressed data of the image data of the P (1) th to P (Mmax) pages, respectively, and each of the second compressed data # 2 to Mmax included in the page compressed data # 2 to Mmax. The seed page compressed data is data composed of Bmax pieces of differential compressed data created on the basis of the image data of the corresponding band of the P (1) page, as shown in FIG. 19C. .

【0147】以下、本印刷装置における圧縮データファ
イル34の作成手順を詳細に説明する。
Hereinafter, the procedure for creating the compressed data file 34 in the printing apparatus will be described in detail.

【0148】図20に、本実施形態に係る印刷装置にお
いて実行される圧縮処理の流れ図を示す。なお、既に図
2を用いて説明したように、この圧縮処理は、受信され
た印刷データに、データ名称とパスワードとを含む保存
指定情報が含まれるときに実行される。
FIG. 20 is a flowchart of a compression process performed in the printing apparatus according to the present embodiment. Note that, as already described with reference to FIG. 2, this compression processing is executed when the received print data includes storage designation information including a data name and a password.

【0149】図示したように、圧縮処理時、主制御部1
6は、まず、処理したページ数をカウントするための変
数Mと、処理したバンド数をカウントするための変数B
に、それぞれ、“1”を設定する(ステップS110
1)。
As shown in the figure, during the compression processing, the main controller 1
6 is a variable M for counting the number of processed pages and a variable B for counting the number of processed bands.
Are set to "1" (step S110).
1).

【0150】その後、主制御部16は、受信した印刷デ
ータに基づき、第Mページの第Bバンドのイメージデー
タであるバンドイメージ#Bを作成する(ステップS1
102)。次に、主制御部16は、作成したバンドイメ
ージ#Bを符号化(本実施形態では、ランレングス符号
化)することにより、第Mページの通常圧縮データD
RLE(M,B)を作成する(ステップS1103)。その
後、B=Bmaxが成立するか否かを判断することによっ
て、最終バンドに関する通常圧縮データの作成が完了し
たか否かを判断(ステップS1104)し、その作成が
完了していなかった場合(ステップS1104;NO)
には、Bに“1”を加算する(ステップS1105)。
そして、ステップS1102に戻り、次のバンドに関す
る通常圧縮データの作成を開始する。
Thereafter, the main controller 16 creates a band image #B which is image data of the B-th band of the M-th page based on the received print data (step S1).
102). Next, the main control unit 16 encodes the created band image #B (in this embodiment, run-length encoding), thereby generating the normal compressed data D of the Mth page.
RLE (M, B) is created (step S1103). Thereafter, by determining whether or not B = Bmax is satisfied, it is determined whether or not the creation of the normal compressed data for the last band has been completed (step S1104). If the creation has not been completed (step S1104) S1104; NO)
, Add “1” to B (step S1105).
Then, the process returns to step S1102 to start creating normal compressed data for the next band.

【0151】このような処理を、1ページ分の印刷デー
タに対して行うことによって、第Mページのバンドイメ
ージ#1〜Bmax並びに通常圧縮データDRLE(M,1)〜
RLE(M,Bmax)の作成が完了した際(ステップS11
04;YES)、主制御部16は、作成した通常圧縮デ
ータDRLE(M,1)〜DRLE(M,Bmax)のサイズの合計S
RLE(M)を算出する。そして、ステップS1107に進
み、次ページに関する印刷データが受信されているか否
かを判断し、次ページに関する印刷データが受信されて
いた場合(ステップS1107;YES)には、Mに
“1”を加算し、Bに“1”を設定(ステップS110
8)した後、ステップS1102に戻る。
By performing such processing for one page of print data, the band images # 1 to Bmax of the Mth page and the normal compressed data D RLE (M, 1) to
When creation of D RLE (M, Bmax) is completed (step S11
04; YES), the main control unit 16 determines the total size S of the created normal compressed data D RLE (M, 1) to D RLE (M, Bmax).
Calculate RLE (M). The process advances to step S1107 to determine whether print data for the next page has been received. If print data for the next page has been received (step S1107; YES), “1” is added to M. Then, "1" is set to B (step S110).
8) After that, the process returns to step S1102.

【0152】ホスト装置から供給された全ての印刷デー
タに対する処理が完了した際(ステップS1107;N
O)、主制御部16は、ステップS1102〜S110
8のループを抜け出す。そして、差分圧縮データ群作成
処理(ステップS1109)、バンド圧縮データ選択処
理(ステップS1110)を順次実行する。
When the processing for all print data supplied from the host device is completed (step S1107; N
O), the main control unit 16 performs steps S1102 to S110.
Exit loop 8 Then, a differential compressed data group creation process (step S1109) and a band compressed data selection process (step S1110) are sequentially executed.

【0153】図21、図22に、それぞれ、差分圧縮デ
ータ群作成処理、差分圧縮データ群作成処理時に実行さ
れる差分圧縮データ作成処理の流れ図を示す。
FIGS. 21 and 22 show flowcharts of the differential compressed data group creation processing and the differential compressed data creation processing executed at the time of the differential compressed data group creation processing, respectively.

【0154】図21に示したように、差分圧縮データ群
作成処理開始時、主制御部16は、差分圧縮データ作成
処理のオペランドである変数X、Yに、それぞれ、
“1”、“2”を設定(ステップS1201)し、やは
り差分圧縮データ作成処理のオペランドである変数Bに
“1”を設定する(ステップS1202)。そして、差
分圧縮データ作成処理(ステップS1203)を開始す
る。
As shown in FIG. 21, at the start of the differential compressed data group creation processing, the main control unit 16 assigns the variables X and Y, which are the operands of the differential compressed data creation processing, to
“1” and “2” are set (step S1201), and “1” is set to a variable B which is also an operand of the differential compressed data creation processing (step S1202). Then, the difference compressed data creation processing (step S1203) is started.

【0155】図22に示したように、差分圧縮データ作
成処理時、主制御部16は、まず、単位データ番号を記
憶するための変数kに“1”を、要素データ数をカウン
トするための変数iに“0”を設定する(ステップS1
301)。次いで、第Xページのバンドイメージ#Bの
単位データ#kと第Yページのバンドイメージ#Bの単
位データ#kとを比較する(ステップS1302)。
As shown in FIG. 22, at the time of differential compressed data creation processing, the main control unit 16 first sets “1” as a variable k for storing a unit data number and sets a variable k for counting the number of element data. "0" is set to the variable i (step S1).
301). Next, the unit data #k of the band image #B of the X page and the unit data #k of the band image #B of the Y page are compared (step S1302).

【0156】第Xページのバンドイメージ#Bの単位デ
ータ#kと第Yページのバンドイメージ#Bの単位デー
タ#kとが一致していなかった場合(ステップS130
3;NO)、主制御部16は、iに“1”を加算する
(ステップS1304)。そして、k及び第Xページの
単位データ#kを、差分圧縮データD(Y,X,B)(第Y
ページのバンドイメージ#Bを基準イメージとした、第
Xページのバンドイメージ#Bが復元される差分圧縮デ
ータ)の要素データ#i(位置データ及び置換データ)
として記憶する(ステップS1305)。また、k及び
第Yページの単位データ#kを、差分圧縮データD(X,
Y,B)の要素データ#iとして記憶する(ステップS1
306)。そして、kに“1”を加算する(ステップS
1307)。
When the unit data #k of the band image #B of the X page and the unit data #k of the band image #B of the Y page do not match (step S130)
3; NO), the main control unit 16 adds “1” to i (step S1304). Then, the k-th and unit data #k of the X-th page are converted into differential compressed data D (Y, X, B) (Y-th
Element data #i (positional data and replacement data) of differential compressed data in which band image #B of page X is restored using band image #B of page as a reference image
(Step S1305). Further, the unit data #k of the k-th page and the Y-th page are converted into differential compressed data D (X,
(Y, B) is stored as element data #i (step S1).
306). Then, “1” is added to k (step S
1307).

【0157】一方、第Xページのバンドイメージ#Bの
単位データ#kと第Yページのバンドイメージ#Bの単
位データ#kとが一致していた場合(ステップS130
3;YES)、主制御部16は、ステップS1304〜
S1306を実行することなく、ステップS1307を
実行する。
On the other hand, when unit data #k of band image #B on page X and unit data #k of band image #B on page Y match (step S130)
3; YES), the main control unit 16 performs steps S1304 to S1304.
Step S1307 is executed without executing S1306.

【0158】ステップS1307においてkの値を変更
した後、主制御部16は、そのkの値が単位データ数k
max以下であるか否かを判断する(ステップS130
8)。そして、kの値がkmax以下であった場合(ステ
ップS1308;YES)には、ステップS1302に
戻り、次の単位データに対する処理を行う。
After changing the value of k in step S1307, the main control unit 16 determines that the value of k is
It is determined whether it is less than or equal to max (step S130)
8). If the value of k is equal to or less than kmax (step S1308; YES), the process returns to step S1302 to perform the processing for the next unit data.

【0159】主制御部16は、このような処理を各単位
データに対して繰り返し、kの値がkmax以下でなくな
ったとき(ステップS1308;NO)には、その時点
におけるiの値を、差分圧縮データD(X,Y,B)、D
(Y,X,B)の要素データ数Nmaxとして記憶する(ステ
ップS1309)。そして、差分圧縮データ作成処理を
終了する。
The main control unit 16 repeats such a process for each unit data. When the value of k is not less than kmax (step S1308; NO), the main control unit 16 determines the value of i at that time by the difference. Compressed data D (X, Y, B), D
It is stored as the number Nmax of element data of (Y, X, B) (step S1309). Then, the differential compressed data creation processing ends.

【0160】差分圧縮データ作成処理(図21:ステッ
プS1203)により、差分圧縮データD(X,Y,B)、
D(Y,X,B)を作成した後、主制御部16は、B=Bma
xが成立しているか否かを判断する(ステップS120
4)。B=Bmaxでなかった場合(ステップS120
4;NO)、主制御部16は、Bに“1”を加算する
(ステップS1205)。そして、ステップS1203
に戻り、その更新したB値に対する差分圧縮データ作成
処理を実行する。
The difference compressed data D (X, Y, B) and the difference compressed data creation processing (FIG. 21: step S1203)
After creating D (Y, X, B), the main control unit 16 determines that B = Bma
It is determined whether or not x is satisfied (step S120)
4). B is not Bmax (step S120)
4; NO), the main controller 16 adds “1” to B (step S1205). Then, step S1203
And executes the differential compressed data creation process for the updated B value.

【0161】ステップS1203〜S1204を繰り返
すことによって、差分圧縮データD(X,Y,1)〜D(X,
Y,Bmax)、D(Y,X,1)〜D(Y,X,Bmax)の作成が完
了したとき(ステップS1204;YES)、主制御部
16は、D(X,Y,1)〜D(X,Y,Bmax)のサイズの合
計SXYと、D(Y,X,1)〜D(Y,X,Bmax)のサイズの
合計SYXを算出する(ステップS1206)。その後、
Yに“1”を加算(ステップS1207)し、YがMma
xを超えているか否かを判断する(ステップS120
8)。そして、YがMmaxを超えていなかった場合(ス
テップS1208;NO)には、ステップS1202に
戻り、その更新したY値に対して上述した一連の処理を
実行する。
By repeating steps S1203 to S1204, differentially compressed data D (X, Y, 1) to D (X, X
When the creation of (Y, Bmax) and D (Y, X, 1) to D (Y, X, Bmax) is completed (step S1204; YES), the main control unit 16 sets the D (X, Y, 1) to D (X, Y, Bmax) calculates the sum S XY size, D (Y, X, 1 ) ~D (Y, X, Bmax) of the total S YX size (step S1206). afterwards,
"1" is added to Y (step S1207), and Y becomes Mma
x is determined (step S120).
8). If Y has not exceeded Mmax (step S1208; NO), the process returns to step S1202, and the above-described series of processing is performed on the updated Y value.

【0162】一方、YがMmaxを超えていた場合(ステ
ップS1208;YES)、主制御部16は、Xに
“1”を加算し、YにX+1(Xは加算後のX)を設定
する(ステップS1209)。そして、X<Mmaxが成
立するか否かを判断(ステップS1210)し、X<M
maxが成立していた場合(ステップS1210;YE
S)には、ステップS1203からの処理を再度実行す
る。
On the other hand, if Y exceeds Mmax (step S1208; YES), the main control section 16 adds "1" to X and sets X + 1 (X is X after addition) to Y (X is added). Step S1209). Then, it is determined whether or not X <Mmax is satisfied (step S1210), and X <Mmax is determined.
If max is satisfied (step S1210; YE)
In S), the processing from step S1203 is executed again.

【0163】主制御部16は、このような処理を繰り返
し、X<Mmaxが成立しなくなったとき(ステップS1
210;NO)に、差分圧縮データ群作成処理を終了す
る。そして、バンド圧縮データ選択処理を開始する。
The main control unit 16 repeats such processing, and when X <Mmax is not satisfied (step S1).
(210; NO), the differential compression data group creation process ends. Then, the band compression data selection processing is started.

【0164】図23に、バンド圧縮データ選択処理の流
れ図を示す。図示したように、バンド圧縮データ選択処
理開始時、主制御部16は、1〜Mmaxの各iに対する
ΣSijを算出する(ステップS1401)。すなわち、
ステップS1206で算出されているMmax×(Mmax−
1)個のSijを基に、第1ページに関するバンドイメー
ジを基準イメージとして用いて作成された第2〜第Nma
xページについての第2種ページ圧縮データの合計サイ
ズΣS1j、第2ページに関するバンドイメージを基準
イメージとして用いて作成された第1、第3〜第Nmax
ページについての第2種ページ圧縮データの合計サイズ
ΣS2j等を算出する。
FIG. 23 shows a flowchart of the band compression data selection processing. As shown, at the start of the band compression data selection process, the main control unit 16 calculates ΣS ij for each i of 1 to Mmax (step S1401). That is,
Mmax × (Mmax−) calculated in step S1206.
Based on 1) the S ij, second to Nma created using a band image for the first page as a reference image
The total size of the second-type page compressed data for the x-page ΣS 1j , and the first, third to Nmax created using the band image for the second page as the reference image
Page and calculates the total size [sigma] s 2j like of the two page compression data for.

【0165】そして、ΣSijを最小とするi値を特定
(ステップS1402)し、生成ページ番号#1を記憶
するための変数P(1)に、特定したi値(以下、Zと表
記する)を設定するとともに、生成ページ番号#2〜M
maxを記憶するための変数P(2)〜P(Mmax)に、それぞ
れ、Zを除く1〜Mmaxを設定する(ステップS140
3)。その後、ステップS1103で作成されている第
P(1)ページの通常圧縮データ#1〜Bmax(D
RLE(Z,1)〜DRLE(Z,Bmax))を、それぞれ、
ページ圧縮データ#1のバンド圧縮データD(P(1),
1)〜D(P(1),Bmax)として記憶する(ステップS1
404)。
Then, the i value that minimizes ΣS ij is specified (step S1402), and the specified i value (hereinafter, referred to as Z) is set as a variable P (1) for storing the generated page number # 1. And generation page numbers # 2 to M
The variables P (2) to P (Mmax) for storing max are set to 1 to Mmax excluding Z, respectively (step S140).
3). Then, the normal compressed data # 1 to Bmax (D
RLE (Z, 1) to D RLE (Z, Bmax))
Band compressed data D (P (1), of page compressed data # 1
1) to D (P (1), Bmax) (step S1).
404).

【0166】その後、主制御部16は、ページ圧縮デー
タ#2〜Mmaxを決定するための処理(ステップS14
05〜S1411)を開始し、まず、Mに“2”を設定
する(ステップS1405)。次いで、M≦Mmaxが成
立するか否かを判断(ステップS1406)し、M≦M
maxが成立していた場合(ステップS1406;YE
S)には、jにP(M)値を設定する(ステップS140
7)。そして、各バンド圧縮データを通常圧縮データと
したページ圧縮データ(DRLE(j,1)〜D
RLE(j,Bmax)からなるデータ)のサイズSRLE(j)
と、各バンド圧縮データを差分圧縮データとしたページ
圧縮データ(D(Z,j,1)〜D(Z,j,Bmax)からなる
データ)のサイズSzjとの間に、SRLE(j)≧Szj
が成立するか否かを判断する(ステップS1408)。
Thereafter, the main control section 16 performs a process for determining the page compressed data # 2 to Mmax (step S14).
05 to S1411), and first, M is set to “2” (step S1405). Next, it is determined whether M ≦ Mmax is satisfied (step S1406), and M ≦ M is determined.
If max is satisfied (step S1406; YE)
In S), a P (M) value is set to j (step S140).
7). Then, the page compressed data (D RLE (j, 1) to D
Size of data RLE (j, Bmax)) S RLE (j)
And S RLE (j) between the size S zj of page compressed data (data composed of D (Z, j, 1) to D (Z, j, Bmax)) using each band compressed data as differential compressed data. ) ≧ S zj
It is determined whether or not is established (step S1408).

【0167】SRLE(j)≧Szjが成立していなかった
場合(ステップS1408;NO)、主制御部16は、
第jページの通常圧縮データ#1〜Bmaxを、ページ圧
縮データ#Mのバンド圧縮データD(M,1)〜D(M,Bm
ax)として記憶するとともに、F(M)に“0”を設定す
る(ステップS1409)。一方、SRLE(j)≧Szj
が成立していた場合(ステップS1408;YES)、
主制御部16は、差分圧縮データD(Z,j,1)〜D(Z,
j,Bmax)を、ページ圧縮データ#Mのバンド圧縮デー
タD(M,1)〜D(M,Bmax)として記憶するとともに、
F(M)に“1”を設定する(ステップS1410)。
If S RLE (j) ≧ S zj is not satisfied (step S1408; NO), the main control unit 16
The normal compressed data # 1 to Bmax of the j-th page are converted to the band compressed data D (M, 1) to D (M, Bm) of the page compressed data #M.
ax) and set F (M) to “0” (step S1409). On the other hand, S RLE (j) ≧ S zj
Is satisfied (step S1408; YES),
The main control unit 16 transmits the differential compressed data D (Z, j, 1) to D (Z,
j, Bmax) as band compressed data D (M, 1) to D (M, Bmax) of page compressed data #M,
F (M) is set to "1" (step S1410).

【0168】SRLE(j)とSzjの大小関係に応じてス
テップS1409或いはS1410を実行した後、主制
御部16は、Mに“1”を加算(ステップS1411)
し、ステップS1406からの処理を再び実行する。そ
して、2〜Mmaxの各M値に対する処理が完了したとき
(ステップS1406;NO)に、バンド圧縮データ選
択処理を終了する。
After executing step S1409 or S1410 according to the magnitude relationship between S RLE (j) and S zj , main controller 16 adds “1” to M (step S1411).
Then, the processing from step S1406 is executed again. Then, when the processing for each of the M values of 2 to Mmax is completed (step S1406; NO), the band compression data selection processing ends.

【0169】主制御部16は、バンド圧縮データ作成処
理(図20:ステップS1110)の終了後、生成した
各種データに基づき、圧縮データファイル34をHDD
内に作成する(ステップS1111)。そして、圧縮処
理を終了する。
After the band compression data creation processing (FIG. 20, step S1110) ends, the main control unit 16 stores the compressed data file 34 in the HDD based on the various data generated.
(Step S1111). Then, the compression process ends.

【0170】以下、5ページ分の印刷データが受信され
た場合を例に、本印刷装置による圧縮データファイル3
4の作成手順をさらに具体的に説明する。
Hereinafter, the compressed data file 3 by the printing apparatus will be described by taking as an example the case where print data for five pages is received.
4 will be described more specifically.

【0171】この場合、Mmax=5であるので、バンド
圧縮データ選択処理が開始されるときには、20(=5
×4)組の差分圧縮データと、5組の通常圧縮データが
作成されている。また、各組の差分圧縮データを用いて
構成される第2種ページ圧縮データのサイズSijが求
められている。ステップS1401では、それらのサイ
ズが、基準イメージとして使用されているイメージデー
タのページによって5個のグループに分けられ、各グル
ープに属する4個の第2種ページ圧縮データのサイズの
合計が算出される。
In this case, since Mmax = 5, when the band compression data selection process is started, 20 (= 5)
× 4) A set of differentially compressed data and five sets of normal compressed data are created. In addition, the size S ij of the second-type page compressed data configured using each set of differential compressed data is obtained. In step S1401, the sizes are divided into five groups according to the page of the image data used as the reference image, and the total size of the four second-type page compressed data belonging to each group is calculated. .

【0172】より具体的には、このステップS1401
までの処理によって、サイズに関する情報として、例え
ば、図24(A)、(B)に示したような情報が収集さ
れる。なお、図24(A)において、最も左側の列に示
してある数値(1、2等)が、基準イメージとして使用
されたイメージデータのページ番号(以下、基準ページ
番号と表記する)であり、最上行に示してある数値が、
基準イメージと比較されたイメージデータのページ番号
(生成ページ番号)である。そして、基準ページ番号が
Xであり、生成ページ番号がYである場所に記載してあ
る数値が、D(X,Y,1)〜D(X,Y,Bmax)からなる第
2種ページ圧縮データのサイズSXYであり、最も右側
の列に示してある数値がステップS1401で算出され
ている第2種ページ圧縮データの合計サイズである。ま
た、図24(B)に示してある数値が、ステップS110
6で算出されている第1種ページ圧縮データのサイズで
ある。
More specifically, this step S1401
Through the processes up to, for example, information as shown in FIGS. 24A and 24B is collected as information on the size. In FIG. 24A, the numerical values (1, 2, etc.) shown in the leftmost column are the page numbers of the image data used as the reference images (hereinafter, referred to as reference page numbers). The number shown on the top line is
This is the page number (generation page number) of the image data compared with the reference image. Then, a numerical value described in a place where the reference page number is X and the generated page number is Y is a second type page compression composed of D (X, Y, 1) to D (X, Y, Bmax). a size S XY data, the numerical values are shown in the rightmost column is the total size of the two-page compressed data that is calculated in step S1401. Also, the numerical value shown in FIG.
6 is the size of the type 1 page compressed data calculated in step S6.

【0173】ステップS1401までの処理で、図24
に示したような情報が収集された場合、ステップS14
02では、i値として、合計サイズが“110”となっ
ている“3”が特定される。続くステップS1403で
は、生成ページ番号#1〜Mmaxが、それぞれ、3(=
Z)、1、2、4、5であることが認識される。そし
て、ステップS1404では、ページ圧縮データ#1の
各バンド圧縮データとして、第3ページの通常圧縮デー
タ#1〜Bmaxを用いることが記憶される。
In the processing up to step S1401, FIG.
When the information as shown in (1) is collected, step S14
In 02, “3” whose total size is “110” is specified as the i value. In the following step S1403, the generated page numbers # 1 to Mmax are set to 3 (=
Z) 1,2,4,5. Then, in step S1404, it is stored that the normal compressed data # 1 to Bmax of the third page are used as each band compressed data of the page compressed data # 1.

【0174】ステップS1406〜S1411のループ
では、1、2、4、5の各j値に対して、SRLE(j)
とS3jとが比較される。図24に示したケースでは、
j=1に対してのみ、SRLE(j)<S3jが成立す
る。従って、ページ圧縮データ#2〜5の中のページ圧
縮データ#2のみが、第1種ページ圧縮データとされ
る。そして、ステップS1111では、以上のようにし
て求められた各種情報に基づき、図25に模式的に示し
た構成の圧縮データファイル34が作成される。
In the loop of steps S1406 to S1411, for each j value of 1, 2, 4, and 5, S RLE (j)
And S 3j are compared. In the case shown in FIG.
Only for j = 1, S RLE (j) <S 3j holds. Therefore, only the page compressed data # 2 of the page compressed data # 2 to 5 is set as the first type page compressed data. Then, in step S1111, the compressed data file 34 having the configuration schematically shown in FIG. 25 is created based on the various information obtained as described above.

【0175】以下、本印刷装置の復元処理時の動作を説
明する。
The operation of the printing apparatus during the restoration process will be described below.

【0176】図26に、本印刷装置において実行される
復元処理の流れ図を示す。図示したように、復元処理開
始時、主制御部16は、まず、復元(印刷)が指示され
た圧縮データファイル34である処理対象圧縮データフ
ァイルの管理データ、すなわち、圧縮データ数Mmax、
種別フラグ#2〜Mmax、先頭位置データ#1〜Mma
x、生成ページ番号#1〜Mmaxを取得する(ステッ
プS1501)。このステップにおいて、主制御部16
は、種別フラグ#2〜Mmaxの値を、それぞれ、F(2)
〜F(Mmax)として記憶し、生成ページ番号#1〜Mmax
の値を、それぞれ、P(1)〜P(Mmax)として記憶す
る。
FIG. 26 shows a flowchart of the restoration processing executed in the printing apparatus. As shown in the figure, at the start of the decompression processing, the main control unit 16 first manages the management data of the processing target compressed data file which is the compression data file 34 instructed to be decompressed (printed), that is, the number of compressed data Mmax,
Type flags # 2 to Mmax, head position data # 1 to Mma
x, generation page numbers # 1 to Mmax are acquired (step S1501). In this step, the main control unit 16
Indicates the values of the type flags # 2 to Mmax, respectively, as F (2)
To F (Mmax), and generated page numbers # 1 to Mmax
Are stored as P (1) to P (Mmax), respectively.

【0177】次に、主制御部16は、変数PにPsを設
定する(ステップS1502)。その後、PsがP(1)
と一致しているか否かを判断(ステップS1503)
し、PsがP(1)と一致していなかった場合(ステップ
S1503;NO)には、ページ圧縮データ#1を復元
する(ステップS1504)。すなわち、先頭位置デー
タ#1によってその先頭位置が示されているページ圧縮
データ#1の復元により、第P(1)ページに関するバン
ドイメージ#1〜BmaxをRAM14上に作成する。そ
して、ステップS1507に進む。
Next, the main controller 16 sets Ps as a variable P (step S1502). After that, Ps becomes P (1)
Is determined (step S1503)
If Ps does not match P (1) (step S1503; NO), page compressed data # 1 is restored (step S1504). That is, by decompressing the page compressed data # 1 whose head position is indicated by the head position data # 1, band images # 1 to Bmax for the P (1) th page are created on the RAM 14. Then, the process proceeds to step S1507.

【0178】一方、Ps=P(1)であった場合(ステッ
プS1503;YES)、主制御部16は、ページ圧縮
データ#1に対する通常圧縮ページ復元処理(ステップ
S1505)を実行する。このステップで行なわれる通
常圧縮ページ復元処置は、指定されたページ圧縮データ
#M内の各バンド圧縮データを復元して印刷部12に供
給する処理である。
On the other hand, if Ps = P (1) (step S1503; YES), the main control unit 16 executes a normal compressed page restoration process (step S1505) for the page compressed data # 1. The normal compressed page restoration process performed in this step is a process of restoring each band compression data in the designated page compression data #M and supplying the data to the printing unit 12.

【0179】通常圧縮ページ復元処理の実行後、主制御
部16は、Pに“1”を加算(ステップS1506)
し、ステップS1507に進む。
After executing the normal compressed page restoration processing, the main control unit 16 adds “1” to P (step S1506).
Then, the process proceeds to step S1507.

【0180】ステップS1507において、主制御部1
6は、P≦Peが成立しているか否かを判断する。そし
て、P≦Peが成立していた場合(ステップS150
7;YES)には、P=P(1)であるか否か判断する
(ステップS1508)。P=P(1)であった場合(ス
テップS1508;YES)、主制御部16は、RAM
14上に存在する第P(1)ページに関するバンドイメー
ジを印刷部12に供給する(ステップS1509)。そ
して、ステップS1515に進む。なお、ステップS1
508で“YES”側への分岐が行われるのは、Ps<
P(1)≦Peが成立するPs、Peが与えられている状態
で復元処理が実行されたときである。
In step S1507, the main control unit 1
Step 6 determines whether P ≦ Pe is satisfied. If P ≦ Pe is satisfied (step S150)
7; YES), it is determined whether or not P = P (1) (step S1508). If P = P (1) (step S1508; YES), the main control unit 16
The band image related to the P (1) th page existing on page 14 is supplied to the printing unit 12 (step S1509). Then, the process proceeds to step S1515. Step S1
The branch to the “YES” side is performed at 508 because Ps <
This is when the restoration process is executed in a state where Ps and Pe satisfying P (1) ≦ Pe are given.

【0181】一方、P=P(1)でなかった場合(ステッ
プS1508;NO)、主制御部16は、生成ページ番
号がPである圧縮データ番号Mを特定する(ステップS
1510)。そして、特定した圧縮データ番号Mに対し
てF(M)=1が成立するか否かを判断する(ステップS
1511)。F(M)=1でなかった場合(ステップS1
511;NO)には、ステップS1505で実行されて
いるものと同じ通常圧縮ページ復元処理をページ圧縮デ
ータ#Mに対して実行する(ステップS1512)。す
なわち、ステップS1512において、主制御部16
は、先頭位置データ#Mによってその先頭位置が示され
ているページ圧縮データ#Mの各バンド圧縮データを読
み出し、復号するとともに、復号によって得られたバン
ドイメージ#1〜Bmaxを印刷部12に供給する。そし
て、ステップS1514に進む。
On the other hand, if P = P (1) is not satisfied (step S1508; NO), the main control unit 16 specifies the compressed data number M whose generation page number is P (step S1508).
1510). Then, it is determined whether or not F (M) = 1 holds for the specified compressed data number M (step S).
1511). If F (M) is not 1 (step S1
(511; NO), the same normal compressed page restoration processing as that executed in step S1505 is executed on the page compressed data #M (step S1512). That is, in step S1512, the main control unit 16
Reads out and decodes each band compressed data of the page compressed data #M whose head position is indicated by the head position data #M, and supplies the band images # 1 to Bmax obtained by the decoding to the printing unit 12. I do. Then, the process proceeds to step S1514.

【0182】一方、F(M)=1であった場合(ステップ
S1511;YES)、主制御部16は、差分圧縮ペー
ジ復元処理(ステップS1513)を実行する。
On the other hand, if F (M) = 1 (step S1511; YES), the main control unit 16 executes a differential compressed page restoration process (step S1513).

【0183】図27に、ステップS1513で実行され
る差分圧縮ページ復元処理の流れ図を示す。図示したよ
うに、差分圧縮ページ復元処理時、主制御部16は、ま
ず、変数Bに“1”を設定する(ステップS155
1)。そして、基準イメージとして使用する第P(1)ペ
ージのバンドイメージ#Bのコピーを作成(ステップS
1552)し、ページ圧縮データ#Mに対する差分圧縮
データ復元処理(ステップS1553)を実行する。こ
のステップで実行される差分圧縮データ復元処理は、図
10にその流れ図を示した処理と全く同じものである。
FIG. 27 shows a flowchart of the differential compression page restoration processing executed in step S1513. As shown in the figure, at the time of the differential compression page restoration processing, the main control unit 16 first sets “1” to the variable B (step S155).
1). Then, a copy of the band image #B of the page P (1) to be used as the reference image is created (step S
1552), and executes differential compression data decompression processing (step S1553) for the page compression data #M. The differential compressed data decompression processing executed in this step is exactly the same as the processing whose flowchart is shown in FIG.

【0184】差分圧縮データ復元処理により第Mページ
に関するバンドイメージ#Bを作成した後、主制御部1
6は、そのバンドイメージ#Bを印刷部12に供給(ス
テップS1555)し、バンドイメージ#Bが最終バン
ドに関するものであるか否かを判断する(ステップS1
556)。そして、バンドイメージ#Bが最終バンドに
関するものでなかった場合(ステップS1556:N
O)には、Bに“1”を加算(ステップS1557)し
て、ステップS1552に戻り、最終バンドに関するバ
ンドイメージの処理が完了したとき(ステップS155
6;YES)に、差分圧縮ページ復元処理を終了する。
After the band image #B for the M-th page is created by the differential compression data restoration processing, the main control unit 1
6 supplies the band image #B to the printing unit 12 (step S1555), and determines whether or not the band image #B relates to the last band (step S1).
556). When the band image #B is not related to the final band (step S1556: N
To O), “1” is added to B (step S1557), and the process returns to step S1552 to complete the band image processing for the last band (step S155).
6; YES), the differential compression page restoration process ends.

【0185】差分圧縮ページ復元処理(図26:ステッ
プS1513)の終了後、主制御部16は、第Pページ
データを破棄する(本印刷装置によって作成される圧縮
データファイル32内の各第2種ページ圧縮データは、
その復元に前ページのイメージデータを必要としな
い)。その後、主制御部16は、Pに“1”を加算(ス
テップS1515)し、ステップS1507からの処理
を再び実行する。
After the differential compressed page restoring process (FIG. 26: step S1513) ends, the main control unit 16 discards the Pth page data (each second type in the compressed data file 32 created by the printing apparatus). Page compressed data is
The restoration does not require the image data of the previous page). Thereafter, the main control unit 16 adds “1” to P (step S1515), and executes the processing from step S1507 again.

【0186】主制御部16は、復元処理時、このような
処理を繰り返す。そして、P≦Peが成立しなくなった
とき(ステップS1507;NO)に、復元処理を終了
する。
The main control section 16 repeats such processing at the time of restoration processing. Then, when P ≦ Pe is not satisfied (step S1507; NO), the restoration processing is ended.

【0187】以上、説明したように、本実施形態に係る
印刷装置では、受信した印刷データと同じ内容の印刷結
果が得られる圧縮データファイル34であって、当該印
刷データに応じた印刷に必要とされる1ページ分のバン
ドのイメージデータに関する圧縮データとして、当該イ
メージデータの、他ページの対応するバンドのイメージ
データとの違いを表す差分圧縮データを含み、差分圧縮
データからなるページ圧縮データのサイズの合計が小さ
くなるように他ページが選択された圧縮データファイル
34が作成される。
As described above, in the printing apparatus according to the present embodiment, the compressed data file 34 from which a print result having the same content as the received print data is obtained, which is necessary for printing in accordance with the print data. The compressed data relating to the image data of the band for one page includes differential compressed data indicating the difference between the image data and the image data of the corresponding band of another page, and the size of the page compressed data composed of the differential compressed data The compressed data file 34 in which another page is selected so that the total of the compressed data files becomes smaller is created.

【0188】従って、本印刷装置を用いれば、共通した
部分を多く有するドキュメントが印刷されることになる
印刷データ(例えば、表計算ソフトで作成されたドキュ
メントや、請求書等の定型のドキュメントの印刷デー
タ)を、従来装置及び第2実施形態に係る印刷装置より
も高い圧縮率で圧縮保存できることになる。
Therefore, if the printing apparatus is used, print data (for example, a document created by spreadsheet software or a fixed form document such as an invoice) for printing a document having many common portions is printed. ) Can be compressed and stored at a higher compression ratio than the conventional apparatus and the printing apparatus according to the second embodiment.

【0189】<第5実施形態>図28に、第5実施形態
に係る印刷装置によって作成される圧縮データファイル
35の構成を示す。図示したように、第5実施形態に係
る印刷装置によって作成される圧縮データファイル35
は、管理データと、第1ないし第Mmaxページのイメー
ジデータの圧縮データであるページ圧縮データ#1〜M
maxとからなる。
<Fifth Embodiment> FIG. 28 shows the configuration of a compressed data file 35 created by a printing apparatus according to a fifth embodiment. As illustrated, the compressed data file 35 created by the printing apparatus according to the fifth embodiment
Are management data and page compressed data # 1 to Mmax which are compressed data of image data of the first to Mmax pages.
max.

【0190】管理データは、図28(b)に示したよう
に、圧縮データ数Mmax、先頭位置データ#1〜Mmax、
基準ページ番号#2〜Mmaxを含む。管理データを構成
している圧縮データ数Mmax、先頭位置データ#1〜Mm
axは、圧縮データファイル31等の管理データで用いら
れている圧縮データ数Mmax、先頭位置データ#1〜Mm
axと同じものである。
As shown in FIG. 28B, the management data includes the number of compressed data Mmax, the head position data # 1 to Mmax,
Reference page numbers # 2 to Mmax are included. Number of compressed data Mmax constituting management data, top position data # 1 to Mm
ax is the number Mmax of compressed data used in management data such as the compressed data file 31 and the head position data # 1 to Mm.
Same as ax.

【0191】基準ページ番号#2〜Mmax(以下、R
(2)〜R(Mmax)とも表記する)は、種別フラグ#2〜
Mmaxとしての機能と、ページ圧縮データ#2〜Mmaxに
含まれる第2種ページ圧縮データの作成時に基準として
用いられたイメージデータのページ番号としての機能と
を有するデータである。より具体的には、R(M)が
“0”であるページ圧縮データ#Mは、第1種ページ圧
縮データとなっており、R(M)が“0”ではないページ
圧縮データ#Mは、図28(c)に示したように、第R
(M)ページを基準としたBmax個の差分圧縮データで構
成された第2種ページ圧縮データとなっている。
Reference page numbers # 2 to Mmax (hereinafter R
(2) to R (Mmax)) are type flags # 2 to
This data has a function as Mmax and a function as a page number of image data used as a reference when creating the second type page compressed data included in the page compressed data # 2 to Mmax. More specifically, the page compressed data #M whose R (M) is "0" is the first-type page compressed data, and the page compressed data #M whose R (M) is not "0" is , As shown in FIG.
(M) Second type page compressed data composed of Bmax difference compressed data based on the page.

【0192】以下、本印刷装置における圧縮データファ
イル35の作成手順を詳細に説明する。本印刷装置にお
いて実行される圧縮処理は、第4実施形態に係る印刷装
置で実行される圧縮処理と類似したものとなっている。
このため、以下では、両者の違いを中心に、本印刷装置
の動作を説明することにする。
Hereinafter, a procedure for creating the compressed data file 35 in the printing apparatus will be described in detail. The compression processing performed by the printing apparatus is similar to the compression processing performed by the printing apparatus according to the fourth embodiment.
Therefore, hereinafter, the operation of the printing apparatus will be described focusing on the difference between the two.

【0193】本印刷装置では、差分圧縮データ群作成処
理(図21参照)時に、ステップS1305が省略され
た差分圧縮データ作成処理(図22参照)が実行され
る。
In the printing apparatus, during the differential compressed data group creation processing (see FIG. 21), the differential compressed data creation processing in which step S1305 is omitted (see FIG. 22) is executed.

【0194】すなわち、本印刷装置の主制御部16は、
例えば、全5ページの印刷データに対する差分圧縮デー
タ群作成処理の完了時、図29(A)に示したように、
Mmax×(Mmax−1)/2個の第2種ページ圧縮データ
のサイズに関する情報と、図29(B)に示したよう
に、Mmax個の第1種ページ圧縮データのサイズに関す
る情報を取得している。そして、差分圧縮データ群作成
処理の完了後、主制御部16は、図30に、その流れ図
を示したバンド圧縮データ選択処理を実行する。
That is, the main controller 16 of the printing apparatus
For example, when the differential compressed data group creation processing for the print data of all five pages is completed, as shown in FIG.
Information on the size of Mmax × (Mmax−1) / 2 second-type page compressed data and information on the size of Mmax first-type page compressed data as shown in FIG. 29B are acquired. ing. Then, after the completion of the differential compressed data group creation processing, the main control unit 16 executes band compressed data selection processing whose flow chart is shown in FIG.

【0195】すなわち、バンド圧縮データ選択処理時、
主制御部16は、まず、第1ページの通常圧縮データ#
1〜Bmaxを、ページ圧縮データ#1とすることを記憶
する(ステップS1601)。そして、Mに“2”を設
定(ステップS1602)し、M≦Mmaxが成立するか
否かを判断する(ステップS1603)。M≦Mmaxが
成立する場合(ステップS1603;YES)、主制御
部16は、SiMを最小とするiを特定する(ステップ
S1604)。なお、SiMを最小とするiが複数個あ
った場合、主制御部16は、値が小さい方のiを、S
iMを最小としているiとして特定する。
That is, at the time of band compression data selection processing,
The main control unit 16 first sets the first page of the normal compressed data #
It is stored that 1 to Bmax are to be the page compressed data # 1 (step S1601). Then, M is set to “2” (step S1602), and it is determined whether M ≦ Mmax is satisfied (step S1603). When M ≦ Mmax is satisfied (Step S1603; YES), the main control unit 16 specifies i that minimizes SiM (Step S1604). When there are a plurality of i that minimize S iM , the main control unit 16 replaces i with the smaller value with S iM.
Specify iM as the minimum i.

【0196】そして、特定したiに関して、S
RLE(M)≧SiMが成立するか否かを判断(ステッ
プS1605)し、成立する場合(ステップS160
5;YES)には、第iページを基準として作成された
第Mページの差分圧縮データD(i,M,1)〜D(i,M,
Bmax)をページ圧縮データ#Mとすることを記憶すると
ともに、基準ページ番号#Mをiとする(ステップS1
607)。一方、SRLE(M)≧SiMが成立してい
ない場合(ステップS1605;NO)、主制御部16
は、第Mページの通常圧縮データ#1〜Mmax(D
RLE(M,1)〜DRLE(M,Bmax))をページ圧縮デ
ータ#Mとすることを記憶するとともに、基準ページ番
号#Mを“0”とする(ステップS1607)。すなわ
ち、ページ圧縮データ#Mが第1種ページ圧縮データで
あることを記憶する。
Then, for the specified i, S
It is determined whether or not RLE (M) ≧ SiM is satisfied (step S1605), and if it is satisfied (step S160)
5; YES), the difference compressed data D (i, M, 1) to D (i, M, M) of the M-th page created based on the i-th page
Bmax) is stored as the page compressed data #M, and the reference page number #M is set as i (step S1).
607). On the other hand, when S RLE (M) ≧ SiM is not satisfied (step S1605; NO), the main control unit 16
Are the normal compressed data # 1 to Mmax (M
RLE (M, 1) to D RLE (M, Bmax)) are stored as page compressed data #M, and the reference page number #M is set to "0" (step S1607). That is, it stores that the page compressed data #M is the first type page compressed data.

【0197】ステップS1606、或いはステップS1
607の実行後、主制御部16は、Mに“1”を加算す
る(ステップS1609)。そして、ステップS160
3に戻り、M≦Mmaxが成立するか否かを判断する。
Step S1606 or step S1
After the execution of Step 607, the main control unit 16 adds “1” to M (Step S1609). Then, step S160
Returning to 3, it is determined whether or not M ≦ Mmax is satisfied.

【0198】バンド圧縮データ選択処理時、主制御部1
6は、このような処理を繰り返す。そして、M≦Mmax
が成立しなくなったとき(ステップS1603;NO)
に、バンド圧縮処理を終了する。その後、それまでに得
ている各種の情報に基づき、図28に示した構成の圧縮
データファイル35を作成し、圧縮処理を終了する。
At the time of band compression data selection processing, the main control unit 1
No. 6 repeats such processing. And M ≦ Mmax
Is not satisfied (step S1603; NO)
Then, the band compression processing ends. Thereafter, a compressed data file 35 having the configuration shown in FIG. 28 is created based on the various information obtained so far, and the compression process ends.

【0199】すなわち、本印刷装置では、第Mページに
関する第2種ページ圧縮データが、第1ないし第M−1
ページのイメージデータのそれぞれを基準イメージとし
て用いて作成される。そして、最も小さいサイズの第2
種ページ圧縮データが用いられて圧縮データファイル3
5が作成される。
That is, in this printing apparatus, the second-type page compressed data relating to the M-th page is stored in the first to M-1st pages.
It is created using each of the image data of the page as a reference image. And the second with the smallest size
Compressed data file 3 using seed page compressed data
5 is created.

【0200】より具体的には、例えば、受信した印刷デ
ータの総ページ数が“5”であり、サイズに関して収集
された情報が図29に示したものであった場合、主制御
部16は、第2ページの第1種ページ圧縮データのサイ
ズ(“40”)よりも第2ページの第2種ページ圧縮デ
ータのサイズ(“20”)の方が小さいので、ページ圧
縮データ#2として、第1ページを基準とした第2種ペ
ージ圧縮データを選択する。また、第3ページに関する
2つの第2種ページ圧縮データの中では、第2ページを
基準とした第2種ページ圧縮データのサイズ(“2
0”)の方が、第1ページを基準とした第2種ページ圧
縮データのサイズ(“50”)よりも小さい。また、サ
イズ“20”は、第3ページの第1種ページ圧縮データ
のサイズ“30”よりも小さいので、ページ圧縮データ
#3として、第2ページを基準とした第2種ページ圧縮
データを選択する。
More specifically, for example, when the total number of pages of the received print data is “5” and the information collected regarding the size is as shown in FIG. 29, the main control unit 16 Since the size (“20”) of the second type page compressed data of the second page is smaller than the size (“40”) of the first type page compressed data of the second page, the second page Select the second-type page compressed data based on one page. Also, among the two second type page compressed data related to the third page, the size of the second type page compressed data based on the second page (“2
0 ”) is smaller than the size of the second-type page compressed data (“ 50 ”) based on the first page, and the size“ 20 ”is the size of the first-type page compressed data of the third page. Since the size is smaller than “30”, the second type page compressed data based on the second page is selected as the page compressed data # 3.

【0201】そして、第4ページに関する3つの第2種
ページ圧縮データの中では、第3ページを基準とした第
2種ページ圧縮データのサイズ(“10”)が最も小さ
い。また、そのサイズは、第4ページに関する第1種ペ
ージ圧縮データのサイズ(“50”)よりも小さい。従
って、主制御部16は、ページ圧縮データ#4として、
第3ページを基準とした第2種ページ圧縮データを選択
する。
[0201] The size ("10") of the type 2 page compressed data based on the third page is the smallest among the three type 2 page compressed data related to the fourth page. In addition, the size is smaller than the size ("50") of the type 1 page compressed data for the fourth page. Therefore, the main control unit 16 sets the page compression data # 4 as
The second type page compressed data based on the third page is selected.

【0202】そして、第5ページに関する4つの第2種
ページ圧縮データの中には、第5ページに関する第1種
ページ圧縮データのサイズ(“40”)よりも小さいサ
イズ“30”を有している第2種ページ圧縮データが2
つある。このため、より小さい方のi値を特定し、ペー
ジ圧縮データ#5として、第1ページを基準とした第2
種ページ圧縮データを選択する。
[0202] The four second-type page compressed data relating to the fifth page have a size "30" smaller than the size ("40") of the first-type page compressed data relating to the fifth page. 2nd type page compressed data is 2
There are two. For this reason, the smaller i value is specified, and the page compression data # 5 is set to the second page based on the first page.
Select seed page compressed data.

【0203】そして、主制御部16は、図31に示した
ように、選択したページ圧縮データに関する情報及び選
択したページ圧縮データ自体を含む圧縮データファイル
35を作成する。
Then, as shown in FIG. 31, the main control unit 16 creates a compressed data file 35 including information on the selected page compressed data and the selected page compressed data itself.

【0204】以下、図32、33を用いて、本印刷装置
における圧縮データファイル35の復元手順を説明す
る。なお、図32は、本印刷装置において実行される復
元処理の流れ図であり、図33は、復元処理時に実行さ
れる差分圧縮ページ復元処理の流れ図である。
The procedure for restoring the compressed data file 35 in the printing apparatus will be described below with reference to FIGS. FIG. 32 is a flowchart of a restoration process executed in the printing apparatus, and FIG. 33 is a flowchart of a differential compression page restoration process executed at the time of the restoration process.

【0205】図32に示したように、復元処理時、主制
御部16は、処理対象圧縮データファイルの管理データ
(すなわち、圧縮データ数Mmax、先頭位置データ#1
〜Mmax、基準ページ番号#2〜Mmax)を取得する(ス
テップS1701)。なお、このステップにおいて、主
制御部16は、基準ページ番号#2〜Mmaxの値を、そ
れぞれ、R(2)〜R(Mmax)として取得する。
As shown in FIG. 32, at the time of the decompression processing, the main control unit 16 manages the management data (that is, the number of compressed data Mmax, the head position data # 1
To Mmax, reference page numbers # 2 to Mmax) (step S1701). In this step, the main control unit 16 acquires the values of the reference page numbers # 2 to Mmax as R (2) to R (Mmax), respectively.

【0206】そして、主制御部16は、R(1)に
“0”を設定するとともに、Mに“1”を設定する(ス
テップS1702)。次いで、R(M)=1であるか否か
を判断(ステップS1703)し、R(M)=1でなかっ
た場合(ステップS1703;NO)、ページ圧縮デー
タ#Mに対する通常圧縮ページ復元処理(ステップS1
704)を実行する。この通常圧縮ページ復元処理時、
主制御部16は、各バンド圧縮データが通常圧縮データ
であるページ圧縮データ#Mを復号して、バンドイメー
ジ#1〜BmaxをRAM14上に生成する。また、Ps≦
M≦Peが成立していた場合には、作成したバンドイメ
ージ#1〜Bmaxを印刷部12に供給する。
Then, the main controller 16 sets R (1) to “0” and sets M to “1” (step S1702). Next, it is determined whether or not R (M) = 1 (step S1703). If R (M) is not equal to 1 (step S1703; NO), the normal compressed page restoration process for the page compressed data #M ( Step S1
704). During this normal compressed page restoration process,
The main control unit 16 decodes the page compressed data #M in which each band compressed data is normal compressed data, and generates band images # 1 to Bmax on the RAM 14. Also, Ps ≦
If M ≦ Pe is satisfied, the created band images # 1 to Bmax are supplied to the printing unit 12.

【0207】一方、R(M)=1であった場合(ステップ
S1703;YES)、主制御部16は、ページ圧縮デ
ータ#Mに対する差分圧縮ページ復元処理(ステップS
1705)を実行する。
On the other hand, if R (M) = 1 (step S1703; YES), the main control unit 16 executes the differential compression page restoration process for the page compression data #M (step S1703).
1705).

【0208】図33に示したように、差分圧縮ページ復
元処理時、主制御部16は、まず、Bに“1”を設定す
る(ステップS1801)。その後、基準イメージとし
て使用する第R(M)ページのバンドイメージ#Bのコ
ピーをRAM14上に作成(ステップS1802)し、
差分圧縮データ復元処理(ステップS1803)を実行
する。このステップで実行される差分圧縮データ復元処
理は、第1実施形態に係る印刷装置で実行される差分圧
縮データ復元処理(図10にその流れ図を示したもの)
と同じものである。
As shown in FIG. 33, at the time of the differential compression page restoration processing, the main control unit 16 first sets B to "1" (step S1801). Thereafter, a copy of the band image #B of the R (M) page to be used as the reference image is created on the RAM 14 (step S1802),
A differential compressed data restoration process (step S1803) is executed. The differential compressed data decompression process executed in this step is a differential compressed data decompression process executed by the printing apparatus according to the first embodiment (a flowchart shown in FIG. 10).
Is the same as

【0209】差分圧縮データ復元処理の完了後、主制御
部16は、Ps≦M≦Peが成立するか否かを判断する
(ステップS1804)。そして、成立していた場合
(ステップS1804;YES)に限り、バンドイメー
ジ#Bを印刷部12へ供給する(ステップS180
5)。その後、処理したバンド圧縮データが最終のバン
ド圧縮データであるか否かを判断(ステップS180
6)し、最終バンドに関するものでなかった場合(ステ
ップS1806:NO)には、Bに“1”を加算(ステ
ップS1807)して、ステップS1802に戻る。そ
して、主制御部16は、処理したバンド圧縮データが最
終のバンド圧縮データであった場合(ステップS180
6;YES)に、差分圧縮ページ復元処理を終了する。
After the completion of the differential compression data restoration processing, the main control unit 16 determines whether or not Ps ≦ M ≦ Pe is satisfied (step S1804). Then, only when the condition is satisfied (step S1804; YES), the band image #B is supplied to the printing unit 12 (step S180).
5). Thereafter, it is determined whether or not the processed band compressed data is the final band compressed data (step S180).
6) If it does not relate to the final band (step S1806: NO), “1” is added to B (step S1807), and the process returns to step S1802. If the processed band compressed data is the final band compressed data (step S180)
6; YES), the differential compression page restoration process ends.

【0210】差分圧縮ページ復元処理あるいは通常圧縮
ページ復元処理の終了後、主制御部16は、Mに“1”
を加算する(ステップS1706)。その後、M≦Pe
が成立しているか否かを判断(ステップS1707)
し、成立していた場合には、再び、ステップS1703
からの処理を実行する。
After the differential compressed page restoring process or the normal compressed page restoring process is completed, the main control unit 16 sets M to “1”.
Is added (step S1706). Then, M ≦ Pe
It is determined whether or not is established (step S1707).
If the condition is satisfied, step S1703 is performed again.
Execute the process from.

【0211】そして、M≦Peが成立しなくなったとき
(ステップS1707;NO)に、復元処理を終了す
る。
Then, when M ≦ Pe is not satisfied (step S1707; NO), the restoration processing ends.

【0212】以上、説明したように、本実施形態に係る
印刷装置では、受信した印刷データと同じ内容の印刷結
果が得られる圧縮データファイル35であって、サイズ
が小さくなるように基準として使用するページが個々に
選択された第2種ページ圧縮データを含む圧縮データフ
ァイル35が作成される。
As described above, in the printing apparatus according to the present embodiment, the compressed data file 35 from which a print result having the same content as the received print data is obtained is used as a reference so as to reduce the size. A compressed data file 35 including the type 2 page compressed data whose pages are individually selected is created.

【0213】従って、本印刷装置を用いれば、各ページ
が共通した部分を多く有するドキュメントが印刷される
ことになる印刷データ(例えば、表計算ソフトで作成さ
れたドキュメントや、請求書等の定型のドキュメントの
印刷データ)を、従来装置及び他の実施形態に係る印刷
装置よりも高い圧縮率で圧縮保存できることになる。
Therefore, if the present printing apparatus is used, a document in which each page has many common portions will be printed (for example, a document created by spreadsheet software or a fixed form such as a bill). Document print data) can be compressed and stored at a higher compression ratio than the conventional device and the printing device according to another embodiment.

【0214】<第6実施形態>図34に、第6実施形態
に係る印刷装置によって作成される圧縮データファイル
に用いられている差分圧縮データの構成を示す。図から
明らかなように、本印刷装置によって作成される圧縮デ
ータファイルは、要素データ数Nmaxと、それぞれ、置
換開始位置データと置換数データと置換データとからな
るNmax個の要素データとで構成された差分圧縮データ
が用いられたものとなっている。
<Sixth Embodiment> FIG. 34 shows the structure of differential compressed data used for a compressed data file created by a printing apparatus according to a sixth embodiment. As is apparent from the figure, the compressed data file created by the printing apparatus is composed of the element data number Nmax and Nmax element data composed of replacement start position data, replacement number data and replacement data, respectively. In this case, the compressed difference data is used.

【0215】以下、本印刷装置の圧縮/復元動作を説明
することによって、要素データを構成している各データ
の意味を説明する。なお、本印刷装置の全体的な動作
は、第1実施形態に係る印刷装置と同じものであるの
で、以下では、動作が異なっている部分を中心に本印刷
装置の説明を行うことにする。
Hereinafter, the meaning of each data constituting the element data will be described by describing the compression / decompression operation of the printing apparatus. Since the overall operation of the printing apparatus is the same as that of the printing apparatus according to the first embodiment, the following description of the printing apparatus will focus on the parts that operate differently.

【0216】図35、36に、本印刷装置で実行される
差分圧縮データ作成処理の流れ図を示す。
FIGS. 35 and 36 show flowcharts of differential compressed data creation processing executed by the printing apparatus.

【0217】図35に示したように、差分圧縮データ作
成処理時、主制御部16は、単位データ番号を記憶する
ための変数kに“1”を、要素データ数を記憶するため
の変数iに“0”を、置換数データを記憶するための変
数Lに“0”を設定する(ステップS2101)。そし
て、第Mページのバンドイメージ#Bの単位データ#k
(以下、Dとも表記する)と基準イメージの単位データ
#kとを比較する(ステップS2102)。
As shown in FIG. 35, at the time of differential compressed data creation processing, the main control unit 16 sets “1” as a variable k for storing a unit data number and a variable i for storing the number of element data. Is set to "0", and "0" is set to a variable L for storing replacement number data (step S2101). Then, the unit data #k of the band image #B of the Mth page
(Hereinafter also referred to as D) and the unit data #k of the reference image are compared (step S2102).

【0218】両者が一致していた場合(ステップS21
03;YES)、主制御部16は、kに“1”を加算す
る(ステップS2110)。そして、kがkmax以下で
あるか否かを判断し、kがkmax以下であった場合(ス
テップS2111;YES)には、ステップS2102
からの処理を再度実行する。
If the two match (step S21)
03; YES), the main control unit 16 adds “1” to k (step S2110). Then, it is determined whether or not k is equal to or smaller than kmax. If k is equal to or smaller than kmax (step S2111; YES), step S2102 is performed.
The process from is executed again.

【0219】Dと基準イメージの単位データ#kとが一
致していなかった場合(ステップS2103;NO)、
主制御部16は、Lが“0”であるか否かを判断する
(ステップS2104)。Lが“0”であった場合(ス
テップS2104;YES)、主制御部16は、ksに
kを、Lに“1”を、DoldにDを、koldにkを設定
(ステップS2109)し、ステップS2110に進
む。
If D and unit data #k of the reference image do not match (step S2103; NO),
The main control unit 16 determines whether or not L is “0” (Step S2104). If L is “0” (step S2104; YES), the main control unit 16 sets k to ks, “1” to L, D to Dold, and kold to kold (step S2109), Proceed to step S2110.

【0220】一方、Lが“0”でなかった場合(ステッ
プS2104;NO)、主制御部16は、D=Dold及
びk=kold+1が成立してしているか否かを判断する
(ステップS2105)。そして、当該条件が成立して
いた場合(ステップS2105;YES)には、Lに
“1”を加算するとともに、koldにkを設定する(ス
テップS2106)。そして、ステップS2110に進
む。
On the other hand, if L is not "0" (step S2104; NO), the main control unit 16 determines whether D = Dold and k = kold + 1 hold (step S2105). . If the condition is satisfied (step S2105; YES), “1” is added to L and k is set to kold (step S2106). Then, the process proceeds to step S2110.

【0221】D=Dold、k=kold+1のいずれか(あ
るいは双方)が成立していなかった場合(ステップS2
105;NO)、主制御部16は、変数iに“1”を加
算する(ステップS2107)。そして、その時点にお
けるks、L、Doldの値を、置換データ#iの各要素と
して記憶(ステップS2108)し、ステップS210
9からの処理を実行する。
If either (or both) of D = Dold and k = kold + 1 are not satisfied (step S2
105; NO), the main control unit 16 adds “1” to the variable i (step S2107). Then, the values of ks, L, and Dold at that time are stored as respective elements of the replacement data #i (step S2108), and step S210 is performed.
9 is executed.

【0222】主制御部16は、このような処理を、バン
ドイメージ#B内の全ての単位データに関する処理が完
了するまで繰り返す。そして、全ての単位データに関す
る処理が完了したとき(ステップS2111;NO)に
は、図33に示したあるように、L=0であるか否かを
判断する(ステップS2112)。L=0でなかった場
合(ステップS2112;NO)、主制御部16は、i
に“1”を加算(ステップS2113)し、ks、L、
Doldを、要素データ#iの各要素(置換開始位置デー
タ、置換数データ、置換データ)として記憶する(ステ
ップS2114)。そして、iの値を差分圧縮データ#
Bの要素データ数Mmaxとして記憶(ステップS211
5)し、差分圧縮データ作成処理を終了する。一方、L
=0であった場合(ステップS2112;YES)、主
制御部16は、i値の変更等を行うことなく、ステップ
S2115を実行し、差分圧縮データ作成処理を終了す
る。
The main control section 16 repeats such processing until the processing for all the unit data in the band image #B is completed. Then, when the processing for all unit data is completed (step S2111; NO), it is determined whether or not L = 0 as shown in FIG. 33 (step S2112). If L = 0 is not satisfied (step S2112; NO), the main control unit 16
Is added (step S2113), and ks, L,
Dold is stored as each element of the element data #i (replacement start position data, replacement number data, replacement data) (step S2114). Then, the value of i is converted to differential compressed data #
Stored as the number of element data Mmax of B (step S211)
5) Then, the differential compressed data creation processing ends. On the other hand, L
If = 0 (step S2112; YES), the main control unit 16 executes step S2115 without changing the i value or the like, and ends the differential compressed data creation processing.

【0223】なお、ステップS2112〜S2114の
処理は、バンドイメージ#Bの最後の単位データが基準
イメージの対応する単位データと異なっていた場合に、
その単位データに関する要素データを差分圧縮データ中
に含めるために行われている処理である。
The processing in steps S2112 to S2114 is performed when the last unit data of band image #B is different from the corresponding unit data of the reference image.
This is a process that is performed to include element data relating to the unit data in the differential compression data.

【0224】すなわち、本実施形態に係る印刷装置にお
ける差分圧縮データ作成処理時には、バンドイメージ#
Bの、基準イメージと異なっている部分の中から、同じ
内容の連続した単位データで構成されている部分が探索
され、そのような各部分の先頭の要素データを表す情報
(置換開始位置データks)と、当該部分を構成する単
位データの数(置換数データL)と、当該部分を構成し
ている単位データの内容(置換データD)とからなる要
素データを含む差分圧縮データが作成される。
That is, at the time of differential compressed data creation processing in the printing apparatus according to the present embodiment, the band image #
B is searched for a portion composed of continuous unit data having the same content from a portion different from the reference image, and information indicating the head element data of each such portion (replacement start position data ks ), The number of unit data constituting the part (replacement number data L), and the content of the unit data constituting the part (replacement data D), the difference compression data including the element data is created. .

【0225】そして、このようにして作成された差分圧
縮データが、図37に示した差分圧縮データ復元処理に
よって復元される。
The differential compressed data created in this manner is restored by the differential compressed data restoring process shown in FIG.

【0226】すなわち、主制御部16は、まず、差分圧
縮データ#Bの要素データ数Nmaxを取得する(ステッ
プS2201)。次いで、要素データ番号を記憶するた
めの変数iに“1”を設定(ステップS2202)し、
iの値がNmax以下であるか否かを判断する(ステップ
S2203)。iの値がNmax以下であった場合(ステ
ップS2203;YES)、主制御部16は、処理対象
圧縮データファイルから、通常圧縮データ#Bの要素デ
ータ#i(置換位置データks、置換数データL、置換
データD)を取得する(ステップS2204)。
That is, the main controller 16 first obtains the element data number Nmax of the differential compressed data #B (step S2201). Next, "1" is set to a variable i for storing the element data number (step S2202),
It is determined whether the value of i is equal to or less than Nmax (step S2203). When the value of i is equal to or smaller than Nmax (step S2203; YES), the main control unit 16 extracts the element data #i of the normal compressed data #B (replacement position data ks, replacement number data L) from the processing target compressed data file. , Replacement data D) (step S2204).

【0227】その後、主制御部16は、RAM14上に
記憶されている基準イメージの、ks示す位置で始まる
連続したL個の単位データを、それぞれ、置換データD
に変更する(ステップS2205)。その後、iに
“1”を加算(ステップS2206)してから、ステッ
プS2203に戻り、変更したiの値とNmaxとを比較
する。そして、i≦Nmaxが成立していた場合(ステッ
プS2203;YES)には、ステップS404〜S4
06の処理を再度実行し、i≦Nmaxが成立していなか
った場合(ステップS2203;NO)、すなわち、差
分圧縮データ#Bの全ての要素データに対する処理が完
了したときに、差分圧縮データ復元処理を終了する。
Thereafter, the main control section 16 replaces the continuous L unit data starting from the position indicated by ks of the reference image stored in the RAM 14 with the replacement data D.
(Step S2205). Thereafter, "1" is added to i (step S2206), and the process returns to step S2203 to compare the changed value of i with Nmax. If i ≦ Nmax is satisfied (step S2203; YES), steps S404 to S4
06 is executed again, and if i ≦ Nmax is not satisfied (step S2203; NO), that is, when the processing on all the element data of the differential compressed data #B is completed, the differential compressed data restoring processing is performed. To end.

【0228】さて、本印刷装置によって作成される圧縮
データファイル内の一個の要素データのサイズは、連続
数データが含まれている分だけ、圧縮データファイル3
1内の要素データのサイズよりも大きくなっている。し
かしながら、連続数データがq(≧2)であった場合、
圧縮データファイル31においてはq個の要素データで
表される部分が、本装置によって作成される圧縮データ
ファイルにおいては1個の要素データで表されることに
なる。従って、バンドイメージ#B中に、基準イメージ
と異なっている部分であって、同じ内容の連続した単位
データで構成されている部分が、ある程度以上の割合で
含まれていた場合、本圧縮データファイルの方がサイズ
の小さなファイルとなる。そして、表計算ソフトで作成
されたドキュメントや、請求書等の定型のドキュメント
のイメージデータには、通常、そのような部分が多く含
まれている。このため、本印刷装置を用いれば、第1実
施形態に係る印刷装置よりも高い圧縮率で印刷データを
圧縮保存できることになる。
Now, the size of one element data in the compressed data file created by the printing apparatus is the same as the size of the compressed data file 3 including the continuous number data.
1 is larger than the size of the element data. However, if the continuous number data is q (≧ 2),
A portion represented by q element data in the compressed data file 31 is represented by one element data in the compressed data file created by the present apparatus. Therefore, if the band image #B contains a part that is different from the reference image and is composed of continuous unit data having the same content at a certain rate or more, the compressed data file Is a smaller file. The image data of a document created by spreadsheet software or a fixed document such as an invoice usually includes many such portions. For this reason, by using this printing apparatus, print data can be compressed and stored at a higher compression ratio than the printing apparatus according to the first embodiment.

【0229】<変形形態>各実施形態の印刷装置は各種
の変形を行うことができる。例えば、第6実施形態の印
刷装置で用いられている構成の差分圧縮データが用いら
れるように、第2〜第5実施形態の印刷装置を変形する
ことができる。また、第3実施形態に係る印刷装置で使
用されている技術(ページ圧縮データとして、差分圧縮
データと通常圧縮データの混在が可能な構成のデータを
使うこと)を、他の各実施形態に係る印刷装置に適用す
ることもできる。
<Modifications> The printer of each embodiment can perform various modifications. For example, the printing apparatuses of the second to fifth embodiments can be modified so that the differentially compressed data having the configuration used in the printing apparatus of the sixth embodiment is used. Further, the technology (using data that can mix differentially compressed data and normal compressed data as page compressed data) used in the printing apparatus according to the third embodiment is described in each of the other embodiments. It can also be applied to printing devices.

【0230】また、各実施形態の印刷装置は、圧縮結果
として1つのファイルを作成するものであったが、ペー
ジ毎にファイルが作成されるように装置を構成しても良
い。さらに、各実施形態の印刷装置は、通常圧縮データ
を作成するためにランレングス符号化が用いられた装置
であったが、他の符号化手順により通常圧縮データが作
成されるようにしてもよいことは当然である。
Although the printing apparatus of each embodiment creates one file as a compression result, the apparatus may be configured so that a file is created for each page. Furthermore, although the printing apparatus of each embodiment is an apparatus that uses run-length encoding to create normal compressed data, normal printing data may be created by another encoding procedure. That is natural.

【0231】また、各実施形態の印刷装置は、情報を含
む印刷データが受信されたときに、圧縮データファイル
を作成する装置であったが、複数部数の印刷を指示する
情報が含まれる印刷データを受けた際に、圧縮データフ
ァイルが作成され、その圧縮データファイルの復元によ
り2部目以降の印刷物が出力されるように装置を構成し
ても良い。さらに、特定のホスト装置からの印刷データ
を受信した際に、圧縮データファイルを作成するように
印刷装置を構成しても良い。
Although the printing apparatus of each embodiment is an apparatus for creating a compressed data file when print data including information is received, the printing apparatus includes information for instructing printing of a plurality of copies. Upon receiving the data, the apparatus may be configured such that a compressed data file is created, and the second and subsequent copies are output by restoring the compressed data file. Further, the printing apparatus may be configured to create a compressed data file when print data is received from a specific host device.

【0232】[0232]

【発明の効果】本発明の印刷装置、方法によれば、印刷
用のイメージデータを高圧縮率で、かつ、比較的高速に
圧縮保存するができる。
According to the printing apparatus and method of the present invention, image data for printing can be compressed and stored at a high compression rate and at a relatively high speed.

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

【図1】各実施形態に係る印刷装置のハードウェア構成
を示したブロック図である。
FIG. 1 is a block diagram illustrating a hardware configuration of a printing apparatus according to each embodiment.

【図2】各実施形態に係る印刷装置の全体的な動作手順
を示した流れ図である。
FIG. 2 is a flowchart illustrating an overall operation procedure of the printing apparatus according to each embodiment.

【図3】第1実施形態に係る印刷装置によって作成され
る圧縮データファイルの説明図である。
FIG. 3 is an explanatory diagram of a compressed data file created by the printing apparatus according to the first embodiment.

【図4】第1実施形態に係る印刷装置において実行され
る圧縮処理の流れ図である。
FIG. 4 is a flowchart of a compression process performed in the printing apparatus according to the first embodiment.

【図5】第1実施形態に係る印刷装置において実行され
るページ圧縮データ作成処理の流れ図である。
FIG. 5 is a flowchart of a page compressed data creation process executed in the printing apparatus according to the first embodiment.

【図6】第1実施形態に係る印刷装置において実行され
る差分圧縮データ作成処理の流れ図である。
FIG. 6 is a flowchart of differential compressed data creation processing executed in the printing apparatus according to the first embodiment.

【図7】第1実施形態に係る印刷装置において作成され
る圧縮データファイルの説明図である。
FIG. 7 is an explanatory diagram of a compressed data file created in the printing apparatus according to the first embodiment.

【図8】第1実施形態に係る印刷装置において実行され
る復元処理の流れ図である。
FIG. 8 is a flowchart of a restoration process executed in the printing apparatus according to the first embodiment.

【図9】第1実施形態に係る印刷装置において実行され
る差分圧縮ページ復元処理の流れ図である。
FIG. 9 is a flowchart of differential compressed page restoration processing executed in the printing apparatus according to the first embodiment.

【図10】第1実施形態に係る印刷装置において実行さ
れる差分圧縮データ復元処理の流れ図である。
FIG. 10 is a flowchart of differential compressed data restoration processing executed in the printing apparatus according to the first embodiment.

【図11】第2実施形態に係る印刷装置によって作成さ
れる圧縮データファイルの説明図である。
FIG. 11 is an explanatory diagram of a compressed data file created by a printing device according to a second embodiment.

【図12】第2実施形態に係る印刷装置において実行さ
れるページ圧縮データ作成処理の流れ図である。
FIG. 12 is a flowchart of page compressed data creation processing executed in the printing apparatus according to the second embodiment.

【図13】第2実施形態に係る印刷装置において実行さ
れる復元処理の説明図である。
FIG. 13 is an explanatory diagram of a restoration process executed in the printing apparatus according to the second embodiment.

【図14】第2実施形態に係る印刷装置において実行さ
れる復元処理の流れ図である。
FIG. 14 is a flowchart of a restoration process executed in the printing apparatus according to the second embodiment.

【図15】第3実施形態に係る印刷装置によって作成さ
れる圧縮データファイルの説明図である。
FIG. 15 is an explanatory diagram of a compressed data file created by the printing device according to the third embodiment.

【図16】第3実施形態に係る印刷装置において実行さ
れるページ圧縮データ作成処理の流れ図である。
FIG. 16 is a flowchart of page compressed data creation processing executed in the printing apparatus according to the third embodiment.

【図17】第3実施形態に係る印刷装置によって作成さ
れる圧縮データファイルの一例を示した図である。
FIG. 17 is a diagram illustrating an example of a compressed data file created by a printing apparatus according to a third embodiment.

【図18】第3実施形態に係る印刷装置において実行さ
れる差分圧縮ページ復元処理の流れ図である。
FIG. 18 is a flowchart of differential compressed page restoration processing executed in the printing apparatus according to the third embodiment.

【図19】第4実施形態に係る印刷装置によって作成さ
れる圧縮データファイルの説明図である。
FIG. 19 is an explanatory diagram of a compressed data file created by a printing device according to a fourth embodiment.

【図20】第4実施形態に係る印刷装置において実行さ
れる圧縮処理の説明図である。
FIG. 20 is an explanatory diagram of a compression process performed in the printing apparatus according to the fourth embodiment.

【図21】第4実施形態に係る印刷装置において実行さ
れる差分圧縮データ群作成処理の説明図である。
FIG. 21 is an explanatory diagram of a differential compressed data group creation process executed in the printing apparatus according to the fourth embodiment.

【図22】第4実施形態に係る印刷装置において実行さ
れる差分圧縮データ作成処理の説明図である。
FIG. 22 is an explanatory diagram of differential compressed data creation processing executed in the printing apparatus according to the fourth embodiment.

【図23】第4実施形態に係る印刷装置において実行さ
れるバンド圧縮データ選択処理の流れ図である。
FIG. 23 is a flowchart of band compression data selection processing executed in the printing apparatus according to the fourth embodiment.

【図24】第4実施形態に係る印刷装置において実行さ
れる圧縮処理を説明するための図である。
FIG. 24 is a diagram illustrating a compression process performed in the printing apparatus according to the fourth embodiment.

【図25】第4実施形態に係る印刷装置によって作成さ
れる圧縮データファイルの一例を示した図である。
FIG. 25 is a diagram illustrating an example of a compressed data file created by a printing apparatus according to a fourth embodiment.

【図26】第4実施形態に係る印刷装置において実行さ
れる復元処理の流れ図である。
FIG. 26 is a flowchart of a restoration process executed in the printing apparatus according to the fourth embodiment.

【図27】第4実施形態に係る印刷装置において実行さ
れる差分圧縮ページ復元処理の流れ図である。
FIG. 27 is a flowchart of differential compressed page restoration processing executed in the printing apparatus according to the fourth embodiment.

【図28】第5実施形態に係る印刷装置によって作成さ
れる圧縮データファイルの説明図である。
FIG. 28 is an explanatory diagram of a compressed data file created by the printing device according to the fifth embodiment.

【図29】第5実施形態に係る印刷装置において実行さ
れる圧縮処理を説明するための図である。
FIG. 29 is a diagram illustrating a compression process performed in the printing apparatus according to the fifth embodiment.

【図30】第5実施形態に係る印刷装置の圧縮処理時に
実行されるバンド圧縮データ選択処理の流れ図である。
FIG. 30 is a flowchart of band compression data selection processing executed at the time of compression processing of the printing apparatus according to the fifth embodiment.

【図31】第5実施形態に係る印刷装置において作成さ
れる圧縮データファイルの一例を示した図である。
FIG. 31 is a diagram illustrating an example of a compressed data file created by a printing apparatus according to a fifth embodiment.

【図32】第5実施形態に係る印刷装置において実行さ
れる復元処理の流れ図である。
FIG. 32 is a flowchart of a restoration process executed in the printing apparatus according to the fifth embodiment.

【図33】第5実施形態に係る印刷装置において実行さ
れる差分圧縮データ復元処理の流れ図である。
FIG. 33 is a flowchart of differential compressed data restoration processing executed in the printing apparatus according to the fifth embodiment.

【図34】第6実施形態に係る印刷装置において作成さ
れる圧縮データファイルに含まれる差分圧縮データの説
明図である。
FIG. 34 is an explanatory diagram of differential compressed data included in a compressed data file created in the printing device according to the sixth embodiment.

【図35】第6実施形態に係る印刷装置において実行さ
れる差分圧縮データ作成処理の流れ図である。
FIG. 35 is a flowchart of differential compressed data creation processing executed in the printing apparatus according to the sixth embodiment.

【図36】第6実施形態に係る印刷装置において実行さ
れる差分圧縮データ作成処理の、図35に続く流れ図で
ある。
FIG. 36 is a flowchart following FIG. 35 of differential compressed data creation processing executed in the printing apparatus according to the sixth embodiment.

【図37】第6実施形態に係る印刷装置において実行さ
れる差分圧縮データ復元処理の流れ図である。
FIG. 37 is a flowchart of differential compressed data restoration processing executed in the printing apparatus according to the sixth embodiment.

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

11 通信制御部 12 印刷部 13 操作パネル部 14 RAM 15 HDD 16 主制御部 21 セントロニクスケーブル 22 LANケーブル 31〜35 圧縮データファイル 40 第1種ページ圧縮データ 41 第2種ページ圧縮データ DESCRIPTION OF SYMBOLS 11 Communication control part 12 Printing part 13 Operation panel part 14 RAM 15 HDD 16 Main control part 21 Centronics cable 22 LAN cable 31-35 Compressed data file 40 Type 1 page compressed data 41 Type 2 page compressed data

───────────────────────────────────────────────────── フロントページの続き (56)参考文献 特開 平7−148997(JP,A) 特開 平6−332667(JP,A) 特開 平4−4672(JP,A) 特開 平4−126466(JP,A) 特開 平9−116907(JP,A) 特開 平8−204967(JP,A) 特開 平6−169407(JP,A) 特開 平3−112266(JP,A) (58)調査した分野(Int.Cl.7,DB名) H04N 1/41 - 1/419 ──────────────────────────────────────────────────続 き Continuation of front page (56) References JP-A-7-148997 (JP, A) JP-A-6-332667 (JP, A) JP-A-4-4672 (JP, A) JP-A-4- 126466 (JP, A) JP-A-9-116907 (JP, A) JP-A-8-204967 (JP, A) JP-A-6-169407 (JP, A) JP-A-3-112266 (JP, A) (58) Field surveyed (Int.Cl. 7 , DB name) H04N 1/41-1/419

Claims (17)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 圧縮データを記憶するための記憶手段
と、 供給されたイメージデータに応じたイメージを用紙上に
印刷する印刷手段と、 所定の指示が入力されたときに、前記記憶手段に記憶さ
れた圧縮データを復元することによってイメージデータ
を生成し、前記印刷手段に供給する生成供給手段と、 受信した印刷データに含まれるページ単位のデータ毎に
イメージデータを生成するイメージデータ生成手段と、 このイメージデータ生成手段で生成された各イメージデ
ータを符号化することによって前記印刷データが表す各
ページに関する第1種圧縮データを作成する第1種圧縮
データ作成手段と、 前記イメージデータ生成手段で生成されたイメージデー
タに基づき、前記印刷データが表す第2ページ以降の各
ページに対して、そのページに関するイメージデータと
特定ページに関するイメージデータとを、各イメージデ
ータを構成している所定サイズのデータである単位デー
タ毎に比較することにより、当該ページに関するイメー
ジデータに含まれる、同じ内容の1つ以上の単位データ
が連続する領域であり、前記特定ページに関するイメー
ジデータの対応する部分には当該内容の単位データが存
在していない領域である要置換領域の開始位置を示す開
始位置情報と、その要置換領域を構成している単位デー
タの数を示す連続数情報と、その要置換領域で用いられ
ている単位データの内容を示す置換データとからなる要
素データを複数個含む第2種圧縮データを作成する第2
種圧縮データ作成手段と、 前記第1種圧縮データ作成手段で作成された第1ページ
に関する第1種圧縮データを含み、第2ページ以降に各
ページに関しては、第1種圧縮データのサイズが第2種
圧縮データのサイズよりも小さい場合には、第1種圧縮
データを含み、そうでない場合には、第2種圧縮データ
を含むデータを、前記印刷データに関する圧縮データと
して前記記憶手段に保存する保存手段とを備えることを
特徴とする印刷装置。
A storage unit configured to store compressed data; a printing unit configured to print an image corresponding to the supplied image data on a sheet; and a storage unit configured to store the compressed data in a storage unit when a predetermined instruction is input. Generating and supplying means for generating image data by restoring the compressed data thus obtained and supplying the image data to the printing means; image data generating means for generating image data for each page unit of data included in the received print data; First-type compressed data generating means for generating first-type compressed data for each page represented by the print data by encoding each image data generated by the image data generating means; and generating the first-type compressed data by the image data generating means. For each of the second and subsequent pages represented by the print data, the page And image data concerning
By comparing the image data relating to a specific page with each unit data which is data of a predetermined size constituting each image data, one or more unit data having the same contents included in the image data relating to the page are compared. Start position information indicating the start position of the required replacement area, which is a continuous area and corresponding to the image data relating to the specific page, where the unit data of the content does not exist, and forms the required replacement area. A second type of compressed data including a plurality of element data including continuous number information indicating the number of unit data being replaced and replacement data indicating the contents of the unit data used in the replacement required area;
A first-type compressed data generating unit; and a first-type compressed data for the first page generated by the first-type compressed data generating unit. If the size of the compressed data is smaller than the size of the compressed data of two types, the data including the compressed data of the first type is stored. If not, the data including the compressed data of the second type is stored in the storage unit as compressed data related to the print data. A printing apparatus comprising: a storage unit.
【請求項2】 圧縮データを記憶するための記憶手段
と、 供給されたイメージデータに応じたイメージを用紙上に
印刷する印刷手段と、 所定の指示が入力されたときに、前記記憶手段に記憶さ
れた圧縮データを復元することによってイメージデータ
を生成し、前記印刷手段に供給する生成供給手段と、 受信した印刷データに含まれるページ単位のデータ毎に
第1ないし第nイメージデータを生成するイメージデー
タ生成手段と、 このイメージデータ生成手段で生成された各イメージデ
ータを符号化することによって前記印刷データが表す各
ページに関する第1ないし第nの第1種圧縮データを作
成する第1種圧縮データ作成手段と、 前記イメージデータ生成手段で生成されたイメージデー
タに基づき、前記印刷データが表す第2ページ以降の各
ページ、並びに、1〜nの各kに対して、そのページに
関する第kイメージデータと、特定ページに関する第k
イメージデータとを、各イメージデータを構成している
所定サイズのデータである単位データ毎に比較すること
により、当該ページに関する第kイメージデータに含ま
れる、同じ内容の1つ以上の単位データが連続する領域
であり、前記特定ページに関する第kイメージデータの
対応する部分には当該内容の単位データが存在していな
い領域である要置換領域の開始位置を示す開始位置情報
と、その要置換領域を構成している単位データの数を示
す連続数情報と、その要置換領域で用いられている単位
データの内容を示す置換データとからなる要素データを
複数個含む第kの第2種圧縮データを作成する第2種圧
縮データ作成手段と、 前記第1種圧縮データ作成手段で作成された第1ページ
に関する第1ないし第nの第1種圧縮データを含み、第
2ページ以降の各ページに関しては、1〜nの各kに対
して、第kの第1種圧縮データのサイズが第kの第2種
圧縮データのサイズよりも小さい場合には、第kの第1
種圧縮データを含み、そうでない場合には、第kの第2
種圧縮データを含むデータを、前記印刷データに関する
圧縮データとして前記記憶手段に保存する保存手段とを
備えることを特徴とする印刷装置。
2. A storage unit for storing compressed data, a printing unit for printing an image corresponding to the supplied image data on a sheet, and a storage unit for storing a predetermined instruction when a predetermined instruction is input. Generating and supplying means for generating image data by restoring the compressed data thus obtained and supplying the image data to the printing means; and an image for generating first to n-th image data for each page unit of data included in the received print data Data generation means; and first-type compressed data for creating first to n-th first-type compressed data for each page represented by the print data by encoding each image data generated by the image data generating means. Creating means; and second and subsequent pages represented by the print data based on the image data generated by the image data generating means. Each page, as well as, for each k in the 1 to n, the k-th image data for the page, the k for a particular page
By comparing the image data with the unit data which is data of a predetermined size constituting each image data, one or more unit data of the same content included in the k-th image data related to the page is continuously output. Position information indicating the start position of the required replacement area, which is an area where the unit data of the content does not exist, in the corresponding portion of the k-th image data relating to the specific page; The k-th compressed data of the second type including a plurality of element data including continuous number information indicating the number of unit data constituting the unit and replacement data indicating the contents of the unit data used in the required replacement area is stored. A second-type compressed data creating unit to be created; and first to n-th first-type compressed data related to the first page created by the first-type compressed data creating unit. , For each page from the second page onward, if the size of the k-th type 1 compressed data is smaller than the size of the k-th type 2 compressed data for each of k of 1 to n, The first of k
Seed compressed data, otherwise the k-th second
A printing apparatus comprising: a storage unit configured to store data including seed compressed data in the storage unit as compressed data related to the print data.
【請求項3】 圧縮データを記憶するための記憶手段
と、 供給されたイメージデータに応じたイメージを用紙上に
印刷する印刷手段と、 所定の指示が入力されたときに、前記記憶手段に記憶さ
れた圧縮データを復元することによってイメージデータ
を生成し、前記印刷手段に供給する生成供給手段と、 受信した印刷データに含まれるページ単位のデータ毎に
イメージデータを生成するイメージデータ生成手段と、 このイメージデータ生成手段で生成された各イメージデ
ータを符号化することによって前記印刷データが表す各
ページに関する第1種圧縮データを作成する第1種圧縮
データ作成手段と、 前記イメージデータ生成手段で生成されたイメージデー
タに基づき、前記印刷データが表す第2ページ以降の各
ページに対して、それぞれ、対応するページに関するイ
メージデータの、特定ページに関するイメージデータと
異なっている部分の位置及び内容を示す第2種圧縮デー
タを作成する第2種圧縮データ作成手段と、 前記第1種圧縮データ作成手段で作成された第1ページ
に関する第1種圧縮データを含み、第2ページ以降に各
ページに関しては、第1種圧縮データのサイズが第2種
圧縮データのサイズよりも小さい場合には、第1種圧縮
データを含み、そうでない場合には、第2種圧縮データ
を含むデータを、前記印刷データに関する圧縮データと
して前記記憶手段に保存する保存手段と、 前記第2種圧縮データ作成手段によって作成される第2
種圧縮データのサイズの合計が最小となるように前記特
定ページを決定する特定ページ決定手段とを備えること
を特徴とする印刷装置。
3. A storage unit for storing compressed data, a printing unit for printing an image corresponding to the supplied image data on a sheet, and storing in the storage unit when a predetermined instruction is input. Generating and supplying means for generating image data by restoring the compressed data thus obtained and supplying the image data to the printing means; image data generating means for generating image data for each page unit of data included in the received print data; First-type compressed data generating means for generating first-type compressed data for each page represented by the print data by encoding each image data generated by the image data generating means; and generating the first-type compressed data by the image data generating means. Based on the obtained image data, for each of the second and subsequent pages represented by the print data, A second-type compressed data creating unit that creates a second-type compressed data indicating a position and a content of a portion of the image data corresponding to the different page from the image data related to the specific page; If the size of the first-type compressed data is smaller than the size of the second-type compressed data for each page after the second page, the first-type compressed data is included. A storage unit for storing the data including the compressed data, otherwise the data including the second type of compressed data in the storage unit as compressed data relating to the print data; Second
A specific page determining unit that determines the specific page so that the total size of the seed compressed data is minimized.
【請求項4】 圧縮データを記憶するための記憶手段
と、 供給されたイメージデータに応じたイメージを用紙上に
印刷する印刷手段と、 所定の指示が入力されたときに、前記記憶手段に記憶さ
れた圧縮データを復元することによってイメージデータ
を生成し、前記印刷手段に供給する生成供給手段と、 受信した印刷データに含まれるページ単位のデータ毎に
第1ないし第nイメージデータを生成するイメージデー
タ生成手段と、 このイメージデータ生成手段で生成された各イメージデ
ータを符号化することによって前記印刷データが表す各
ページに関する第1ないし第nの第1種圧縮データを作
成する第1種圧縮データ作成手段と、 前記イメージデータ生成手段で生成されたイメージデー
タに基づき、前記印刷データが表す第2ページ以降の各
ページに対して、それぞれ、対応するページに関する第
1ないし第nイメージデータの、特定ページに関する第
1ないし第nイメージデータと異なっている部分の位置
及び内容を示す第1ないし第nの第2種圧縮データを作
成する第2種圧縮データ作成手段と、 前記第1種圧縮データ作成手段で作成された第1ページ
に関する第1ないし第nの第1種圧縮データを含み、第
2ページ以降の各ページに関しては、1〜nの各kに対
して、第kの第1種圧縮データのサイズが第kの第2種
圧縮データのサイズよりも小さい場合には、第kの第1
種圧縮データを含み、そうでない場合には、第kの第2
種圧縮データを含むデータを、前記印刷データに関する
圧縮データとして前記記憶手段に保存する保存手段と、 前記第2種圧縮データ作成手段によって作成される各ペ
ージに関する第1ないし第nの第2種圧縮データのサイ
ズの合計が最小となるように前記特定ページをページ毎
に決定する特定ページ決定手段とを備えることを特徴と
する印刷装置。
4. A storage unit for storing compressed data, a printing unit for printing an image corresponding to the supplied image data on a sheet, and storing in the storage unit when a predetermined instruction is input. Generating and supplying means for generating image data by restoring the compressed data thus obtained and supplying the image data to the printing means; and an image for generating first to n-th image data for each page unit of data included in the received print data Data generating means; and first-type compressed data for generating first to n-th first-type compressed data for each page represented by the print data by encoding each image data generated by the image data generating means. Creating means; and second and subsequent pages represented by the print data based on the image data generated by the image data generating means. For each page, the first to n-th second data indicating the position and content of a portion of the first to n-th image data related to the corresponding page different from the first to n-th image data related to the specific page, respectively A second-type compressed data generating unit for generating the first-type compressed data; a first to n-th first-type compressed data relating to the first page generated by the first-type compressed data generating unit; For each page, for each k of 1 to n, if the size of the k-th type 1 compressed data is smaller than the size of the k-th type 2 compressed data, the k-th first type compressed data
Seed compressed data, otherwise the k-th second
Storage means for storing data including the type-compressed data in the storage means as compressed data for the print data; and first to n-th second-type compression for each page created by the second-type compressed data creation means A printing apparatus comprising: a specific page determining unit that determines the specific page for each page so that the total size of the data is minimized.
【請求項5】 前記特定ページが、前記対応するページ
の前ページであることを特徴とする請求項1又は請求項
2に記載の印刷装置。
Wherein said specific page, claim 1 or claim wherein said a front page of the corresponding page
3. The printing device according to 2 .
【請求項6】 前記特定ページが、第1ページであるこ
とを特徴とする請求項1又は請求項2に記載の印刷装
置。
6. The printing apparatus according to claim 1, wherein the specific page is a first page.
【請求項7】 前記第2種圧縮データ作成手段によって
作成される第2種圧縮データのサイズの合計が最小とな
るように前記特定ページを決定する特定ページ決定手段
を、さらに備えることを特徴とする請求項1記載の印刷
装置。
7. The apparatus according to claim 1, further comprising a specific page determining unit that determines the specific page such that the total size of the second type compressed data created by the second type compressed data creating unit is minimized. The printing apparatus according to claim 1, wherein
【請求項8】 前記第2種圧縮データ作成手段によって
作成される各ページに関する第1ないし第nの第2種圧
縮データのサイズの合計が最小となるように前記特定ペ
ージをページ毎に決定する特定ページ決定手段を、さら
に備えることを特徴とする請求項2記載の印刷装置。
8. The specific page is determined for each page such that the total size of the first to n-th compressed data of the second type for each page created by the compressed data of the second kind is minimized. 3. The printing apparatus according to claim 2 , further comprising a specific page determination unit.
【請求項9】 前記生成供給手段に、前記所定の指示を
入力するための指示入力パネルを、さらに、備えること
を特徴とする請求項1ないし請求項8のいずれかに記載
の印刷装置。
In wherein said product supply means, an instruction input panel for inputting the predetermined instruction, further, claims 1, characterized in that it comprises a printing device according to claim 8.
【請求項10】 供給されたイメージデータに応じたイ
メージを用紙上に印刷する印刷ステップと、 所定の指示が入力されたときに、記憶装置に記憶された
圧縮データを復元することによってイメージデータを生
成し、前記印刷ステップに供給する生成供給ステップ
と、 受信した印刷データに含まれるページ単位のデータ毎に
イメージデータを生成するイメージデータ生成ステップ
と、 このイメージデータ生成ステップにより生成された各イ
メージデータを符号化することによって前記印刷データ
が表す各ページに関する第1種圧縮データを作成する第
1種圧縮データ作成ステップと、 前記イメージデータ生成ステップで生成されたイメージ
データに基づき、前記印刷データが表す第2ページ以降
の各ページに対して、そのページに関するイメージデー
タと特定ページに関するイメージデータとを、各イメー
ジデータを構成している所定サイズのデータである単位
データ毎に比較することにより、当該ページに関するイ
メージデータに含まれる、同じ内容の1つ以上の単位デ
ータが連続する領域であり、前記特定ページに関するイ
メージデータの対応する部分には当該内容の単位データ
が存在していない領域である要置換領域の開始位置を示
す開始位置情報と、その要置換領域を構成している単位
データの数を示す連続数情報と、その要置換領域で用い
られている単位データの内容を示す置換データとからな
る要素データを複数個含む第2種圧縮データを作成する
第2種圧縮データ作成ステップと、 前記第1種圧縮データ作成ステップで作成された第1ペ
ージに関する第1種圧縮データを含み、第2ページ以降
の各ページに関しては、第1種圧縮データのサイズが第
2種圧縮データのサイズよりも小さい場合には、第1種
圧縮データを含み、そうでない場合には、第2種圧縮デ
ータを含むデータを、前記印刷データに関する圧縮デー
タとして前記記憶装置に保存する保存ステップとを含む
ことを特徴とする印刷方法。
10. A printing step for printing an image corresponding to the supplied image data on paper, and, when a predetermined instruction is input, decompressing the compressed data stored in the storage device to convert the image data. A generating / supplying step of generating and supplying to the printing step; an image data generating step of generating image data for each page unit data included in the received print data; and each image data generated by the image data generating step A first-type compressed data creating step of creating first-type compressed data for each page represented by the print data by encoding the print data; and the print data represents based on the image data generated in the image data generating step. For each page after the second page, And an image data related to image data with a particular page, by comparing for each unit data is data of a predetermined size comprising each image data included in the image data relating to the page, one of the same content more Start position information indicating a start position of a replacement required area, which is an area where unit data is continuous and where no unit data of the content exists in a corresponding portion of the image data relating to the specific page; Creates second-type compressed data including a plurality of element data including continuous number information indicating the number of unit data constituting an area and replacement data indicating the contents of the unit data used in the required replacement area. A second type compressed data creating step, and a first type compression related to the first page created in the first type compressed data creating step For each page after the second page, if the size of the type 1 compressed data is smaller than the size of the type 2 compressed data, the type 1 compressed data is included. And storing the data including the second type of compressed data in the storage device as compressed data relating to the print data.
【請求項11】 供給されたイメージデータに応じたイ
メージを用紙上に印刷する印刷ステップと、 所定の指示が入力されたときに、記憶装置に記憶された
圧縮データを復元することによってイメージデータを生
成し、前記印刷ステップに供給する生成供給ステップ
と、 受信した印刷データに含まれるページ単位のデータ毎に
第1ないし第nイメージデータを生成するイメージデー
タ生成ステップと、 このイメージデータ生成ステップで生成された各イメー
ジデータを符号化することによって前記印刷データが表
す各ページに関する第1ないし第nの第1種圧縮データ
を作成する第1種圧縮データ作成ステップと、 前記イメージデータ生成ステップで生成されたイメージ
データに基づき、前記印刷データが表す第2ページ以降
の各ページ、並びに、1〜nの各kに対して、そのペー
ジに関する第kイメージデータと、特定ページに関する
第kイメージデータとを、各イメージデータを構成して
いる所定サイズのデータである単位データ毎に比較する
ことにより、当該ページに関する第kイメージデータに
含まれる、同じ内容の1つ以上の単位データが連続する
領域であり、前記特定ページに関する第kイメージデー
タの対応する部分には当該内容の単位データが存在して
いない領域である要置換領域の開始位置を示す開始位置
情報と、その要置換領域を構成している単位データの数
を示す連続数情報と、その要置換領域で用いられている
単位データの内容を示す置換データとからなる要素デー
タを複数個含む第kの第2種圧縮データを作成する第2
種圧縮データ作成ステップと、 前記第1種圧縮データ作成ステップで作成された第1ペ
ージに関する第1ないし第nの第1種圧縮データを含
み、第2ページ以降の各ページに関しては、1〜nの各
kに対して、第kの第1種圧縮データのサイズが第kの
第2種圧縮データのサイズよりも小さい場合には、第k
の第1種圧縮データを含み、そうでない場合には、第k
の第2種圧縮データを含むデータを、前記印刷データに
関する圧縮データとして前記記憶装置に保存する保存ス
テップとを含むことを特徴とする印刷方法。
11. A printing step for printing an image corresponding to the supplied image data on a sheet, and, when a predetermined instruction is input, restoring the compressed data stored in the storage device to convert the image data. A generating / supplying step for generating and supplying the data to the printing step; an image data generating step for generating first to n-th image data for each page data included in the received print data; A first-type compressed data creating step of creating first to n-th first-type compressed data for each page represented by the print data by encoding each of the image data thus generated; Each of the second and subsequent pages represented by the print data, Each time, comparing for each k in the 1 to n, the k-th image data for the page, and a k-th image data for a particular page, for each unit data is data of a predetermined size constituting each image data Accordingly, one or more unit data of the same content included in the k-th image data related to the page is a continuous area, and the corresponding portion of the k-th image data related to the specific page includes the unit data of the content. , The start position information indicating the start position of the replacement required area, which is an area where no replacement exists, the continuous number information indicating the number of unit data forming the required replacement area, and the A second k-th type of compressed data including a plurality of element data including replacement data indicating the contents of unit data;
A first compressed data creating step; and first to n-th first kind compressed data related to the first page created in the first kind compressed data creating step. If the size of the k-th type 1 compressed data is smaller than the size of the k-th type 2 compressed data,
, And if not, the k-th type
Storing the data including the second type of compressed data as compressed data relating to the print data in the storage device.
【請求項12】 供給されたイメージデータに応じたイ
メージを用紙上に印刷する印刷ステップと、 所定の指示が入力されたときに、記憶装置に記憶された
圧縮データを復元することによってイメージデータを生
成し、前記印刷ステップに供給する生成供給ステップ
と、 受信した印刷データに含まれるページ単位のデータ毎に
イメージデータを生成するイメージデータ生成ステップ
と、 このイメージデータ生成ステップで生成された各イメー
ジデータを符号化することによって前記印刷データが表
す各ページに関する第1種圧縮データを作成する第1種
圧縮データ作成ステップと、 前記イメージデータ生成ステップで生成されたイメージ
データに基づき、前記印刷データが表す第2ページ以降
の各ページに対して、それぞれ、対応するページに関す
るイメージデータの、特定ページに関するイメージデー
タと異なっている部分の位置及び内容を示す第2種圧縮
データを作成する第2種圧縮データ作成ステップと、 前記第1種圧縮データ作成ステップで作成された第1ペ
ージに関する第1種圧縮データを含み、第2ページ以降
の各ページに関しては、第1種圧縮データのサイズが第
2種圧縮データのサイズよりも小さい場合には、第1種
圧縮データを含み、そうでない場合には、第2種圧縮デ
ータを含むデータを、前記印刷データに関する圧縮デー
タとして前記記憶装置に保存する保存ステップと、 前記第2種圧縮データ作成ステップによって作成される
第2種圧縮データのサイズの合計が最小となるように前
記特定ページを決定する特定ページ決定ステップとを含
むことを特徴とする印刷方法。
12. A printing step of printing an image corresponding to the supplied image data on a sheet, and, when a predetermined instruction is input, decompressing the compressed data stored in the storage device to convert the image data. A generating / supplying step for generating and supplying to the printing step; an image data generating step for generating image data for each page unit data included in the received print data; and each image data generated in the image data generating step A first-type compressed data creating step of creating first-type compressed data for each page represented by the print data by encoding the print data; and the print data represents based on the image data generated in the image data generating step. For each page after the second page, the corresponding page Type compressed data creating step of creating type 2 compressed data indicating the position and content of a portion of the image data related to a specific page different from the image data related to the specific page; If the size of the first-type compressed data is smaller than the size of the second-type compressed data for each of the second and subsequent pages, the first-type compressed data is included. If not, a storing step of storing data including the second type compressed data in the storage device as compressed data relating to the print data; and a second type generated by the second type compressed data generating step. A specific page determining step of determining the specific page such that the total size of the compressed data is minimized. Print how.
【請求項13】 供給されたイメージデータに応じたイ
メージを用紙上に印刷する印刷ステップと、 所定の指示が入力されたときに、記憶装置に記憶された
圧縮データを復元することによってイメージデータを生
成し、前記印刷ステップに供給する生成供給ステップ
と、 受信した印刷データに含まれるページ単位のデータ毎に
第1ないし第nイメージデータを生成するイメージデー
タ生成ステップと、 このイメージデータ生成ステップで生成された各イメー
ジデータを符号化することによって前記印刷データが表
す各ページに関する第1ないし第nの第1種圧縮データ
を作成する第1種圧縮データ作成ステップと、 前記イメージデータ生成ステップで生成されたイメージ
データに基づき、前記印刷データが表す第2ページ以降
の各ページに対して、それぞれ、対応するページに関す
る第1ないし第nイメージデータの、特定ページに関す
る第1ないし第nイメージデータと異なっている部分の
位置及び内容を示す第1ないし第nの第2種圧縮データ
を作成する第2種圧縮データ作成ステップと、 前記第1種圧縮データ作成ステップで作成された第1ペ
ージに関する第1ないし第nの第1種圧縮データを含
み、第2ページ以降の各ページに関しては、1〜nの各
kに対して、第kの第1種圧縮データのサイズが第kの
第2種圧縮データのサイズよりも小さい場合には、第k
の第1種圧縮データを含み、そうでない場合には、第k
の第2種圧縮データを含むデータを、前記印刷データに
関する圧縮データとして前記記憶装置に保存する保存ス
テップと、 前記第2種圧縮データ作成ステップによって作成される
各ページに関する第1ないし第nの第2種圧縮データの
サイズの合計が最小となるように前記特定ページをペー
ジ毎に決定する特定ページ決定ステップとを含むことを
特徴とする印刷方法。
13. A printing step of printing an image corresponding to the supplied image data on a sheet, and, when a predetermined instruction is input, decompressing the compressed data stored in the storage device to convert the image data. A generating / supplying step for generating and supplying the data to the printing step; an image data generating step for generating first to n-th image data for each page data included in the received print data; A first-type compressed data creating step of creating first to n-th first-type compressed data for each page represented by the print data by encoding each of the image data thus generated; Based on the image data, the second and subsequent pages represented by the print data And a first to n-th second type compressed data indicating a position and a content of a portion of the first to n-th image data related to the corresponding page different from the first to n-th image data related to the specific page, respectively. , And first to n-th first-type compressed data relating to the first page created in the first-type compressed data creation step, and for each page after the second page For each k of 1 to n, if the size of the k-th type 1 compressed data is smaller than the size of the k-th type 2 compressed data,
, And if not, the k-th type
Storing the data including the second-type compressed data in the storage device as compressed data relating to the print data; and storing the first to n-th data relating to each page created by the second-type compressed data creating step. A specific page determining step of determining the specific page for each page so that the total size of the two types of compressed data is minimized.
【請求項14】 前記特定ページが、前記対応するペー
ジの前ページであることを特徴とする請求項10又は請
求項11に記載の印刷方法。
14. The method according to claim 10 , wherein the specific page is a page preceding the corresponding page.
The printing method according to claim 11 .
【請求項15】 前記特定ページが、第1ページである
ことを特徴とする請求項10又は請求項11に記載の印
刷方法。
15. The printing method according to claim 10 , wherein the specific page is a first page.
【請求項16】 前記第2種圧縮データ作成ステップに
よって作成される第2種圧縮データのサイズの合計が最
小となるように前記特定ページを決定する特定ページ決
定ステップを、さらに含むことを特徴とする請求項10
記載の印刷方法。
16. A specific page determining step of determining the specific page such that the total size of the second-type compressed data created in the second-type compressed data creating step is minimized. Claim 10
The printing method described.
【請求項17】 前記第2種圧縮データ作成ステップに
よって作成される各ページに関する第1ないし第nの第
2種圧縮データのサイズの合計が最小となるように前記
特定ページをページ毎に決定する特定ページ決定ステッ
プを、さらに含むことを特徴とする請求項11記載の印
刷方法。
17. The specific page is determined for each page such that the total size of the first to n-th second type compressed data for each page generated in the second type compressed data generating step is minimized. The printing method according to claim 11 , further comprising a specific page determination step.
JP15989599A 1999-06-07 1999-06-07 Printing apparatus and printing method Expired - Fee Related JP3267269B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP15989599A JP3267269B2 (en) 1999-06-07 1999-06-07 Printing apparatus and printing method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP15989599A JP3267269B2 (en) 1999-06-07 1999-06-07 Printing apparatus and printing method

Publications (2)

Publication Number Publication Date
JP2000350042A JP2000350042A (en) 2000-12-15
JP3267269B2 true JP3267269B2 (en) 2002-03-18

Family

ID=15703532

Family Applications (1)

Application Number Title Priority Date Filing Date
JP15989599A Expired - Fee Related JP3267269B2 (en) 1999-06-07 1999-06-07 Printing apparatus and printing method

Country Status (1)

Country Link
JP (1) JP3267269B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5724996B2 (en) * 2012-12-06 2015-05-27 コニカミノルタ株式会社 Image processing method, image forming apparatus, and image forming system

Also Published As

Publication number Publication date
JP2000350042A (en) 2000-12-15

Similar Documents

Publication Publication Date Title
US7929174B2 (en) Information processing apparatus and method
JP4564693B2 (en) Document processing apparatus and method
US6449053B2 (en) Printing system, a printing method, a converting device, a data processing method and a printing device
JP5404303B2 (en) Image processing apparatus, image processing method, and program
US7113293B2 (en) Information processing apparatus and system having preview control, and method thereof, and storage medium storing program for implementing the method
JP4895386B2 (en) Workflow generation device, workflow generation method and program
JP4953931B2 (en) Information processing apparatus and method
JP4968920B2 (en) Job management apparatus, job management method, and program
CN1329826C (en) Inter-program communication apparatus, inter-program communication method, computer-readable recording medium, and program
JP3267269B2 (en) Printing apparatus and printing method
JP5517607B2 (en) Information processing apparatus, image compression method, and computer program
JPH08292844A (en) Device and method for printing
JP5350026B2 (en) Workflow processing system, workflow processing apparatus, and workflow processing method
JP2003091526A (en) Information processing device and method
JP2006191199A (en) Printing system, printer and data transmission server
US20020080400A1 (en) Job submission system and method for controlling multiple job renderings with a single master or &#34;super&#34; ticket
US20090041524A1 (en) Image forming system and data processing method
JP3639616B2 (en) Image processing method, apparatus and system
JP4721391B2 (en) Printing control apparatus and method
JP2008187672A (en) Image output system
JP2007158595A (en) Image processor, image processing system, and program
JP6486126B2 (en) Information processing apparatus, information processing method, and program
JPH07261868A (en) Print control unit
KR100503786B1 (en) How to Manage Printer Printout Information
JP2004291290A (en) Image forming apparatus and image forming method

Legal Events

Date Code Title Description
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20011211

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090111

Year of fee payment: 7

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20100111

Year of fee payment: 8

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20110111

Year of fee payment: 9

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20110111

Year of fee payment: 9

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20120111

Year of fee payment: 10

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20120111

Year of fee payment: 10

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20130111

Year of fee payment: 11

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20130111

Year of fee payment: 11

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20140111

Year of fee payment: 12

S531 Written request for registration of change of domicile

Free format text: JAPANESE INTERMEDIATE CODE: R313531

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

LAPS Cancellation because of no payment of annual fees