JP5312273B2 - Image forming apparatus - Google Patents
Image forming apparatus Download PDFInfo
- Publication number
- JP5312273B2 JP5312273B2 JP2009220523A JP2009220523A JP5312273B2 JP 5312273 B2 JP5312273 B2 JP 5312273B2 JP 2009220523 A JP2009220523 A JP 2009220523A JP 2009220523 A JP2009220523 A JP 2009220523A JP 5312273 B2 JP5312273 B2 JP 5312273B2
- Authority
- JP
- Japan
- Prior art keywords
- data
- input image
- image data
- format
- analysis unit
- 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
Links
Images
Landscapes
- Accessory Devices And Overall Control Thereof (AREA)
- Record Information Processing For Printing (AREA)
Description
本発明は、画像形成装置に関するものである。 The present invention relates to an image forming apparatus.
プリンタ、複合機などの印刷機能を有する画像形成装置が解釈可能な画像データ(印刷データ)のデータ形式として、PDL:Page Description Language、例えば、ポストスクリプト(PostScript)、およびPCL(Printer Control Language)などが、従来から主に使用されている。 As a data format of image data (print data) that can be interpreted by an image forming apparatus having a printing function such as a printer or a multifunction peripheral, PDL: Page Description Language, for example, PostScript, PCL (Printer Control Language), etc. However, it is mainly used conventionally.
近年、上記データ形式に加えて、電子文書フォーマットであるPDF(Portable Document Format)やXPS(XML Paper Specification)、マークアップ言語であるHTML(HyperText Markup Language)、XML(Extensible Markup Language)なども入力画像データ(印刷データ)のデータ形式として使用可能な画像形成装置が増えつつある(例えば特許文献1,2参照)。 In recent years, in addition to the above data formats, PDF (Portable Document Format), XPS (XML Paper Specification), HTML (HyperText Markup Language), XML (Extensible Markup Language), XML, etc. are input images. An increasing number of image forming apparatuses can be used as the data format of data (print data) (see, for example, Patent Documents 1 and 2).
このように多数の画像データが使用可能な装置では、画像データのPDLを指定するために、ベンダ固有の制御コードを画像データに埋め込んだり、装置のコンソールを操作してユーザが指定したりする。 In such a device that can use a large number of image data, in order to specify the PDL of the image data, a vendor-specific control code is embedded in the image data, or the user designates it by operating the console of the device.
その他、装置が、受信した入力画像データのヘッダを解析して、その入力画像データのPDLを特定する技術も存在する(例えば特許文献3参照)。 In addition, there is a technique in which the apparatus analyzes the header of received input image data and identifies the PDL of the input image data (see, for example, Patent Document 3).
図8は、XPS形式、TIFF(Tagged Image File Format)形式、およびPS(PostScript)形式のいずれかとして、入力画像データのデータ形式を特定する方法の一例を説明するフローチャートである。 FIG. 8 is a flowchart for explaining an example of a method for specifying the data format of input image data as one of the XPS format, the TIFF (Tagged Image File Format) format, and the PS (PostScript) format.
図8に示すように、まず、入力画像データの先頭部分は読み出される(ステップS101)。そして、その先頭部分が、0x504B0304(ASCIIでは、「PK..」)であれば(ステップS102)、入力画像データは、XPS形式として解釈される(ステップS103)。また、その先頭部分が、0x4D4D002A(ASCIIでは、「MM..」)または0x49492A00(ASCIIでは、「II..」)であれば(ステップS104)、入力画像データは、TIFF形式として解釈される(ステップS105)。また、その先頭部分が、「%!PS」であれば(ステップS106)、入力画像データは、PostScript形式として解釈される(ステップS107)。なお、その先頭部分が上述の識別コードのいずれでもない場合には、データ形式が特定できないため、エラー処理が行われる(ステップS108)。そして、特定されたデータ形式として入力画像データが解釈され、その解釈に従って
描画処理が行われて(ステップS109)、印刷用のラスタデータが生成される。
As shown in FIG. 8, first, the head portion of the input image data is read (step S101). If the leading portion is 0x504B0304 (“PK ..” in ASCII) (step S102), the input image data is interpreted as an XPS format (step S103). If the head portion is 0x4D4D002A ("MM .." in ASCII) or 0x49492A00 ("II .." in ASCII) (step S104), the input image data is interpreted as TIFF format (step S104). Step S105). If the head portion is “%! PS” (step S106), the input image data is interpreted as a PostScript format (step S107). If the head part is not one of the above identification codes, the data format cannot be specified, and error processing is performed (step S108). Then, the input image data is interpreted as the specified data format, drawing processing is performed according to the interpretation (step S109), and raster data for printing is generated.
しかしながら、上述のようにして、入力画像データの先頭部分のみから自動的に入力画像データのデータ形式を特定する場合、入力画像データのヘッダ部分が正しく記述されていなかったり、通信途中でヘッダ部分が破損してしまったりすると、解釈時にエラーが発生して、入力画像データが本来のデータ形式として解釈されないことがある。 However, as described above, when the data format of the input image data is automatically specified only from the head portion of the input image data, the header portion of the input image data is not correctly described, or the header portion is If it is damaged, an error may occur during interpretation, and the input image data may not be interpreted as the original data format.
また、装置が対応していないテキストデータやバイナリデータ(つまり入力画像データとなり得ないデータ)の先頭部分が、装置が対応している入力画像データの先頭部分と偶然に一致する場合、そのようなデータが入力画像データとして解釈されてしまう。その結果、意味のない大量のページが印刷されてしまったり、予期せぬ不具合が発生する可能性がある。 Further, when the head portion of text data or binary data that is not supported by the device (that is, data that cannot be input image data) coincides with the head portion of the input image data that is supported by the device, such a case. Data is interpreted as input image data. As a result, a large number of meaningless pages may be printed or unexpected problems may occur.
本発明は、上記の問題に鑑みてなされたものであり、入力画像データのデータ形式を正確に特定して入力画像データを正確に解釈することができる画像形成装置を得ることを目的とする。 SUMMARY An advantage of some aspects of the invention is that it provides an image forming apparatus capable of accurately specifying the data format of input image data and accurately interpreting the input image data.
上記の課題を解決するために、本発明では以下のようにした。 In order to solve the above problems, the present invention is configured as follows.
本発明に係る画像形成装置は、複数のデータ形式の画像データをそれぞれ解釈する複数のデータ解析部と、データ解析部による解釈結果に従って描画処理を行う描画処理部と、外部より入力される入力画像データを参照してその入力画像データのデータ形式を判定し、入力画像データのデータ形式に対応するデータ解析部に入力画像データの解釈を実行させるデータ形式判定部と、入力画像データを受信し通信バッファに一時的に記憶する通信装置と、前記入力画像データを記憶する記憶装置とを備える。そして、データ形式判定部は、前記判定の結果、前記入力画像データが複数のデータ形式のうちの1つのデータ形式の既定の先頭コードに一致する場合、データ形式に対応するデータ解析部に、入力画像データの解釈を実行させ、データ解析部または描画処理部による入力画像データの処理中にフォーマットエラーが発生した場合、複数のデータ解析部のうち別のデータ解析部に、入力画像データの解釈を実行させる。そして、複数のデータ解析部のうち、最初に入力画像データの解釈を実行するデータ解析部は、通信バッファから入力画像データを読み出し、読み出した入力画像データの解釈を実行するとともに、読み出した入力画像データを記憶装置に記憶する。複数のデータ解析部のうち、2回目以降に入力画像データの解釈を実行するデータ解析部は、記憶装置から入力画像データを読み出し、読み出した入力画像データの解釈を実行する。 An image forming apparatus according to the present invention includes a plurality of data analysis units that interpret image data in a plurality of data formats, a drawing processing unit that performs drawing processing according to an interpretation result by the data analysis unit, and an input image input from the outside A data format determination unit that refers to data, determines the data format of the input image data, and causes the data analysis unit corresponding to the data format of the input image data to interpret the input image data. A communication device that temporarily stores the buffer; and a storage device that stores the input image data . When the input image data matches a predetermined head code of one of the plurality of data formats as a result of the determination, the data format determination unit inputs the data to the data analysis unit corresponding to the data format. When a format error occurs during the processing of input image data by the data analysis unit or the drawing processing unit when interpretation of the image data is executed, the input data is interpreted by another data analysis unit among the plurality of data analysis units. Let it run. The data analysis unit that first interprets the input image data among the plurality of data analysis units reads the input image data from the communication buffer, executes the interpretation of the read input image data, and reads the input image Store the data in a storage device. Of the plurality of data analysis units, the data analysis unit that executes the interpretation of the input image data for the second time and thereafter reads the input image data from the storage device and executes the interpretation of the read input image data.
これにより、入力画像データから自動的に入力画像データのデータ形式を特定する場合、入力画像データのヘッダ部分が正しく記述されていなかったり、通信途中でヘッダ部分が破損していたりしても、複数のデータ解析部によりデータ解釈が実行されるため、入力画像データのデータ形式を正確に特定して入力画像データを正確に解釈することができる。更に、装置が対応していないテキストデータやバイナリデータ(つまり入力画像データとなり得ないデータ)の先頭部分が、装置が対応している入力画像データの先頭部分と偶然に一致する場合でも、そのようなデータが入力画像データとして解釈されない。その結果、意味のない大量のページが印刷されてしまったり、予期せぬ不具合が発生することを防止することができる。さらに、複数回のデータ解釈を実行する場合でも、入力画像データが通信バッファに滞留しないようにすることができる。 As a result, when the data format of the input image data is automatically specified from the input image data, even if the header portion of the input image data is not described correctly or the header portion is damaged during communication, a plurality of Since the data analysis unit performs data interpretation, it is possible to accurately specify the data format of the input image data and accurately interpret the input image data. Furthermore, even when the head portion of text data or binary data that is not supported by the device (that is, data that cannot be input image data) coincides with the head portion of the input image data that is supported by the device, this is the case. Data is not interpreted as input image data. As a result, it is possible to prevent a large number of meaningless pages from being printed or unexpected troubles from occurring. Furthermore, even when data interpretation is performed a plurality of times, it is possible to prevent the input image data from staying in the communication buffer.
また、本発明に係る画像形成装置は、上記の画像形成装置に加え、次のようにしてもよい。この場合、複数のデータ解析部のうち、最初に入力画像データの解釈を実行するデータ解析部は、通信バッファから入力画像データを読み出し、入力画像データの途中でフォーマットエラーが発生した場合、入力画像データの解釈を中止し、通信バッファに記憶された残りの入力画像データを読み出して記憶装置に記憶する。 In addition to the image forming apparatus described above, the image forming apparatus according to the present invention may be configured as follows. In this case, the data analysis unit that first interprets the input image data among the plurality of data analysis units reads the input image data from the communication buffer, and if a format error occurs in the middle of the input image data, the input image data The interpretation of the data is stopped, and the remaining input image data stored in the communication buffer is read out and stored in the storage device.
また、本発明に係る画像形成装置は、上記の画像形成装置に加え、次のようにしてもよい。この場合、複数のデータ解析部は、XPS形式の画像データを解釈するデータ解析部を含む。 In addition to the image forming apparatus described above, the image forming apparatus according to the present invention may be configured as follows. In this case, the plurality of data analysis units include a data analysis unit that interprets XPS format image data.
また、本発明に係る画像形成装置は、上記の画像形成装置に加え、次のようにしてもよい。この場合、XPS形式の画像データを解釈するデータ解析部は、入力画像データにおけるシグネチャを読み出し、シグネチャの値に基づいてブロックのサイズを特定し、そのサイズだけデータ読み出し位置を進める処理を、エンド・オブ・セントラルディレクトリレコードを示すシグネチャが読み出されるまで繰り返し実行していき、シグネチャの値が既定のシグネチャ値のいずれにも一致しない場合、フォーマットエラーが発生したと判定する。 In addition to the image forming apparatus described above, the image forming apparatus according to the present invention may be configured as follows. In this case, the data analysis unit that interprets the image data in the XPS format reads the signature in the input image data, specifies the block size based on the value of the signature, and advances the data reading position by that size. The process is repeatedly executed until a signature indicating the central directory record is read. If the signature value does not match any of the default signature values, it is determined that a format error has occurred.
また、本発明に係る画像形成装置は、上記の画像形成装置に加え、次のようにしてもよい。この場合、データ形式判定部は、フォーマットエラーが発生しないで入力画像データの解釈が完了するか、複数のデータ解析部のすべてに入力画像データの解釈を実行させるまで、データ解析部を切り換えて入力画像データの解釈を実行させる。 In addition to the image forming apparatus described above, the image forming apparatus according to the present invention may be configured as follows. In this case, the data format determination unit switches between the data analysis units until the interpretation of the input image data is completed without causing a format error or until all of the data analysis units interpret the input image data. Interpret image data.
本発明によれば、画像形成装置において、入力画像データのデータ形式を正確に特定して入力画像データを正確に解釈することができる。 According to the present invention, in the image forming apparatus, it is possible to accurately specify the data format of the input image data and accurately interpret the input image data.
以下、図に基づいて本発明の実施の形態を説明する。 Hereinafter, embodiments of the present invention will be described with reference to the drawings.
図1は、本発明の実施の形態に係る画像形成装置の構成を示すブロック図である。図1に示すように、この画像形成装置は、演算処理装置1、通信装置2、メモリ3、記憶装置4およびプリントエンジン5を有する。演算処理装置1、通信装置2、メモリ3、記憶装置4およびプリントエンジン5は、バスなどを介して互いにデータ通信可能である。
FIG. 1 is a block diagram showing a configuration of an image forming apparatus according to an embodiment of the present invention. As shown in FIG. 1, the image forming apparatus includes an arithmetic processing device 1, a
通信装置2は、パーソナルコンピュータなどのホスト装置に接続され、USB(Universal Serial Bus)、パラレルインタフェースなどといった周辺機器インタフェースで入力画像データを受信する。メモリ3は、RAM(Random Access Memory)などであり、各種データを記憶する。メモリ3の一部の記憶領域は、通信装置2により受信されたデータを一時的に記憶するための通信バッファ3aとして使用される。記憶装置4は、ハードディスクドライブ、フラッシュメモリなどの不揮発性の大容量記憶装置である。プリントエンジン5は、演算処理装置1により入力画像データから生成された描画データ(ラスタデータ)に基づいて印刷用紙に画像を印刷する装置である。
The
演算処理装置1は、図示せぬCPU(Central Processing Unit)、ROM(Read Only Memory)、RAMなどを有し、RAMにプログラムをロードしCPUで実行する装置である。なお、このRAMとしてメモリ3を使用してもよい。演算処理装置1は、プログラムをCPUで実行することにより、データ取得部11、データ形式判定部12、複数のデータ解析部13−1〜13−Nおよび描画処理部14として機能する。
The arithmetic processing device 1 has a CPU (Central Processing Unit), a ROM (Read Only Memory), a RAM, and the like (not shown), and is a device that loads a program into the RAM and executes it by the CPU. Note that the
データ取得部11は、データ形式判定部12またはデータ解析部13−1〜13−Nに制御されて、通信バッファ3aまたは記憶装置4から入力画像データを読み出す。
The
データ形式判定部12は、入力画像データを参照してその入力画像データのデータ形式を判定し、入力画像データのデータ形式に対応するデータ解析部13−i(i=1,・・・,N)で入力画像データの解釈を実行させる。
The data
データ形式判定部12は、入力データ画像が複数のデータ形式のうちの1つのデータ形式の既定の先頭コードに一致する場合、データ形式に対応するデータ解析部13−iに、入力画像データの解釈を実行させる。更に、データ形式判定部12は、データ解析部13−iまたは描画処理部14による入力画像データの処理中にフォーマットエラーが発生した場合、複数のデータ解析部13−1〜13−Nにおける別のデータ解析部13−j(j=1,・・・,N且つj≠i)に、入力画像データの解釈を実行させる。データ形式判定部12は、データ形跡部13−jによる入力画像データの処理中にフォーマットエラーが発生した場合、複数のデータ解析部13−1〜13−Nにおける、また別のデータ解析部13−k(k=1,・・・,N且つk≠i, j)に入力画像データの解釈を実行させる。
The data
このように、データ形式判定部12は、フォーマットエラーが発生しないで入力画像データの解釈が正常に最後まで完了するか、複数のデータ解析部13−1〜13−Nのすべてに入力画像データの解釈を実行させるまで、データ解析部13−iを次々と切り換えて入力画像データの解釈を実行させる。なお、フォーマットエラーとは、そのデータ形式の構文上の誤りをいう。
As described above, the data
データ解析部13−1〜13−Nは、複数のデータ形式の画像データをそれぞれ解釈する処理部である。例えば、この実施の形態では、XPS形式、PDF形式、TIFF形式およびJPEG(Joint Photographic Experts Group)形式に対応するデータ解析部13−1〜13−4(N=4)が設けられている。 The data analysis units 13-1 to 13-N are processing units that interpret image data in a plurality of data formats, respectively. For example, in this embodiment, data analysis units 13-1 to 13-4 (N = 4) corresponding to the XPS format, PDF format, TIFF format, and JPEG (Joint Photographic Experts Group) format are provided.
描画処理部14は、データ解析部13−i(i=1,・・・,N)による解釈結果に従って描画処理を行う処理部である。描画処理では、印刷用のラスタデータが生成される。
The
次に、上記装置の動作について説明する。図2は、図1に示す画像形成装置の動作について説明するフローチャートである。 Next, the operation of the above apparatus will be described. FIG. 2 is a flowchart for explaining the operation of the image forming apparatus shown in FIG.
通信装置2は、入力画像データを受信すると、通信バッファ3aに記憶する。次いで、データ形式判定部12は、データ取得部11を使用して、その入力画像データの先頭部分を通信バッファ3aから取得する(ステップS1)。
When receiving the input image data, the
データ形式判定部12は、取得されたデータの先頭が0x504B0304(ASCIIでは、「PK..」)であるか否かを判定する(ステップS2)。取得されたデータの先頭が0x504B0304(ASCIIでは、「PK..」)であると判定された場合、データ形式判定部12は、入力画像データのデータ形式をXPSと特定する(ステップS3)。
The data
一方、取得されたデータの先頭が0x504B0304(ASCIIでは、「PK..」)ではないと判定された場合、データ形式判定部12は、取得されたデータの先頭が「%PDF」であるか否かを判定する(ステップS4)。取得されたデータの先頭が「%PDF」であると判定された場合には、データ形式判定部12は、入力画像データのデータ形式をPDFと特定する(ステップS5)。
On the other hand, when it is determined that the top of the acquired data is not 0x504B0304 (“PK ..” in ASCII), the data
一方、取得されたデータの先頭が「%PDF」ではないと判定された場合、データ形式判定部12は、取得されたデータの先頭が0x4D4D002A(ASCIIでは、「MM..」)または0x49492A00(ASCIIでは、「II..」)であるか否かを判定する(ステップS6)。取得されたデータの先頭が0x4D4D002A(ASCIIでは、「MM..」)または0x49492A00(ASCIIでは、「II..」)であると判定された場合には、データ形式判定部12は、入力画像データのデータ形式をTIFFと特定する(ステップS7)。
On the other hand, if it is determined that the top of the acquired data is not “% PDF”, the data
一方、取得されたデータの先頭が0x4D4D002A(ASCIIでは、「MM..」)または0x49492A00(ASCIIでは、「II..」)ではないと判定された場合、データ形式判定部12は、取得されたデータの先頭が0xFFD8であるか否かを判定する(ステップS8)。取得されたデータの先頭が0xFFD8であると判定された場合には、データ形式判定部12は、入力画像データのデータ形式をJPEGと特定する(ステップS9)。
On the other hand, if it is determined that the beginning of the acquired data is not 0x4D4D002A ("MM .." in ASCII) or 0x49492A00 ("II .." in ASCII), the data
一方、取得されたデータの先頭が0xFFD8ではないと判定された場合、データ形式判定部12は、取得されたデータの先頭が上述の識別コードのいずれでもないため、入力画像データのデータ形式として、デフォルトのデータ形式を指定する(ステップS10)。デフォルトのデータ形式は、この装置で使用可能なデータ形式の中から設定される(例えばXPS形式)。例えば、データ形式判定部12が入力画像データの処理履歴を記憶装置4に記憶しておき、その履歴を解析して前回受信した入力画像データのデータ形式、または過去に受信した入力画像データの中で最も多いデータ形式を設定すればよい。また、システム管理者がデフォルトデータ形式を予め画像形成装置に設定してもよい。
On the other hand, if it is determined that the top of the acquired data is not 0xFFD8, the data
このようにして、データ形式判定部12は、受信された入力画像データのデータ形式を特定し、特定したデータ形式に対応するデータ解析部13−iを呼び出して、受信された入力画像データの解釈を実行させる(ステップS11)。
In this way, the data
そして、データ解析部13−iによるデータ解釈の処理が終了すると、データ形式判定部12は、そのデータ解釈処理中にフォーマットエラーが発生したか否かを判定する(ステップS12)。データ解釈処理中にフォーマットエラーが発生した場合、データ解析部13−iは、フォーマットエラー発生ログを生成する。データ形式判定部12は、フォーマットエラー発生ログの有無に基づいて、データ解釈処理中にフォーマットエラーが発生したか否かを判定する。
When the data interpretation process by the data analysis unit 13-i is completed, the data
データ形式判定部12は、データ解析部13−iによるデータ解釈処理中にフォーマットエラーが発生しなかったと判定した場合、そのデータ解釈に基づいて描画処理を描画処理部14に実行させる(ステップS13)。
When the data
そして、描画処理部14による描画処理が終了すると、データ形式判定部12は、その描画処理中にフォーマットエラーが発生したか否かを判定する(ステップS14)。例えばTIFFの場合のように、入力画像データが、ビットマップ画像データを含む場合には、データ解析部13−iでは、データ本体を解釈する必要がないため、主に、描画処理においてフォーマットエラーが発生したか否かが判定される。
When the drawing processing by the
データ解釈処理中および描画処理中のいずれにおいてもフォーマットエラーが発生していない場合には、印刷用のラスタ画像データが正常に生成されているため、処理を終了する。 If no format error has occurred during the data interpretation process and the drawing process, the raster image data for printing has been generated normally, and the process ends.
一方、データ解釈処理中および描画処理中のいずれかにおいてフォーマットエラーが発生したと判定された場合には(ステップS12,S14)、データ形式判定部12は、まず、すべてのデータ解析部13−1〜13−Nが、入力画像データの解釈を既に実行したか否かを判定する(ステップS15)。判定の結果、いずれかのデータ解析部13−jが、入力画像データの解釈をまだ実行していない場合には、データ形式判定部12は、データ解析部13−jで、入力画像データの解釈を実行させる(ステップS16)。データ解析部13−jによるデータ解釈処理が終了すると、データ形式判定部12は、上述のデータ解析部13−iによるデータ解釈処理終了後と同様の処理(つまり、ステップS12以降の処理)を行う。したがって、フォーマットエラーが再度発生した場合には、入力画像データをまだ解釈していないさらに別のデータ解析部13−kによるデータ解釈処理が実行される。
On the other hand, if it is determined that a format error has occurred either during the data interpretation process or during the rendering process (steps S12 and S14), the data
また、ステップS15において、すべてのデータ解析部13−1〜13−Nで、入力画像データの解釈を既に実行されていると判定した場合には、データ形式判定部12は、受信された入力画像データを正常に解釈できるデータ解析部が存在しないため、エラー処理(エラーメッセージの表示など)を実行して(ステップS17)、処理を終了する。
If it is determined in step S15 that all of the data analysis units 13-1 to 13-N have already interpreted the input image data, the data
このようにして、入力画像データのデータ形式に適合するデータ解析部13−iによって、入力画像データが解釈される。 In this way, the input image data is interpreted by the data analysis unit 13-i that conforms to the data format of the input image data.
次に、各データ解析部13−1〜13−Nの動作について説明する。 Next, operations of the data analysis units 13-1 to 13-N will be described.
(A)XPS用のデータ解析部13−1 (A) XPS data analysis unit 13-1
図3は、図1に示す画像形成装置における、XPS用のデータ解析部13−1の動作について説明するフローチャートである。 FIG. 3 is a flowchart for explaining the operation of the XPS data analysis unit 13-1 in the image forming apparatus shown in FIG.
まず、データ解析部13−1は、XPSインタプリタを起動し(ステップS21)、入力画像データにおける各ブロックを順番に解釈させる。 First, the data analysis unit 13-1 activates the XPS interpreter (step S21), and interprets each block in the input image data in order.
ここで、XPS形式の入力画像データについて説明する。 Here, the input image data in the XPS format will be described.
XPS形式の入力画像データは、ZIP形式で圧縮されたデータである。図4は、ZIP形式のデータ構造を示す図である。図4に示すように、ZIP形式のデータには、1組または複数組のローカルファイルヘッダ(Local File Header)、ファイルデータ(File Data)およびデータデスクリプタ(Data Descriptor)、セントラルディレクトリ(Central Directory)、並びにエンド・オブ・セントラルディレクトリレコード(End Of Central Directory Record)が含まれている。エンド・オブ・セントラルディレクトリレコードは、ZIPデータの終端に位置する。 The input image data in the XPS format is data compressed in the ZIP format. FIG. 4 is a diagram showing a data structure in the ZIP format. As shown in FIG. 4, the ZIP format data includes one or more sets of a local file header (Local File Header), file data (File Data) and a data descriptor (Data Descriptor), a central directory (Central Directory), In addition, an End Of Central Directory Record is included. The end of central directory record is located at the end of the ZIP data.
セントラルディレクトリは、1または複数のファイルヘッダおよびデジタルシグネチャを有する。ローカルファイルヘッダ、セントラルディレクトリにおけるファイルヘッダおよびデジタルシグネチャ、並びにエンド・オブ・セントラルディレクトリレコードは、それらの先頭に、シグネチャを有する。シグネチャは、4バイトのデータであり、フィールドの種別に固有の値を有する。ローカルファイルヘッダのシグネチャの値は、0x04034b50である。セントラルディレクトリにおけるファイルヘッダのシグネチャの値は、0x02014b50である。セントラルディレクトリにおけるデジタルシグネチャのシグネチャの値は、0x05054b50である。エンド・オブ・セントラルディレクトリレコードのシグネチャの値は、0x06054b50である。 The central directory has one or more file headers and a digital signature. Local file headers, file headers and digital signatures in the central directory, and end-of-central directory records have signatures at the beginning of them. The signature is 4-byte data and has a value specific to the field type. The signature value of the local file header is 0x04034b50. The value of the signature of the file header in the central directory is 0x02014b50. The signature value of the digital signature in the central directory is 0x05054b50. The value of the signature of the end of central directory record is 0x06054b50.
また、これらのブロックは、固定長である。ただし、ファイルデータは、可変長であり、そのサイズは、ローカルファイルヘッダに含まれている。 These blocks have a fixed length. However, the file data has a variable length, and its size is included in the local file header.
したがって、データ解析部13−1は、データ取得部11を使用して、これらのブロックを1ブロックずつ読み出す。データ解析部13−1は、入力画像データの各ブロックにおけるシグネチャを読み出し、シグネチャの値に基づいてブロックのサイズを特定する。データ解析部13−1は、特定されたサイズだけデータ読み出し位置を進める処理を、エンド・オブ・セントラルディレクトリレコードを示すシグネチャが読み出されるまで繰り返し実行していく。
Therefore, the data analysis unit 13-1 uses the
このとき、データ解析部13−1は、入力画像データが既に記憶装置4に記憶されているか否かを判定する(ステップS22)。入力画像データが既に記憶装置4に記憶されていなければ、データ解析部13−1は、データ取得部11を使用して、通信バッファ3aから1ブロック分のデータを読み出して記憶装置4に記憶する(ステップS23)。入力画像データが既に記憶装置4に記憶されていれば、データ解析部13−1は、データ取得部11を使用して、記憶装置4から1ブロック分のデータを読み出す(ステップS24)。その後、データ解析部13−1は、読み出したブロックにおけるシグネチャの値が既定のシグネチャ値のいずれかに一致するか否かを判定する(ステップS25)。
At this time, the data analysis unit 13-1 determines whether or not the input image data is already stored in the storage device 4 (step S22). If the input image data is not already stored in the
読み出されたブロックにおけるシグネチャの値が既定のシグネチャ値のいずれかに一致すると判定された場合には、データ解析部13−1は、そのブロックでフォーマットエラーが発生していないと判定し、そのブロックの解釈を実行する(ステップS26)。 When it is determined that the signature value in the read block matches one of the predetermined signature values, the data analysis unit 13-1 determines that a format error has not occurred in the block, and Block interpretation is executed (step S26).
そして、解釈が実行されたブロックが入力画像データの終端であれば、すなわちステップS23またはS24においてエンド・オブ・セントラルディレクトリレコードを示すシグネチャが読み出されなかった場合(ステップS27)、データ解析部13−1は、次のブロックを、通信バッファ3aまたは記憶装置4から読み出し(ステップS23またはS24)、そのブロックについてステップS25以降の処理を実行する。 When the interpretation block is the end of the input image data, that is, when the signature indicating the end-of-central directory record is not read in step S23 or S24 (step S27), the data analysis unit 13 -1 reads the next block from the communication buffer 3a or the storage device 4 (step S23 or S24), and executes the processing from step S25 on that block.
そして、フォーマットエラーが一度も発生せずに、入力画像データの最後のブロックまで解釈が完了すると、すなわちステップS23またはS24においてエンド・オブ・セントラルディレクトリレコードを示すシグネチャが読み出された場合(ステップS27)、データ解釈処理が終了する。 When the format error has never occurred and the interpretation is completed up to the last block of the input image data, that is, when the signature indicating the end of central directory record is read in step S23 or S24 (step S27). ), The data interpretation process ends.
一方、ステップS25において、読み出されたブロックにおけるシグネチャの値が既定のシグネチャ値のいずれにも一致しないと判定された場合、データ解析部13−1は、フォーマットエラーが発生したと判定し、入力画像データが既に記憶装置4に記憶されているか否かを判定する(ステップS28)。入力画像データが既に記憶装置4に記憶されていなければ、データ解析部13−1は、通信バッファ3aから残りのブロックのデータを読み出して記憶装置4に記憶する(ステップS29)。更に、データ解析部13−1は、フォーマットエラー発生ログを生成し、記憶装置4またはメモリ3に記憶する(ステップS30)。フォーマットエラー発生ログには、フォーマットエラーが発生したデータ解析部13−iが担当するデータ形式の種別が含まれる。フォーマットエラーが発生すると、フォーマットエラー発生ログの記録後に、データ解釈処理は終了する。
On the other hand, if it is determined in step S25 that the signature value in the read block does not match any of the default signature values, the data analysis unit 13-1 determines that a format error has occurred and inputs It is determined whether the image data is already stored in the storage device 4 (step S28). If the input image data is not already stored in the
このようにして、XPS形式の入力画像データの解釈処理が行われる。 In this way, interpretation processing of input image data in the XPS format is performed.
(B)PDF用のデータ解析部13−2 (B) Data analysis unit 13-2 for PDF
図5は、図1に示す画像形成装置における、PDF用のデータ解析部13−2の動作について説明するフローチャートである。 FIG. 5 is a flowchart for explaining the operation of the data analysis unit 13-2 for PDF in the image forming apparatus shown in FIG.
データ解析部13−2は、PDFインタプリタを起動し(ステップS31)、入力画像データを解釈させる。まず、データ解析部13−2は、入力画像データが通信バッファ3aに記憶されているか否かを判定する(ステップS32)。入力画像データが通信バッファ3aに記憶されていれば、データ解析部13−2は、データ取得部11を使用して、通信バッファ3aから入力画像データを読み出して記憶装置4に記憶する(ステップS33)。
The data analysis unit 13-2 activates the PDF interpreter (step S31) and interprets the input image data. First, the data analysis unit 13-2 determines whether input image data is stored in the communication buffer 3a (step S32). If the input image data is stored in the communication buffer 3a, the data analysis unit 13-2 uses the
そして、データ解析部13−2は、その入力画像データの解釈を開始し(ステップS34)、入力画像データの解釈が終了するまで(ステップS36)、フォーマットエラーの有無を監視する(ステップS35)。フォーマットエラーが一度も発生せずに、入力画像データの最後まで解釈が完了すると、データ解釈処理が終了する。 Then, the data analysis unit 13-2 starts interpreting the input image data (step S34), and monitors the presence or absence of a format error (step S35) until the interpretation of the input image data ends (step S36). When the interpretation is completed up to the end of the input image data without causing any format error, the data interpretation process is finished.
一方、フォーマットエラーが発生すると、データ解析部13−2は、フォーマットエラー発生ログを生成し、記憶装置4またはメモリ3に記憶する(ステップS37)。フォーマットエラーが発生すると、フォーマットエラー発生ログの記録後に、データ解釈処理は終了する。
On the other hand, when a format error occurs, the data analysis unit 13-2 generates a format error occurrence log and stores it in the
このようにして、PDF形式の入力画像データの解釈処理が行われる。 In this way, interpretation processing of input image data in PDF format is performed.
(C)TIFF用のデータ解析部13−3 (C) Data analysis unit 13-3 for TIFF
図6は、図1に示す画像形成装置における、TIFF用のデータ解析部13−3の動作および描画処理部14によるTIFFの描画処理について説明するフローチャートである。
FIG. 6 is a flowchart for explaining the operation of the TIFF data analysis unit 13-3 and the TIFF drawing process by the
図6(A)に示すように、データ解析部13−3は、TIFFインタプリタを起動し(ステップS41)、入力画像データを解釈させる。まず、データ解析部13−3は、入力画像データが通信バッファ3aに記憶されているか否かを判定する(ステップS42)。入力画像データが通信バッファ3aに記憶されていれば、データ解析部13−3は、データ取得部11を使用して、通信バッファ3aから入力画像データを読み出して記憶装置4に記憶する(ステップS43)。
As shown in FIG. 6A, the data analysis unit 13-3 activates the TIFF interpreter (step S41) and interprets the input image data. First, the data analysis unit 13-3 determines whether input image data is stored in the communication buffer 3a (step S42). If the input image data is stored in the communication buffer 3a, the data analysis unit 13-3 uses the
そして、図6(B)に示すように、描画処理部14は、TIFF形式のデータに基づいて描画処理を開始し(ステップS51)、入力画像データのビットマップデータに基づく描画処理が終了するまで(ステップS53)、フォーマットエラーの有無を監視する(ステップS52)。
Then, as shown in FIG. 6B, the
描画処理時にフォーマットエラーが発生すると、描画処理部14は、第1ページにおいてフォーマットエラーが発生したか否かを判定する(ステップS54)。第1ページでフォーマットエラーが発生した場合、描画処理部14は、フォーマットエラー発生ログを生成し、記憶装置4またはメモリ3に記憶する(ステップS55)。一方、第2ページ以降でフォーマットエラーが発生した場合、描画処理部14は、描画処理を継続する。TIFF形式のデータには、複数ページの画像データを含めることができるため、第1ページでフォーマットエラーが発生した場合のみ、データ形式の誤認識と判断し、データ形式を切り換えて入力画像データを処理する。
If a format error occurs during the drawing process, the
したがって、第1ページでフォーマットエラーが発生しなければ、入力画像データの最後まで描画処理が完了すると、描画処理が終了する。 Therefore, if no format error occurs on the first page, the drawing process ends when the drawing process is completed to the end of the input image data.
このようにして、TIFF形式の入力画像データの解釈処理および描画処理が行われる。 In this way, interpretation processing and drawing processing of input image data in the TIFF format are performed.
(D)JPEG用のデータ解析部13−4 (D) Data analysis unit 13-4 for JPEG
図7は、図1に示す画像形成装置における、JPEG用のデータ解析部13−4の動作について説明するフローチャートである。 FIG. 7 is a flowchart for explaining the operation of the data analysis unit 13-4 for JPEG in the image forming apparatus shown in FIG.
データ解析部13−4は、JPEGインタプリタを起動し(ステップS61)、入力画像データを解釈させる。まず、データ解析部13−4は、入力画像データが通信バッファ3aに記憶されているか否かを判定する(ステップS62)。入力画像データが通信バッファ3aに記憶されていれば、データ解析部13−4は、データ取得部11を使用して、通信バッファ3aから入力画像データを読み出して記憶装置4に記憶する(ステップS63)。
The data analysis unit 13-4 activates the JPEG interpreter (step S61) and interprets the input image data. First, the data analysis unit 13-4 determines whether or not input image data is stored in the communication buffer 3a (step S62). If the input image data is stored in the communication buffer 3a, the data analysis unit 13-4 uses the
そして、データ解析部13−4は、その入力画像データの解釈を開始し(ステップS64)、入力画像データの解釈が終了するまで(ステップS66)、フォーマットエラーの有無を監視する(ステップS65)。フォーマットエラーが一度も発生せずに、入力画像データの最後まで解釈が完了すると、データ解釈処理が終了する。 Then, the data analysis unit 13-4 starts interpreting the input image data (step S64), and monitors whether there is a format error (step S65) until the interpretation of the input image data is completed (step S66). When the interpretation is completed up to the end of the input image data without causing any format error, the data interpretation process is finished.
一方、フォーマットエラーが発生すると、データ解析部13−4は、フォーマットエラー発生ログを生成し、記憶装置4またはメモリ3に記憶する(ステップS67)。フォーマットエラーが発生すると、フォーマットエラー発生ログの記録後に、データ解釈処理は終了する。
On the other hand, when a format error occurs, the data analysis unit 13-4 generates a format error occurrence log and stores it in the
このようにして、JPEG形式の入力画像データの解釈処理が行われる。 In this way, interpretation processing of input image data in JPEG format is performed.
以上のように、上記実施の形態によれば、データ形式判定部12は、複数のデータ形式のうちの1つのデータ形式の既定の先頭コードに一致する場合、データ形式に対応するデータ解析部13−iに、入力画像データの解釈を実行させる。データ形式判定部12は、更に、データ解析部13−iまたは描画処理部14において入力画像データの処理中にフォーマットエラーが発生した場合、複数のデータ解析部13−1〜13−Nにおける別のデータ解析部13−jに、入力画像データの解釈を実行させる。
As described above, according to the above-described embodiment, the data
これにより、入力画像データから自動的に入力画像データのデータ形式を特定する場合、入力画像データのヘッダ部分が正しく記述されていなかったり、通信途中でヘッダ部分が破損してしまったりしていても、複数のデータ解析部13−i,13−j,・・・によりデータ解釈が実行される。このため、入力画像データのデータ形式を正確に特定して入力画像データを正確に解釈することができる。 As a result, when the data format of the input image data is automatically specified from the input image data, even if the header portion of the input image data is not described correctly or the header portion is damaged during communication The data interpretation is executed by a plurality of data analysis units 13-i, 13-j,. Therefore, the input image data can be accurately interpreted by accurately specifying the data format of the input image data.
なお、上述の実施の形態は、本発明の好適な例であるが、本発明は、これらに限定されるものではなく、本発明の要旨を逸脱しない範囲において、種々の変形、変更が可能である。 The above-described embodiments are preferred examples of the present invention, but the present invention is not limited to these, and various modifications and changes can be made without departing from the scope of the present invention. is there.
例えば、上記実施の形態では、4種類のデータ形式の入力画像データが使用可能であるが、2種類、3種類、5種類以上のデータ形式の入力画像データが使用可能であってもよい。また、上述の4種類のデータ形式以外のデータ形式の入力画像データが使用可能であってもよい。
また、上記実施の形態では、図2のステップS10において、データ形式判定部12は、入力画像データのデータ形式として、デフォルトのデータ形式を指定するものとしたが、処理を終了しても良い。
For example, in the above embodiment, input image data of four types of data formats can be used, but input image data of two types, three types, five types or more of data formats may be usable. Further, input image data having a data format other than the above-described four types of data formats may be usable.
In the above embodiment, the data
本発明は、例えば、複数のデータ形式の入力画像データに対応可能な画像形成装置に適用可能である。 The present invention is applicable to, for example, an image forming apparatus that can handle input image data in a plurality of data formats.
2 通信装置
3a 通信バッファ
4 記憶装置
12 データ形式判定部
13−1〜13−N データ解析部
14 描画処理部
2 Communication device
Claims (5)
前記データ解析部による解釈結果に従って描画処理を行う描画処理部と、
外部より入力される入力画像データを参照してその入力画像データのデータ形式を判定し、前記入力画像データのデータ形式に対応する前記データ解析部で前記入力画像データの解釈を実行させるデータ形式判定部と、
前記入力画像データを受信し通信バッファに一時的に記憶する通信装置と、
前記入力画像データを記憶する記憶装置とを備え、
前記データ形式判定部は、前記判定の結果、前記入力画像データが前記複数のデータ形式のうちの1つのデータ形式の既定の先頭コードに一致する場合、前記データ形式に対応する前記データ解析部に、前記入力画像データの解釈を実行させ、前記データ解析部または前記描画処理部による前記入力画像データの処理中にフォーマットエラーが発生した場合、前記複数のデータ解析部のうち別のデータ解析部に、前記入力画像データの解釈を実行させ、
前記複数のデータ解析部のうち、最初に前記入力画像データの解釈を実行するデータ解析部は、前記通信バッファから前記入力画像データを読み出し、読み出した前記入力画像データの解釈を実行するとともに、読み出した前記入力画像データを前記記憶装置に記憶し、
前記複数のデータ解析部のうち、2回目以降に前記入力画像データの解釈を実行するデータ解析部は、前記記憶装置から前記入力画像データを読み出し、読み出した前記入力画像データの解釈を実行すること、
を特徴とする画像形成装置。 A plurality of data analysis units for interpreting image data in a plurality of data formats,
A drawing processing unit that performs a drawing process according to an interpretation result by the data analysis unit;
Data format determination in which the input image data input from the outside is referred to determine the data format of the input image data, and the data analysis unit corresponding to the data format of the input image data interprets the input image data and parts,
A communication device that receives the input image data and temporarily stores it in a communication buffer;
A storage device for storing the input image data ,
When the input image data matches a predetermined head code of one data format among the plurality of data formats as a result of the determination, the data format determination unit determines whether the data analysis unit corresponding to the data format The input image data is interpreted, and when a format error occurs during the processing of the input image data by the data analysis unit or the drawing processing unit, another data analysis unit among the plurality of data analysis units , Executing interpretation of the input image data ,
The data analysis unit that first interprets the input image data among the plurality of data analysis units reads the input image data from the communication buffer, executes interpretation of the read input image data, and reads Storing the input image data in the storage device;
Of the plurality of data analysis units, a data analysis unit that interprets the input image data from the second time onward reads the input image data from the storage device, and executes interpretation of the read input image data ,
An image forming apparatus.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2009220523A JP5312273B2 (en) | 2009-09-25 | 2009-09-25 | Image forming apparatus |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2009220523A JP5312273B2 (en) | 2009-09-25 | 2009-09-25 | Image forming apparatus |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JP2011068010A JP2011068010A (en) | 2011-04-07 |
| JP5312273B2 true JP5312273B2 (en) | 2013-10-09 |
Family
ID=44013779
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP2009220523A Expired - Fee Related JP5312273B2 (en) | 2009-09-25 | 2009-09-25 | Image forming apparatus |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP5312273B2 (en) |
Families Citing this family (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP7582029B2 (en) * | 2021-04-01 | 2024-11-13 | ブラザー工業株式会社 | Printing device |
| JP7615843B2 (en) * | 2021-04-01 | 2025-01-17 | ブラザー工業株式会社 | Printing device |
Family Cites Families (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPH08115179A (en) * | 1994-10-17 | 1996-05-07 | Fuji Xerox Co Ltd | Printer controller |
| JPH09323464A (en) * | 1996-06-05 | 1997-12-16 | Seiko Epson Corp | Printer and its automatic emulation method |
| JP4196271B2 (en) * | 2003-06-26 | 2008-12-17 | コニカミノルタビジネステクノロジーズ株式会社 | Print data processing apparatus and data processing apparatus |
| JP2005319762A (en) * | 2004-05-11 | 2005-11-17 | Kyocera Mita Corp | Image formation device and its control program |
| JP2007060336A (en) * | 2005-08-25 | 2007-03-08 | Tohoku Information Systems Co Inc | Electronic tally seal system |
| JP5091914B2 (en) * | 2009-05-27 | 2012-12-05 | 京セラドキュメントソリューションズ株式会社 | Image forming apparatus |
-
2009
- 2009-09-25 JP JP2009220523A patent/JP5312273B2/en not_active Expired - Fee Related
Also Published As
| Publication number | Publication date |
|---|---|
| JP2011068010A (en) | 2011-04-07 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US8639990B2 (en) | Information processing apparatus that records logs, and control method and storage medium therefor | |
| US20050225789A1 (en) | Print subsystem despooling backplane | |
| EP2109066B1 (en) | Image output apparatus | |
| US20070177227A1 (en) | Code information printing apparatus, printing method, restoration apparatus, and restoration method | |
| JP4152838B2 (en) | Emulation of multiple TIFF files into a single print job | |
| JP4830936B2 (en) | Printing system and host device used in the system | |
| JP7172150B2 (en) | Information processing device, communication system, image forming method, program | |
| JP5312273B2 (en) | Image forming apparatus | |
| US9361560B2 (en) | Printing device which transmits decompressed data to a storage device if a predetermined condition is not satisfied | |
| US20050286078A1 (en) | Print control device and method for automatically resuming a printing operation of remaining pages | |
| US8441670B2 (en) | In-line system for the validation of a page description language within a print data stream | |
| US20070257922A1 (en) | Removable media device and image displaying system | |
| CN101087349A (en) | Image forming apparatus and method of controlling the apparatus | |
| US20080024825A1 (en) | Output apparatus configured to output data for printing, processing apparatus configured to process printing data, and method | |
| JP2007050649A (en) | Directly printable imaging device and control program | |
| US20110141514A1 (en) | Image processing apparatus and control method therefor | |
| US8446611B2 (en) | Image forming apparatus, computer readable recording medium, and method for improving the detection of input image data formats | |
| US20060170960A1 (en) | Image Reading Apparatus, Server Apparatus, and Image Processing System | |
| JP2001232889A (en) | PRINT CONTROL DEVICE, PRINT CONTROL METHOD, AND COMPUTER-READABLE RECORDING MEDIUM | |
| JP7615843B2 (en) | Printing device | |
| JP5169632B2 (en) | Image processing apparatus and program | |
| JP5091914B2 (en) | Image forming apparatus | |
| KR101613600B1 (en) | Image forming apparatus and method for distinguish xps file | |
| JP5501309B2 (en) | Electronic apparatus and image forming apparatus | |
| US20060268325A1 (en) | Printer for directly printing PDF batch file and method thereof |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20111025 |
|
| A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20130227 |
|
| A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20130227 |
|
| A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20130425 |
|
| TRDD | Decision of grant or rejection written | ||
| A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 Effective date: 20130605 |
|
| A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20130702 |
|
| R150 | Certificate of patent or registration of utility model |
Free format text: JAPANESE INTERMEDIATE CODE: R150 Ref document number: 5312273 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R150 |
|
| LAPS | Cancellation because of no payment of annual fees |