JP5091914B2 - Image forming apparatus - Google Patents
Image forming apparatus Download PDFInfo
- Publication number
- JP5091914B2 JP5091914B2 JP2009128203A JP2009128203A JP5091914B2 JP 5091914 B2 JP5091914 B2 JP 5091914B2 JP 2009128203 A JP2009128203 A JP 2009128203A JP 2009128203 A JP2009128203 A JP 2009128203A JP 5091914 B2 JP5091914 B2 JP 5091914B2
- Authority
- JP
- Japan
- Prior art keywords
- data
- xps
- image forming
- forming apparatus
- size
- 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.)
- Active
Links
Images
Landscapes
- Accessory Devices And Overall Control Thereof (AREA)
Description
本発明は、画像形成装置に関するものである。 The present invention relates to an image forming apparatus.
近年、XPS(XML Paper Specification)形式のドキュメントデータ(以下、XPSドキュメントデータという)が使用されている。XPSドキュメントデータは、ZIP形式で圧縮されている。このため、XPSドキュメントデータは、ZIP形式のフォーマットを有する。このXPSドキュメントデータを受信し、そのXPSドキュメントデータに従って印刷を行うプリンタがある(例えば特許文献1参照)。 In recent years, document data in the XPS (XML Paper Specification) format (hereinafter referred to as XPS document data) has been used. XPS document data is compressed in ZIP format. For this reason, the XPS document data has a ZIP format. There is a printer that receives the XPS document data and performs printing according to the XPS document data (see, for example, Patent Document 1).
XPSドキュメントデータを1つのファイルとして、例えばファイル転送プロトコルなどでプリンタへ供給する場合には、XPSドキュメントデータの終端はファイルの終端として検出可能である。しかしながら、USB(Universal Serial Bus)やパラレルインタフェースなどの周辺機器インタフェースでXPSドキュメントデータをプリンタへ供給する場合には、連続する複数のドキュメントデータが一連のデータストリームとなって供給されるため、各ドキュメントデータの終端がわからず、連続する複数のXPSドキュメントデータを別々の印刷ジョブとしてプリンタへ供給することが困難である。 When the XPS document data is supplied to the printer as one file, for example, by a file transfer protocol, the end of the XPS document data can be detected as the end of the file. However, when XPS document data is supplied to a printer through a peripheral device interface such as a USB (Universal Serial Bus) or parallel interface, a plurality of continuous document data is supplied as a series of data streams. The end of data is not known, and it is difficult to supply a plurality of continuous XPS document data to the printer as separate print jobs.
また、あるプリンタにおいては、タイムアウト時間を設け、タイムアウト時間が経過するまでドキュメントデータを待ち続け、タイムアウト時間が経過したときに、1つの印刷ジョブを確定させ、その印刷ジョブが開始される。このようにすると、連続する複数のXPSドキュメントデータを別々のジョブとしてプリンタへ供給することができるが、1つの印刷ジョブごとにタイムアウト時間だけの遅延が発生してしまう。 In some printers, a time-out period is provided, and document data is kept waiting until the time-out period elapses. When the time-out period elapses, one print job is determined and the print job is started. In this way, a plurality of continuous XPS document data can be supplied to the printer as separate jobs, but a delay of a timeout time occurs for each print job.
また、ページ記述言語で印刷データを記述してプリンタへ供給する場合には、PJL(Printer Job Language)のようなデバイス制御言語を使用して明示的にデータ終端を与えることができるが、XPS形式の仕様では、そのようなデータ終端を与えることが許されていない。 In addition, when print data is described in a page description language and supplied to a printer, the end of data can be given explicitly using a device control language such as PJL (Printer Job Language), but the XPS format is used. The specification does not allow such data termination.
本発明は、上記の問題に鑑みてなされたものであり、複数のXPSドキュメントデータを別々の印刷ジョブとして、連続的に処理することができる画像形成装置を得ることを目的とする。 SUMMARY An advantage of some aspects of the invention is that it provides an image forming apparatus capable of continuously processing a plurality of XPS document data as separate print jobs.
上記の課題を解決するために、本発明では以下のようにした。 In order to solve the above problems, the present invention is configured as follows.
本発明に係る画像形成装置は、XPS形式のドキュメントデータを受信する受信手段と、ドキュメントデータにおけるシグネチャを読み出し、シグネチャの値に基づいてフィールドのサイズを特定し、そのサイズだけデータ読み出し位置を進める処理を、エンド・オブ・セントラルディレクトリレコードを示すシグネチャが読み出されるまで繰り返し実行するXPS解釈手段と、XPS解釈手段によりエンド・オブ・セントラルディレクトリレコードが発見されると、そのエンド・オブ・セントラルディレクトリレコードを1つの印刷ジョブを終わりとして印刷ジョブを確定する制御手段とを備える。 An image forming apparatus according to the present invention includes a receiving unit that receives document data in XPS format, a process of reading a signature in the document data, specifying a field size based on the value of the signature, and advancing the data reading position by that size Until the signature indicating the end of central directory record is read, and when the end of central directory record is found by the XPS interpretation means, the end of central directory record is And a control means for determining a print job after one print job is completed.
これにより、エンド・オブ・セントラルディレクトリレコードを使用して、複数のXPS形式のドキュメントデータを別々の印刷ジョブとして、連続的に処理することができる。また、シグネチャごとにデータをスキップしていくため、エンド・オブ・セントラルディレクトリレコードを示すシグネチャと同値のデータが途中に存在しても、XPS形式のドキュメントデータの終端を正確に検出することができる。 Thus, a plurality of XPS format document data can be continuously processed as separate print jobs using the end-of-central directory record. In addition, since data is skipped for each signature, the end of XPS format document data can be accurately detected even if data equivalent to the signature indicating the end of central directory record exists in the middle. .
また、本発明に係る画像形成装置は、上記の画像形成装置に加え、次のようにしてもよい。この場合、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 XPS interpretation unit specifies the type of the field at the data reading position based on the signature value, and specifies the size of the field from the type.
また、本発明に係る画像形成装置は、上記の画像形成装置に加え、次のようにしてもよい。この場合、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, when the signature value indicates the local file header, the XPS interpretation means reads the size of the file data from the local file header, and sums the size of the local file header, the size of the file data, and the size of the data descriptor. Only the data read position is advanced.
また、本発明に係る画像形成装置は、上記の画像形成装置に加え、次のようにしてもよい。この場合、受信手段は、周辺機器インタフェースで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 receiving means receives the document data in the XPS format at the peripheral device interface.
また、本発明に係る画像形成装置は、上記の画像形成装置に加え、次のようにしてもよい。この場合、周辺機器インタフェースは、ユニバーサルシリアルバスまたはパラレルインタフェースである。 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 peripheral device interface is a universal serial bus or a parallel interface.
本発明によれば、連続して受信された複数のXPSドキュメントデータを別々の印刷ジョブとして、連続的に処理することができる。 According to the present invention, a plurality of XPS document data received successively can be continuously processed as separate print jobs.
以下、図に基づいて本発明の実施の形態を説明する。 Hereinafter, embodiments of the present invention will be described with reference to the drawings.
図1は、本発明の実施の形態に係る画像形成装置の構成を示すブロック図である。図1において、通信装置1は、パーソナルコンピュータなどのホスト装置に接続され、USB、パラレルインタフェースなどといった周辺機器インタフェースでXPSドキュメントデータを受信する装置である。
FIG. 1 is a block diagram showing a configuration of an image forming apparatus according to an embodiment of the present invention. In FIG. 1, a
また、画像処理装置2は、ドキュメントデータから抽出された画像データに対して画像処理を施して印刷データを生成する装置である。印刷データは、印刷エンジン3を制御するためのデータである。
The
また、印刷エンジン3は、印刷データに従って印刷用紙に画像を印刷する装置である。
The
また、コンピュータ4は、図示せぬCPU(Central Processing Unit)、ROM(Read Only Memory)、RAM(Random Access Memory)などを有し、RAMにプログラムをロードしCPUで実行する装置である。
The
コンピュータ4において、バッファ11は、図示せぬRAMに設けられ、受信されたドキュメントデータを一時的に記憶する記憶領域である。
In the
また、コンピュータ4において、プログラムをCPUで実行することにより、各種処理部が実現される。この実施の形態では、XPS解釈部12および制御部13が実現される。
In the
XPS解釈部12は、バッファ11からXPSドキュメントデータにおけるシグネチャを読み出し、そのシグネチャの値に基づいて、現在のデータ読み出し位置にあるフィールドのサイズを特定し、そのサイズだけデータ読み出し位置を進める処理を、エンド・オブ・セントラルディレクトリレコードを示すシグネチャが読み出されるまで繰り返し実行する処理部である。
The
XPSドキュメントデータは、ZIP形式で圧縮されたデータである。図2は、ZIP形式のデータ構造を示す図である。図2に示すように、ZIP形式のデータには、1組または複数組のローカルファイルヘッダ(Local File Header)、ファイルデータ(File Data)およびデータデスクリプタ(Data Descriptor)、セントラルディレクトリ(Central Directory)、並びにエンド・オブ・セントラルディレクトリレコード(End Of Central Directory Record)が含まれている。エンド・オブ・セントラルディレクトリレコードは、ZIPデータの終端に位置する。 XPS document data is data compressed in the ZIP format. FIG. 2 is a diagram showing a data structure in the ZIP format. As shown in FIG. 2, the ZIP format data includes one or more sets of local file header (Local File Header), file data (File Data) and data descriptor (Data Descriptor), 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または複数のファイルヘッダおよびデジタルシグネチャを有する。 The central directory has one or more file headers and a digital signature.
ローカルファイルヘッダ、セントラルディレクトリにおけるファイルヘッダおよびデジタルシグネチャ、並びにエンド・オブ・セントラルディレクトリレコードは、それらの先頭に、シグネチャを有する。シグネチャは、4バイトのデータであり、フィールドの種別に固有の値を有する。ローカルファイルヘッダのシグネチャの値は、0x04034b50である。セントラルディレクトリにおけるファイルヘッダのシグネチャの値は、0x02014b50である。セントラルディレクトリにおけるデジタルシグネチャのシグネチャの値は、0x05054b50である。エンド・オブ・セントラルディレクトリレコードのシグネチャの値は、0x06054b50である。 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 fields have a fixed length. However, the file data has a variable length, and its size is included in the local file header.
また、制御部13は、画像処理装置2および印刷エンジン3を制御し、受信されたXPSドキュメントデータに対応する印刷ジョブを管理し、印刷ジョブを実行して印刷エンジン3に印刷を行わせる処理部である。また、制御部13は、XPS解釈部12によりエンド・オブ・セントラルディレクトリレコードが発見されると、そのエンド・オブ・セントラルディレクトリレコードを1つの印刷ジョブを終わりとして印刷ジョブを確定する。
The
次に、上記装置の動作について説明する。図3は、図1に示す画像形成装置によるドキュメントデータ受信処理について説明するフローチャートである。 Next, the operation of the above apparatus will be described. FIG. 3 is a flowchart for describing document data reception processing by the image forming apparatus shown in FIG.
XPSドキュメントデータが通信装置1により受信されると、バッファ11に順番に記憶される(ステップS1)。
When the XPS document data is received by the
そして、XPS解釈部12は、バッファ11内のドキュメントデータの先頭から4バイトのシグネチャを読み出す(ステップS2)。
Then, the
XPS解釈部12は、そのシグネチャの値から、現在のデータ読み出し位置にあるフィールドの種別を特定し、そのフィールドのサイズを特定する(ステップS3)。このとき、そのフィールドがローカルファイルヘッダである場合には、XPS解釈部12は、ファイルデータのサイズをローカルファイルヘッダから読み出す。
The
なお、シグネチャの値とフィールド種別とフィールドサイズとは互いに関連付けられて予めテーブル(図示せず)に格納されており、そのテーブルを参照することにより、フィールドのサイズが特定される。 The signature value, field type, and field size are associated with each other and stored in advance in a table (not shown), and the size of the field is specified by referring to the table.
XPS解釈部12は、特定したサイズだけ(つまり、次のフィールドの先頭まで)、データ読み出し位置を進める(ステップS4)。このとき、現在のデータ読み出し位置にあるフィールドがローカルファイルヘッダである場合には、そのローカルファイルヘッダ、並びにそれに対応するファイルデータおよびデータデスクリプタがスキップされ、次のフィールドの先頭まで、データ読み出し位置が進められる。
The
また、XPS解釈部12は、ステップS2で読み出したシグネチャの値がエンド・オブ・セントラルディレクトリレコードを示す値であるか否かを判定する(ステップS5)。
Further, the
ステップS2で読み出したシグネチャの値がエンド・オブ・セントラルディレクトリレコードを示す値ではない場合、XPS解釈部12は、現在のデータ読み出し位置のフィールドについて、ステップS2〜S4の処理を再度行う。
If the signature value read in step S2 is not a value indicating an end-of-central directory record, the
一方、ステップS2で読み出したシグネチャの値がエンド・オブ・セントラルディレクトリレコードを示す値である場合、XPS解釈部12は、現在のデータ読み出し位置を制御部13に通知する。制御部13は、データの先頭または前回のエンド・オブ・セントラルディレクトリレコードの次のフィールドから、現在のデータ読み出し位置までのドキュメントデータを1つの印刷ジョブとし、その印刷ジョブをキューに登録したり、そのまま実行したりする(ステップS6)。
On the other hand, when the signature value read in step S2 is a value indicating an end-of-central directory record, the
そして、XPS解釈部12は、エンド・オブ・セントラルディレクトリレコードの後にデータが続いているか否かを判定する(ステップS7)。エンド・オブ・セントラルディレクトリレコードの後にデータが続いている場合には、次の印刷ジョブを確定させるための処理(ステップS2〜S6)が実行される。エンド・オブ・セントラルディレクトリレコードの後にデータが続いていない場合には、処理を終了する。
Then, the
以上のように、上記実施の形態によれば、通信装置1は、XPSドキュメントデータを受信する。XPS解釈部12は、そのドキュメントデータにおけるシグネチャを読み出し、シグネチャの値に基づいてフィールドのサイズを特定し、そのサイズだけデータ読み出し位置を進める処理を、エンド・オブ・セントラルディレクトリレコードを示すシグネチャが読み出されるまで繰り返し実行する。そして、制御部13は、XPS解釈部12によりエンド・オブ・セントラルディレクトリレコードが発見されると、そのエンド・オブ・セントラルディレクトリレコードを1つの印刷ジョブを終わりとして印刷ジョブを確定する。
As described above, according to the embodiment, the
これにより、複数のXPSドキュメントデータが連続して受信され連続的にバッファ11に記憶されていても、エンド・オブ・セントラルディレクトリレコードを使用して、複数のXPSドキュメントデータを別々の印刷ジョブとして、連続的に処理することができる。つまり、上述のようなタイムアウト時間の経過を待たなくても、直ちに後続の印刷ジョブを処理することができる。また、シグネチャごとにデータをスキップしていくため、エンド・オブ・セントラルディレクトリレコードを示すシグネチャと同値のデータが途中に存在しても、XPSドキュメントデータの終端を正確に検出することができる。
As a result, even if a plurality of XPS document data are continuously received and stored in the
なお、上述の実施の形態は、本発明の好適な例であるが、本発明は、これらに限定されるものではなく、本発明の要旨を逸脱しない範囲において、種々の変形、変更が可能である。 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.
本発明は、例えば、USBでパーソナルコンピュータに接続されるプリンタに適用可能である。 The present invention is applicable to a printer connected to a personal computer via USB, for example.
1 通信装置(受信手段の一例)
12 XPS解釈部(XPS解釈手段の一例)
13 制御部(制御手段の一例)
1 Communication device (an example of receiving means)
12 XPS interpretation part (an example of XPS interpretation means)
13 Control unit (an example of control means)
Claims (5)
XPS形式のドキュメントデータを受信する受信手段と、
前記ドキュメントデータにおけるシグネチャを読み出し、前記シグネチャの値に基づいてフィールドのサイズを特定し、そのサイズだけデータ読み出し位置を進める処理を、エンド・オブ・セントラルディレクトリレコードを示すシグネチャが読み出されるまで繰り返し実行するXPS解釈手段と、
前記XPS解釈手段によりエンド・オブ・セントラルディレクトリレコードが発見されると、そのエンド・オブ・セントラルディレクトリレコードを1つの印刷ジョブを終わりとして印刷ジョブを確定する制御手段と、
を備えることを特徴とする画像形成装置。 In an image forming apparatus that performs printing in accordance with XPS format document data,
Receiving means for receiving document data in XPS format;
The process of reading the signature in the document data, specifying the size of the field based on the value of the signature, and advancing the data reading position by the size is repeatedly executed until the signature indicating the end of central directory record is read. XPS interpretation means;
When an end-of-central directory record is found by the XPS interpreting means, control means for determining the print job with the end-of-central directory record as one print job as an end;
An image forming apparatus comprising:
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2009128203A JP5091914B2 (en) | 2009-05-27 | 2009-05-27 | Image forming apparatus |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2009128203A JP5091914B2 (en) | 2009-05-27 | 2009-05-27 | Image forming apparatus |
Publications (2)
Publication Number | Publication Date |
---|---|
JP2010277277A JP2010277277A (en) | 2010-12-09 |
JP5091914B2 true JP5091914B2 (en) | 2012-12-05 |
Family
ID=43424197
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2009128203A Active JP5091914B2 (en) | 2009-05-27 | 2009-05-27 | Image forming apparatus |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP5091914B2 (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP5312273B2 (en) * | 2009-09-25 | 2013-10-09 | 京セラドキュメントソリューションズ株式会社 | Image forming apparatus |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2008149592A (en) * | 2006-12-19 | 2008-07-03 | Konica Minolta Business Technologies Inc | Image formation device, printing method and control program |
JP4830936B2 (en) * | 2007-03-23 | 2011-12-07 | カシオ電子工業株式会社 | Printing system and host device used in the system |
JP2008243029A (en) * | 2007-03-28 | 2008-10-09 | Casio Electronics Co Ltd | Print system |
JP4990033B2 (en) * | 2007-06-08 | 2012-08-01 | 京セラドキュメントソリューションズ株式会社 | File transmission apparatus, image forming apparatus, file communication program, image forming program, file communication method, and image forming method |
-
2009
- 2009-05-27 JP JP2009128203A patent/JP5091914B2/en active Active
Also Published As
Publication number | Publication date |
---|---|
JP2010277277A (en) | 2010-12-09 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US8699047B2 (en) | Image processing apparatus, image processing method, and non-transitory computer readable medium that includes plural page description language (PDL) processing units and a job management unit | |
JP5839845B2 (en) | Printing apparatus, printing method, and program | |
US8659777B2 (en) | Server system, print device, network print system including server system and print device, and downloading method in network print system | |
US8867081B2 (en) | Printing method and apparatus for dividing each of the two or more print jobs into a plurality of sub-print jobs | |
US8705095B2 (en) | Print control apparatus, printing system, and computer readable medium storing program for utilizing plural interpreters for parallel processing of print jobs | |
US20110255126A1 (en) | Printing apparatus, print processing method, and program | |
JP2007257592A (en) | Printing system, information processor, and printer | |
JP5091914B2 (en) | Image forming apparatus | |
JP5244770B2 (en) | Image forming apparatus | |
US20180046414A1 (en) | Image forming apparatus, control method thereof, and non-transitory computer-readable storage medium | |
JP7259396B2 (en) | printer and module | |
US8446611B2 (en) | Image forming apparatus, computer readable recording medium, and method for improving the detection of input image data formats | |
JP5298046B2 (en) | Image forming apparatus | |
JP2006130816A (en) | Image forming device | |
US9146700B2 (en) | Information processing system having image forming apparatus capable of controlling print data obtainment timing, control method therefor, and storage medium | |
JP2009151697A (en) | Printing system and server device | |
JP7191713B2 (en) | Printer controller, printer control program, and printer | |
JP4957816B2 (en) | PDL data processing apparatus and PDL data processing program | |
JP2010181999A (en) | Printing system, printer, and print control program | |
JP2004086691A (en) | Image processing system | |
JP4296760B2 (en) | Printer | |
JP5312273B2 (en) | Image forming apparatus | |
JP5393590B2 (en) | Image forming system and image forming apparatus | |
JP4150850B2 (en) | Image processing apparatus, image processing method, and program | |
JP2022157949A (en) | printer |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20110822 |
|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20120810 |
|
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: 20120821 |
|
A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 |
|
A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20120914 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20150921 Year of fee payment: 3 |
|
R150 | Certificate of patent or registration of utility model |
Ref document number: 5091914 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R150 Free format text: JAPANESE INTERMEDIATE CODE: R150 |