[go: up one dir, main page]

JP2010194778A - Printer, program, and data processing method for printer - Google Patents

Printer, program, and data processing method for printer Download PDF

Info

Publication number
JP2010194778A
JP2010194778A JP2009040235A JP2009040235A JP2010194778A JP 2010194778 A JP2010194778 A JP 2010194778A JP 2009040235 A JP2009040235 A JP 2009040235A JP 2009040235 A JP2009040235 A JP 2009040235A JP 2010194778 A JP2010194778 A JP 2010194778A
Authority
JP
Japan
Prior art keywords
data
link file
input
acquisition
print
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP2009040235A
Other languages
Japanese (ja)
Inventor
Fumito Akiyama
文人 秋山
Masahiro Ozawa
昌裕 小澤
Jun Kuroki
純 黒木
Hiroshi Nogawa
博司 野川
Yasushi Aoyama
泰史 青山
Kunikazu Sato
邦和 佐藤
Yasutaka Shimohara
康貴 下原
Takahisa Matsunaga
貴久 松永
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.)
Konica Minolta Business Technologies Inc
Original Assignee
Konica Minolta Business Technologies Inc
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 Konica Minolta Business Technologies Inc filed Critical Konica Minolta Business Technologies Inc
Priority to JP2009040235A priority Critical patent/JP2010194778A/en
Publication of JP2010194778A publication Critical patent/JP2010194778A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Record Information Processing For Printing (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To prevent an overhead from being generated by evacuation processing and by rewriting processing of an evacuated data into a memory, and the overhead from increasing in proportion to the number of acquired link files, and to efficiently carry out processing about printing, using features that an input data includes a hyper text and that other data is a file designated by a hyperlink. <P>SOLUTION: A data processor 40 includes a CPU 41 for conducting processing for analyzing the presence of the hyperlink in an XHTML document data, processing for registering an entry into a link file request management table 131, when the hyperlink is included, to be managed by a list form, processing for acquiring the link file, based on link file acquisition request information 212, and processing for generating an intermediate language data based on the XHTML document data, until completing the acquisition of the link file, based on the XHTML document data and the link file, and for generating an intermediate language data, based on the link file after finishing the acquisition of the link file. <P>COPYRIGHT: (C)2010,JPO&INPIT

Description

本発明は、印刷装置、プログラム及び印刷装置のデータ処理方法に関する。   The present invention relates to a printing apparatus, a program, and a data processing method for the printing apparatus.

近年、印刷装置(例えばプリンタやMFP(Multifunction Peripheral)等)の機能として、ハイパーテキスト形式のデータを印刷する機能が求められている。携帯電話やPDA等の形態端末の表示画面で閲覧したXHTML(Extensible HyperText Markup Language)文書データをダイレクトに印刷する場合等に、当該機能が必要とされるためである。以下、ハイパーテキスト形式のデータの例として、XHTML文書データの印刷に関した説明を行う。   In recent years, as a function of a printing apparatus (for example, a printer or an MFP (Multifunction Peripheral)), a function of printing data in a hypertext format is required. This is because such a function is required when directly printing XHTML (Extensible HyperText Markup Language) document data viewed on a display screen of a form terminal such as a mobile phone or a PDA. Hereinafter, as an example of hypertext format data, description will be given regarding printing of XHTML document data.

印刷装置は、入力されたXHTML文書データに基づいて中間言語データを生成する処理を行う(以下、この処理を「解析」と称する)。そして、印刷装置は、中間言語データから印刷画像となるビットマップパターンを生成し、ビットマップパターンに応じた画像を印刷媒体(例えば紙等)に現像する画像形成部(エンジン)に出力する。   The printing apparatus performs a process of generating intermediate language data based on the input XHTML document data (hereinafter, this process is referred to as “analysis”). Then, the printing apparatus generates a bitmap pattern that becomes a print image from the intermediate language data, and outputs the bitmap pattern to an image forming unit (engine) that develops an image corresponding to the bitmap pattern on a print medium (such as paper).

XHTML文書データは、ハイパーリンクを用いてリンクファイル(例えば画像ファイル等)を参照し、表示させる機能を有している。リンクファイルを参照するハイパーリンクを含むXHTML文書データが印刷される場合、印刷装置はリンクファイルによる表示内容も印刷する。このとき、印刷装置はハイパーリンクで指定されたリンクファイルを取得する処理を行う。印刷装置は、リンクファイルを取得すると、リンクファイルから中間言語データを生成し、XHTML文書データのテキスト部分の中間言語データと合わせてビットマップパターンを生成する。   XHTML document data has a function of referring to and displaying a link file (for example, an image file) using a hyperlink. When XHTML document data including a hyperlink that refers to a link file is printed, the printing apparatus also prints the display contents by the link file. At this time, the printing apparatus performs processing for obtaining a link file designated by a hyperlink. When the printing apparatus obtains the link file, it generates intermediate language data from the link file, and generates a bitmap pattern together with the intermediate language data in the text portion of the XHTML document data.

ところで、中間言語データはオブジェクト単位で生成される。つまり、XHTML文書データのテキスト部分に対応した中間言語データとリンクファイルに対応した中間言語データとは個別に生成される。一方、ビットマップパターンは印刷媒体上のページ単位で生成される。即ち、ビットマップパターンを生成するために、印刷装置は一ページ分の中間言語データを生成する処理を行う必要がある。このため、リンクファイルの取得が完了せず一ページ分の中間言語データが揃わない場合、ビットマップパターンの生成以降の処理を行うことができず、印刷に関する他の処理が滞る。   By the way, the intermediate language data is generated in units of objects. That is, the intermediate language data corresponding to the text portion of the XHTML document data and the intermediate language data corresponding to the link file are generated separately. On the other hand, the bitmap pattern is generated in units of pages on the print medium. That is, in order to generate a bitmap pattern, the printing apparatus needs to perform processing for generating intermediate language data for one page. For this reason, when acquisition of the link file is not completed and intermediate language data for one page is not prepared, processing after generation of the bitmap pattern cannot be performed, and other processing relating to printing is delayed.

図10は、従来の画像形成装置の処理の一例を示すタイムチャートである。
XHTML文書にハイパーリンクが複数含まれる場合、図10に示すように、印刷装置はその記載順に従ってリンクファイルを取得する処理(例えばダウンロード等)を行う。このとき、従来の印刷装置は一つのリンクファイルの取得が完了するまで他の処理を待機させる。このため、例えば一ページ目に含まれるリンクファイルの取得完了までに多大な時間を要した場合、そのリンクファイルの取得完了までそのリンクファイルを指定するハイパーリンク以降のXHTML文書データの解析やその他印刷に関する他の処理が一切行われず、非効率であった。
FIG. 10 is a time chart showing an example of processing of the conventional image forming apparatus.
When a plurality of hyperlinks are included in the XHTML document, as shown in FIG. 10, the printing apparatus performs processing (for example, download) in accordance with the description order to obtain a link file. At this time, the conventional printing apparatus waits for another process until acquisition of one link file is completed. For this reason, for example, if it takes a long time to complete the acquisition of the link file included in the first page, analysis of XHTML document data after the hyperlink that specifies the link file until the completion of acquisition of the link file, and other printing No other processing was done and was inefficient.

そこで、図11に示すように、リンクファイル毎に個別のプロセスを設けプロセス毎にリンクファイルの取得処理及び取得したリンクファイルの解析を行う画像形成装置がある(例えば特許文献1)。図11は、外部ファイル毎に個別のプロセスを設けプロセス毎に外部ファイルの取得処理及び取得した外部ファイルの解析を行う画像形成装置のタイムチャートである。   Therefore, as shown in FIG. 11, there is an image forming apparatus in which a separate process is provided for each link file and a link file acquisition process and an analysis of the acquired link file are performed for each process (for example, Patent Document 1). FIG. 11 is a time chart of the image forming apparatus in which a separate process is provided for each external file and external file acquisition processing and analysis of the acquired external file are performed for each process.

特開2004−127132号公報JP 2004-127132 A

しかしながら、特許文献1の画像形成装置は、印刷に関する処理を効率よく行うことができないことがあった。   However, the image forming apparatus disclosed in Patent Document 1 may not be able to efficiently perform processing related to printing.

まず、印刷装置が有するメモリの記憶領域がリンクファイルの取得処理毎に設けられた複数のプロセスによって占有されてしまい、印刷に関する他の処理を行うためのメモリ容量が確保できなくなり印刷が滞る場合がある。加えて、リンクファイルの取得処理件数によっては全てのプロセスがメモリの記憶領域に収まらない場合も有り得る。
仮に、メモリの記憶内容を退避させるための補助記憶装置(例えばハードディスクやフラッシュメモリ等)を有する印刷装置であっても、メモリの記憶内容を補助記憶装置に退避する処理には多大な時間を要する上、退避処理及び退避したデータをメモリに書き戻す処理によるオーバーヘッドが生じ、非効率である。
First, the storage area of the memory of the printing device may be occupied by a plurality of processes provided for each link file acquisition process, and the memory capacity for performing other processes related to printing cannot be secured and printing may be delayed. is there. In addition, depending on the number of link file acquisition processes, all processes may not fit in the memory storage area.
Even in the case of a printing apparatus having an auxiliary storage device (for example, a hard disk or a flash memory) for saving the storage contents of the memory, it takes a long time to save the storage contents of the memory to the auxiliary storage device. In addition, overhead is caused by the saving process and the process of writing the saved data back to the memory, which is inefficient.

さらに、複数のプロセスを並列で処理するためのマルチスレッド制御は、プロセス切替時にオーバーヘッドを生ずる。即ち、オーバーヘッドは取得するリンクファイルの数に比例して増加する。オーバーヘッドは印刷処理に何ら寄与しない無駄な処理であり、オーバーヘッドの増加は印刷に関する処理の効率低下をもたらす。   Furthermore, multi-thread control for processing a plurality of processes in parallel causes an overhead when switching processes. That is, the overhead increases in proportion to the number of link files to be acquired. The overhead is a wasteful process that does not contribute to the printing process, and an increase in overhead causes a reduction in the efficiency of the process related to printing.

本発明の課題は、印刷に関する処理を効率的に行うことである。   The subject of this invention is performing the process regarding printing efficiently.

請求項1に記載の発明は、外部機器から入力された入力データに基づいて当該入力データの印刷データを生成し出力するデータ処理装置を有する印刷装置であって、前記データ処理装置は、前記入力データが他のデータを参照する命令を含むか否かを解析する処理、 前記解析の結果、他のデータを参照する命令が含まれる場合に当該他のデータを取得するための情報を抽出する処理、抽出された他のデータを取得するための情報をリスト形式で一括管理する処理、前記一括管理された情報に基づき各々の前記他のデータを取得する処理、前記入力データに前記他のデータを参照する命令が一つ以上含まれる場合、当該他のデータの取得が完了するまで前記入力データのうち他のデータを参照しない部分に基づいて前記印刷データを生成し、当該他のデータの取得完了後に当該他のデータに基づいて前記印刷データを生成する処理、を行う制御部を備えることを特徴とする。   The invention according to claim 1 is a printing apparatus having a data processing device that generates and outputs print data of the input data based on input data input from an external device, and the data processing device includes the input data Processing for analyzing whether data includes an instruction for referring to other data, or processing for extracting information for acquiring other data when the result of the analysis includes an instruction for referring to other data , A process for collectively managing information for acquiring the extracted other data in a list format, a process for acquiring each of the other data based on the collectively managed information, and the other data as the input data If one or more instructions to be referred to are included, the print data is generated based on a portion of the input data that does not refer to other data until acquisition of the other data is completed, Processing said generating print data based on the other data after acquisition completion of the other data, characterized in that it comprises control unit which performs the.

請求項2に記載の発明は、請求項1に記載の印刷装置であって、前記他のデータの取得完了後、当該他のデータに基づく前記印刷データの生成を当該他のデータを参照しない部分の前記入力データに基づく前記印刷データの生成よりも優先して行うことを特徴とする。   A second aspect of the present invention is the printing apparatus according to the first aspect, wherein after the acquisition of the other data is completed, the generation of the print data based on the other data is not referred to the other data. This is performed in preference to the generation of the print data based on the input data.

請求項3に記載の発明は、請求項1又は2に記載の印刷装置であって、抽出した他のデータを取得するための情報を、取得するファイル単位で管理テーブルに登録することを特徴とする。   The invention described in claim 3 is the printing apparatus according to claim 1 or 2, wherein information for acquiring other extracted data is registered in a management table in units of files to be acquired. To do.

請求項4に記載の発明は、請求項1から3のいずれか一項に記載の印刷装置であって、前記入力データは、ハイパーテキストを含み、前記他のデータは、ハイパーリンクにより指定されたファイルであることを特徴とする。   The invention according to claim 4 is the printing apparatus according to any one of claims 1 to 3, wherein the input data includes hypertext, and the other data is designated by a hyperlink. It is a file.

請求項5に記載のプログラムは、外部機器から入力された入力データに基づいて当該入力データの印刷データを生成し出力するデータ処理装置のコンピュータを、前記入力データが他のデータを参照する命令を含むか否かを解析する手段、前記解析の結果、他のデータを参照する命令が含まれる場合に当該他のデータを取得するための情報を抽出する手段、抽出された他のデータを取得するための情報をリスト形式で一括管理する手段、前記一括管理された情報に基づき各々の前記他のデータを取得する手段、前記入力データに前記他のデータを参照する命令が一つ以上含まれる場合、当該他のデータの取得が完了するまで前記入力データのうち他のデータを参照しない部分に基づいて前記印刷データを生成し、当該他のデータの取得完了後に当該他のデータに基づいて前記印刷データを生成する手段、として機能させることを特徴とする。   According to a fifth aspect of the present invention, there is provided a program for a computer of a data processing apparatus that generates and outputs print data of input data based on input data input from an external device, and issues an instruction for the input data to refer to other data. Means for analyzing whether to include, means for extracting information for acquiring other data when an instruction referring to other data is included as a result of the analysis, and acquiring the extracted other data Means for collectively managing information in a list format, means for obtaining each of the other data based on the collectively managed information, and one or more instructions referring to the other data included in the input data The print data is generated based on a portion of the input data that does not refer to other data until acquisition of the other data is completed, and after the acquisition of the other data is completed Characterized in that to function as a unit, for generating the print data based on the other data.

請求項6に記載の発明は、請求項5に記載のプログラムであって、前記他のデータの取得完了後、当該他のデータに基づく前記印刷データの生成を当該他のデータを参照しない部分の前記入力データに基づく前記印刷データの生成よりも優先して行うことを特徴とする。   The invention according to claim 6 is the program according to claim 5, wherein after the acquisition of the other data is completed, the generation of the print data based on the other data is not referred to the other data. The print data is generated with priority over the generation of the print data based on the input data.

請求項7に記載の発明は、請求項5又は6に記載のプログラムであって、抽出した他のデータを取得するための情報を、取得するファイル単位で管理テーブルに登録することを特徴とする。   The invention according to claim 7 is the program according to claim 5 or 6, wherein information for acquiring other extracted data is registered in a management table in units of files to be acquired. .

請求項8に記載の発明は、請求項5から7のいずれか一項に記載のプログラムであって、前記入力データは、ハイパーテキストを含み、前記他のデータは、ハイパーリンクにより指定されたファイルであることを特徴とする。   The invention according to claim 8 is the program according to any one of claims 5 to 7, wherein the input data includes hypertext, and the other data is a file designated by a hyperlink. It is characterized by being.

請求項9に記載の発明は、外部機器から入力された入力データに基づいて当該入力データの印刷データを生成し出力するデータ処理装置を有する印刷装置のデータ処理方法であって、前記入力データが他のデータを参照する命令を含むか否かを解析するステップ、前記解析の結果、他のデータを参照する命令が含まれる場合に当該他のデータを取得するための情報を抽出するステップ、抽出された他のデータを取得するための情報をリスト形式で一括管理するステップ、前記一括管理された情報に基づき各々の前記他のデータを取得するステップ、前記入力データに前記他のデータを参照する命令が一つ以上含まれる場合、当該他のデータの取得が完了するまで前記入力データのうち他のデータを参照しない部分に基づいて前記印刷データを生成し、当該他のデータの取得完了後に当該他のデータに基づいて前記印刷データを生成するステップ、を含むことを特徴とする。   The invention according to claim 9 is a data processing method for a printing apparatus having a data processing apparatus for generating and outputting print data of the input data based on input data input from an external device, wherein the input data is A step of analyzing whether or not an instruction referring to other data is included; and a step of extracting information for acquiring the other data when an instruction referring to other data is included as a result of the analysis A step of collectively managing the information for acquiring the other data in a list format, a step of acquiring each of the other data based on the information managed in a batch, and referring to the other data for the input data If one or more instructions are included, the print data is determined based on a portion of the input data that does not refer to other data until acquisition of the other data is completed. Form, characterized in that it comprises the step of generating the print data based on the other data after the acquisition completion of the other data.

請求項10に記載の発明は、請求項9に記載の印刷装置のデータ処理方法であって、前記他のデータの取得完了後、当該他のデータに基づく前記印刷データの生成を当該他のデータを参照しない部分の前記入力データに基づく前記印刷データの生成よりも優先して行うことを特徴とする。   A tenth aspect of the present invention is the data processing method of the printing apparatus according to the ninth aspect, wherein after the acquisition of the other data is completed, the generation of the print data based on the other data is performed. This is performed in preference to the generation of the print data based on the input data of the part that does not refer to.

請求項11に記載の発明は、請求項9又は10に記載の印刷装置のデータ処理方法であって、抽出した他のデータを取得するための情報を、取得するファイル単位で管理テーブルに登録することを特徴とする。   The invention described in claim 11 is the data processing method of the printing apparatus according to claim 9 or 10, wherein information for acquiring the extracted other data is registered in the management table in units of files to be acquired. It is characterized by that.

請求項12に記載の発明は、請求項9から11のいずれか一項に記載の印刷装置のデータ処理装置であって、前記入力データは、ハイパーテキストを含み、前記他のデータは、ハイパーリンクにより指定されたファイルであることを特徴とする。   A twelfth aspect of the present invention is the data processing apparatus of the printing apparatus according to any one of the ninth to eleventh aspects, wherein the input data includes hypertext, and the other data includes a hyperlink. It is a file specified by.

本発明によれば、印刷に関する処理を効率的に行うことができる。   According to the present invention, it is possible to efficiently perform processing related to printing.

本発明によるデータ処理装置を備えた印刷装置の主要構成を示すブロック図である。It is a block diagram which shows the main structures of the printing apparatus provided with the data processor by this invention. エンジンの主要構成を示す図である。It is a figure which shows the main structures of an engine. データ処理装置の機能を示す図である。It is a figure which shows the function of a data processor. XHTML文書データの一例を示す図である。It is a figure which shows an example of XHTML document data. XHTML文書データの表示例を示す図である。It is a figure which shows the example of a display of XHTML document data. リンクファイル要求管理テーブルの一例を示す図である。It is a figure which shows an example of a link file request management table. データ解析部によるXHTML文書データの解析と、外部ファイルの取得状態との関係を示すタイムチャートである。It is a time chart which shows the relationship between the analysis of XHTML document data by a data analysis part, and the acquisition state of an external file. データ解析部によるXHTML文書データの解析の流れを示すフローチャートである。It is a flowchart which shows the flow of the analysis of XHTML document data by a data analysis part. リンクファイル取得部による外部ファイルの取得処理の流れを示すフローチャートである。It is a flowchart which shows the flow of the acquisition process of the external file by a link file acquisition part. 従来の画像形成装置の処理の一例を示すタイムチャートである。It is a time chart which shows an example of the process of the conventional image forming apparatus. 外部ファイル毎に個別のプロセスを設けプロセス毎に外部ファイルの取得処理及び取得した外部ファイルの解析を行う画像形成装置のタイムチャートである。5 is a time chart of an image forming apparatus in which a separate process is provided for each external file and external file acquisition processing and analysis of the acquired external file are performed for each process.

以下、図を参照して本発明の実施の形態の例を詳細に説明する。
図1は、本発明によるデータ処理装置を備えた印刷装置1の主要構成を示すブロック図である。
図1に示すように、印刷装置1は、エンジン10と、データ処理装置40と、を備える。
Hereinafter, exemplary embodiments of the present invention will be described in detail with reference to the drawings.
FIG. 1 is a block diagram showing the main configuration of a printing apparatus 1 having a data processing apparatus according to the present invention.
As shown in FIG. 1, the printing apparatus 1 includes an engine 10 and a data processing device 40.

まず、エンジン10について説明する。エンジン10は、紙等の印刷媒体に印刷を行う装置である。
図2は、エンジン10の主要構成を示す図である。本実施形態におけるエンジン10は、イエロー(Y),マゼンダ(M),シアン(C),ブラック(K)の4色それぞれを個別の静電ドラムで転写する構成(タンデム方式)である。
図2に示すように、エンジン10は、用紙カセット11、給紙ローラ12、搬送ローラ13、搬送ベルト14、静電ドラム15、16、17、18、プリントユニット19、20、21、22、レーザーユニット23、23、23、23、転写ローラ24、24、24、24、定着器25、排紙ローラ26及び筐体27を備える。
First, the engine 10 will be described. The engine 10 is a device that performs printing on a print medium such as paper.
FIG. 2 is a diagram illustrating a main configuration of the engine 10. The engine 10 in the present embodiment has a configuration (tandem method) in which each of four colors of yellow (Y), magenta (M), cyan (C), and black (K) is transferred by an individual electrostatic drum.
As shown in FIG. 2, the engine 10 includes a paper cassette 11, a paper feed roller 12, a transport roller 13, a transport belt 14, electrostatic drums 15, 16, 17, 18, print units 19, 20, 21, 22, and a laser unit. 23, 23, 23, 23, transfer rollers 24, 24, 24, 24, a fixing device 25, a paper discharge roller 26, and a housing 27.

用紙カセット11は、紙等の印刷媒体をストックする。以下、用紙カセット11に紙がストックされている場合の印刷工程について記載する。
給紙ローラ12は、用紙カセット11内の紙を一枚ずつ引き出す。搬送ローラ13は、給紙ローラ12が引き出した紙を搬送ベルト14へ搬送する。搬送ベルト14へ搬送された紙は、静電ドラム15,16,17,18によりその紙面にトナー画像を施される。
The paper cassette 11 stocks printing media such as paper. Hereinafter, a printing process when paper is stocked in the paper cassette 11 will be described.
The paper feed roller 12 pulls out the paper in the paper cassette 11 one by one. The transport roller 13 transports the paper pulled out by the paper feed roller 12 to the transport belt 14. The paper transported to the transport belt 14 is subjected to a toner image on the paper surface by the electrostatic drums 15, 16, 17 and 18.

静電ドラム15、16、17、18は、トナー画像を紙に転写する。以下、静電ドラム15を例とし、転写の仕組みを説明する。
静電ドラム15は円筒状の部材であり、帯電ユニット(図示略)によりその円筒の外周面が帯電している。静電ドラム15は、帯電した外周面にレーザーユニット23からレーザの照射を受けて露光する。レーザーユニット23は、紙へ印刷する画像に応じたパターン(印刷パターン)に従ってレーザを静電ドラム15に照射し、静電ドラム15の外周面に静電潜像を形成する。その後、静電ドラム15は、プリントユニット19による現像を受ける。プリントユニット19は、イエロー(Y)のトナーを収めるトナーカートリッジと、トナーカートリッジ内のトナーを静電画像に付着させる現像ユニットとを有し、静電ドラム15の外周面に形成された静電画像にトナーを付着させることで静電ドラム15の外周面に印刷パターンに応じたトナー画像を施す。
トナー画像は、搬送ベルト14と静電ドラム15とによって紙が挟まれるタイミングで紙に転写される。搬送ベルト14を挟んで静電ドラム15と対向する位置には転写ローラ24が設けられており、転写ローラ24による逆帯電によりトナー画像は紙に転写される。
The electrostatic drums 15, 16, 17, and 18 transfer the toner image to paper. Hereinafter, the transfer mechanism will be described using the electrostatic drum 15 as an example.
The electrostatic drum 15 is a cylindrical member, and the outer peripheral surface of the cylinder is charged by a charging unit (not shown). The electrostatic drum 15 is exposed by receiving laser irradiation from the laser unit 23 on the charged outer peripheral surface. The laser unit 23 irradiates the electrostatic drum 15 with a laser according to a pattern (printing pattern) corresponding to an image to be printed on paper, and forms an electrostatic latent image on the outer peripheral surface of the electrostatic drum 15. Thereafter, the electrostatic drum 15 is subjected to development by the print unit 19. The print unit 19 includes a toner cartridge that stores yellow (Y) toner and a developing unit that attaches the toner in the toner cartridge to the electrostatic image. The print unit 19 generates an electrostatic image formed on the outer peripheral surface of the electrostatic drum 15. By attaching the toner, a toner image corresponding to the print pattern is applied to the outer peripheral surface of the electrostatic drum 15.
The toner image is transferred to the paper at a timing when the paper is sandwiched between the conveyance belt 14 and the electrostatic drum 15. A transfer roller 24 is provided at a position facing the electrostatic drum 15 with the conveyance belt 14 interposed therebetween, and the toner image is transferred to paper by reverse charging by the transfer roller 24.

前述の静電ドラム15によるトナー画像の転写と同様の仕組みにより、静電ドラム16はプリントユニット20のトナーカートリッジ内に収められたマゼンダ(M)のトナー画像を転写し、静電ドラム17はプリントユニット21のトナーカートリッジ内に収められたシアン(C)のトナー画像を転写し、静電ドラム18はプリントユニット22のトナーカートリッジ内に収められたブラック(K)のトナー画像を転写する。4色のトナー画像が重ねて転写されることにより、紙はその紙面にトナー画像を施される。   The electrostatic drum 16 transfers the magenta (M) toner image stored in the toner cartridge of the print unit 20 by the same mechanism as the transfer of the toner image by the electrostatic drum 15 described above, and the electrostatic drum 17 transfers the print unit 21. The cyan (C) toner image stored in the toner cartridge is transferred, and the electrostatic drum 18 transfers the black (K) toner image stored in the toner cartridge of the print unit 22. By transferring the four color toner images in a superimposed manner, the toner image is applied to the paper surface.

トナー画像を施された紙は、定着器25へ搬送される。定着器25は、紙面に形成されたトナー画像を定着させる。トナー画像の定着を施された紙は、排紙ローラ26により搬送されて筐体27の上方に排出される。
以上、紙に対する印刷工程を示したが、紙以外の印刷媒体についても同様の仕組みによる印刷が行われる。
The paper on which the toner image has been applied is conveyed to the fixing device 25. The fixing device 25 fixes the toner image formed on the paper surface. The paper on which the toner image has been fixed is conveyed by the paper discharge roller 26 and discharged above the housing 27.
Although the printing process for paper has been described above, printing by a similar mechanism is performed on a printing medium other than paper.

印刷パターンは、データ処理装置40が出力するビデオ信号204に基づく。以下、データ処理装置40について説明する。
図1に示すように、データ処理装置40は、CPU41、RAM42、ROM43、ハードディスク(以下の説明及び図においてHDDと記載する)44、通信装置45及びバス46を備える。
The print pattern is based on the video signal 204 output from the data processing device 40. Hereinafter, the data processing device 40 will be described.
As shown in FIG. 1, the data processing device 40 includes a CPU 41, a RAM 42, a ROM 43, a hard disk (described as HDD in the following description and drawings) 44, a communication device 45, and a bus 46.

CPU41は、通信装置45を介してホスト80から入力されたデータ(入力データ200)に基づき、ROM43から処理内容に応じたプログラムを読み込んで実行、処理し、エンジン10にビデオ信号204を出力する。
RAM42は、CPU41が実行、処理するプログラムやデータ等を一時的に格納する記憶領域として機能する。
ROM43は、CPU41が読み込む各種プログラムを書き換え不可能な状態で記憶する。
HDD44は、データを書き換え可能な状態で記憶することができる。
The CPU 41 reads and executes a program corresponding to the processing content from the ROM 43 based on data (input data 200) input from the host 80 via the communication device 45, and outputs a video signal 204 to the engine 10.
The RAM 42 functions as a storage area for temporarily storing programs and data executed and processed by the CPU 41.
The ROM 43 stores various programs read by the CPU 41 in a non-rewritable state.
The HDD 44 can store data in a rewritable state.

通信装置45は、データ処理装置40と外部機器とを相互通信可能に接続する。通信装置45として、例えば無線LAN(Local Area Network)やBluetooth、インターネット接続その他の方式による外部のネットワークとの接続を可能にする各種の装置が挙げられ、通信装置45はこれら複数の方式による通信機能を有している。通信装置45と相互通信可能に接続される外部機器として、例えばPCや携帯電話、外部のネットワークを介して接続されたワークステーション等が挙げられるが、以下の記載及び図1においてこれらの外部機器をホスト80と記載する。
バス46は、データ処理装置40の各部及びエンジン10を相互に接続する。
The communication device 45 connects the data processing device 40 and an external device so that they can communicate with each other. Examples of the communication device 45 include various devices that enable connection to an external network using, for example, a wireless local area network (LAN), Bluetooth, Internet connection, and other methods. have. Examples of external devices connected to the communication device 45 so as to be able to communicate with each other include a PC, a mobile phone, a workstation connected via an external network, and the like. It is described as a host 80.
The bus 46 connects each part of the data processing device 40 and the engine 10 to each other.

次に、データ処理装置40の機能について説明する。図3は、データ処理装置40の機能を示す図である。
図3に示すように、データ処理装置40は、データ解析部61、データ描画部62、印刷制御部63、印刷部64、リンクファイル管理部65、リンクファイル取得部66として機能する。
Next, functions of the data processing device 40 will be described. FIG. 3 is a diagram illustrating functions of the data processing device 40.
As illustrated in FIG. 3, the data processing device 40 functions as a data analysis unit 61, a data drawing unit 62, a print control unit 63, a printing unit 64, a link file management unit 65, and a link file acquisition unit 66.

データ処理装置40の各機能は、CPU41が各機能に対応するプログラムをROM43から読み込んで実行、処理することによる。ROM43は、データ解析プログラム51、データ描画プログラム52、印刷制御プログラム53、印刷プログラム54、リンクファイル管理プログラム55、リンクファイル取得プログラム56を記憶する。CPU41は、データ解析プログラム51を読み込んで実行処理することによりデータ解析部61として機能する。同様に、CPU41は、データ描画プログラム52によりデータ描画部62として、印刷制御プログラム53により印刷制御部63として、印刷プログラム54により印刷部64として、リンクファイル管理プログラム55によってリンクファイル管理部65として、リンクファイル取得プログラム56によりリンクファイル取得部66として機能する。CPU41は、各機能を並行して処理する。以下、各機能について説明する。   Each function of the data processing device 40 is obtained by the CPU 41 reading a program corresponding to each function from the ROM 43 and executing and processing the program. The ROM 43 stores a data analysis program 51, a data drawing program 52, a print control program 53, a print program 54, a link file management program 55, and a link file acquisition program 56. The CPU 41 functions as the data analysis unit 61 by reading and executing the data analysis program 51. Similarly, the CPU 41 uses the data drawing program 52 as the data drawing unit 62, the print control program 53 as the print control unit 63, the print program 54 as the printing unit 64, and the link file management program 55 as the link file management unit 65. The link file acquisition program 56 functions as a link file acquisition unit 66. The CPU 41 processes each function in parallel. Each function will be described below.

まず、エンジン10に出力するビデオ信号204を生成する機能に関する説明を行う。
データ解析部61は、ホスト80から入力された入力データ200に基づいて当該データを印刷するための中間言語データ201(例えばDisplay ListやPostScript等によるデータ)を生成し、データ描画部62へ出力する。中間言語データ201の生成に際し、データ解析部61はデータを読み込み、解釈する解析を行う。
First, the function for generating the video signal 204 to be output to the engine 10 will be described.
The data analysis unit 61 generates intermediate language data 201 (for example, data by Display List, PostScript, etc.) for printing the data based on the input data 200 input from the host 80, and outputs it to the data drawing unit 62. . When the intermediate language data 201 is generated, the data analysis unit 61 reads and interprets the data.

データ描画部62は、データ解析部61から入力された中間言語データ201からビットマップパターン202を生成し、印刷制御部63へ出力する。
印刷制御部63は、データ描画部62から入力されたビットマップパターン202を印刷媒体に印刷する際のレイアウトその他に関する各種処理を行い、処理後のデータ203を印刷部64へ出力する。印刷制御部63が行う処理として、例えば片面/両面印刷の選択に応じた制御や、ページ割付を伴う印刷の制御等が挙げられる。
印刷部64は、印刷制御部63から入力された処理後のデータ203に基づきビデオ信号204を生成し、エンジン10へ出力する。エンジン10は、印刷部64から入力されたビデオ信号204に基づいて印刷を行う。
The data drawing unit 62 generates a bitmap pattern 202 from the intermediate language data 201 input from the data analysis unit 61 and outputs it to the print control unit 63.
The print control unit 63 performs various processes relating to the layout and the like when the bitmap pattern 202 input from the data drawing unit 62 is printed on a print medium, and outputs the processed data 203 to the printing unit 64. Examples of processing performed by the print control unit 63 include control according to selection of single-sided / double-sided printing, and control of printing with page allocation.
The printing unit 64 generates a video signal 204 based on the processed data 203 input from the printing control unit 63 and outputs the video signal 204 to the engine 10. The engine 10 performs printing based on the video signal 204 input from the printing unit 64.

次に、入力データ200が他のデータを参照する命令を含む場合に他のデータを取得する機能について説明する。以下、他のデータを参照する命令を含む入力データの例として、XHTML文書データを用いて説明する。   Next, a function for acquiring other data when the input data 200 includes a command for referring to the other data will be described. Hereinafter, XHTML document data will be used as an example of input data including an instruction for referring to other data.

まず、XHTML文書データについて説明する。
図4は、XHTML文書データの一例を示す図である。
XHTML文書データは、文書型宣言部121、XML名前空間宣言部122、head要素123及びbody要素124を含む。以下、XHTML文書データに含まれるこれらの各構成を「XHTMLコマンド」と総称する。
First, XHTML document data will be described.
FIG. 4 is a diagram illustrating an example of XHTML document data.
The XHTML document data includes a document type declaration unit 121, an XML namespace declaration unit 122, a head element 123, and a body element 124. Hereinafter, each of these components included in the XHTML document data is collectively referred to as “XHTML command”.

文書型宣言部121は、その文書データの型を示すテキストであり、図4に示す文書型宣言部121はこの文書データがXHTML文書データであることを示している。XML名前空間宣言部122は、マークアップ言語で用いられるタグの名前と意味とを一意に対応付ける情報(名前空間)を示すURL (Uniform Resource Locator)を示すテキストであり、図4に示すXML名前空間宣言部122はhtml要素内に記述する各タグがURLで指定された名前空間に属することを示している。head要素123は文書のフォントの種類、色、サイズや各タグ要素のレイアウト、マージン等を指定するためのスタイルシート、文書のタイトルその他の文書に関する各種情報を記述するテキストである。body要素124はそのデータの本文である。   The document type declaration unit 121 is text indicating the type of the document data, and the document type declaration unit 121 shown in FIG. 4 indicates that the document data is XHTML document data. The XML namespace declaration unit 122 is a text indicating a URL (Uniform Resource Locator) indicating information (namespace) that uniquely associates the name and meaning of a tag used in the markup language. The XML namespace shown in FIG. The declaration unit 122 indicates that each tag described in the html element belongs to the name space specified by the URL. The head element 123 is text describing various information related to the document font type, color, size, layout of each tag element, style sheet for designating margins, the document title, and other documents. The body element 124 is the body of the data.

図5は、XHTML文書データの表示例を示す図である。図5に示す表示例は、図4に示すXHTML文書データの表示例である。
XHTML文書データは、その表示内容に、テキスト91、92等のテキスト文書と、XHTML文書データとは異なる他のデータ(例えば図5の画像101、102等)による内容を含ませることができる。XHTML文書データの表示内容は、XHTML文書データのbody要素124内のテキストに対応する。例えば、図5に示す画像101、102はそれぞれ図4に示すハイパーリンク111、112によって指定される他のデータである。以下、ハイパーリンクによって指定される他のデータをリンクファイルと称する。
FIG. 5 is a diagram showing a display example of XHTML document data. The display example shown in FIG. 5 is a display example of the XHTML document data shown in FIG.
The display content of the XHTML document data can include a text document such as the texts 91 and 92 and other data (for example, the images 101 and 102 in FIG. 5) different from the XHTML document data. The display content of the XHTML document data corresponds to the text in the body element 124 of the XHTML document data. For example, the images 101 and 102 shown in FIG. 5 are other data designated by the hyperlinks 111 and 112 shown in FIG. 4, respectively. Hereinafter, other data designated by the hyperlink is referred to as a link file.

データ解析部61は、解析において、XHTML文書データが他のデータを参照する命令、即ちハイパーリンクを含むか否かを判定する。データ解析部61は、XHTML文書データにハイパーリンクが含まれていると判定すると、リンクファイルの登録を行う。具体的には、データ解析部61は当該ハイパーリンクが指定するリンクファイルに関連する情報211をリンクファイル管理部65へ出力する。   In the analysis, the data analysis unit 61 determines whether or not the XHTML document data includes a command for referring to other data, that is, a hyperlink. If the data analysis unit 61 determines that the XHTML document data includes a hyperlink, the data analysis unit 61 registers a link file. Specifically, the data analysis unit 61 outputs information 211 related to the link file designated by the hyperlink to the link file management unit 65.

リンクファイル管理部65は、データ解析部から入力されたリンクファイルに関連する情報211に基づき、リンクファイルを取得するための情報を抽出してリンクファイル要求管理テーブル131に登録し、そのリンクファイルの取得状態を管理する。
図6は、リンクファイル要求管理テーブル131の一例を示す図である。
リンクファイル要求管理テーブル131は、リンクファイル管理部65によって生成、更新されるデータであり、RAM42の記憶領域に格納される。図6に示すように、リンクファイル要求管理テーブル131は、リンクファイル名、リンクファイル挿入位置、URL、取得完了フラグ及びリンクファイルデータ格納ディレクトリの各レコードを有するリスト形式のデータである。
The link file management unit 65 extracts information for acquiring a link file based on the information 211 related to the link file input from the data analysis unit, registers it in the link file request management table 131, and stores the link file. Manage acquisition status.
FIG. 6 is a diagram illustrating an example of the link file request management table 131.
The link file request management table 131 is data generated and updated by the link file management unit 65 and is stored in the storage area of the RAM 42. As shown in FIG. 6, the link file request management table 131 is data in a list format having each record of a link file name, a link file insertion position, a URL, an acquisition completion flag, and a link file data storage directory.

リンクファイル名は、リンクファイルのファイル名である。リンクファイル挿入位置は、データ解析部61が出力する中間言語データ201においてそのリンクファイルが挿入される位置を示すマーカーである。URLは、そのリンクファイルのURLである。取得完了フラグは、そのリンクファイルの取得が完了したか否かを示し、完了の場合は「YES」、未完了の場合は「NO」である。リンクファイルデータ格納ディレクトリは、取得したリンクファイルの格納先を示す。   The link file name is the file name of the link file. The link file insertion position is a marker indicating the position where the link file is inserted in the intermediate language data 201 output from the data analysis unit 61. URL is the URL of the link file. The acquisition completion flag indicates whether or not the acquisition of the link file has been completed, and is “YES” if completed, or “NO” if not completed. The link file data storage directory indicates the storage location of the acquired link file.

リンクファイル要求管理テーブル131は、各レコードを一つずつ有するデータの組合せをエントリとして管理する。図6に示す各行はそれぞれ一つのエントリである。各エントリはそれぞれ、一つのURLによって指定される一つのファイルに対応する。即ち、リンクファイル要求管理テーブルのエントリはファイル単位である。リンクファイル管理部65は、リンクファイルに関連する情報211からエントリの各レコードに対応する情報を抽出して登録する。   The link file request management table 131 manages a combination of data each having one record as an entry. Each row shown in FIG. 6 is one entry. Each entry corresponds to one file specified by one URL. In other words, the entry in the link file request management table is in units of files. The link file management unit 65 extracts and registers information corresponding to each record of the entry from the information 211 related to the link file.

エントリに含まれるレコードのうち、リンクファイル名、リンクファイル挿入位置及びURLの内容はデータ解析部61から入力されたリンクファイルに関連する情報に基づく。リンクファイル管理部65は、データ解析部61からリンクファイルの登録を受けると、リンクファイル要求管理テーブル131に新しいエントリを生成し、リンクファイル名、リンクファイル挿入位置及びURLを当該エントリに設定する。そして、リンクファイル管理部65は、当該エントリの取得完了フラグを「NO」として設定する。   Among the records included in the entry, the link file name, the link file insertion position, and the URL content are based on information related to the link file input from the data analysis unit 61. When the link file management unit 65 receives registration of the link file from the data analysis unit 61, the link file management unit 65 generates a new entry in the link file request management table 131, and sets the link file name, the link file insertion position, and the URL in the entry. Then, the link file management unit 65 sets the acquisition completion flag of the entry as “NO”.

リンクファイル管理部65は、新しいエントリの設定後、新しいエントリに基づくリンクファイル取得要求をリンクファイル取得部66に対して行う。具体的には、リンクファイル管理部65は、新しいエントリのURLを含むリンクファイル取得要求情報212をリンクファイル取得部66へ出力する。   After setting a new entry, the link file management unit 65 makes a link file acquisition request based on the new entry to the link file acquisition unit 66. Specifically, the link file management unit 65 outputs the link file acquisition request information 212 including the URL of the new entry to the link file acquisition unit 66.

リンクファイル取得部66は、リンクファイル管理部65からリンクファイル取得要求情報212を入力されると、当該リンクファイル取得要求情報212に含まれるURLに基づきリンクファイルを取得する。具体的には、リンクファイル取得部66は、通信装置45を介してホスト80との接続を確立し、URLが示すリンクファイルのダウンロード要求215をホスト80に送信する。そして、リンクファイル取得部66は、リンクファイルをダウンロードし、予め定められた所定のディレクトリに格納する(図3の符号216)。リンクファイル取得部66がリンクファイルを要求するホスト80は、URLが示すホストであり、入力データ200をデータ処理装置40に入力したホスト80と必ずしも同一ではない。   When the link file acquisition request information 212 is input from the link file management unit 65, the link file acquisition unit 66 acquires a link file based on the URL included in the link file acquisition request information 212. Specifically, the link file acquisition unit 66 establishes a connection with the host 80 via the communication device 45 and transmits a link file download request 215 indicated by the URL to the host 80. Then, the link file acquisition unit 66 downloads the link file and stores it in a predetermined directory (reference numeral 216 in FIG. 3). The host 80 from which the link file acquisition unit 66 requests the link file is the host indicated by the URL, and is not necessarily the same as the host 80 that has input the input data 200 to the data processing device 40.

リンクファイル取得部66は、リンクファイルのダウンロードを完了させると、そのリンクファイルのダウンロードが完了したことを示すダウンロード完了通知213をリンクファイル管理部65に出力する。リンクファイル管理部65は、ダウンロード完了通知213を入力されると、リンクファイル要求管理テーブル131におけるそのリンクファイルに対応したエントリの取得完了フラグを「ON」にすると共に、リンクファイルデータ格納ディレクトリにそのリンクファイルが格納されたパスを設定する更新処理を行う(図3の符号218)。そして、更新処理を行ったエントリに対応するリンクファイルの取得完了通知214をリンクファイル解析部61に出力する。
リンクファイル解析部61は、取得完了通知214を入力されると、その取得完了通知214に対応するリンクファイルの解析を行い、中間言語データを生成する。
When the link file acquisition unit 66 completes the download of the link file, the link file acquisition unit 66 outputs a download completion notification 213 indicating that the download of the link file is completed to the link file management unit 65. When the download completion notification 213 is input, the link file management unit 65 sets the acquisition completion flag of the entry corresponding to the link file in the link file request management table 131 to “ON” and stores the acquisition completion flag in the link file data storage directory. An update process for setting the path where the link file is stored is performed (reference numeral 218 in FIG. 3). Then, a link file acquisition completion notification 214 corresponding to the entry for which update processing has been performed is output to the link file analysis unit 61.
When the acquisition completion notification 214 is input, the link file analysis unit 61 analyzes the link file corresponding to the acquisition completion notification 214 and generates intermediate language data.

図7は、データ解析部61によるXHTML文書データの解析と、リンクファイルの取得状態との関係を示すタイムチャートである。
データ解析部61は、リンクファイルの取得が完了するまでXHTML文書データの解析を進めて中間言語データを生成し、リンクファイルの取得完了後にリンクファイルを解析してそのリンクファイルの中間言語データを生成する。このとき、データ解析部61は、リンクファイルの取得が完了すると、そのリンクファイルの解析をリンクファイル以降のXHTML文書データの解析よりも優先して行い、リンクファイルの解析完了後にXHTML文書データの解析を再開する。つまり、本実施形態はデータ解析部61による一つの解析プロセスとリンクファイル取得部66によるリンクファイル取得プロセスとの間を仲介するための独立した処理として、リンクファイル管理部65によるリンクファイルの取得管理プロセスを有する。
FIG. 7 is a time chart showing the relationship between the analysis of XHTML document data by the data analysis unit 61 and the link file acquisition state.
The data analysis unit 61 proceeds with the analysis of the XHTML document data until the link file acquisition is completed to generate intermediate language data, and after the link file acquisition is completed, analyzes the link file to generate intermediate language data of the link file. To do. At this time, when the acquisition of the link file is completed, the data analysis unit 61 prioritizes the analysis of the link file over the analysis of the XHTML document data after the link file, and analyzes the XHTML document data after completing the analysis of the link file. To resume. In other words, in the present embodiment, link file acquisition management by the link file management unit 65 is performed as an independent process for mediating between one analysis process by the data analysis unit 61 and the link file acquisition process by the link file acquisition unit 66. Have a process.

リンクファイル取得部66は、複数のリンクファイルの取得を並行して行うことができるが、一つのリンクファイルの取得を逐次行うようにしてもよい。このとき、リンクファイル取得部66は、先に印刷されるリンクファイル即ちXHTML文書データにおいてより先頭側に記述されているハイパーリンクに対応するリンクファイルの取得を優先して行う。   The link file acquisition unit 66 can acquire a plurality of link files in parallel, but may acquire one link file sequentially. At this time, the link file acquisition unit 66 preferentially acquires the link file corresponding to the hyperlink described earlier in the link file to be printed first, that is, the XHTML document data.

XHTML文書データの解析は、印刷時におけるページ単位で行われる。一ページ分の印刷内容を全て含む解析が完了する度に、データ描画部62は一ページ分のビットマップパターン202の生成を行うので、データ解析部61はより先に印刷される一ページ分に対応する部分のXHTML文書データの解析を優先して行う。印刷時におけるリンクファイルのサイズが不明である等の理由によりページレイアウトが決定できず印刷時の改ページ位置が不明となる場合、データ解析部61はハイパーリンク以外のXTHML文書データの解析を完了した後に順次ダウンロードが完了したリンクファイルの解析を行う。   Analysis of XHTML document data is performed in units of pages at the time of printing. Each time the analysis including all the printing contents for one page is completed, the data drawing unit 62 generates the bitmap pattern 202 for one page. Therefore, the data analyzing unit 61 performs the printing for one page to be printed earlier. The analysis of the XHTML document data of the corresponding part is performed with priority. If the page layout cannot be determined because the size of the link file at the time of printing is unknown and the page break position at the time of printing is unknown, the data analysis unit 61 has completed the analysis of XTHML document data other than hyperlinks. The link file that has been downloaded sequentially is analyzed later.

なお、ハイパーリンクを含まないXHTML文書データが入力された場合、データ解析部はそのXHTML文書データの解析のみを行い、中間言語データを生成する。   When XHTML document data that does not include a hyperlink is input, the data analysis unit only analyzes the XHTML document data and generates intermediate language data.

次に、データ処理装置40が行う処理の流れを、図8及び図9のフローチャートを用いて説明する。以下の記載では、CPU41がROM43から各種プログラムを読み込む処理について省略する。
図8は、データ解析部61によるXHTML文書データの解析の流れを示すフローチャートである。
ホスト80からXHTML文書データを受信すると(ステップS1)、CPU41は受信したXHTML文書データが未解析のXHTMLコマンドがあるか否かを判定する(ステップS2)。XTHML文書データが未解析のXHTMLコマンドがある場合(ステップS2:YES)、CPU41は未解析のXHTMLコマンドのうち最上段のXHTMLコマンドを読み込み(ステップS3)、読み込んだXHTMLコマンドがハイパーリンクを含むか否か判定する(ステップS4)。XHTMLコマンドがハイパーリンクを含む場合(ステップS4:YES)、CPU41は当該ハイパーリンクによって指定されたリンクファイルを登録する(ステップS5)。ステップS4においてXHTMLコマンドがハイパーリンクを含まない場合(ステップS4:NO)、CPU41はそのXHTMLコマンドを解析する(ステップS6)。ステップS5又はステップS6の処理後、ステップS2の処理に戻る。
Next, the flow of processing performed by the data processing device 40 will be described using the flowcharts of FIGS. In the following description, the process of reading various programs from the ROM 43 by the CPU 41 is omitted.
FIG. 8 is a flowchart showing the flow of analysis of XHTML document data by the data analysis unit 61.
When the XHTML document data is received from the host 80 (step S1), the CPU 41 determines whether or not there is an unanalyzed XHTML command in the received XHTML document data (step S2). If there is an XHTML command whose XTHML document data is not analyzed (step S2: YES), the CPU 41 reads the topmost XHTML command among the unanalyzed XHTML commands (step S3), and whether the read XHTML command includes a hyperlink. It is determined whether or not (step S4). When the XHTML command includes a hyperlink (step S4: YES), the CPU 41 registers the link file designated by the hyperlink (step S5). If the XHTML command does not include a hyperlink in step S4 (step S4: NO), the CPU 41 analyzes the XHTML command (step S6). After step S5 or step S6, the process returns to step S2.

ステップS2において、XHTML文書データが未解析のXHTMLコマンドがない場合(ステップS2:NO)、CPU41はリンクファイル要求管理テーブル131を読み込み(ステップS7)、リンクファイル要求管理テーブル131に未解析のリンクファイルに対応するエントリがあるか否かを判定する(ステップS8)。リンクファイル要求管理テーブル131に未解析のリンクファイルに対応するエントリがある場合(ステップS8:YES)、CPU41は未解析のリンクファイルに対応するエントリのうち最上段のエントリの取得完了フラグがONであるか否かを判定する(ステップS9)。ステップS9において取得完了フラグがONである場合(ステップS9:YES)、CPU41はステップS7で読み込んだエントリに対応するリンクファイルを解析する(ステップS10)。ステップS9において取得完了フラグがOFFである場合(ステップS9:NO)、その取得完了フラグがONとなるまで待機する。   If there is no XHTML command whose XHTML document data has not been analyzed in step S2 (step S2: NO), the CPU 41 reads the link file request management table 131 (step S7), and the link file request management table 131 has an unanalyzed link file. It is determined whether there is an entry corresponding to (step S8). When there is an entry corresponding to the unanalyzed link file in the link file request management table 131 (step S8: YES), the CPU 41 indicates that the acquisition completion flag of the top entry among the entries corresponding to the unanalyzed link file is ON. It is determined whether or not there is (step S9). If the acquisition completion flag is ON in step S9 (step S9: YES), the CPU 41 analyzes the link file corresponding to the entry read in step S7 (step S10). If the acquisition completion flag is OFF in step S9 (step S9: NO), the process waits until the acquisition completion flag is turned ON.

ステップS10の処理後、ステップS8の処理に戻る。ステップS8において、リンクファイル要求管理テーブル131に未解析のリンクファイルに対応するエントリがない場合(ステップS8:NO)、CPU41は処理を終了する。   After step S10, the process returns to step S8. In step S8, when there is no entry corresponding to the unanalyzed link file in the link file request management table 131 (step S8: NO), the CPU 41 ends the process.

図9は、リンクファイルの取得処理の流れを示すフローチャートである。
CPU41は、通信装置45を介してホスト80との接続を確立し、リンクファイルのダウンロード要求をホスト80に通知してリンクファイルのダウンロードを開始する(ステップS21)。そして、リンクファイルのダウンロードが完了するまで待機し(ステップS22:NO)、ダウンロードが完了すると(ステップS22:YES)、CPU41はそのリンクファイルのリンクファイル要求管理テーブル131の取得完了フラグを「ON」に更新する(ステップS23)。
FIG. 9 is a flowchart showing the flow of link file acquisition processing.
The CPU 41 establishes a connection with the host 80 via the communication device 45, notifies the link file download request to the host 80, and starts downloading the link file (step S21). Then, it waits until the download of the link file is completed (step S22: NO). When the download is completed (step S22: YES), the CPU 41 sets the acquisition completion flag of the link file request management table 131 of the link file to “ON”. (Step S23).

本実施形態によれば、リンクファイル管理部65がリンクファイル要求管理テーブル131にエントリを設定してリンクファイル取得部66にリンクファイルを取得させるので、リンクファイル毎に個別のファイル取得プロセス及び解析プロセスを設ける必要がない。このため、リンクファイル毎にそのリンクファイルの取得プロセスと解析プロセスとを設ける従来の場合に比してリンクファイルを参照するXHTML文書データの解析におけるメモリ使用量を大幅に低減することができる。
さらに、一つのプロセスによるデータ解析部61によるXHTML文書データの解析を行い、リンクファイル管理部65が他のプロセスから独立した一つのプロセスによるリンクファイル取得部66によるリンクファイルの取得を管理するので、リンクファイル毎にそのリンクファイルの取得プロセスと解析プロセスとを設ける、即ちリンクファイル数に比例して増大したプロセスが並行して動作する従来の場合に比して大幅にプロセス数を低減することができることから、プロセスの切替に伴い生ずるオーバーヘッドを大幅に低減することができ、効率的なXHTML文書データの解析を行うことができる。
According to the present embodiment, since the link file management unit 65 sets an entry in the link file request management table 131 and causes the link file acquisition unit 66 to acquire the link file, an individual file acquisition process and analysis process for each link file There is no need to provide. Therefore, the amount of memory used in the analysis of XHTML document data that refers to a link file can be greatly reduced as compared with the conventional case in which a link file acquisition process and an analysis process are provided for each link file.
Further, the XHTML document data is analyzed by the data analysis unit 61 by one process, and the link file management unit 65 manages the acquisition of the link file by the link file acquisition unit 66 by one process independent of the other processes. A link file acquisition process and an analysis process are provided for each link file, that is, the number of processes can be greatly reduced as compared with the conventional case in which processes increased in proportion to the number of link files operate in parallel. As a result, overhead caused by process switching can be greatly reduced, and efficient analysis of XHTML document data can be performed.

さらに、データ解析部61はハイパーリンクを含むXHTMLコマンドがあると判定すると、当該ハイパーリンクが指定するリンクファイルの取得処理をリンクファイル管理部65に渡す一方で当該ハイパーリンク以降のXHTMLコマンドの解析を進める。そして、データ解析部61と、リンクファイル管理部65と、リンクファイル取得部66とは並行で処理を行うので、リンクファイルの取得を伴うXHTML文書データの解析においてハイパーリンク以降のXHTMLコマンドの解析が滞ることはない。このため、リンクファイル取得完了までの時間を用いてリンクファイル以外のXHTML文書データの解析を進めることができ、効率的なXHTML文書データの解析を行うことができる。
さらに、リンクファイルの取得が完了すると、データ解析部61はそのリンクファイルの解析をXHTML文書データの解析よりも優先して行う。つまり、リンクファイルの取得完了まで先行して進められていたXHTML文書データよりも先に印刷される内容に含まれるリンクファイルの解析を優先して行う。これによって、リンクファイルの取得完了により印刷が可能になったページの中間言語データを迅速に生成することができ、印刷処理のスピードを向上させることができる。
Further, if the data analysis unit 61 determines that there is an XHTML command including a hyperlink, the data analysis unit 61 passes the acquisition process of the link file specified by the hyperlink to the link file management unit 65 while analyzing the XHTML command after the hyperlink. Proceed. Since the data analysis unit 61, the link file management unit 65, and the link file acquisition unit 66 perform processing in parallel, in the analysis of XHTML document data accompanied by acquisition of the link file, the analysis of XHTML commands after the hyperlink is performed. There is no delay. For this reason, it is possible to proceed with the analysis of XHTML document data other than the link file using the time until the link file acquisition is completed, and it is possible to efficiently analyze the XHTML document data.
Further, when the acquisition of the link file is completed, the data analysis unit 61 performs the analysis of the link file with priority over the analysis of the XHTML document data. That is, the analysis of the link file included in the contents printed before the XHTML document data that has been advanced until the completion of acquisition of the link file is performed with priority. As a result, intermediate language data of a page that can be printed after completion of acquisition of the link file can be quickly generated, and the speed of the printing process can be improved.

さらに、リンクファイル管理部65は、リンクファイル名、リンクファイル挿入位置、URL、取得完了フラグ及びリンクファイルデータ格納ディレクトリの各レコードを有するリスト形式のリンクファイル要求管理テーブル131における一のエントリと一のリンクファイルの取得要求とを対応付けて個々のリンクファイルの取得完了状態を取得完了フラグで示す。このため、複数のリンクファイルの取得に関する処理を個別に管理することができる。   Further, the link file management unit 65 includes one entry and one entry in the list-type link file request management table 131 having records of link file name, link file insertion position, URL, acquisition completion flag, and link file data storage directory. The acquisition completion status of each link file is indicated by an acquisition completion flag in association with the link file acquisition request. For this reason, the process regarding acquisition of a plurality of link files can be managed individually.

さらに、データ解析部61に入力されるデータはXHTML文書データであり、リンクファイル取得部66が取得するリンクファイルはハイパーリンクにより指定されたリンクファイルであるので、データ処理装置40はPCや携帯端末等で表示しているXHTML文書データの印刷要求に応じた画像処理を行うことができる。   Furthermore, since the data input to the data analysis unit 61 is XHTML document data, and the link file acquired by the link file acquisition unit 66 is a link file specified by a hyperlink, the data processing device 40 is a PC or a portable terminal. The image processing according to the print request of the XHTML document data displayed by the above can be performed.

なお、本発明の実施の形態は、今回開示された実施の形態はすべての点で例示であって制限的なものではないと考えられるべきである。本発明の範囲は上記した説明ではなくて特許請求の範囲によって示され、特許請求の範囲と均等の意味および範囲内でのすべての変更が含まれることが意図される。   The embodiment of the present invention should be considered that the embodiment disclosed this time is illustrative and not restrictive in all respects. The scope of the present invention is defined by the terms of the claims, rather than the description above, and is intended to include any modifications within the scope and meaning equivalent to the terms of the claims.

例えば、エンジンはタンデム方式に限らず、他の方式によってもよい。他の方式として、例えば一つの静電ドラムを用いる方式(1ドラム方式)等が挙げられる。   For example, the engine is not limited to the tandem method, but may be another method. Examples of other methods include a method using one electrostatic drum (one drum method) and the like.

データ処理装置の各部は、同等の機能を有する別構成でもよい。例えば、ROM、ハードディスク等は別の記憶装置(例えばフラッシュメモリ等)を用いてもよい。   Each unit of the data processing device may have another configuration having an equivalent function. For example, another storage device (such as a flash memory) may be used for the ROM, the hard disk, and the like.

解析の対象となるデータは、XHTML文書データに限らず、ハイパーリンクを含む他のマークアップ言語によるデータ又は外部のデータを参照する独自のフォーマットによるデータ等でもよい。   The data to be analyzed is not limited to XHTML document data, but may be data in another markup language including hyperlinks, data in a unique format that refers to external data, or the like.

以上の説明では、本発明に係るプログラムのコンピュータ読み取り可能な媒体としてROMを使用した例を開示したが、この例に限定されない。その他のコンピュータ読み取り可能な媒体として、フラッシュメモリ等の不揮発性メモリ、CD-ROM等の可搬型記録媒体を適用することが可能である。また、本発明に係るプログラムのデータを通信回線を介して提供する媒体として、キャリアウエーブ(搬送波)も本発明に適用される。   In the above description, the example in which the ROM is used as the computer-readable medium of the program according to the present invention has been disclosed, but the present invention is not limited to this example. As other computer-readable media, a non-volatile memory such as a flash memory and a portable recording medium such as a CD-ROM can be applied. Further, a carrier wave (carrier wave) is also applied to the present invention as a medium for providing program data according to the present invention via a communication line.

10 エンジン
41 CPU
42 RAM
43 ROM
45 通信装置
80 ホスト
10 engine 41 CPU
42 RAM
43 ROM
45 Communication device 80 Host

Claims (12)

外部機器から入力された入力データに基づいて当該入力データの印刷データを生成し出力するデータ処理装置を有する印刷装置であって、前記データ処理装置は、
前記入力データが他のデータを参照する命令を含むか否かを解析する処理、
前記解析の結果、他のデータを参照する命令が含まれる場合に当該他のデータを取得するための情報を抽出する処理、
抽出された他のデータを取得するための情報をリスト形式で一括管理する処理、
前記一括管理された情報に基づき各々の前記他のデータを取得する処理、
前記入力データに前記他のデータを参照する命令が一つ以上含まれる場合、当該他のデータの取得が完了するまで前記入力データのうち他のデータを参照しない部分に基づいて前記印刷データを生成し、当該他のデータの取得完了後に当該他のデータに基づいて前記印刷データを生成する処理、
を行う制御部を備えることを特徴とする印刷装置。
A printing apparatus having a data processing apparatus that generates and outputs print data of the input data based on input data input from an external device, wherein the data processing apparatus includes:
Processing for analyzing whether or not the input data includes an instruction for referring to other data;
As a result of the analysis, when an instruction that refers to other data is included, a process of extracting information for acquiring the other data;
A process that collectively manages the information to acquire other extracted data in a list format,
A process of acquiring each of the other data based on the collectively managed information;
When the input data includes one or more instructions for referring to the other data, the print data is generated based on a portion of the input data that does not refer to the other data until acquisition of the other data is completed. And processing for generating the print data based on the other data after completion of acquisition of the other data,
A printing apparatus comprising a control unit for performing the above.
前記他のデータの取得完了後、当該他のデータに基づく前記印刷データの生成を当該他のデータを参照しない部分の前記入力データに基づく前記印刷データの生成よりも優先して行うことを特徴とする請求項1に記載の印刷装置。   After the acquisition of the other data is completed, the generation of the print data based on the other data is performed in preference to the generation of the print data based on the input data in a portion that does not refer to the other data. The printing apparatus according to claim 1. 抽出した他のデータを取得するための情報を、取得するファイル単位で管理テーブルに登録することを特徴とする請求項1又は2に記載の印刷装置。   3. The printing apparatus according to claim 1, wherein information for acquiring the extracted other data is registered in the management table in units of files to be acquired. 前記入力データは、ハイパーテキストを含み、
前記他のデータは、ハイパーリンクにより指定されたファイルであることを特徴とする請求項1から3のいずれか一項に記載の印刷装置の印刷装置。
The input data includes hypertext,
The printing apparatus according to claim 1, wherein the other data is a file designated by a hyperlink.
外部機器から入力された入力データに基づいて当該入力データの印刷データを生成し出力するデータ処理装置のコンピュータを、
前記入力データが他のデータを参照する命令を含むか否かを解析する手段、
前記解析の結果、他のデータを参照する命令が含まれる場合に当該他のデータを取得するための情報を抽出する手段、
抽出された他のデータを取得するための情報をリスト形式で一括管理する手段、
前記一括管理された情報に基づき各々の前記他のデータを取得する手段、
前記入力データに前記他のデータを参照する命令が一つ以上含まれる場合、当該他のデータの取得が完了するまで前記入力データのうち他のデータを参照しない部分に基づいて前記印刷データを生成し、当該他のデータの取得完了後に当該他のデータに基づいて前記印刷データを生成する手段、
として機能させることを特徴とするプログラム。
A computer of a data processing device that generates and outputs print data of the input data based on input data input from an external device,
Means for analyzing whether the input data includes an instruction for referring to other data;
Means for extracting information for acquiring the other data when an instruction referring to the other data is included as a result of the analysis;
A means to collectively manage information for acquiring other extracted data in a list format,
Means for acquiring each of the other data based on the collectively managed information;
When the input data includes one or more instructions for referring to the other data, the print data is generated based on a portion of the input data that does not refer to the other data until acquisition of the other data is completed. And means for generating the print data based on the other data after completion of acquisition of the other data,
A program characterized by functioning as
前記他のデータの取得完了後、当該他のデータに基づく前記印刷データの生成を当該他のデータを参照しない部分の前記入力データに基づく前記印刷データの生成よりも優先して行うことを特徴とする請求項5に記載のプログラム。   After the acquisition of the other data is completed, the generation of the print data based on the other data is performed in preference to the generation of the print data based on the input data in a portion that does not refer to the other data. The program according to claim 5. 抽出した他のデータを取得するための情報を、取得するファイル単位で管理テーブルに登録することを特徴とする請求項5又は6に記載のプログラム。   The program according to claim 5 or 6, wherein information for acquiring other extracted data is registered in a management table in units of files to be acquired. 前記入力データは、ハイパーテキストを含み、
前記他のデータは、ハイパーリンクにより指定されたファイルであることを特徴とする請求項5から7のいずれか一項に記載のプログラム。
The input data includes hypertext,
The program according to any one of claims 5 to 7, wherein the other data is a file designated by a hyperlink.
外部機器から入力された入力データに基づいて当該入力データの印刷データを生成し出力するデータ処理装置を有する印刷装置のデータ処理方法であって、
前記入力データが他のデータを参照する命令を含むか否かを解析するステップ、
前記解析の結果、他のデータを参照する命令が含まれる場合に当該他のデータを取得するための情報を抽出するステップ、
抽出された他のデータを取得するための情報をリスト形式で一括管理するステップ、
前記一括管理された情報に基づき各々の前記他のデータを取得するステップ、
前記入力データに前記他のデータを参照する命令が一つ以上含まれる場合、当該他のデータの取得が完了するまで前記入力データのうち他のデータを参照しない部分に基づいて前記印刷データを生成し、当該他のデータの取得完了後に当該他のデータに基づいて前記印刷データを生成するステップ、
を含むことを特徴とする印刷装置のデータ処理方法。
A data processing method for a printing apparatus having a data processing apparatus for generating and outputting print data of the input data based on input data input from an external device,
Analyzing whether the input data includes an instruction to refer to other data;
As a result of the analysis, a step of extracting information for acquiring other data when an instruction referring to the other data is included;
Steps to collectively manage information for obtaining other extracted data in a list format,
Obtaining each of the other data based on the collectively managed information;
When the input data includes one or more instructions for referring to the other data, the print data is generated based on a portion of the input data that does not refer to the other data until acquisition of the other data is completed. And generating the print data based on the other data after completing the acquisition of the other data,
A data processing method for a printing apparatus, comprising:
前記他のデータの取得完了後、当該他のデータに基づく前記印刷データの生成を当該他のデータを参照しない部分の前記入力データに基づく前記印刷データの生成よりも優先して行うことを特徴とする請求項9に記載の印刷装置のデータ処理方法。   After the acquisition of the other data is completed, the generation of the print data based on the other data is performed in preference to the generation of the print data based on the input data in a portion that does not refer to the other data. A data processing method for a printing apparatus according to claim 9. 抽出した他のデータを取得するための情報を、取得するファイル単位で管理テーブルに登録することを特徴とする請求項9又は10に記載の印刷装置のデータ処理方法。   The data processing method for a printing apparatus according to claim 9 or 10, wherein information for acquiring other extracted data is registered in the management table in units of files to be acquired. 前記入力データは、ハイパーテキストを含み、
前記他のデータは、ハイパーリンクにより指定されたファイルであることを特徴とする請求項9から11のいずれか一項に記載の印刷装置のデータ処理方法。
The input data includes hypertext,
12. The data processing method for a printing apparatus according to claim 9, wherein the other data is a file designated by a hyperlink.
JP2009040235A 2009-02-24 2009-02-24 Printer, program, and data processing method for printer Pending JP2010194778A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2009040235A JP2010194778A (en) 2009-02-24 2009-02-24 Printer, program, and data processing method for printer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2009040235A JP2010194778A (en) 2009-02-24 2009-02-24 Printer, program, and data processing method for printer

Publications (1)

Publication Number Publication Date
JP2010194778A true JP2010194778A (en) 2010-09-09

Family

ID=42820035

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2009040235A Pending JP2010194778A (en) 2009-02-24 2009-02-24 Printer, program, and data processing method for printer

Country Status (1)

Country Link
JP (1) JP2010194778A (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004127132A (en) * 2002-10-04 2004-04-22 Fuji Xerox Co Ltd Image forming apparatus and method
JP2004139466A (en) * 2002-10-18 2004-05-13 Fujitsu Ltd Electronic document printing program and electronic document printing system
JP2004287865A (en) * 2003-03-24 2004-10-14 Fuji Xerox Co Ltd Image formating apparatus and method
JP2004303192A (en) * 2002-12-12 2004-10-28 Seiko Epson Corp Image output system, image supply device, image output device, control program, and image output method
JP2005044234A (en) * 2003-07-24 2005-02-17 Fuji Xerox Co Ltd Image forming apparatus, program, and document processing method
JP2007055133A (en) * 2005-08-25 2007-03-08 Oki Data Corp Image forming apparatus and image forming system
JP2008199151A (en) * 2007-02-09 2008-08-28 Konica Minolta Business Technologies Inc Image forming apparatus and method for controlling printing of web page
JP2009087166A (en) * 2007-10-01 2009-04-23 Brother Ind Ltd Print data generation apparatus and computer program

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004127132A (en) * 2002-10-04 2004-04-22 Fuji Xerox Co Ltd Image forming apparatus and method
JP2004139466A (en) * 2002-10-18 2004-05-13 Fujitsu Ltd Electronic document printing program and electronic document printing system
JP2004303192A (en) * 2002-12-12 2004-10-28 Seiko Epson Corp Image output system, image supply device, image output device, control program, and image output method
JP2004287865A (en) * 2003-03-24 2004-10-14 Fuji Xerox Co Ltd Image formating apparatus and method
JP2005044234A (en) * 2003-07-24 2005-02-17 Fuji Xerox Co Ltd Image forming apparatus, program, and document processing method
JP2007055133A (en) * 2005-08-25 2007-03-08 Oki Data Corp Image forming apparatus and image forming system
JP2008199151A (en) * 2007-02-09 2008-08-28 Konica Minolta Business Technologies Inc Image forming apparatus and method for controlling printing of web page
JP2009087166A (en) * 2007-10-01 2009-04-23 Brother Ind Ltd Print data generation apparatus and computer program

Similar Documents

Publication Publication Date Title
US11200011B2 (en) Printer and server
US7911640B2 (en) Information processing apparatus, printing data generation method, and printing control program
JP2001134407A (en) Information processing device, information processing method, and storage medium storing computer readable program
JP2001130082A (en) Information processing apparatus, information processing method, and storage medium storing computer readable program
EP2085872B1 (en) Image forming apparatus, print control method and control program
US20150161487A1 (en) Print service providing apparatus and printing system
CN108170389A (en) Image forming apparatus and image forming method
US9400625B2 (en) Printing apparatus, web server, printing system, and computer readable recording medium stored with program for web server
CN101727585B (en) Image forming apparatus and image forming method
WO2013129039A1 (en) Printer, printing method, program and recording medium therefor
JP5834648B2 (en) Information processing apparatus, program, and control method
JP2010015366A (en) Image processor, image processing program, and image processing system
JP5005365B2 (en) Image processing apparatus and image processing method
US7952742B2 (en) Information processing apparatus for processing print data, method thereof and media in storage of control program of executing such method
JP2010194778A (en) Printer, program, and data processing method for printer
JP4761535B2 (en) Document management apparatus and method, program
JP2003316540A (en) Image processing apparatus and image processing method
JP5077256B2 (en) Data processing apparatus, program, and data processing method
JP5664247B2 (en) Image processing apparatus, image processing method, and program
JP5220166B2 (en) Printing system, server apparatus, printing method, and computer program
JP2004326141A (en) Image processor and program
JP2002358183A (en) Print control device, print control method, and storage medium
US10602005B2 (en) Image forming system, printer driver, and information processing apparatus for processing electronic file
JP2000276311A (en) Network information output device and method
JP4150850B2 (en) Image processing apparatus, image processing method, and program

Legal Events

Date Code Title Description
A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20120228

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20120410

RD02 Notification of acceptance of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7422

Effective date: 20120410

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20120807