JP2006238248A - Apparatus and method for processing data group including multiple data - Google Patents
Apparatus and method for processing data group including multiple data Download PDFInfo
- Publication number
- JP2006238248A JP2006238248A JP2005052341A JP2005052341A JP2006238248A JP 2006238248 A JP2006238248 A JP 2006238248A JP 2005052341 A JP2005052341 A JP 2005052341A JP 2005052341 A JP2005052341 A JP 2005052341A JP 2006238248 A JP2006238248 A JP 2006238248A
- Authority
- JP
- Japan
- Prior art keywords
- data
- layout
- page
- processing
- processing result
- 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
Links
Images
Landscapes
- Accessory Devices And Overall Control Thereof (AREA)
- Record Information Processing For Printing (AREA)
- Editing Of Facsimile Originals (AREA)
Abstract
Description
本発明は、複数のデータを含んだデータ群の処理技術に関し、具体的には、例えば、氏名や連絡先等の項目群を含んだ単位データを複数個備えるアドレス帳データの処理に関する。 The present invention relates to a technique for processing a data group including a plurality of data, and specifically relates to processing of address book data including a plurality of unit data including items such as name and contact information.
データの処理装置の一種として、プリンタがある。従来、以下のようなプリンタ、すなわち、JPEG画像をデータソースから受信し、JPEG画像を組み込んだXHTML(eXtensible Hyper Text Markup Language)の文書(以下、XHTML文書)を作成し、作成したXHTML文書を解釈することにより、物理ページ上でのレイアウトを決めて、印刷を行うプリンタが知られている(例えば特許文献1)。 One type of data processing apparatus is a printer. Conventionally, a printer such as the following, that is, a JPEG image received from a data source, an XHTML (eXtensible Hyper Text Markup Language) document (hereinafter referred to as an XHTML document) incorporating the JPEG image is created, and the created XHTML document is interpreted. Thus, there is known a printer that determines a layout on a physical page and performs printing (for example, Patent Document 1).
ところで、氏名や連絡先等の項目群を含んだ単位データを複数個備えるアドレス帳データを送信することができる携帯情報端末機(例えば携帯電話機)があり、その携帯情報端末機からアドレス帳データを受信し、受信したアドレス帳データに登録されている全件の単位データの一覧を印刷することができるプリンタが知られている。この種の印刷において、アドレス帳データを受信してから印刷が開始されるまでの時間をなるべく短くするのが望ましい。また、メモリ等の記憶資源の使用量を抑えられることが望ましい。 By the way, there is a portable information terminal (for example, a cellular phone) capable of transmitting address book data including a plurality of unit data including items such as name and contact information, and the address book data is received from the portable information terminal. A printer that can receive and print a list of all unit data registered in the received address book data is known. In this type of printing, it is desirable to shorten the time from when address book data is received to when printing is started as short as possible. It is also desirable to be able to reduce the amount of storage resources such as memory.
これらのことは、プリンタに限らず、他種の処理装置についても同様であると考えられる。 These are considered to be the same for other types of processing apparatuses as well as printers.
従って、本発明の目的は、複数のデータを含んだデータ群の受信が行われてから該データ群の初めの出力が行われるまでの時間長を短くすることにある。 Accordingly, an object of the present invention is to shorten the time length from when a data group including a plurality of data is received until the first output of the data group is performed.
本発明の別の目的は、受信したデータ群を出力するまでの処理における記憶資源の使用量を抑えることにある。 Another object of the present invention is to reduce the amount of storage resources used in processing until the received data group is output.
本発明の更なる目的は、後述の記載から明らかになるであろう。 Further objects of the present invention will become clear from the following description.
本発明の一つの側面に従う処理装置は、複数のデータを含んだデータ群のうちの少なくとも一つのデータを割り付けるための電子的なテンプレートを記憶する記憶域と、前記データ群を受信する受信手段と、前記受信したデータ群のうちの少なくとも一つのデータが前記テンプレートに割り付けられた第一の処理結果データを生成する第一の生成手段と、前記第一の処理結果データに基づいて、レイアウトのための解析対象となる第二の処理結果データを生成する第二の生成手段と、前記第二の処理結果データを解析することにより、前記少なくとも一つのデータをページに配置するためのレイアウトを行うレイアウト手段と、前記レイアウトの結果を出力する出力手段とを備える。前記処理装置は、前記受信したデータ群のうちの全てのデータが前記テンプレートに割り当てられた前記第一の処理結果データに基づく前記第二の処理結果データを作成し終える前に、少なくとも1ページ分の前記第二の処理結果データが生成された段階で、1ページ分の前記第二の処理結果データを解析して1ページ分のレイアウトを完成し、該レイアウトの結果を出力する。 A processing apparatus according to one aspect of the present invention includes a storage area that stores an electronic template for allocating at least one of data groups including a plurality of data, and receiving means that receives the data group. A first generation means for generating first processing result data in which at least one data of the received data group is assigned to the template; and a layout based on the first processing result data. A second generation unit for generating second processing result data to be analyzed, and a layout for laying out the at least one data on a page by analyzing the second processing result data Means and output means for outputting the result of the layout. The processing device may include at least one page before all the data in the received data group has created the second processing result data based on the first processing result data assigned to the template. When the second processing result data is generated, the second processing result data for one page is analyzed to complete a layout for one page, and the layout result is output.
第一の生成手段は、生成した第一の処理結果データを別の記憶域に格納することができる。第二の生成手段は、生成した第二の処理結果データをまた別の記憶域に格納することができる。 The first generation means can store the generated first processing result data in another storage area. The second generation means can store the generated second processing result data in another storage area.
「第一の処理結果データ」は、例えば、ページという概念を持たない形式のデータ、具体的には、例えば、XHTML形式のデータとすることができる。 The “first processing result data” can be, for example, data in a format that does not have the concept of a page, specifically, for example, data in the XHTML format.
「第二の処理結果データ」も、例えば、ページという概念を持たない形式のデータ、具体的には、例えば、DOM(Document Object Model)ツリーとすることができる。 The “second processing result data” can also be, for example, data in a format that does not have the concept of a page, specifically, for example, a DOM (Document Object Model) tree.
一つの実施態様では、前記第一の生成手段が、ページ単位の前記第一の処理結果データを生成することができる。これにより、前記処理装置は、前記受信したデータ群のうちの全てのデータが前記テンプレートに割り当てられた前記第一の処理結果データに基づく前記第二の処理結果データを作成し終える前に、少なくとも1ページ分の前記第二の処理結果データを生成することができる。 In one embodiment, the first generation means can generate the first processing result data in page units. Thereby, the processing apparatus has at least before all the data in the received data group has created the second processing result data based on the first processing result data assigned to the template. The second processing result data for one page can be generated.
一つの実施態様では、前記処理装置は、前記第二の生成手段による前記第二の処理結果データの生成と、前記レイアウト手段による前記レイアウトとを並行して行うことができる。 In one embodiment, the processing apparatus can perform the generation of the second processing result data by the second generation unit and the layout by the layout unit in parallel.
前述した各手段は、ハードウェア、コンピュータプログラム又はそれらの組み合わせにより実現することができる。 Each means described above can be realized by hardware, a computer program, or a combination thereof.
また、前記処理装置は、例えば、プリンタ、又は、プリンタにデータ群を送信することができるデータソースとすることができる。処理装置がプリンタの場合、前記出力手段は、レイアウトの結果を印刷することができる。処理装置がデータソースの場合、前記出力手段は、前記レイアウトの結果を表す印刷データを生成し、その印刷データを印刷装置に送信することができる。 In addition, the processing device can be, for example, a printer or a data source that can transmit a data group to the printer. When the processing device is a printer, the output means can print the layout result. When the processing device is a data source, the output unit can generate print data representing the layout result and transmit the print data to the printing device.
以下、図面を参照して、本発明の一実施形態に係る処理装置が適用されたプリンタについての幾つかの実施例を説明する。 Hereinafter, several examples of a printer to which a processing apparatus according to an embodiment of the present invention is applied will be described with reference to the drawings.
図1は、本発明の第一の実施例に係るプリンタの構成を表す図である。 FIG. 1 is a diagram illustrating the configuration of a printer according to a first embodiment of the present invention.
プリンタ20は、種々の装置と通信することができる。例えば、プリンタ20は、人間が携帯可能な情報端末機である携帯情報端末機(一例として携帯電話機)10と通信することができる。その携帯情報端末機10は、メモリ11等の記憶装置に、アドレス帳データ12を記憶している。アドレス帳データ12は、所定のフォーマット、例えばvCardフォーマット(電子メール等で名前、住所、E-mailアドレス等の個人情報をやり取りするための規格)により構成されている。アドレス帳データ(vObjectと呼ばれるデータであっても良い)12は、図2にその構成例を示すとおり、一以上のレコード12Aを含んでいる。各レコード12Aには、複数のレコード要素が含まれている。レコード要素としては、例えば、氏名、郵便番号、住所、電話番号、Eメールアドレス及び属性がある。携帯情報端末機10は、ユーザの操作により、このようなアドレス帳データ12の全体(又はユーザに選択された氏名等を含んだレコード)を、有線又は無線で(例えば赤外線通信で)、プリンタ20に送信することができる。
The
再び図1を参照する。プリンタ20は、操作部21と、印刷部37と、プリンタ制御部30とを備えている。
Refer to FIG. 1 again. The
操作部21は、ユーザインターフェースであり、例えば、種々の情報を表示するためのディスプレイ画面や、種々の情報を入力するための複数のボタンを備えている(操作部21は、タッチパネル式のものであってもよい)。操作部21は、例えば、ユーザの操作により、ユーザに選択された印刷モードの選択を受けることができる。印刷モードの選択肢としては、例えば、アドレス帳データ12を用いて宛名印刷面に宛名印刷を行うことを意味する宛名印刷モードと、アドレス帳データ12に含まれる複数のレコード12A(又はそれに含まれている所定のレコード要素)の一覧の印刷を行うことを意味するインデックス印刷モードとがある。
The
印刷部37は、入力された文字や画像等の情報を用紙に印刷する。印刷部37は、例えば、プリンタ20がインクジェットプリンタである場合には、インク滴を吐出する印刷ヘッド、印刷ヘッドを主操作方向に搬送するキャリッジ、用紙を副走査方向に送る紙送りモータ等から構成することができる。
The
プリンタ制御部30は、印刷のための情報処理を行う部分である。プリンタ制御部30は、例えば、EEPROM27等の書き換え可能な不揮発性メモリと、データを一時的に記憶するためのRAM31と、プリンタ20の動作全体を制御するためのCPU32と、CPU32に読み込まれるコンピュータプログラム等を記憶したROM33と、プリンタ20の外部に存在する装置と通信するためのインターフェース回路(以下、通信IF)34と、印刷部37に情報を送信するためのインターフェース回路(以下、印刷IF)35とを備えている。
The printer control unit 30 is a part that performs information processing for printing. The printer control unit 30 includes, for example, a rewritable nonvolatile memory such as an
EEPROM27は、インデックス印刷レイアウト定義ファイル(以下、「定義ファイル」と略記)26を記憶することができる。定義ファイル26には、インデックス印刷のためのテンプレートに関する情報が記述されている。定義ファイル26は、例えば、マークアップ言語で記述されたスクリプトファイルである。「マークアップ言語」とは、例えば、XHTML(eXtensible Hyper Text Markup Language)である。定義ファイル26の構成例については後述する。なお、EEPROM27には、宛名の印刷領域位置等が記述された宛名印刷用の定義ファイル(図示せず)も登録されていても良い。
The EEPROM 27 can store an index print layout definition file (hereinafter abbreviated as “definition file”) 26. The
RAM31は、例えば、携帯情報端末機10から通信IF34を介して受信されたアドレス帳データ12や、EEPROM27から読み出された定義ファイル26等を記憶することができる。
The
ROM33は、例えば、CPU32に読み込まれるコンピュータプログラムの一つとして、印刷処理プログラム22を記憶している。印刷処理プログラム22は、CPU32に読み込まれることにより動作することができる。印刷処理プログラム22が行う処理動作については後述する。
The
CPU32は、携帯情報端末機10から受信したアドレス帳データ12をRAM31に記憶させることができる。また、CPU32は、例えば、EEPROM27に記憶されている定義ファイル26を読み出してRAM31に記憶させることができる。CPU32は、例えば、印刷モードとして操作部21からインデックス印刷モードの指定を受けた後に、アドレス帳データ12が受信された場合には、複数の定義ファイルの中からインデックス印刷用の定義ファイル26を選択してRAM31に読み出すことができる。また、CPU32は、操作部21から指定された種類(例えば年賀状)のテンプレートが記述された定義ファイルを複数の定義ファイルの中から探してRAM31に読み出すことができる。
The
CPU32は、操作部21からインデックス印刷モードを設定する旨の指令が入力されたならば、その旨を表す情報をRAM31(或いはCPU32の図示しないレジスタ)に設定し、その後に、アドレス帳データ12を受信してRAM31に記憶させた場合には、そのアドレス帳データ12を印刷対象として印刷するための処理(この処理の詳細は後述する)を実行する。
When a command for setting the index printing mode is input from the
図3Aは、定義ファイル26の構成概念例を示す。図3Bは、図3Aに示した定義ファイル26から導き出せるインデックス印刷用のレイアウトを示す。
FIG. 3A shows an example of the configuration concept of the
定義ファイル26には、用紙種類(例えば「インデックス印刷」)と、印刷領域の位置情報とが登録されている。
In the
印刷領域の位置情報は、例えば、用紙上の或る矩形領域の左上頂点の座標と右下頂点の座標とのセットによって表すことができる。各座標は、所定の位置、例えば、用紙の左上頂点を原点とした場合の座標である。なお、印刷領域の位置情報は、別の方法、例えば、印刷領域を表す数式と、その数式中のパラメータ値とのセットによって表すこともできる。 The position information of the print area can be represented by, for example, a set of coordinates of the upper left vertex and the lower right vertex of a rectangular area on the paper. Each coordinate is a coordinate when a predetermined position, for example, the upper left vertex of the paper is used as the origin. Note that the print area position information can be expressed by another method, for example, a set of a mathematical expression representing the print area and a parameter value in the mathematical expression.
この定義ファイル26により、図3Bに示すように、インデックス印刷のレイアウトが定義されている。そのレイアウトは、例えば、図3Bに示すように、レコード12Aの印刷領域が縦に並んだものとすることができる。
The
以上が、定義ファイル26の一例についての説明である。なお、定義ファイル26には、より詳細な情報が記述されていても良い。例えば、各レコード12A毎の印刷領域について、その印刷領域におけるどの位置にどんなレコード要素を配置するかを表す情報も記述されていても良い。
The above is an explanation of an example of the
図4は、本発明の第一実施例に係るプリンタ20が行うインデックス印刷の処理の説明図である。
FIG. 4 is an explanatory diagram of index printing processing performed by the
プリンタ20が受信するアドレス帳データ12には、前述した通り、複数のレコード12A、12A、…が含まれている。各レコード12Aは、複数のレコード要素を含み、複数のレコード要素には、例えば、氏名、住所、電話番号等のレコード要素が含まれている。各レコード12Aは、例えば、行と列とから成るデータテーブルの各行であっても良いし、一つのデータファイル上で第一の所定コード(例えば所定の開始タグ)と第二の所定コード(例えば所定の終了タグ)との間に記述されたデータであってもよい。
As described above, the
プリンタ20には、例えば、複数のデータ記憶域として、受信バッファ31A、XHTMLデータ記憶域31B、DOMツリー記憶域31C及びレイアウト結果記憶域31Dが用意される。これら複数のデータ記憶域31A乃至31Dは、同一の記憶資源(例えば、RAM31等のメモリ)上に用意することもできるし、別々の記憶資源上に用意することもできる。
In the
上述した印刷処理プログラム22には、例えば、受信処理タスク22Aと、印刷処理タスク22Bとが含まれている。
The
受信処理タスク22Aは、アドレス帳データ12を受信し、受信したアドレス帳データ12を受信バッファ31Aに格納する処理を行う。また、受信処理タスク22Aは、受信したアドレス帳データ12に含まれているレコード12Aにおける各レコード要素を定義ファイル26に割り付けた1ページ分のXHTMLデータ86を生成し、生成した1ページ分のXHTMLデータ86をXHTMLデータ記憶域31Bに格納する。
The
具体的には、例えば、この第一実施例では、定義ファイル26は、所定サイズの用紙1ページ分のテンプレートを表している。このため、定義ファイル26で表されている、レコード12Aに対応した印刷領域位置の数K(K≧1)は、所定サイズの用紙1ページに印刷可能なレコードの件数を表していることになる。受信処理タスク22Aは、アドレス帳データ12のうちのK個のレコード12Aを定義ファイル26に割り当てることにより、所定サイズの用紙1ページに対応したXHTMLデータ86を生成することになる。受信処理タスク22Aは、アドレス帳データ12Aに含まれるK個のレコード12A毎に、XHTMLデータ86を生成し、生成したXHTMLデータ86をXHTMLデータ記憶域31Bに格納する。受信処理タスク22Aは、少なくとも一つのXHTMLデータ86をXHTMLデータ記憶域31Bに格納したときに(例えば、一つのXHTMLデータ86を格納したとき、又は、レコード全件分のXHTMLデータ31Bを格納したとき)、印刷要求を印刷処理タスク22Bに発行する。
Specifically, for example, in this first embodiment, the
印刷処理タスク22Bは、例えば、複数のプログラムモジュールとして、印刷処理制御部72、DOMツリー作成部74、レイアウト処理部75及びレンダリング処理部76を有する。
The
印刷処理制御部72は、DOMツリー作成部74及びレイアウト処理部75の各々に処理の実行を命じることができる。例えば、印刷処理制御部72は、受信処理タスク22Aから印刷要求を受けた場合、DOMツリー作成部74に、DOMツリーの作成を命じる。また、DOMツリーの作成を命令したタイミングと同じタイミング(又はその後のタイミングで)、印刷処理制御部72は、レイアウトの実行をレイアウト処理部75に命じる。
The print
DOMツリー作成部74は、XHTMLデータ86を解釈し、その解釈結果に基づいて、DOM(Document Object Model)ツリー82を作成し、作成したDOMツリー82をDOMツリー記憶域31Cに書き込む。具体的には、例えば、DOMツリー作成部74は、印刷処理制御部72からの命令に応答して、DOMツリー82の作成を開始する。DOMツリー作成部74は、図示しない解釈ユニットとXMLパーサとを備えることができる。解釈ユニットは、XHTMLデータ記憶域31B内の1ページ分のXHTMLデータ86の解釈をXMLパーサに指示し、それの解析を行ったXMLパーサから解析結果を受け、その受けた解析結果に基づいて、DOMツリー82を作成することができる。
The DOM
レイアウト処理部75は、作成されたDOMツリー82を解析し、それにより、所定サイズの用紙1ページに対してレコードの要素をどこに配置するかのレイアウトを行い、そのレイアウトの結果を表すレイアウト済みデータ84を生成し、生成したレイアウト済みデータ84をレイアウト結果記憶域31Dに格納する。具体的には、例えば、レイアウト処理部75は、印刷処理制御部74からの命令に応答して、レイアウト処理を開始する。レイアウト処理部75は、DOMツリー記憶域31Cに記憶されているDOMツリー82を解析し、その解析結果に基づいて、DOMツリー82中のレコード要素を、ページ毎にレイアウトし、一つのページボックスにまとめ、そのページボックスをレイアウト済みデータとして出力する。
The
レンダリング処理部76は、レイアウト処理部75から出力されたレイアウト済みデータに基づいて、RGBデータとしてのイメージデータを生成する。別の言い方をすれば、レンダリング処理部76は、レイアウト済みデータに基づいてプリンタ20独自のレイアウト処理を実行する。レンダリング処理部76は、生成したイメージデータを印刷部37に出力する。これにより、印刷部37が、そのイメージデータに対して色変換処理及びハーフトーニング処理を行うことで、印刷画像データを生成し、その印刷画像データが表すページボックス(レイアウトされたレコード要素等)を印刷する。
The
以上が、本発明の第一実施例についての説明である。 The above is the description of the first embodiment of the present invention.
すなわち、この第一実施例では、受信処理タスク22Aが、アドレス帳データ12に登録されているK個のレコード12Aを定義ファイル26に割り付けた結果を表すXHTMLデータ86を生成し、そのXHTMLデータ86をXHTMLデータ記憶域31Bに格納する。ここで格納されるXHTMLデータ86は、ページ単位のデータ、すなわち、所定サイズの用紙1ページに印刷可能なK個のレコードが記述されたデータである。
In other words, in this first embodiment, the
印刷処理タスク22Bは、少なくとも一つのXHTMLデータ86が格納されたときに、DOMツリー82の作成を開始することができる。XHTMLデータ86はページ単位のデータなので、ここで作成されるDOMツリー82も、ページ単位のものとなる。印刷処理タスク22Bは、少なくとも一つのDOMツリー82(換言すれば、少なくとも一ページ分のDOMツリー82)をDOMツリー記憶域31Cに格納した段階で、一つのDOMツリー82に基づいて一ページ分のレイアウトを完成させ、そのレイアウトの結果を表すレイアウト済みデータ84の印刷を印刷部37へ要求する(つまり、初めのページの印刷を開始させる)。印刷処理タスク22Bは、例えば、一つのレイアウト済みデータ84を作成したときに、そのレイアウト済みデータ84に対応するDOMツリー82及びXHTMLデータ86を、各記憶域31C及び31Bから削除することができる。
The
この第一実施例によれば、プリンタ20は、アドレス帳データ12に記録されている全件のレコード(又はそれに含まれる所定の一以上のレコード要素)を定義ファイル26に割り当てたXHTMLデータ(つまりレコード全件分のXHTMLデータ)に基づくDOMツリー(つまりレコード全件文のDOMツリー)を作成し終える前に、少なくとも1ページ分のDOMツリーが生成された段階で、1ページ分のDOMツリーを解析して1ページ分のレイアウトを完成して印刷を開始する。これにより、アドレス帳データ12の受信が行われてから初めのページが印刷されるまでの時間長の短縮が図れる。また、DOMツリー記憶域31Cの記憶サイズを、レコード全件分のDOMツリーを記憶するだけのサイズにする必要が無いので、記憶資源の節約が図れる。
According to the first embodiment, the
以下、本発明の第二の実施例について説明する。なお、以下の説明では、第一の実施例との相違点を主に説明し、共通点については説明を省略或いは簡略する。 The second embodiment of the present invention will be described below. In the following description, differences from the first embodiment will be mainly described, and description of common points will be omitted or simplified.
図5は、本発明の第二実施例に係るプリンタが行うインデックス印刷の処理の説明図である。 FIG. 5 is an explanatory diagram of the index printing process performed by the printer according to the second embodiment of the present invention.
定義ファイル48は、所定サイズの用紙1ページには収まりきらない数のレコード12Aを割り当て可能なテンプレートを表すファイルとなっている。すなわち、この第二の実施例における定義ファイル48に割り当て可能なレコードの件数Nは、第一の実施例における定義ファイル26に割り当て可能なレコードの件数Kよりも多い。具体的には、例えば、アドレス帳データ12にM件(例えばM=1000)のレコード12Aが存在する場合には、定義ファイル26には、N件のレコード12Aにそれぞれ対応したN個の印刷領域位置の情報が記述される(M≧N>K)。
The
定義ファイル48が上記のようになっているため、アドレス帳データ12に含まれているレコード12Aを定義ファイル48に割り付けていくことにより生成されるXHTMLデータ88は、第一実施例のようにページ単位のものではない。すなわち、第二実施例におけるXHTMLデータ88のデータサイズは、第一実施例における一つのXHTMLデータ86のデータサイズよりも大きい。例えば、定義ファイル48が、アドレス帳データ12の全件のレコード12Aを割付けることができるように構成されている場合には、XHTMLデータ88は、レコード全件分のデータとなる。具体的には、例えば、受信処理タスク22Aは、アドレス帳データ12の全レコード12Aを解析し、全件のレコード12Aを定義ファイル48に割り付けることにより、レコード全件分のXHTMLデータ88を生成し、生成したそのXHTMLデータ88をXHTMLデータ記憶域31Bに格納することができる。
Since the
XTHMLデータ88は、ページ単位のものではない。このため、そのXHTMLデータ88に基づいて作成されるDOMツリー92(印刷処理タスク22BのDOMツリー作成処理部74によって生成されるDOMツリー92)のデータサイズも、第一実施例において生成される一つのDOMツリー82のデータサイズよりも大きい。
The
しかし、この第二実施例では、以下に詳述するように、DOMツリー作成部74によるDOMツリー92の作成処理と、レイアウト処理部75によるレイアウト処理とが並行して行ない、レコード全件分のDOMツリーを作成し終える前であって、1ページのレイアウトが完了したときに、印刷を開始する。
However, in the second embodiment, as will be described in detail below, the creation process of the
以下、この第二実施例に係る印刷処理タスク22Bにおいて行われる処理流れを説明する。
Hereinafter, a processing flow performed in the
図6は、本発明の第二実施例に係る印刷処理タスク22Bにおいて行われる処理流れを示す。
FIG. 6 shows a processing flow performed in the
印刷処理制御部72は、受信処理タスク22Aから印刷要求を受けた場合(ステップS201でYES)、換言すれば、レコード全件分のXHTMLデータ88が生成された場合、DOMツリー作成部74とレイアウト処理部75とに命令を出し、それにより、DOMツリー92の作成とレイアウト処理とを並行して実行させる(S202)。
When the print
これにより、DOMツリー作成部74が、レコード全件分のXHTMLデータ88を解釈し、その解釈結果に基づいてDOMツリー92を作成していく(S203)。また、レイアウト処理部75が、そのDOMツリー92を解析してレイアウトを行っていく(S204)。DOMツリー92のデータサイズは、XHTMLデータ88の解釈が進むにつれて、増えていく。それに伴い、レイアウトされるレコード要素の数も、レイアウト処理が進むにつれて、増えていく。
Thereby, the DOM
レイアウト処理部75は、1ページ分のレイアウトを完了したならば、すなわち、1ページ分のレイアウト済みデータを作成し終えたならば(S205でYES)、1ページのレイアウトが完了したことを表す通知を印刷処理制御部72に発行する(S206)。印刷処理制御部72は、レンダリング処理部76にレンダリングを要求する(S207)。この結果、レコード全件分のDOMツリー92の作成が完了する前に、印刷が開始される。
When the
なお、印刷制御処理部72は、レンダリングの要求をした場合(つまり印刷が行われた場合)、所定の通知をDOMツリー作成部74及びレイアウト処理部75に発行する(S208及びS209)。S208の通知に応答して、DOMツリー作成部74は、レンダリング要求に係る部分のデータ(換言すれば、レイアウト済みに係る部分のデータ)を、更新中のDOMツリー92から削除する(S210)。同様に、レンダリング処理部75は、S209の通知に応答して、レンダリング要求されたレイアウト済みデータをレイアウト結果記憶域31Dから削除する(S211)。
The print
DOMツリー作成部74でXHTMLデータ88の解析が終了するまで、S203乃至S211が繰り返される。
S203 to S211 are repeated until the DOM
この第二の実施例によれば、印刷処理タスク22Bが、DOMツリー92の作成処理と、レイアウト処理とを並行して行ない、レコード全件分のDOMツリーを作成し終える前であって、1ページのレイアウトが完了したときに、印刷を開始する。これにより、アドレス帳データ12の受信が行われてから初めのページが印刷されるまでの時間長の短縮が図れる。また、DOMツリー記憶域31Cの記憶サイズを、レコード全件分のDOMツリーを記憶するだけのサイズにする必要が無いので、記憶資源の節約が図れる。
According to the second embodiment, the
以上、本発明の幾つかの実施例を説明したが、これらは本発明の説明のための例示であって、本発明の範囲をこれらの実施例及び変形例にのみ限定する趣旨ではない。本発明は、他の種々の形態でも実施することが可能である。 As mentioned above, although several Example of this invention was described, these are the illustrations for description of this invention, Comprising: It is not the meaning which limits the scope of the present invention only to these Examples and modifications. The present invention can be implemented in various other forms.
例えば、実施例では、プリンタを例に採って説明したが、実施例の内容は、デジタルカメラ或いはパーソナルコンピュータなどの種々の処理装置に適用することができる。 For example, in the embodiment, a printer has been described as an example. However, the contents of the embodiment can be applied to various processing apparatuses such as a digital camera or a personal computer.
また、例えば、XHTMLデータ86又は88を、データパッケージと言い換えても良い。データパッケージには、オブジェクト(例えばレコード要素)と、オブジェクトの配置領域の位置情報が記述されたCSS(Cascading Style Sheets)文書と、CSS文書で記述された位置情報が表す配置領域にオブジェクトをどのように表示するかが記述されたスクリプトとが含まれていても良い。
Further, for example, the
10…携帯情報端末機、 11…メモリ、 12…アドレス帳データ、 20…プリンタ、 22…印刷処理プログラム、 26、48…インデックス印刷レイアウト定義ファイル、 30…プリンタ制御部、 31…RAM、 32…CPU、 33…ROM、 34…通信IF、 35…印刷IF
DESCRIPTION OF
Claims (4)
前記データ群を受信する受信手段と、
前記受信したデータ群のうちの少なくとも一つのデータが前記テンプレートに割り付けられた第一の処理結果データを生成する第一の生成手段と、
前記第一の処理結果データに基づいて、レイアウトのための解析対象となる第二の処理結果データを生成する第二の生成手段と、
前記第二の処理結果データを解析することにより、前記少なくとも一つのデータをページに配置するためのレイアウトを行うレイアウト手段と、
前記レイアウトの結果を出力する出力手段と
を備え、
前記受信したデータ群のうちの全てのデータが前記テンプレートに割り当てられた前記第一の処理結果データに基づく前記第二の処理結果データを作成し終える前に、少なくとも1ページ分の前記第二の処理結果データが生成された段階で、1ページ分の前記第二の処理結果データを解析して1ページ分のレイアウトを完成し、該レイアウトの結果を出力する、
ことを特徴とする処理装置。 A storage area for storing an electronic template for allocating at least one data of a data group including a plurality of data;
Receiving means for receiving the data group;
First generation means for generating first processing result data in which at least one data of the received data group is assigned to the template;
Second generation means for generating second processing result data to be analyzed for layout based on the first processing result data;
Layout means for performing a layout for arranging the at least one data on a page by analyzing the second processing result data;
Output means for outputting the result of the layout,
Before all the data of the received data group finishes creating the second processing result data based on the first processing result data assigned to the template, the second processing result data for at least one page. When the processing result data is generated, the second processing result data for one page is analyzed to complete a layout for one page, and the layout result is output.
The processing apparatus characterized by the above-mentioned.
請求項1記載の処理装置。 The first generation means generates the first processing result data in page units;
The processing apparatus according to claim 1.
請求項1記載の処理装置。 The generation of the second processing result data by the second generation unit and the layout by the layout unit are performed in parallel.
The processing apparatus according to claim 1.
前記受信したデータ群のうちの少なくとも一つのデータを電子的なテンプレートに割り付けた第一の処理結果データを生成するステップと、
前記第一の処理結果データに基づいて、レイアウトのための解析対象となる第二の処理結果データを生成するステップと、
前記第二の処理結果データを解析することにより、前記少なくとも一つのデータをページに配置するためのレイアウトを行うステップと、
前記レイアウトの結果を出力するステップと
を有し、
前記受信したデータ群のうちの全てのデータが前記テンプレートに割り当てられた前記第一の処理結果データに基づく前記第二の処理結果データを作成し終える前に、少なくとも1ページ分の前記第二の処理結果データが生成された段階で、1ページ分の前記第二の処理結果データを解析して1ページ分のレイアウトを完成し、該レイアウトの結果を出力する、
ことを特徴とする処理方法。
Receiving a data group including a plurality of data;
Generating first processing result data in which at least one data of the received data group is assigned to an electronic template;
Generating second processing result data to be analyzed for layout based on the first processing result data;
Performing a layout for arranging the at least one data on a page by analyzing the second processing result data; and
Outputting the result of the layout,
Before all the data of the received data group finishes creating the second processing result data based on the first processing result data assigned to the template, the second processing result data for at least one page. When the processing result data is generated, the second processing result data for one page is analyzed to complete a layout for one page, and the layout result is output.
A processing method characterized by the above.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2005052341A JP2006238248A (en) | 2005-02-28 | 2005-02-28 | Apparatus and method for processing data group including multiple data |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2005052341A JP2006238248A (en) | 2005-02-28 | 2005-02-28 | Apparatus and method for processing data group including multiple data |
Publications (1)
Publication Number | Publication Date |
---|---|
JP2006238248A true JP2006238248A (en) | 2006-09-07 |
Family
ID=37045383
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2005052341A Pending JP2006238248A (en) | 2005-02-28 | 2005-02-28 | Apparatus and method for processing data group including multiple data |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP2006238248A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2009110049A (en) * | 2007-10-26 | 2009-05-21 | Dainippon Printing Co Ltd | Authoring apparatus, method, and computer program |
US7962443B2 (en) | 2007-02-08 | 2011-06-14 | Interactive Documents, Llc | Method and system for replacing data in a structured design template |
-
2005
- 2005-02-28 JP JP2005052341A patent/JP2006238248A/en active Pending
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7962443B2 (en) | 2007-02-08 | 2011-06-14 | Interactive Documents, Llc | Method and system for replacing data in a structured design template |
JP2009110049A (en) * | 2007-10-26 | 2009-05-21 | Dainippon Printing Co Ltd | Authoring apparatus, method, and computer program |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP5187057B2 (en) | Layout printing system, layout document browsing method, and program | |
US7916953B2 (en) | Removable medium device, medium for controlling removable medium device, and medium for controlling network device | |
US9069504B2 (en) | Printing apparatus and method for increasing storage area | |
US8045198B2 (en) | System and method for processing a change history of a PDF file | |
CN102572181A (en) | Document information display control device, document information display method, and computer program | |
CN101951452A (en) | Printing state set device, method, system and storage medium | |
CN102348031B (en) | Image processing system, image processing apparatus, method for controlling display of function setting screen | |
US8941875B2 (en) | Image processing system, image processing method, and computer readable recording medium storing program thereof | |
US8437017B2 (en) | Printing apparatus and computer program product for displaying bitmap of operation screen from rasterized PDL and controlling layout | |
JP2016162184A (en) | Information processing system, information processing device, control method and computer program | |
JP2009237705A (en) | Management system, information processing device, data processing method, program, and storage medium | |
US7957033B2 (en) | Print control operations | |
US20120092683A1 (en) | Image forming apparatus and document editing method | |
JP2006238248A (en) | Apparatus and method for processing data group including multiple data | |
US20100100812A1 (en) | Document generation method and document generation apparatus | |
JP6714872B2 (en) | Image forming device | |
JP5341141B2 (en) | Information processing system | |
US11347455B2 (en) | Information processing device, control method for information processing device, and program | |
JP2008282404A (en) | Document output system and method | |
US20080304097A1 (en) | System and method for staged processing of electronic document processing jobs | |
US8310712B2 (en) | Image forming controlling apparatus, image forming controlling method, and image forming controlling program embodied on computer readable recording medium | |
US20140368876A1 (en) | Data generating apparatus, data generating method, and non-transitory storage medium | |
US20100332978A1 (en) | Document processing apparatus, document processing method, document processing system, and computer readable medium | |
JP5589381B2 (en) | Information processing apparatus, information processing method, and program | |
US20020186396A1 (en) | Image processing apparatus, image processing system and image processing program storage medium |