JP2005111711A - Printer, printing method and program for printer - Google Patents

Printer, printing method and program for printer Download PDF

Info

Publication number
JP2005111711A
JP2005111711A JP2003345871A JP2003345871A JP2005111711A JP 2005111711 A JP2005111711 A JP 2005111711A JP 2003345871 A JP2003345871 A JP 2003345871A JP 2003345871 A JP2003345871 A JP 2003345871A JP 2005111711 A JP2005111711 A JP 2005111711A
Authority
JP
Japan
Prior art keywords
layout
document
printing apparatus
tree structure
specified
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
JP2003345871A
Other languages
Japanese (ja)
Inventor
Atsushi Narisawa
敦 成沢
Satoru Orii
悟 織井
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Seiko Epson Corp
Original Assignee
Seiko Epson Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Seiko Epson Corp filed Critical Seiko Epson Corp
Priority to JP2003345871A priority Critical patent/JP2005111711A/en
Publication of JP2005111711A publication Critical patent/JP2005111711A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Record Information Processing For Printing (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To print a description document in which an object such as an XHTML document is hierarchically described in a prescribed format, while analyzing more quickly. <P>SOLUTION: An analyzing section 30 stores an URL in the URL storage buffer region of a memory 50 every time when it is specified regardless of whether an XHTML document is under analysis or not. When the URL is stored in the URL storage buffer region of the memory 50, the analyzing section 30 reads in and analyzes XHTML documents being specified sequentially by the URL regardless of whether a layouter 38 is performing layout or not thus creating a DOM tree in the DOM tree storage region of the memory 50. Consequently, an XHTML document can be analyzed quickly and printed. <P>COPYRIGHT: (C)2005,JPO&NCIPI

Description

本発明は、印刷装置および印刷方法並びに印刷装置用のプログラムに関する。   The present invention relates to a printing apparatus, a printing method, and a program for the printing apparatus.

従来、この種の印刷装置としては、SVG文書を解析して印刷するプリンタとHTML文書をSVG文書に変換するフォーマッティングサーバとにより構成されたプリンタシステムが提案されている(例えば、特許文献1参照)。このシステムでは、HTML文書を受け付けると、フォーマッティングサーバにより受け付けたHTML文書をSVG文書に変換し、この変換したSVG文書をプリンタで解析して印刷する。
特開2002−91726号公報(図1,第5頁)
Conventionally, as this type of printing apparatus, there has been proposed a printer system including a printer that analyzes and prints an SVG document and a formatting server that converts an HTML document into an SVG document (see, for example, Patent Document 1). . In this system, when an HTML document is received, the HTML document received by the formatting server is converted into an SVG document, and the converted SVG document is analyzed by a printer and printed.
JP 2002-91726 A (FIG. 1, page 5)

しかしながら、上述のプリンタシステムでは、プリンタとフォーマッティングサーバとから構成されていることから大型化し、家庭のリビングなどの限られたスペースに設置する場合には不向きである。また、HTML文書を受け付けたときには、フォーマッティングサーバによりSVG文書に変換すると共にこの変換したSVG文書を解析して印刷するから、変換や解析に時間を要し、迅速な印刷を行なうことができない。   However, since the above-described printer system is composed of a printer and a formatting server, the printer system is increased in size and is not suitable for installation in a limited space such as a living room. When an HTML document is received, it is converted into an SVG document by the formatting server and the converted SVG document is analyzed and printed. Therefore, it takes time for conversion and analysis, and rapid printing cannot be performed.

本発明の印刷装置および印刷方法は、HTML文書やこれを拡張したXHTML文書などのようなオブジェクトを所定の書式により階層的に記述した記述文書をより迅速に解析して印刷することを目的とする。本発明の印刷装置用のプログラムは、印刷装置に所定の書式により階層的に記述した記述文書の解析や印刷をより迅速に行なわせることを目的とする。   An object of the printing apparatus and the printing method of the present invention is to more quickly analyze and print a description document in which objects such as an HTML document or an XHTML document obtained by extending the document are hierarchically described in a predetermined format. . An object of the program for a printing apparatus of the present invention is to cause the printing apparatus to more quickly analyze and print a description document hierarchically described in a predetermined format.

本発明の印刷装置および印刷方法並びに印刷装置用のプログラムは、上述の目的の少なくとも一部を達成するために以下の手段を採った。   The printing apparatus, the printing method, and the program for the printing apparatus of the present invention employ the following means in order to achieve at least a part of the above object.

本発明の印刷装置は、
印刷可能なオブジェクトを所定の書式により階層的に記述した記述文書を解析して紙などの媒体に印刷する印刷装置であって、
データを記憶するデータ記憶手段と、
記述文書が指定されたとき、該指定の前に指定された他の記述文書に対する印刷処理が終了する前であっても、所定のタイミングで該指定された記述文書を受け付けて該記述文書におけるオブジェクトの階層的な木構造を解析すると共に該解析した木構造を前記データ記憶手段に記憶させる構造解析手段と、
レイアウト作成指示がなされたとき、前記データ記憶手段に記憶された木構造に基づいてオブジェクトの前記媒体へのレイアウトをページ毎に作成すると共に該作成したページ毎のレイアウトを前記データ記憶手段に記憶させるレイアウト作成手段と、
印刷実行指示がなされたとき、前記データ記憶手段に記憶されたページ毎のレイアウトに基づいてオブジェクトを取得すると共にレイアウトして印刷する印刷実行手段と、
を備えることを要旨とする。
The printing apparatus of the present invention includes:
A printing apparatus that analyzes a description document in which printable objects are hierarchically described in a predetermined format and prints it on a medium such as paper.
Data storage means for storing data;
When a descriptive document is specified, the specified descriptive document is received at a predetermined timing and an object in the descriptive document is received even before the print processing for the other descriptive document specified before the specification is completed. Analyzing the hierarchical tree structure and storing the analyzed tree structure in the data storage means;
When a layout creation instruction is given, a layout of objects on the medium is created for each page based on the tree structure stored in the data storage means, and the created layout for each page is stored in the data storage means. Layout creation means;
Print execution means for acquiring an object based on the layout for each page stored in the data storage means and performing layout printing when a print execution instruction is made; and
It is a summary to provide.

この本発明の印刷装置では、記述文書が指定されたときには、この指定の前に指定された他の記述文書に対する印刷処理が終了する前であっても、所定のタイミングで指定された記述文書を受け付けて記述文書におけるオブジェクトの階層的な木構造を解析するから、前に指定された他の記述文書の印刷処理が完全に終了してから指定された記述文書の解析を開始するものに比して、迅速に解析して印刷することができる。ここで、記述文書としては、例えばXHTML言語などのマークアップ言語により記述されてなるものとすることもできる。また、印刷可能なオブジェクトとしては、テキスト,画像,表などが含まれる。印刷装置としては、例えば、カラーインクジェットプリンタを用いることができる。   In the printing apparatus of the present invention, when a descriptive document is designated, the descriptive document designated at a predetermined timing is stored even before the print processing for another descriptive document designated before the designation is completed. Since it accepts and analyzes the hierarchical tree structure of the objects in the descriptive document, it is compared to the one that starts the analysis of the specified descriptive document after the print processing of the other descriptive document specified previously is completely completed. Can be quickly analyzed and printed. Here, the description document may be described in a markup language such as XHTML language. Also, printable objects include text, images, tables and the like. As the printing apparatus, for example, a color ink jet printer can be used.

こうした本発明の印刷装置において、前記構造解析手段は、前記他の記述文書に対応する木構造の解析が完了したタイミングを所定のタイミングとして前記指定された記述文書を解析する手段であるものとすることもできる。こうすれば、レイアウト作成手段がレイアウトを作成している最中に記述文書の解析を行なうことができる。この態様の本発明の印刷装置において、前記レイアウト作成手段は、前記レイアウトの作成を完了した以降に前記構造解析手段に所定の終了信号を出力する手段であり、前記構造解析手段は、前記所定の終了信号を受け付けたときに該所定の終了信号に係る木構造の次に解析した木構造に対するレイアウト作成指示を前記レイアウト作成手段に指示する手段であるものとすることもできる。この場合、前記レイアウト作成手段は、前記レイアウトの作成を完了した以降に該レイアウトの作成に係る木構造を前記データ記憶手段から削除する手段であるものとすることもできる。こうすれば、データ記憶手段における木構造を記憶する新たな領域を確保することができる。   In such a printing apparatus of the present invention, the structure analysis means is means for analyzing the specified description document with a predetermined timing as a timing when the analysis of the tree structure corresponding to the other description document is completed. You can also. In this way, it is possible to analyze the description document while the layout creating means is creating the layout. In the printing apparatus according to the aspect of the present invention, the layout creating unit is a unit that outputs a predetermined end signal to the structure analyzing unit after completing the creation of the layout, and the structure analyzing unit includes the predetermined unit. When the end signal is received, the layout generation means may be instructed to issue a layout generation instruction for the tree structure analyzed next to the tree structure related to the predetermined end signal. In this case, the layout creation means may be means for deleting the tree structure related to the creation of the layout from the data storage means after the creation of the layout is completed. In this way, a new area for storing the tree structure in the data storage means can be secured.

また、本発明の印刷装置において、前記構造解析手段は前記解析した木構造を該木構造を識別する識別情報と共に前記データ記憶手段に記憶させる手段であり、前記レイアウト作成手段は前記識別情報を伴ったレイアウト作成指示がなされたときに前記データ記憶手段に記憶された木構造のうち該レイアウト作成指示に係る識別情報により特定される木構造に基づいてレイアウトを作成する手段であるものとすることもできる。こうすれば、木構造の特定を容易に行なうことができる。   In the printing apparatus according to the aspect of the invention, the structure analysis unit may store the analyzed tree structure in the data storage unit together with identification information for identifying the tree structure, and the layout generation unit may include the identification information. It is also possible to create a layout based on the tree structure specified by the identification information related to the layout creation instruction among the tree structures stored in the data storage means when the layout creation instruction is issued. it can. In this way, the tree structure can be easily identified.

さらに、本発明の印刷装置において、前記構造解析手段は、前記データ記憶手段に木構造が所定数記憶されているときには、前記データ記憶手段に記憶された木構造が所定数未満となるまで前記指定された記述文書を受け付けおよび/または該指定された記述文書におけるオブジェクトの階層的な木構造の解析を保留する手段であるものとすることもできる。こうすれば、データ記憶手段における木構造を記憶するための領域を小さくすることができる。この場合、前記所定数は値2とすることもできる。   Furthermore, in the printing apparatus of the present invention, when the predetermined number of tree structures are stored in the data storage unit, the structure analysis unit specifies the designation until the tree structure stored in the data storage unit becomes less than the predetermined number. It may be a means for accepting a written description document and / or holding the analysis of the hierarchical tree structure of objects in the designated description document. In this way, the area for storing the tree structure in the data storage means can be reduced. In this case, the predetermined number may be a value of 2.

加えて、本発明の印刷装置において、前記レイアウト作成手段は、レイアウトの作成が完了したページ毎に前記印刷実行指示を前記印刷実行手段に行なう手段であるものとすることもできるし、1ページ分のレイアウトの作成が完了したときに前記印刷実行指示を前記印刷実行手段に行なう手段であるものとすることもできる、こうすれば、1ページ分の解析が終了した時点で印刷実行指示を行なうから、迅速に印刷することができる。   In addition, in the printing apparatus of the present invention, the layout creating means may be a means for giving the print execution instruction to the print execution means for each page for which layout creation has been completed. It can also be a means for giving the print execution instruction to the print execution means when the creation of the layout is completed. In this way, the print execution instruction is issued when the analysis for one page is completed. Can be printed quickly.

本発明の印刷方法は、
印刷可能なオブジェクトを所定の書式により階層的に記述した記述文書を解析して紙などの媒体に印刷する印刷方法であって、
(a)記述文書が指定されたとき、該指定の前に指定された他の記述文書に対する印刷処理が終了する前であっても、所定のタイミングで該指定された記述文書を受け付けて該記述文書におけるオブジェクトの階層的な木構造を解析し、
(b)レイアウト作成指示がなされたとき、前記解析された木構造に基づいてオブジェクトの前記媒体へのレイアウトをページ毎に作成し、
(c)印刷実行指示がなされたとき、前記データ記憶手段に記憶されたページ毎のレイアウトに基づいてオブジェクトを取得すると共にレイアウトして印刷する
ことを要旨とする。
The printing method of the present invention includes:
A printing method for analyzing a description document in which printable objects are hierarchically described in a predetermined format and printing the document on a medium such as paper.
(A) When a descriptive document is specified, the specified descriptive document is received at a predetermined timing and the description is received even before print processing for another descriptive document specified before the specification is completed. Analyzes the hierarchical tree structure of objects in a document,
(B) When a layout creation instruction is given, a layout of objects on the medium is created for each page based on the analyzed tree structure;
(C) When a print execution instruction is given, the object is to acquire an object based on the layout for each page stored in the data storage means, and to perform layout printing.

この本発明の印刷方法によれば、記述文書が指定されたときには、この指定の前に指定された他の記述文書に対する印刷処理が終了する前であっても、所定のタイミングで指定された記述文書を受け付けて記述文書におけるオブジェクトの階層的な木構造を解析するから、前に指定された他の記述文書の印刷処理が完全に終了してから指定された記述文書の解析を開始するものに比して、迅速に解析して印刷することができる。   According to the printing method of the present invention, when a descriptive document is designated, the description designated at a predetermined timing even before the print processing for another descriptive document designated before the designation is completed. Since it accepts a document and analyzes the hierarchical tree structure of objects in the description document, the analysis of the specified description document starts after the print processing of the other specified description document is completely completed. In comparison, analysis and printing can be performed quickly.

本発明の印刷装置用のプログラムは、
印刷可能なオブジェクトを所定の書式により階層的に記述した記述文書を解析して紙などの媒体に印刷する印刷装置に用いられるプログラムであって、
記述文書が指定されたときに該指定の前に指定された他の記述文書に対する印刷処理が終了する前であっても所定のタイミングで該指定された記述文書を受け付けて該記述文書におけるオブジェクトの階層的な木構造を解析するモジュールと、
レイアウト作成指示がなされたときに前記解析された木構造に基づいてオブジェクトの前記媒体へのレイアウトをページ毎に作成するモジュールと、
印刷実行指示がなされたときに前記作成されたページ毎のレイアウトに基づいてオブジェクトを取得して印刷可能にレイアウトするモジュールと、
を備えることを要旨とする。
The program for the printing apparatus of the present invention is:
A program used in a printing apparatus that analyzes a description document in which printable objects are hierarchically described in a predetermined format and prints the document on a medium such as paper.
When a description document is specified, the specified description document is received at a predetermined timing even before the print processing for another description document specified before the specification ends, and the object of the description document A module to analyze the hierarchical tree structure;
A module for creating a layout of objects on the medium for each page based on the analyzed tree structure when a layout creation instruction is given;
A module that acquires an object based on the created layout for each page when a print execution instruction is given, and lays out the printable layout;
It is a summary to provide.

この本発明の印刷装置用のプログラムによれば、印刷装置にインストールすることにより、記述文書が指定されたときには、この指定の前に指定された他の記述文書に対する印刷処理が終了する前であっても、所定のタイミングで指定された記述文書を受け付けて記述文書におけるオブジェクトの階層的な木構造を解析するよう印刷装置を動作させるから、前に指定された他の記述文書の印刷処理が完全に終了してから指定された記述文書の解析を開始する印刷装置に比して、迅速に解析して印刷する印刷装置とすることができる。   According to the program for a printing apparatus of the present invention, when a descriptive document is specified by being installed in the printing apparatus, the print process for the other descriptive document specified before the specification is completed. However, since the printing device is operated to accept the description document specified at a predetermined timing and analyze the hierarchical tree structure of the objects in the description document, the print processing of the other description document specified previously is complete. As compared with a printing apparatus that starts analysis of a specified description document after the process is completed, the printing apparatus can quickly analyze and print.

次に、本発明を実施するための最良の形態を実施例を用いて説明する。   Next, the best mode for carrying out the present invention will be described using examples.

図1は、本発明の一実施例としてのカラーインクジェットプリンタ20の構成の概略を示す構成図である。実施例のカラーインクジェットプリンタ20は、図示するように、コンピュータ10やデジタルテレビ12,デジタルカメラ14などと接続してデジタル画像(以下、画像という)の入力を司る入力インターフェース22と、入力インタフェース22に入力される画像の形式に基づいてデータの出力先を割り振る信号処理部24と、マークアップ言語としてのXHTML(eXtensible Hyper Text Markup Language)により記述されたXHTML文書を解析して要素の木構造としてのDOM(Document Object Model)ツリーを作成すると共にCSS(Cascading Style Sheets)により記述されたCSS文書を読み込んでスタイルオブジェクトを作成してメモリ50に書き込む解析部30と、解析部30により作成されたDOMツリーとスタイルオブジェクトとを用いてXHTML文書に記述された要素(オブジェクト)としての画像やテキストを印刷用の印刷用のページ毎にレイアウトしてページボックスとしてメモリ50に書き込むレイアウタ38と、レイアウタ38によりレイアウトして得られるページボックスを用いてRBGデータとしての印刷用画像を描画するレンダリングプラグイン(以下、RPIという)40と、描画されたRGB(Red Green Blue)データの印刷用画面をCMYK(Cyan Magenta Yellow Black)データに変換する色変換部42と、変換されたCMYKデータを誤差拡散処理などの画像処理を行なって2値化する2値化部44と、2値化されたCMYKの各データを図示しない印刷ヘッドを備える印刷実行部48にバンド単位で出力するために一時的にデータを蓄えるイメージバッファ46とを備える。   FIG. 1 is a configuration diagram showing an outline of the configuration of a color inkjet printer 20 as an embodiment of the present invention. As shown in the figure, the color inkjet printer 20 of the embodiment is connected to a computer 10, a digital television 12, a digital camera 14, and the like, and an input interface 22 that controls input of a digital image (hereinafter referred to as an image), and an input interface 22 Analyzing an XHTML document described in XHTML (eXtensible Hyper Text Markup Language) as a markup language by assigning an output destination of data based on the format of the input image, and as an element tree structure Creates a DOM (Document Object Model) tree and reads a CSS document described by CSS (Cascading Style Sheets) to create a style object and create a memory An image and text as an element (object) described in an XHTML document using the analysis unit 30 written in the data 50 and the DOM tree and style object created by the analysis unit 30 are laid out for each print page for printing. A layouter 38 to be written in the memory 50 as a page box, a rendering plug-in (hereinafter referred to as RPI) 40 for rendering an image for printing as RBG data using a page box obtained by laying out by the layouter 38, and rendering. The RGB (Red Green Blue) data print screen is converted to CMYK (Cyan Magenta Yellow Black) data, and the converted CMYK data is binarized by image processing such as error diffusion processing. A binarization unit 44 and An image buffer 46 that temporarily stores data for outputting binarized CMYK data to a print execution unit 48 including a print head (not shown) in units of bands.

信号処理部24は、入力された信号が直ちに印刷可能な印刷用データの場合には印刷実行部48のイメージバッファ46にデータを出力し、RGBデータの場合にはメモリ50の印刷用画面格納領域に出力し、XHTML文書で記述されたファイルの場合には解析部30に出力する。   The signal processing unit 24 outputs the data to the image buffer 46 of the print execution unit 48 when the input signal is printable data that can be printed immediately, and the print screen storage area of the memory 50 when the input signal is RGB data. In the case of a file described in an XHTML document, it is output to the analysis unit 30.

解析部30は、XHTML文書の解析を指示することによりDOMツリーを作成するコア32と、コア32からの指示に基づいてXHTML文書を解析するXMLパーサー34と、作成されたDOMツリーのlinkタグ内の初期化処理により依頼されたCSS文書を解析するCSSプラグイン(以下、CSSPIという)36とから構成されている。   The analysis unit 30 includes a core 32 that creates a DOM tree by instructing analysis of an XHTML document, an XML parser 34 that analyzes an XHTML document based on an instruction from the core 32, and a link tag of the created DOM tree. The CSS plug-in (hereinafter referred to as CSSI) 36 for analyzing the CSS document requested by the initialization process of FIG.

次に、こうして構成された実施例のカラーインクジェットプリンタ20の動作、特にXHTML文書を印刷する際の動作について説明する。図2は、解析部30により実行される解析レイアウト指示処理の一例を示すフローチャートである。この処理は所定時間毎(例えば、8msec毎)に繰り返し実行される。解析レイアウト指示処理が実行されると、まず、XHTML文書を特定するためのURL(Uniform Resouce Locator)の指定があるか否かを判定し(ステップS100)、URLの指定があるときにはそのURLをメモリ50に領域設定されたURL格納用バッファ領域に格納し(ステップS110)、URLの指定がないときには次の処理に進む。URL指定は、例えば、操作者がデジタルテレビ12で表示された印刷可能な項目のうちカラーインクジェットプリンタ20で印刷しようとする項目を選択したときデジタルテレビ12からのカラーインクジェットプリンタ20に出力されることにより行なうものとすることができるし、コンピュータ10から単にURLを選択してカラーインクジェットプリンタ20に印刷要求することによっても行なうことができる。なお、コンピュータ10からのURL指定では、コンピュータ10によってもXHTML文書の解析やレイアウト,色変換や2値化などを行なうことができるが、コンピュータ10によってはこうした処理を一切行なわず、URLだけをカラーインクジェットプリンタ20に送信する場合となる。   Next, the operation of the color ink jet printer 20 of the embodiment configured as described above, particularly the operation when printing an XHTML document will be described. FIG. 2 is a flowchart illustrating an example of the analysis layout instruction process executed by the analysis unit 30. This process is repeatedly executed every predetermined time (for example, every 8 msec). When the analysis layout instruction process is executed, first, it is determined whether or not a URL (Uniform Resource Locator) for specifying an XHTML document is specified (step S100). If a URL is specified, the URL is stored in the memory. 50 is stored in the URL storage buffer area set in the area 50 (step S110), and if no URL is designated, the process proceeds to the next process. The URL designation is output to the color inkjet printer 20 from the digital television 12 when the operator selects an item to be printed by the color inkjet printer 20 among the printable items displayed on the digital television 12. Or by simply selecting a URL from the computer 10 and making a print request to the color inkjet printer 20. In the URL designation from the computer 10, the XHTML document can be analyzed, laid out, color converted, binarized, etc. by the computer 10, but the computer 10 does not perform such processing at all, and only the URL is colored. In this case, the data is transmitted to the ink jet printer 20.

続いて、メモリ50のURL格納用バッファ領域にURLが格納されているか否かを判定すると共に(ステップS120)、XHTML文書を現在解析中であるか否かを判定する(ステップS130)。XHTML文書を現在解析中であるか否かの判定は、この解析レイアウト指示処理と同時に並列に解析部30自信によって行なっているか否かを判定することにより、例えば解析開始時と解析終了時にフラグ操作するものとすればフラグを調べることにより行なうことができる。URLが格納されており、現在XHTML文書の解析中ではないときには、メモリ50のURL格納用バッファ領域に格納されている最初のURLを読み出してそのURLにより特定されるXHTML文書の解析を開始し(ステップS140)、URLが格納されていないときやURLが格納されていても現在XHTML文書を解析している最中のときには次の処理に進む。XHTML文書の解析は、図3に例示する解析処理に基づいて行なわれる。この解析処理ではURLにより特定されるXHTML文書が解析されてDOMツリーが作成され、XHTML文書に記述されたCSS文書を解析してスタイルオブジェクトが作成され、関連付けられてメモリ50のDOMツリー用格納領域とスタイルオブジェクト用格納領域とに記憶される。このとき、DOMツリーには識別情報としてDOMツリーIDが付与され、スタイルオブジェクトには識別情報としてスタイルオブジェクトIDが付与される。解析処理の詳細については後述する。   Subsequently, it is determined whether or not the URL is stored in the URL storage buffer area of the memory 50 (step S120), and whether or not the XHTML document is currently being analyzed is determined (step S130). Whether or not the XHTML document is currently being analyzed is determined by determining whether or not the analysis unit 30 is confident in parallel with the analysis layout instruction processing, for example, at the start of analysis and at the end of analysis. If so, this can be done by checking the flag. When the URL is stored and the XHTML document is not currently being analyzed, the first URL stored in the URL storage buffer area of the memory 50 is read and analysis of the XHTML document specified by the URL is started ( In step S140, when the URL is not stored or when the XHTML document is currently being analyzed even if the URL is stored, the process proceeds to the next process. The analysis of the XHTML document is performed based on the analysis process illustrated in FIG. In this analysis processing, the XHTML document specified by the URL is analyzed to create a DOM tree, the CSS document described in the XHTML document is analyzed to create a style object, and the DOM tree storage area in the memory 50 is associated with the analysis. And the style object storage area. At this time, a DOM tree ID is assigned as identification information to the DOM tree, and a style object ID is assigned to the style object as identification information. Details of the analysis processing will be described later.

次に、レイアウタ38によってレイアウトが行なわれている最中であるか否かを判定し(ステップS150)、レイアウタ38によるレイアウトが行なわれていないときにはメモリ50のDOMツリー用格納領域に格納されたDOMツリーのうち最初のDOMツリーをDOMツリーIDを用いて指定してレイアウタ38にレイアウト開始指示を出力し(ステップS160)、この解析レイアウト指示処理を終了し、レイアウタ38によってレイアウトが行なわれている最中であるときにはレイアウト開始指示を出力せずに解析レイアウト指示処理を終了する。ここで、レイアウタ38によってレイアウトが行なわれている最中であるか否かの判定は、レイアウタ38からレイアウト終了の信号を入力したか否かにより行なうことができる。レイアウト終了の信号の受信についてはレイアウタ38の処理を説明する際に詳述する。   Next, it is determined whether the layout is being performed by the layouter 38 (step S150). When the layout is not performed by the layouter 38, the DOM stored in the DOM tree storage area of the memory 50 is determined. The first DOM tree in the tree is designated using the DOM tree ID, and a layout start instruction is output to the layouter 38 (step S160). This analysis layout instruction process is terminated, and the layout layout 38 is being executed. When it is in the middle, the analysis layout instruction process is terminated without outputting the layout start instruction. Here, whether or not the layout is being performed by the layouter 38 can be determined based on whether or not a layout end signal is input from the layouter 38. The reception of the layout end signal will be described in detail when the processing of the layout 38 is described.

こうした解析レイアウト指示処理は、前述したように繰り返し実行されるから、解析部30ではURLが指定される毎にXHTML文書の解析中であるか否かに拘わらずに指定されたURLをメモリ50のURL格納用バッファ領域に格納する。また、メモリ50のURL格納用バッファ領域にURLが格納されているときには、レイアウタ38によるレイアウトの実行中であるか否かに拘わらずにXHTML文書の解析を順次行なう。従って、メモリ50のURL格納用バッファ領域には複数のURLが格納される場合が生じ、DOMツリー用格納領域に複数のDOMツリーが格納される場合が生じ、スタイルオブジェクト用格納領域に複数のスタイルオブジェクトが格納される場合が生じる。実施例では、複数のURLを格納することができるようにURL格納用バッファ領域が設定されており、複数のDOMツリーを格納することができるようにDOMツリー用格納領域が設定されており、複数のスタイルオブジェクトを格納することができるようにスタイルオブジェクト用格納領域が設定されている。   Since such an analysis layout instruction process is repeatedly executed as described above, every time the URL is specified in the analysis unit 30, the specified URL is stored in the memory 50 regardless of whether or not the XHTML document is being analyzed. Store in the URL storage buffer area. When a URL is stored in the URL storage buffer area of the memory 50, XHTML documents are sequentially analyzed regardless of whether the layout by the layouter 38 is being executed. Accordingly, a plurality of URLs may be stored in the URL storage buffer area of the memory 50, a plurality of DOM trees may be stored in the DOM tree storage area, and a plurality of styles may be stored in the style object storage area. An object may be stored. In the embodiment, a URL storage buffer area is set so that a plurality of URLs can be stored, and a DOM tree storage area is set so that a plurality of DOM trees can be stored. A style object storage area is set so that the style object can be stored.

次に、解析部30により実行される解析処理について説明する。解析処理は、前述したように図3に例示するフローチャートに基づいて行なわれる。説明の容易のために具体例として図4に例示するXHTML文書を用いて説明する。図5は、この具体例のXHTML文書により用いられているJPEG形式として格納された5つの画像の一例を示す。解析レイアウト指示処理によりURLを指定して解析開始の指示がなされると、URLにより特定されるXHTML文書を読み出し(ステップS200)、読み出したXHTML文書を解析してDOMツリーを作成する(ステップS210)。このとき、作成するDOMツリーには識別情報としてDOMツリーID(例えば、URLにDOMを付して作成したIDなど)を付与する。XHTML文書の読み出しは、具体的には、コア32がURLを指定してXMLパーサー34に解析依頼することによりXMLパーサー34が行なう。XHTML文書の解析およびDOMツリーの作成は、具体的には、XMLパーサー34がXHTML文書を最初から順に解析して各要素を作成すると共にDOMツリーに登録することにより行なう。なお、要素の作成はコア32に対して行ない、要素の登録はメモリ50のDOMツリー用格納領域に関連付けて格納することにより行なう。図4に例示したXHTML文書を解析して作成されたDOMツリーを図6に示す。   Next, analysis processing executed by the analysis unit 30 will be described. The analysis process is performed based on the flowchart illustrated in FIG. 3 as described above. For ease of explanation, a specific example will be described using the XHTML document illustrated in FIG. FIG. 5 shows an example of five images stored as the JPEG format used by the XHTML document of this specific example. When a URL is specified by the analysis layout instruction process and an analysis start instruction is given, the XHTML document specified by the URL is read (step S200), and the read XHTML document is analyzed to create a DOM tree (step S210). . At this time, a DOM tree ID (for example, an ID created by adding a DOM to a URL) is assigned as identification information to the DOM tree to be created. Specifically, the XHTML document is read by the XML parser 34 when the core 32 designates a URL and requests an analysis to the XML parser 34. Specifically, the analysis of the XHTML document and the creation of the DOM tree are performed by the XML parser 34 analyzing the XHTML document from the beginning in order to create each element and register it in the DOM tree. The element is created for the core 32, and the element is registered by associating it with the DOM tree storage area of the memory 50. FIG. 6 shows a DOM tree created by analyzing the XHTML document illustrated in FIG.

こうしてDOMツリーを作成すると、XHTML文書に指定されたCSS文書を読み出し(ステップS220)、読み込出したCSS文書を解析してスタイルオブジェクトを作成する(ステップS230)。CSS文書の読み出しは、具体的には、DOMツリーのlinkタグ内の初期化処理内の依頼により依頼されたCSSPI36が行なう。CSS文書の解析およびスタイルオブジェクトの作成は、具体的には、CSSPI36がCSS文書を最初から順に解析して各ルールをメモリ50のスタイルオブジェクト用格納領域に格納することにより行なう。図7に具体例のXHTML文書により指定されたCSS文書の一例を示し、図8にこのCSS文書を解析して作成されたスタイルオブジェクトの一例を示す。   When the DOM tree is created in this way, the CSS document designated as the XHTML document is read (step S220), and the read CSS document is analyzed to create a style object (step S230). Specifically, the CSS document 36 is read by the request in the initialization process in the link tag of the DOM tree. Specifically, the CSS document is analyzed and the style object is created by the CSSI 36 analyzing the CSS document in order from the beginning and storing each rule in the storage area for the style object in the memory 50. FIG. 7 shows an example of a CSS document designated by a specific example XHTML document, and FIG. 8 shows an example of a style object created by analyzing the CSS document.

こうしてDOMツリーとスタイルオブジェクトが作成されると、作成したDOMツリーとスタイルオブジェクトの関連付け処理を実行し(ステップS240)、URL格納用バッファ領域から解析の対象のURLを削除して(ステップS250)、解析処理を終了する。   When the DOM tree and style object are created in this way, the created DOM tree and style object are associated with each other (step S240), and the URL to be analyzed is deleted from the URL storage buffer area (step S250). End the analysis process.

次に、レイアウタ38の処理について説明する。図9は、解析部30によりDOMツリーを指定してレイアウト開始指示がなされたときにレイアウタ38により実行されるレイアウト描画指示処理の一例を示すフローチャートである。レイアウト描画指示処理が実行されると、レイアウタ38は、まず、指定されたDOMツリーに基づいてレイアウトを開始する(ステップS300)。レイアウトは、図10に例示するレイアウト処理により実行される。説明の都合上、ここで、レイアウト処理について説明する。   Next, processing of the layouter 38 will be described. FIG. 9 is a flowchart illustrating an example of a layout drawing instruction process executed by the layouter 38 when the analysis unit 30 designates a DOM tree and issues a layout start instruction. When the layout drawing instruction process is executed, the layouter 38 first starts layout based on the designated DOM tree (step S300). The layout is executed by the layout process illustrated in FIG. For convenience of explanation, layout processing will be described here.

レイアウト処理では、レイアウタ38は、まず、DOMツリーの各要素に対してその要素の特性に従って要素ボックスを作成する(ステップS400)。例えば、要素が画像であればイメージボックスを作成し、要素がテキストであればテキストボックスを作成するのである。続いて、ページ毎に対応するページボックスを作成し(ステップS410)、そのページボックスの下にbodyタグ内の要素ボックスをレイアウトできなくなるまで順にレイアウトする(ステップS420〜S440)。要素ボックスのレイアウトは、イメージボックスの場合には画像サイズを取得すると共に行を作成してイメージボックスを登録することにより行なわれる。取得した画像サイズによりイメージボックスをレイアウトすることができないときにはステップS430でレイアウト不可の判定がなされ、次ページに対応するページボックスが作成される(ステップS410)。また、要素ボックスがテキストボックスの場合には、要素ボックスのレイアウトは、行に入るだけのテキストボックスを生成して行に登録し、残余のテキストについては、行を作成し、作成した行に入るだけのテキストボックスを作成して登録することを繰り返すことにより行なわれる。なお、ページの最終行にテキストボックスを登録しても、テキストのすべてを登録できないときには、ステップS430でレイアウト不可の判定がなされ、次ページに対応するページボックスが作成され、残余のテキストを同様にしてテキストボックスとして行に登録する。図11に具体例のDOMツリーを用いてレイアウトした際の各ページのページボックスを示す。こうしてすべての要素ボックスをレイアウトすると、指定されたDOMツリーをメモリ50のDOMツリー用格納領域から削除して(ステップS450)、レイアウト処理を終了する。このように、レイアウト処理を終了するときに用いたDOMツリーをメモリ50のDOMツリー用格納領域から削除することにより、DOMツリー用格納領域に不要なDOMツリーが格納された状態が継続されるのを回避することができる。この結果、解析部30によって作成される新たなDOMツリーの格納領域を確保することができる。   In the layout process, the layouter 38 first creates an element box for each element of the DOM tree according to the characteristics of the element (step S400). For example, if the element is an image, an image box is created, and if the element is text, a text box is created. Subsequently, a page box corresponding to each page is created (step S410), and the element box in the body tag is laid out in order until it becomes impossible to lay out under the page box (steps S420 to S440). In the case of an image box, the element box is laid out by acquiring the image size and creating a line to register the image box. When the image box cannot be laid out due to the acquired image size, it is determined in step S430 that the layout is not possible, and a page box corresponding to the next page is created (step S410). If the element box is a text box, the layout of the element box creates a text box that fits in the line, registers it in the line, creates a line for the remaining text, and enters the created line. This is done by repeatedly creating and registering just a text box. Note that even if the text box is registered in the last line of the page, if all of the text cannot be registered, it is determined in step S430 that the layout is not possible, a page box corresponding to the next page is created, and the remaining text is similarly set. And register it in a line as a text box. FIG. 11 shows a page box of each page when laying out using a specific example DOM tree. When all the element boxes are laid out in this way, the designated DOM tree is deleted from the DOM tree storage area of the memory 50 (step S450), and the layout process is terminated. As described above, by deleting the DOM tree used when the layout process is completed from the DOM tree storage area of the memory 50, the state where the unnecessary DOM tree is stored in the DOM tree storage area is continued. Can be avoided. As a result, a storage area for a new DOM tree created by the analysis unit 30 can be secured.

レイアウト描画指示処理(図9)の説明に戻る。レイアウトを開始すると、最初のページ分のレイアウトが完了するのを待って(ステップS310)、レイアウトが完了したページを指定してRPI40に描画開始指示を出力する(ステップS320)。ページ分のレイアウトが完了したか否かの判定は、次ページに対応するページボックスが作成されたか否かにより、1ページだけしかないときにはレイアウト処理が終了したか否かにより行なうことができる。描画開始指示されたRPI40は、図12に例示する描画処理を実行し、ページボックスに従ってテキストや画像をメモリ50の印刷用画像格納領域を用いてRGBデータとして描画し(ステップS500)、描画が終了したときに色変換部42に色変換指示を出力すると共に(ステップS510)、描画終了をレイアウタ38に出力する。なお、画像の描画については、画像ファイルを読み出し、ファイル形式によっては展開等を行なって描画する。図13に具体例の印刷結果の一例を示す説明図である。図中の破線はbodyタグ内のdivタグの領域を示し、画像の上部および左側部の「12cm」はCSS文書により記述された画像サイズを示す。実際の印刷結果には、こうしたdivタグの領域や画像サイズは表示されないのは言うまでもない。   Returning to the description of the layout drawing instruction process (FIG. 9). When the layout is started, it waits for the layout of the first page to be completed (step S310), specifies the page for which the layout has been completed, and outputs a drawing start instruction to the RPI 40 (step S320). Whether or not the layout for the page has been completed can be determined based on whether or not the page box corresponding to the next page has been created and whether or not the layout processing has been completed when there is only one page. The RPI 40 instructed to start drawing executes the drawing process illustrated in FIG. 12, draws text and images as RGB data using the print image storage area of the memory 50 according to the page box (step S500), and the drawing ends. In this case, a color conversion instruction is output to the color conversion unit 42 (step S510), and a drawing end is output to the layouter 38. For image drawing, an image file is read and, depending on the file format, is developed and drawn. FIG. 13 is an explanatory diagram illustrating an example of a print result of a specific example. The broken line in the figure indicates the area of the div tag in the body tag, and “12 cm” at the top and left side of the image indicates the image size described by the CSS document. It goes without saying that the area of the div tag and the image size are not displayed in the actual print result.

描画開始指示を出力した後はそのページの描画が終了するのを待って(ステップS330)、そのページに対応するページボックスを削除する(ステップS340)。このように、ページの描画が終了する毎にそのページに対応するページボックスを削除することにより、ボックス用格納領域に不要なページボックスが格納された状態が継続されるのを回避することができる。こうしてページボックスを削除すると、次ページがあるか否かを判定し(ステップS350)、次ページがあるときにはステップS310の処理に戻る。即ち、次ページに対するページ分のレイアウトが完了しているか否かを判定し、レイアウトが完了していないときには完了するまで待ってレイアウトが完了したページを指定してRPI40に描画開始指示を出力するのである。こうしてすべてのページを描画し、次ページがなくなると、レイアウト終了を解析部30に出力して(ステップS360)、レイアウト描画指示処理を終了する。このように、レイアウタ38からレイアウト終了の信号を解析部30に出力することにより、解析部30は、レイアウタ38によるレイアウトの最中であるか否かを判定することができる。   After outputting the drawing start instruction, it waits for the drawing of the page to end (step S330), and deletes the page box corresponding to the page (step S340). In this way, by deleting the page box corresponding to the page every time drawing of the page is completed, it is possible to avoid the state where unnecessary page boxes are stored in the box storage area. . When the page box is deleted in this way, it is determined whether or not there is a next page (step S350). If there is a next page, the process returns to step S310. That is, it is determined whether or not the layout for the next page has been completed. If the layout has not been completed, the process waits until the layout is completed, specifies the page for which the layout has been completed, and outputs a drawing start instruction to the RPI 40. is there. When all pages are drawn in this way and there is no next page, the end of layout is output to the analysis unit 30 (step S360), and the layout drawing instruction processing is ended. In this way, by outputting a layout end signal from the layouter 38 to the analysis unit 30, the analysis unit 30 can determine whether the layout by the layouter 38 is in progress.

以上説明した実施例のカラーインクジェットプリンタ20によれば、URLが指定される毎にXHTML文書の解析中であるか否かに拘わらずに指定されたURLをメモリ50のURL格納用バッファ領域に格納することができる。また、メモリ50のURL格納用バッファ領域にURLが格納されているときには、レイアウタ38によるレイアウトの実行中であるか否かに拘わらずにXHTML文書の解析を順次行なうことができる。この結果、レイアウタ38によるレイアウトの実行中であるか否かに拘わらず、URLの指定を格納し、URLにより特定されるXHTML文書を読み込んで解析することができる。したがって、印刷を完了する毎にURLにより特定されるXHTML文書を読み込んで解析して印刷するものに比して、迅速に解析して印刷することができる。   According to the color inkjet printer 20 of the embodiment described above, the specified URL is stored in the URL storage buffer area of the memory 50 regardless of whether or not the XHTML document is being analyzed every time the URL is specified. can do. Further, when the URL is stored in the URL storage buffer area of the memory 50, the XHTML document can be sequentially analyzed regardless of whether the layout is being executed by the layouter 38 or not. As a result, regardless of whether the layout is being executed by the layouter 38, the designation of the URL can be stored, and the XHTML document specified by the URL can be read and analyzed. Therefore, each time printing is completed, the XHTML document specified by the URL is read, analyzed, and printed more quickly than when it is printed.

ここで、実施例のカラーインクジェットプリンタ20では、メモリ50がデータ記憶手段に相当し、コア32とXMLパーサー34とCSSPI36とからなる解析部30が構造解析手段に相当し、レイアウタ38がレイアウト作成手段に相当し、RPI40と色変換部42と2値化部44とイメージバッファ46と印刷実行部48とが印刷実行手段に相当する。   Here, in the color inkjet printer 20 of the embodiment, the memory 50 corresponds to the data storage means, the analysis unit 30 including the core 32, the XML parser 34, and the CSSI 36 corresponds to the structure analysis means, and the layouter 38 corresponds to the layout creation means. The RPI 40, the color conversion unit 42, the binarization unit 44, the image buffer 46, and the print execution unit 48 correspond to a print execution unit.

実施例のカラーインクジェットプリンタ20では、メモリ50のURL格納用バッファ領域にURLが格納されているときには、メモリ50のDOMツリー用格納領域に格納されているDOMツリーの数に拘わらずに、XHTML文書の解析を順次行なうものとしたが、メモリ50のDOMツリー用格納領域に格納されているDOMツリーが所定数のときには所定数未満となるまで次のXHTML文書の解析を保留するものとしてもよい。所定数としては例えば値2をとすることができる。こうすれば、メモリ50のDOMツリー用格納領域を小さくすることができる。   In the color inkjet printer 20 of the embodiment, when the URL is stored in the URL storage buffer area of the memory 50, the XHTML document is used regardless of the number of DOM trees stored in the DOM tree storage area of the memory 50. However, when the number of DOM trees stored in the DOM tree storage area of the memory 50 is a predetermined number, the analysis of the next XHTML document may be suspended until the number becomes less than the predetermined number. For example, a value of 2 can be used as the predetermined number. In this way, the storage area for the DOM tree in the memory 50 can be reduced.

実施例のカラーインクジェットプリンタ20では、メモリ50のURL格納用バッファ領域にURLが格納されているときには、XHTML文書の解析を終了次第、直ちに次のXHTML文書を解析するものとしたが、XHTML文書の解析を終了した以降であれば如何なるタイミングで次のXHTML文書を解析するものとしてもよい。   In the color inkjet printer 20 of the embodiment, when the URL is stored in the URL storage buffer area of the memory 50, the analysis of the XHTML document is immediately performed upon completion of the analysis of the XHTML document. After the analysis is completed, the next XHTML document may be analyzed at any timing.

実施例のカラーインクジェットプリンタ20では、記述文書としてXHTMLにより記述されたXHTML文書を解析して印刷するものとしたが、他のマークアップ言語により記述された記述文書を解析して印刷するものとしてもよい。また、マークアップ言語以外の言語により記述された文書を解析して印刷するものとしても差し支えない。   In the color inkjet printer 20 of the embodiment, an XHTML document described in XHTML is analyzed and printed as a description document. However, a description document described in another markup language may be analyzed and printed. Good. In addition, a document described in a language other than the markup language may be analyzed and printed.

実施例のカラーインクジェットプリンタ20では、入力インターフェース22に接続される機器としてコンピュータ10やデジタルテレビ12やデジタルカメラ14などを記載したが、如何なる機器を接続するものとしても差し支えない。   In the color inkjet printer 20 of the embodiment, the computer 10, the digital television 12, the digital camera 14, and the like are described as devices connected to the input interface 22, but any device may be connected.

実施例では、XHTML文書を解析して印刷する本発明の印刷装置としてカラーインクジェットプリンタを用いたが、カラーレーザプリンタやモノクロのインジェットプリンタやレーザプリンタなどの種々のプリンタを用いるものとしてもよい。   In the embodiment, a color inkjet printer is used as the printing apparatus of the present invention for analyzing and printing an XHTML document. However, various printers such as a color laser printer, a monochrome inkjet printer, and a laser printer may be used.

以上、本発明を実施するための最良の形態について実施例を用いて説明したが、本発明はこうした実施例に何等限定されるものではなく、本発明の要旨を逸脱しない範囲内において、種々なる形態で実施し得ることは勿論である。   The best mode for carrying out the present invention has been described with reference to the embodiments. However, the present invention is not limited to these embodiments, and various modifications can be made without departing from the gist of the present invention. Of course, it can be implemented in the form.

本発明は、印刷機器産業に利用可能である。   The present invention is applicable to the printing equipment industry.

実施例のカラーインクジェットプリンタ20の構成を例示する構成図。1 is a configuration diagram illustrating a configuration of a color inkjet printer 20 according to an embodiment. 解析レイアウト指示処理の一例を示すフローチャート。The flowchart which shows an example of an analysis layout instruction | indication process. 解析処理の一例を示すフローチャート。The flowchart which shows an example of an analysis process. 具体例のXHTML文書の一例を示す説明図。Explanatory drawing which shows an example of the XHTML document of a specific example. 具体例のXHTML文書に記述された画像の一例を示す説明図。Explanatory drawing which shows an example of the image described in the XHTML document of a specific example. 具体例のDOMツリーの一例を示す説明図。Explanatory drawing which shows an example of the DOM tree of a specific example. 具体例のCSS文書の一例を示す説明図。Explanatory drawing which shows an example of the CSS document of a specific example. 具体例のスタイルオブジェクトの一例を示す説明図。Explanatory drawing which shows an example of the style object of a specific example. レイアウト描画指示処理の一例を示すフローチャート。6 is a flowchart illustrating an example of a layout drawing instruction process. レイアウト処理の一例を示すフローチャート。The flowchart which shows an example of a layout process. 具体例のページボックスの一例を示す説明図。Explanatory drawing which shows an example of the page box of a specific example. 描画処理の一例を示すフローチャート。The flowchart which shows an example of a drawing process. 具体例の印刷結果の一例を示す説明図。Explanatory drawing which shows an example of the printing result of a specific example.

符号の説明Explanation of symbols

10 コンピュータ、12 デジタルテレビ、14 デジタルカメラ、20 カラーインクジェットプリンタ、22 入力インターフェース、24 信号処理部、30 解析部、32 コア、34 XMLパーサー、36 CSSPI、38 レイアウタ、40 RPI、42 色変換部、44 2値化部、46 イメージバッファ、48 印刷実行部。   10 computers, 12 digital televisions, 14 digital cameras, 20 color inkjet printers, 22 input interfaces, 24 signal processing units, 30 analysis units, 32 cores, 34 XML parsers, 36 CSSPIs, 38 layouters, 40 RPIs, 42 color conversion units, 44 binarization unit, 46 image buffer, 48 print execution unit.

Claims (15)

印刷可能なオブジェクトを所定の書式により階層的に記述した記述文書を解析して紙などの媒体に印刷する印刷装置であって、
データを記憶するデータ記憶手段と、
記述文書が指定されたとき、該指定の前に指定された他の記述文書に対する印刷処理が終了する前であっても、所定のタイミングで該指定された記述文書を受け付けて該記述文書におけるオブジェクトの階層的な木構造を解析すると共に該解析した木構造を前記データ記憶手段に記憶させる構造解析手段と、
レイアウト作成指示がなされたとき、前記データ記憶手段に記憶された木構造に基づいてオブジェクトの前記媒体へのレイアウトをページ毎に作成すると共に該作成したページ毎のレイアウトを前記データ記憶手段に記憶させるレイアウト作成手段と、
印刷実行指示がなされたとき、前記データ記憶手段に記憶されたページ毎のレイアウトに基づいてオブジェクトを取得すると共にレイアウトして印刷する印刷実行手段と、
を備える印刷装置。
A printing apparatus that analyzes a description document in which printable objects are hierarchically described in a predetermined format and prints it on a medium such as paper.
Data storage means for storing data;
When a descriptive document is specified, the specified descriptive document is received at a predetermined timing and an object in the descriptive document is received even before the print processing for the other descriptive document specified before the specification is completed. Analyzing the hierarchical tree structure and storing the analyzed tree structure in the data storage means;
When a layout creation instruction is given, a layout of objects on the medium is created for each page based on the tree structure stored in the data storage means, and the created layout for each page is stored in the data storage means. Layout creation means;
Print execution means for acquiring an object based on the layout for each page stored in the data storage means and performing layout printing when a print execution instruction is made; and
A printing apparatus comprising:
前記構造解析手段は、前記他の記述文書に対応する木構造の解析が完了したタイミングを所定のタイミングとして前記指定された記述文書を解析する手段である請求項1記載の印刷装置。   The printing apparatus according to claim 1, wherein the structure analysis unit is a unit that analyzes the designated description document with a timing at which the analysis of the tree structure corresponding to the other description document is completed as a predetermined timing. 請求項2記載の印刷装置であって、
前記レイアウト作成手段は、前記レイアウトの作成を完了した以降に前記構造解析手段に所定の終了信号を出力する手段であり、
前記構造解析手段は、前記所定の終了信号を受け付けたときに該所定の終了信号に係る木構造の次に解析した木構造に対するレイアウト作成指示を前記レイアウト作成手段に指示する手段である
印刷装置。
The printing apparatus according to claim 2,
The layout creation means is means for outputting a predetermined end signal to the structure analysis means after completing the creation of the layout,
The printing apparatus according to claim 1, wherein the structure analysis unit is a unit that instructs the layout generation unit to issue a layout generation instruction for a tree structure analyzed next to the tree structure related to the predetermined end signal when the predetermined end signal is received.
前記レイアウト作成手段は、前記レイアウトの作成を完了した以降に該レイアウトの作成に係る木構造を前記データ記憶手段から削除する手段である請求項3記載の印刷装置。   The printing apparatus according to claim 3, wherein the layout creation unit is a unit that deletes the tree structure related to creation of the layout from the data storage unit after the creation of the layout is completed. 請求項1ないし4いずれか記載の印刷装置であって、
前記構造解析手段は、前記解析した木構造を該木構造を識別する識別情報と共に前記データ記憶手段に記憶させる手段であり、
前記レイアウト作成手段は、前記識別情報を伴ったレイアウト作成指示がなされたときに前記データ記憶手段に記憶された木構造のうち該レイアウト作成指示に係る識別情報により特定される木構造に基づいてレイアウトを作成する手段である
印刷装置。
The printing apparatus according to any one of claims 1 to 4,
The structure analysis means is means for storing the analyzed tree structure in the data storage means together with identification information for identifying the tree structure,
The layout creating means performs a layout based on a tree structure specified by the identification information related to the layout creation instruction among the tree structures stored in the data storage means when a layout creation instruction with the identification information is made. A printing device that is a means of creating a printer.
前記構造解析手段は、前記データ記憶手段に木構造が所定数記憶されているときには、前記データ記憶手段に記憶された木構造が所定数未満となるまで前記指定された記述文書を受け付けおよび/または該指定された記述文書におけるオブジェクトの階層的な木構造の解析を保留する手段である請求項1ないし5いずれか記載の印刷装置。   When the predetermined number of tree structures are stored in the data storage means, the structure analysis means accepts the specified description document until the tree structure stored in the data storage means becomes less than the predetermined number and / or 6. The printing apparatus according to claim 1, wherein the printing apparatus is means for holding analysis of a hierarchical tree structure of objects in the designated description document. 前記所定数は値2である請求項6記載の印刷装置。   The printing apparatus according to claim 6, wherein the predetermined number is a value 2. 前記レイアウト作成手段は、レイアウトの作成が完了したページ毎に前記印刷実行指示を前記印刷実行手段に行なう手段である請求項1ないし7いずれか記載の印刷装置。   The printing apparatus according to claim 1, wherein the layout creation unit is a unit that gives the print execution instruction to the print execution unit for each page for which layout creation has been completed. 前記レイアウト作成手段は、1ページ分のレイアウトの作成が完了したときに前記印刷実行指示を前記印刷実行手段に行なう手段である請求項1ないし8いずれか記載の印刷装置。   The printing apparatus according to claim 1, wherein the layout creation unit is a unit that issues the print execution instruction to the print execution unit when the creation of a layout for one page is completed. 前記記述文書は、マークアップ言語により記述されてなる請求項1ないし9いずれか記載の印刷装置。   The printing apparatus according to claim 1, wherein the description document is described in a markup language. 前記マークアップ言語は、XHTML言語である請求項10記載の印刷装置。   The printing apparatus according to claim 10, wherein the markup language is an XHTML language. 前記オブジェクトは、テキスト,画像,表の少なくとも一つを含む請求項1ないし11いずれか記載の印刷装置。   The printing apparatus according to claim 1, wherein the object includes at least one of a text, an image, and a table. カラーインクジェットプリンタである請求項1ないし12いずれか記載の印刷装置。   The printing apparatus according to claim 1, which is a color inkjet printer. 印刷可能なオブジェクトを所定の書式により階層的に記述した記述文書を解析して紙などの媒体に印刷する印刷方法であって、
(a)記述文書が指定されたとき、該指定の前に指定された他の記述文書に対する印刷処理が終了する前であっても、所定のタイミングで該指定された記述文書を受け付けて該記述文書におけるオブジェクトの階層的な木構造を解析し、
(b)レイアウト作成指示がなされたとき、前記解析された木構造に基づいてオブジェクトの前記媒体へのレイアウトをページ毎に作成し、
(c)印刷実行指示がなされたとき、前記データ記憶手段に記憶されたページ毎のレイアウトに基づいてオブジェクトを取得すると共にレイアウトして印刷する
印刷方法。
A printing method for analyzing a description document in which printable objects are hierarchically described in a predetermined format and printing the document on a medium such as paper.
(A) When a descriptive document is specified, the specified descriptive document is received at a predetermined timing and the description is received even before print processing for another descriptive document specified before the specification is completed. Analyzes the hierarchical tree structure of objects in a document,
(B) When a layout creation instruction is given, a layout of objects on the medium is created for each page based on the analyzed tree structure;
(C) A printing method in which when a print execution instruction is given, an object is acquired based on the layout for each page stored in the data storage unit, and the layout is printed.
印刷可能なオブジェクトを所定の書式により階層的に記述した記述文書を解析して紙などの媒体に印刷する印刷装置に用いられるプログラムであって、
記述文書が指定されたときに該指定の前に指定された他の記述文書に対する印刷処理が終了する前であっても所定のタイミングで該指定された記述文書を受け付けて該記述文書におけるオブジェクトの階層的な木構造を解析するモジュールと、
レイアウト作成指示がなされたときに前記解析された木構造に基づいてオブジェクトの前記媒体へのレイアウトをページ毎に作成するモジュールと、
印刷実行指示がなされたときに前記作成されたページ毎のレイアウトに基づいてオブジェクトを取得して印刷可能にレイアウトするモジュールと、
を備えるプログラム。
A program used in a printing apparatus that analyzes a description document in which printable objects are hierarchically described in a predetermined format and prints the document on a medium such as paper.
When a description document is specified, the specified description document is received at a predetermined timing even before the print processing for another description document specified before the specification ends, and the object of the description document A module to analyze the hierarchical tree structure;
A module for creating a layout of objects on the medium for each page based on the analyzed tree structure when a layout creation instruction is given;
A module that acquires an object based on the created layout for each page when a print execution instruction is given, and lays out the printable layout;
A program comprising
JP2003345871A 2003-10-03 2003-10-03 Printer, printing method and program for printer Pending JP2005111711A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2003345871A JP2005111711A (en) 2003-10-03 2003-10-03 Printer, printing method and program for printer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2003345871A JP2005111711A (en) 2003-10-03 2003-10-03 Printer, printing method and program for printer

Publications (1)

Publication Number Publication Date
JP2005111711A true JP2005111711A (en) 2005-04-28

Family

ID=34539010

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2003345871A Pending JP2005111711A (en) 2003-10-03 2003-10-03 Printer, printing method and program for printer

Country Status (1)

Country Link
JP (1) JP2005111711A (en)

Similar Documents

Publication Publication Date Title
US7706014B2 (en) Printing apparatus and storage medium for printing apparatus
JP4186678B2 (en) Print job management apparatus, program used therefor, and print job management method
JP2004050722A (en) Printer
US20050213154A1 (en) Printing device and medium type setting method
JP5006764B2 (en) Image processing apparatus, image processing method, program, and storage medium
US20050036170A1 (en) Image processing apparatus and image forming apparatus
KR101042074B1 (en) Print content transmission device, print device, and print system
JP4438380B2 (en) Printing apparatus, printing method, and program for printing apparatus
JP5053722B2 (en) Image processing apparatus, image processing method, computer program, and storage medium
US20090148004A1 (en) Image forming apparatus and method thereof
JP2007148486A (en) Method for supporting document browsing, system for the same, document processor, and program
JP4761535B2 (en) Document management apparatus and method, program
JP4449398B2 (en) Printing apparatus, printing method, and program for printing apparatus
US20060092454A1 (en) Printing device and printing method
JP2008310816A (en) System and method for compact representation of multiple markup page data
JP2005111711A (en) Printer, printing method and program for printer
JP2005111795A (en) Printer, printing method and program for printer
JP2005317044A (en) Printing contents sending device, printer, and printing system
JP2006235756A (en) Image processor and its method
JP2005111794A (en) Printer, printing method and program for printer
US20060092447A1 (en) Printing device and corresponding printing method used therein
JP4165366B2 (en) Document analysis apparatus and method, program for document analysis apparatus, and printing apparatus
JP4599950B2 (en) Processing apparatus and processing method
JP2005208809A (en) Document analysis device and method, program for document analysis device, and printer
JP2005246796A (en) Printing device and its printing method

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20060811

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20090804

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20090930

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20100105