JP2009003832A - Printing system, printing control device, printing control method, printing control program, and recording medium recording of the program - Google Patents

Printing system, printing control device, printing control method, printing control program, and recording medium recording of the program Download PDF

Info

Publication number
JP2009003832A
JP2009003832A JP2007165921A JP2007165921A JP2009003832A JP 2009003832 A JP2009003832 A JP 2009003832A JP 2007165921 A JP2007165921 A JP 2007165921A JP 2007165921 A JP2007165921 A JP 2007165921A JP 2009003832 A JP2009003832 A JP 2009003832A
Authority
JP
Japan
Prior art keywords
band
printing
sequentially
input data
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.)
Withdrawn
Application number
JP2007165921A
Other languages
Japanese (ja)
Inventor
Hiroaki Nakanishi
弘晃 中西
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 JP2007165921A priority Critical patent/JP2009003832A/en
Publication of JP2009003832A publication Critical patent/JP2009003832A/en
Withdrawn legal-status Critical Current

Links

Images

Landscapes

  • Record Information Processing For Printing (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To provide a printing system, a printing control device, a printing control method, a printing control program, and a recording medium recording of the program for shortening a time required for the completion of printing. <P>SOLUTION: An XML parsing part 220 is provided with a band information application part 221 for applying the band information of a band in which a plotting range is present to a plotting instruction described in an XML document; a plotting instruction acquisition part 222 for analyzing a plotting instruction described in the XML document in the order of band numbers on the basis of the band information, and for acquiring the plotting instruction. A rendering part 230 successively performs plotting on the basis of the acquired plotting instruction, and when plotting is completed about the top band, a control part 210 outputs print data of the top band to a printer prior to the completion of the plotting of all plotting instructions acquired from the XML document. Thus, it is possible to quicken timing when the printer starts printing, and to shorten a time required for the completion of printing. <P>COPYRIGHT: (C)2009,JPO&INPIT

Description

プリンタなどの印刷装置により印刷を行う印刷システム、印刷制御装置、印刷制御方法、印刷制御プログラム、およびそのプログラムを記録した記録媒体に関する。   The present invention relates to a printing system that performs printing using a printing apparatus such as a printer, a printing control apparatus, a printing control method, a printing control program, and a recording medium that records the program.

近年発売されたオペレーションシステム「Windows Vista(登録商標)」においては、XML(EXtensible Markup Language)ベースの言語で記述されるXPSドキュメントの形式で、ドキュメントの生成、共有、印刷、アーカイブなどの処理を行うようになっている(非特許文献1参照)。例えば、印刷を行う場合、プリンタドライバには、印刷の対象とする内容をXMLで記述したXPSドキュメントが出力される。プリンタドライバは、XPSドキュメントに記述されたXMLのコードを解釈して、描画などの画像処理を行うことにより印刷画像を生成し、印刷画像に基づいて印刷を制御する。   The operation system “Windows Vista (registered trademark)” released in recent years performs processing such as document generation, sharing, printing, and archiving in an XPS document format described in an XML (EXtensible Markup Language) -based language. (See Non-Patent Document 1). For example, when printing is performed, an XPS document in which content to be printed is described in XML is output to the printer driver. The printer driver interprets the XML code described in the XPS document, generates a print image by performing image processing such as drawing, and controls printing based on the print image.

ここで、処理に要するメモリ容量を低減させるため、印刷画像を所定の高さで区画したバンドごとに処理するようにしたプリンタが知られている。例えば、図8に示すように、図形、テキスト、イメージなど複数のオブジェクトが描画された画像を印刷する場合、プリンタドライバは、印刷時の用紙搬送方向(Y方向)に対応する上端から所定の高さごとに画像を区画するようにして複数のバンドに区分けし、プリンタにはバンドごとに印刷処理を行わせる。すなわち、区画されたバンドを上端から順にバンド0、バンド1、…、バンドNと呼ぶことにすると、プリンタドライバは、バンド0から順番に画像データをプリンタに送信し、プリンタは、受信した画像データに従ってバンド0から順番に処理するようにして印刷画像を印刷する。   Here, in order to reduce the memory capacity required for processing, there is known a printer that processes a print image for each band partitioned at a predetermined height. For example, as shown in FIG. 8, when printing an image on which a plurality of objects such as graphics, text, and images are drawn, the printer driver sets a predetermined height from the upper end corresponding to the paper transport direction (Y direction) at the time of printing. Each image is divided into a plurality of bands so as to be divided, and the printer is caused to perform printing processing for each band. That is, if the divided bands are referred to as band 0, band 1,..., Band N in order from the upper end, the printer driver transmits image data to the printer in order from band 0, and the printer receives the received image data. The print image is printed so as to be processed sequentially from band 0 according to the above.

また、プリンタが、印刷の処理をバンドに分けて行うとした場合、プリンタドライバから先頭バンドの画像データを受け取るタイミングで、全バンドについての画像データを受け取ることなく、印刷を開始することができる。   Further, when the printer performs printing processing in bands, printing can be started without receiving image data for all bands at the timing of receiving image data of the first band from the printer driver.

“XPS仕様書(XPS Paper Specification)”、マイクロソフト社、[online]、インターネット<URL:http://www.microsoft.com/japan/whdc/xps/xpsspec.mspx>“XPS Paper Specification”, Microsoft, [online], Internet <URL: http: //www.microsoft.com/japan/whdc/xps/xpsspec.mspx>

しかしながら、XMLドキュメントに記述された描画命令は描画位置に基づいて順番に記述されているとは限らないので、プリンタドライバが各バンドの画像データを生成するためには、XMLドキュメントの全描画命令についての解釈・展開を待つ必要があった。   However, since the rendering commands described in the XML document are not always described in order based on the rendering position, in order for the printer driver to generate image data for each band, all rendering commands in the XML document It was necessary to wait for the interpretation and development.

例えば、XMLドキュメントの記述を順番に解釈して得られる描画命令に従って、図8に示す3つのオブジェクトOB1,OB2,OB3を順番に描画する場合、2つのオブジェクトOB1,OB3の描画範囲が先頭バンド(バンド0)に掛かっているため、オブジェクトOB1を描画した時点で、先頭バンドのバンドデータを生成することはできない。先頭バンドのバンドデータを得るためには、少なくとも、3つ目のオブジェクトOB3が描画されるまで画像データの出力を待つ必要がある。   For example, when the three objects OB1, OB2, and OB3 shown in FIG. 8 are drawn in order according to the drawing command obtained by sequentially interpreting the description of the XML document, the drawing range of the two objects OB1, OB3 is the first band ( Since it is in band 0), the band data of the first band cannot be generated when the object OB1 is drawn. In order to obtain the band data of the first band, it is necessary to wait for the output of image data until at least the third object OB3 is drawn.

このように、XMLドキュメントにおいては、描画命令が記述される順番と実際の描画位置とに関わりがないので、XMLドキュメントに記述された全描画命令を展開し終えるまで、各バンドの画像データを確定することができなかった。このため、各バンドの画像データをプリンタに出力するタイミングが遅れ、印刷完了までに要する時間が長くなってしまうという課題があった。   In this way, in the XML document, there is no relation to the order in which the drawing commands are described and the actual drawing position, so the image data of each band is determined until all drawing commands described in the XML document have been expanded. I couldn't. For this reason, there is a problem that the timing for outputting the image data of each band to the printer is delayed, and the time required to complete the printing becomes long.

本発明は、上述の課題の少なくとも1つを解決するためになされたものであり、以下の形態または適用例として実現することが可能である。   SUMMARY An advantage of some aspects of the invention is to solve at least one of the problems described above, and the invention can be implemented as the following forms or application examples.

[適用例1]印刷すべき印刷画像を所定の高さで区画したバンドごとに順次処理して、印刷を行う印刷装置と、前記印刷装置を制御する印刷制御装置とを備える印刷システムであって、前記印刷制御装置は、前記印刷画像を表す複数の描画命令をマークアップ言語により記述した入力データの入力を受ける入力手段と、前記入力データに記述された描画命令の各々に対して、前記描画命令の描画範囲に含まれるバンドを示すバンド情報を付与するバンド情報付与手段と、前記バンド情報に基づき、前記入力データに記述された複数の描画命令のうち前記バンドの処理順が先頭のバンドを描画する描画命令を優先して解釈するようにして、前記描画命令を順次取得する描画命令取得手段と、前記順次取得される描画命令に基づいて順次描画することにより、前記印刷画像を生成する印刷画像生成手段と、前記印刷画像をバンドごとに表す画像データを前記印刷装置に出力する出力手段とを備え、前記出力手段は、前記先頭バンドの範囲内について全描画が完了してから、入力データから取得される全描画命令についての描画完了に先立ち、前記先頭バンドの画像データを前記印刷装置に出力することを特徴とする印刷システム。   Application Example 1 A printing system including a printing apparatus that sequentially processes a print image to be printed for each band partitioned at a predetermined height and performs printing, and a print control apparatus that controls the printing apparatus. The print control apparatus receives input of input data in which a plurality of drawing commands representing the print image are described in a markup language, and for each of the drawing commands described in the input data Band information providing means for providing band information indicating a band included in the drawing range of the command, and based on the band information, the processing order of the band among the plurality of drawing commands described in the input data is the first band. The drawing command acquisition means for sequentially acquiring the drawing commands so that the drawing commands to be drawn are interpreted with priority, and the drawing is sequentially performed based on the sequentially acquired drawing commands. And a print image generating means for generating the print image, and an output means for outputting image data representing the print image for each band to the printing apparatus, wherein the output means is within the range of the head band. A printing system that outputs image data of the first band to the printing apparatus after completion of drawing and before drawing of all drawing commands acquired from input data.

この構成によれば、入力データに記述された複数の描画命令のうち先頭バンドの描画命令が優先して解釈および描画され、先頭バンドについての描画が完了すると、入力データから取得される全描画命令についての描画完了を待つことなく、先頭バンドの画像データが印刷装置に出力されるので、印刷を開始するタイミングを早めることができる。また、印刷の開始タイミングが早まることにより、印刷完了までに要する時間を短縮することもできる。   According to this configuration, the drawing command of the first band is preferentially interpreted and drawn among the plurality of drawing commands described in the input data, and when drawing for the first band is completed, all drawing commands obtained from the input data Since the image data of the first band is output to the printing apparatus without waiting for the completion of drawing, the timing for starting printing can be advanced. In addition, since the printing start timing is advanced, the time required to complete the printing can be shortened.

[適用例2]印刷すべき印刷画像を所定の高さで区画したバンドごとに順次処理して、印刷を行う印刷装置を制御する印刷制御装置であって、前記印刷画像を表す複数の描画命令をマークアップ言語により記述した入力データの入力を受ける入力手段と、前記入力データに記述された描画命令の各々に対して、前記描画命令の描画範囲に含まれるバンドを示すバンド情報を付与するバンド情報付与手段と、前記バンド情報に基づき、前記入力データに記述された複数の描画命令のうち前記バンドの処理順が先頭のバンドを描画する描画命令を優先して解釈するようにして、前記描画命令を順次取得する描画命令取得手段と、前記順次取得される描画命令に基づいて順次描画することにより、前記印刷画像を生成する印刷画像生成手段と、前記印刷画像をバンドごとに表す画像データを前記印刷装置に出力する出力手段とを備え、前記出力手段は、前記先頭バンドの範囲内について全描画が完了してから、入力データから取得される全描画命令についての描画完了に先立ち、前記先頭バンドの画像データを前記印刷装置に出力することを特徴とする印刷制御装置。   Application Example 2 A print control apparatus that sequentially controls a print image to be printed for each band partitioned at a predetermined height and controls a printing apparatus that performs printing, and includes a plurality of drawing commands representing the print image An input means for receiving input data described in a markup language, and a band for giving band information indicating a band included in the drawing range of the drawing command to each of the drawing commands described in the input data Based on the band information, the drawing unit is configured to preferentially interpret a drawing command for drawing the first band in the processing order of the band among a plurality of drawing commands described in the input data based on the band information. A drawing command acquisition unit that sequentially acquires commands; a print image generation unit that generates the print image by sequentially drawing based on the drawing commands acquired sequentially; Output means for outputting image data representing a printed image for each band to the printing apparatus, and the output means completes all drawing within the range of the leading band and then obtains all drawing obtained from input data. A print control apparatus that outputs the image data of the head band to the printing apparatus prior to completion of drawing for the command.

この構成によれば、入力データに記述された複数の描画命令のうち先頭バンドの描画命令が優先して解釈および描画されるので、印刷装置に先頭バンドの画像データを出力するタイミングを早めることができる。したがって、印刷装置に印刷を開始させるタイミングが早まり、印刷完了までに要する時間を短縮することができる。   According to this configuration, the first band drawing command is preferentially interpreted and drawn among the plurality of drawing commands described in the input data, so that the timing of outputting the first band image data to the printing apparatus can be advanced. it can. Therefore, the timing at which the printing apparatus starts printing is advanced, and the time required to complete printing can be shortened.

[適用例3]上記印刷制御装置において、前記描画命令取得手段は、前記バンド情報に基づき、前記入力データに記述された複数の描画命令を前記バンドの処理順に解釈して、前記描画命令を順次取得し、前記出力手段は、前記先頭バンド以降のバンドについて、バンド範囲内の全描画が完了してから、入力データから取得される全描画命令についての描画完了に先立ち、前記描画が完了したバンドの画像データを出力するようにして、バンドごとの画像データを順次出力することを特徴とする印刷制御装置。   Application Example 3 In the print control apparatus, the drawing command obtaining unit interprets a plurality of drawing commands described in the input data based on the band information in the processing order of the bands, and sequentially executes the drawing commands. The output means obtains the band for which drawing has been completed prior to completion of drawing for all drawing commands acquired from input data after all drawing within the band range has been completed for the band after the first band. A print control apparatus that sequentially outputs image data for each band in such a manner that the image data is output.

この構成によれば、先頭バンド以降のバンドについても、全描画命令についての描画完了を待つことなく、画像データが順次出力されるので、各バンドについて印刷が行われるタイミングを早めることができる。これにより、印刷完了までに要する時間がさらに短縮する。   According to this configuration, since the image data is sequentially output for the bands after the first band without waiting for the completion of the drawing for all the drawing commands, the timing at which printing is performed for each band can be advanced. This further shortens the time required to complete printing.

[適用例4]印刷すべき印刷画像を所定の高さで区画したバンドごとに順次処理して、印刷を行う印刷装置を制御する印刷制御方法であって、前記印刷画像を表す複数の描画命令をマークアップ言語により記述した入力データの入力を受けるステップと、前記入力データに記述された描画命令の各々に対して、前記描画命令の描画範囲に含まれるバンドを示すバンド情報を付与するステップと、前記バンド情報に基づき、前記入力データに記述された複数の描画命令のうち前記バンドの処理順が先頭のバンドを描画する描画命令を優先して解釈するようにして、前記描画命令を順次取得するステップと、前記順次取得される描画命令に基づいて順次描画することにより、前記印刷画像を生成するステップと、前記印刷画像をバンドごとに表す画像データを前記印刷装置に出力するステップとを備え、前記出力手段は、前記先頭バンドの範囲内について全描画が完了してから、入力データから取得される全描画命令についての描画完了に先立ち、前記先頭バンドの画像データを前記印刷装置に出力することを特徴とする印刷制御方法。   Application Example 4 A print control method for controlling a printing apparatus that performs printing by sequentially processing a print image to be printed for each band partitioned at a predetermined height, and a plurality of drawing commands representing the print image Receiving input of input data described in a markup language, and giving band information indicating a band included in the drawing range of the drawing command to each of the drawing commands described in the input data; Based on the band information, the drawing commands are sequentially obtained by preferentially interpreting the drawing command for drawing the first band in the processing order of the band among the plurality of drawing commands described in the input data. A step of generating the print image by sequentially drawing on the basis of the drawing command obtained sequentially, and representing the print image for each band. Outputting image data to the printing apparatus, and the output means completes drawing for all drawing commands obtained from input data after all drawing is completed within the range of the leading band, A print control method, comprising: outputting image data of the leading band to the printing apparatus.

[適用例5]印刷すべき印刷画像を所定の高さで区画したバンドごとに順次処理して、印刷を行う印刷装置を制御するための印刷制御プログラムであって、コンピュータを、前記印刷画像を表す複数の描画命令をマークアップ言語により記述した入力データの入力を受ける入力手段、前記入力データに記述された描画命令の各々に対して、前記描画命令の描画範囲に含まれるバンドを示すバンド情報を付与するバンド情報付与手段、前記バンド情報に基づき、前記入力データに記述された複数の描画命令のうち前記バンドの処理順が先頭のバンドを描画する描画命令を優先して解釈するようにして、前記描画命令を順次取得する描画命令取得手段、前記順次取得される描画命令に基づいて画像メモリに順次描画することにより、前記印刷画像を生成する印刷画像生成手段、前記印刷画像をバンドごとに表す画像データを前記画像メモリから読み出して前記印刷装置に出力する出力手段、として機能させ、前記出力手段は、前記先頭バンドの範囲内について全描画が完了してから、入力データから取得される全描画命令についての描画完了に先立ち、前記先頭バンドの画像データを前記画像メモリから読み出して前記印刷装置に出力することを特徴とする印刷制御プログラム。   Application Example 5 A print control program for sequentially controlling a print image to be printed for each band partitioned at a predetermined height and controlling a printing apparatus that performs printing. Input means for receiving input data describing a plurality of rendering commands represented in a markup language, and band information indicating a band included in the rendering range of the rendering command for each of the rendering commands described in the input data A band information adding means for giving a priority to a drawing command for drawing the first band in the processing order of the band among a plurality of drawing commands described in the input data based on the band information; A drawing command acquisition means for sequentially acquiring the drawing commands; and by sequentially drawing in the image memory based on the sequentially acquired drawing commands, the print image A print image generation means for generating, and an output means for reading out image data representing the print image for each band from the image memory and outputting it to the printing apparatus. A print control program that reads out the image data of the first band from the image memory and outputs the image data to the printing apparatus after drawing is completed and before drawing is completed for all drawing commands acquired from input data. .

[適用例6]上記印刷制御プログラムを記録したコンピュータ読み取り可能な記録媒体。   Application Example 6 A computer-readable recording medium on which the print control program is recorded.

(第1の実施例)
以下、本発明の実施の形態に係る第1の実施例について図面を参照して説明する。
(First embodiment)
Hereinafter, a first example according to an embodiment of the present invention will be described with reference to the drawings.

図1は、第1の実施例に係る印刷システムの構成を示したブロック図である。図1に示すように、印刷システム1は、ホストコンピュータ(印刷制御装置)2およびプリンタ(印刷装置)3を備えている。   FIG. 1 is a block diagram illustrating a configuration of a printing system according to the first embodiment. As shown in FIG. 1, the printing system 1 includes a host computer (printing control device) 2 and a printer (printing device) 3.

ホストコンピュータ2は、例えば、汎用のパーソナルコンピュータである。ホストコンピュータ2は、図1に示すように、CPU20と、ROM21と、RAM22と、ハードディスク(以下、「HD」という)23と、CD−ROMドライブ24と、通信インターフェイス(以下、「通信I/F」という)25とを備えている。通信I/F25はケーブルを介してプリンタ3と相互にデータ通信可能に接続されている。   The host computer 2 is a general-purpose personal computer, for example. As shown in FIG. 1, the host computer 2 includes a CPU 20, a ROM 21, a RAM 22, a hard disk (hereinafter referred to as “HD”) 23, a CD-ROM drive 24, a communication interface (hereinafter referred to as “communication I / F”). 25). The communication I / F 25 is connected to the printer 3 via a cable so as to be able to perform data communication with each other.

CPU20は、ホストコンピュータ2の主制御装置であり、ホストコンピュータ2の各構成の制御を司る。ROM21はホストコンピュータ2の各構成を制御するためのプログラムなどが記録された不揮発性のメモリである。RAM22はワーキングメモリなどとして用いられる汎用のメモリであり、RAM22のメモリ領域には、後述する中間コードメモリおよびページメモリが確保される。   The CPU 20 is a main controller of the host computer 2 and controls each component of the host computer 2. The ROM 21 is a non-volatile memory in which a program for controlling each component of the host computer 2 is recorded. The RAM 22 is a general-purpose memory used as a working memory or the like, and an intermediate code memory and a page memory described later are secured in the memory area of the RAM 22.

HD23は、アプリケーションプログラムやドライバプログラム(印刷制御プログラム)などを予め記録している。このドライバプログラムは、CD−ROM4などの記録媒体に記録された形態で供給され、CD−ROMドライブ24がCD−ROM4からプログラムを読み出し、読み出したプログラムをCPU20がHD23に記録したものである。なお、ドライバプログラムを記録した記録媒体の例としては、CD−ROMに限られることなく、フレキシブルディスクや、DVD−ROMなどの光ディスク、MOなどの光磁気ディスク、メモリカードなど、コンピュータ読み取り可能な種々の媒体が挙げられる。もっとも、電気通信回線を介して外部のサーバからドライバプログラムをダウンロードして、HD23に記録するようにしてもよい。   The HD 23 records application programs, driver programs (print control programs), and the like in advance. The driver program is supplied in a form recorded on a recording medium such as the CD-ROM 4. The CD-ROM drive 24 reads the program from the CD-ROM 4, and the CPU 20 records the read program on the HD 23. Examples of the recording medium on which the driver program is recorded are not limited to the CD-ROM, but can be variously readable by a computer such as a flexible disk, an optical disk such as a DVD-ROM, a magneto-optical disk such as an MO, and a memory card. Media. However, a driver program may be downloaded from an external server via an electric communication line and recorded on the HD 23.

図2は、ホストコンピュータの機能構成を示したブロック図である。図2に示すように、ホストコンピュータ2は、アプリケーション100とプリンタドライバ200とを有する。   FIG. 2 is a block diagram showing a functional configuration of the host computer. As shown in FIG. 2, the host computer 2 has an application 100 and a printer driver 200.

アプリケーション100は、プリンタ3に対する印刷要求元であり、例えば、文書作成ソフトウェアや表計算ソフトウェアである。アプリケーション100は、オペレーションシステムの下で、印刷内容をXMLで記述したXMLドキュメント(入力データ)をプリンタドライバ200に受け渡す。XMLドキュメントの具体例としては、XPSドキュメントなどが挙げられる。   The application 100 is a print request source for the printer 3, and is, for example, document creation software or spreadsheet software. The application 100 passes an XML document (input data) in which print contents are described in XML to the printer driver 200 under the operation system. A specific example of the XML document is an XPS document.

プリンタドライバ200は、アプリケーション100からXMLドキュメントを受け取ると、XMLドキュメントをプリンタ3が処理可能なフォーマットの印刷データに変換し、プリンタ3に出力する。これらの処理を行うため、プリンタドライバ200は、ドライバ内部の処理を制御する制御部210と、XMLドキュメントをパースするXMLパース部220と、パースして得られた描画命令に基づいてレンダリングを行うレンダリング部(印刷画像生成手段)230とを有している。なお、これらの構成を有するプリンタドライバ200は、オペレーションシステムの下で、CPU20がHD23に記録されたドライバプログラムを読み出して実行することにより機能している。   Upon receiving the XML document from the application 100, the printer driver 200 converts the XML document into print data in a format that can be processed by the printer 3, and outputs the print data to the printer 3. In order to perform these processes, the printer driver 200 performs rendering based on a control unit 210 that controls processing in the driver, an XML parsing unit 220 that parses an XML document, and a rendering command obtained by parsing. Part (print image generation means) 230. The printer driver 200 having these configurations functions by the CPU 20 reading and executing a driver program recorded on the HD 23 under the operation system.

制御部210は、アプリケーション100からXMLドキュメントの入力を受けるドキュメント入力部(入力手段)211と、プリンタドライバ200内のデータ制御を行うデータ制御部212と、印刷データをプリンタ3に出力する印刷データ出力部(出力手段)213とを有している。データ制御部212は、入力されたXMLドキュメントをXMLパース部220に受け渡すことによりXMLパース部220にパースさせ、パースにより得られた描画命令をレンダリング部230に受け渡すことによりレンダリング部230にレンダリングを行わせる。レンダリングにより生成された印刷画像のデータは、印刷データ出力部213により印刷データの形式で通信I/F25を介してプリンタ3に出力される。この印刷データは、印刷画像を所定の高さごとに区画したバンドの画像データであり、バンド順にプリンタ3に出力される。   The control unit 210 includes a document input unit (input unit) 211 that receives an XML document input from the application 100, a data control unit 212 that controls data in the printer driver 200, and print data output that outputs print data to the printer 3. Part (output means) 213. The data control unit 212 passes the input XML document to the XML parsing unit 220 to parse it to the XML parsing unit 220, and passes the drawing command obtained by the parsing to the rendering unit 230 for rendering to the rendering unit 230. To do. The print image data generated by the rendering is output to the printer 3 by the print data output unit 213 in the form of print data via the communication I / F 25. This print data is image data of bands obtained by dividing the print image at predetermined heights, and is output to the printer 3 in the band order.

XMLパース部220は、バンド情報付与部221(バンド情報付与手段)と、描画命令取得部(描画命令取得手段)222とを有している。バンド情報付与部221は、XMLドキュメントをパースして、描画命令の記述部分からその描画命令の描画範囲を判断する。例えば、図8に示す内容を記述したXMLドキュメントに対して、オブジェクトOB1の描画範囲はバンド0、オブジェクトOB2の描画範囲はバンド3〜5、オブジェクトOB3の描画範囲はバンド0〜2と判断する。そして、XMLドキュメントにおける描画命令の記述に対して、描画範囲に含まれるバンドのバンド番号を示す情報(以下、「バンド情報」という)をタグ形式で付与する。   The XML parsing unit 220 includes a band information adding unit 221 (band information adding unit) and a drawing command acquiring unit (drawing command acquiring unit) 222. The band information adding unit 221 parses the XML document and determines the drawing range of the drawing command from the description portion of the drawing command. For example, for the XML document describing the contents shown in FIG. 8, it is determined that the drawing range of the object OB1 is band 0, the drawing range of the object OB2 is bands 3 to 5, and the drawing range of the object OB3 is bands 0 to 2. Then, information indicating the band number of the band included in the drawing range (hereinafter referred to as “band information”) is given to the description of the drawing command in the XML document in a tag format.

描画命令取得部222は、バンド情報が付与されたXMLドキュメントをパースして、描画命令を取得する処理を行う。ここで、描画命令取得部222が解釈する順番は、XMLドキュメントに付与されたバンド情報に従ってバンド番号順に従う。例えば、図8に示す内容を記述したXMLドキュメントを解釈した場合、XMLドキュメントの記述を先頭から順に解釈すると、図3(a)に示すように、オブジェクトOB1の描画命令、オブジェクトOB2の描画命令、オブジェクトOB3の描画命令が順番に取得される。しかしながら、描画命令取得部222が、描画命令にタグ形式で付与されたバンド情報に従ってバンド番号が小さい記述から順番に解釈することにより、描画命令は記述順でなく、バンド順に取得される。   The drawing command acquisition unit 222 parses the XML document to which the band information is added and performs processing for acquiring a drawing command. Here, the order of interpretation by the drawing command acquisition unit 222 follows the band number order according to the band information given to the XML document. For example, when the XML document describing the content shown in FIG. 8 is interpreted, if the description of the XML document is interpreted in order from the top, as shown in FIG. 3A, a drawing command for the object OB1, a drawing command for the object OB2, Drawing commands for the object OB3 are acquired in order. However, the rendering command acquisition unit 222 interprets the rendering commands in order from the description with the smallest band number according to the band information given to the rendering command in the tag format, so that the rendering commands are acquired in the band order instead of the description order.

なお、複数のバンドを描画範囲とする描画命令については、複数のバンドのうちの先頭のバンドを描画するものとして扱う。また、描画範囲が同じ描画命令間における解釈の順序は、XMLドキュメントにおける記述の順番とする。図8に示す内容を記述したXMLドキュメントを解釈した場合、バンド0〜2を描画範囲とするオブジェクトOB3の描画命令は、バンド0を描画する命令として扱われ、共にバンド0を描画範囲とするオブジェクトOB1の描画命令とオブジェクトOB3の描画命令との間では、記述順に従ってオブジェクトOB1の描画命令が先に解釈される。したがって、バンド0を描画範囲とするオブジェクトOB1の描画命令、バンド0〜2を描画範囲とするオブジェクトOB3、バンド3〜5を描画範囲とするオブジェクトOB2の描画命令が順に取得される。こうして取得した描画命令は、データ制御部212によりレンダリング部230に受け渡される。   Note that a drawing command for drawing a plurality of bands as a drawing range is handled as drawing the first band of the plurality of bands. Also, the order of interpretation between rendering commands with the same rendering range is the order of description in the XML document. When the XML document describing the content shown in FIG. 8 is interpreted, the drawing command of the object OB3 having the drawing range of the band 0 to 2 is treated as a command of drawing the band 0, and both are objects having the drawing range of the band 0. Between the drawing command for OB1 and the drawing command for object OB3, the drawing command for object OB1 is first interpreted according to the description order. Accordingly, a drawing command for the object OB1 having the drawing range of the band 0, an object OB3 having the drawing range of the bands 0 to 2, and a drawing command of the object OB2 having the drawing range of the bands 3 to 5 are sequentially acquired. The drawing command acquired in this way is transferred to the rendering unit 230 by the data control unit 212.

レンダリング部230は、データ制御部212から受け取る描画命令に基づいてレンダリングを行う。そのため、レンダリング部230は、中間コード登録部231と、中間コードメモリ232と、展開処理部233と、ページメモリ234とを有する。   The rendering unit 230 performs rendering based on a drawing command received from the data control unit 212. Therefore, the rendering unit 230 includes an intermediate code registration unit 231, an intermediate code memory 232, a development processing unit 233, and a page memory 234.

中間コード登録部231は、データ制御部212から受け取る描画命令を、ドライバにとって処理し易いようバンドごとの中間コードに変換し、中間コードメモリ232に登録する。   The intermediate code registration unit 231 converts the drawing command received from the data control unit 212 into an intermediate code for each band so that it can be easily processed by the driver, and registers the intermediate code in the intermediate code memory 232.

展開処理部233は、登録された中間コードに従って描画して、ページメモリ234にビットマップ画像を展開する処理を行う。そして、中間コード登録部231、展開処理部233が描画命令を順次処理することにより、ページメモリ234にオブジェクトの画像が次々に書き込まれるようにして、ページメモリ234上に印刷画像が形成される。   The development processing unit 233 performs a process of drawing in accordance with the registered intermediate code and developing a bitmap image in the page memory 234. Then, the intermediate code registration unit 231 and the expansion processing unit 233 sequentially process the drawing commands, so that the image of the object is sequentially written in the page memory 234, and a print image is formed on the page memory 234.

印刷データ出力部213は、レンダリングにより生成された印刷画像を、バンド順に印刷データとしてプリンタ3に出力する。これにより、プリンタドライバ200は、プリンタ3に印刷データに従う印刷を行わせるようにして印刷を制御する。   The print data output unit 213 outputs the print image generated by rendering to the printer 3 as print data in the band order. Thus, the printer driver 200 controls printing by causing the printer 3 to perform printing according to the print data.

ここで、印刷データ出力部213は、内容が確定したバンドの印刷データを出力する。バンドを確定して印刷データを出力するタイミングについて図4を用いて説明する。図4は、図3(b)の順番の描画命令に従うレンダリングが行われる経過を示した図である。図3(b)に示した描画命令の順番に従って、まず、オブジェクトOB1の描画命令に従って描画すると、図4(a)に示すように、オブジェクトOB1がバンド0の範囲に展開される。このとき、バンド0に掛かるオブジェクトOB3が未展開であるためバンド0は確定しない。   Here, the print data output unit 213 outputs the print data of the band whose contents are fixed. The timing for determining the band and outputting the print data will be described with reference to FIG. FIG. 4 is a diagram illustrating a process in which rendering is performed according to the drawing commands in the order of FIG. First, when drawing is performed according to the drawing command of the object OB1 in accordance with the order of the drawing commands shown in FIG. 3B, the object OB1 is expanded in the range of the band 0 as shown in FIG. At this time, since the object OB3 applied to the band 0 is not developed, the band 0 is not fixed.

次に、オブジェクトOB3の描画命令に従って描画すると、図4(b)に示すように、オブジェクトOB3がバンド0〜2の範囲に展開される。このとき、次に描画されるオブジェクトOB2の描画範囲はバンド3〜5であり、バンド0〜2の範囲に展開されるものではないのでバンド0〜2が確定する。印刷データ出力部213は、確定したバンド0〜2の印刷データをプリンタ3に順次出力し、プリンタ3に印刷を開始させる。   Next, when drawing is performed according to the drawing command for the object OB3, the object OB3 is expanded in the range of bands 0 to 2 as shown in FIG. At this time, the drawing range of the object OB2 to be drawn next is the bands 3 to 5 and is not expanded to the range of the bands 0 to 2, so the bands 0 to 2 are determined. The print data output unit 213 sequentially outputs the print data of the determined bands 0 to 2 to the printer 3 and causes the printer 3 to start printing.

次に、オブジェクトOB2の描画命令に従って描画すると、図4(c)に示すように、バンド3〜5についてバンドが確定し、印刷データ出力部213が、確定したバンド3〜5の印刷データを順次にプリンタ3に出力する。これにより、プリンタ3は、バンド0〜2に継続してバンド3〜5について順次処理するようにして、バンドごと次々に印刷を行う。   Next, when drawing is performed according to the drawing command of the object OB2, as shown in FIG. 4C, bands are determined for the bands 3 to 5, and the print data output unit 213 sequentially outputs the determined print data of the bands 3 to 5. Is output to the printer 3. As a result, the printer 3 sequentially prints the bands 3 to 5 in succession to the bands 0 to 2 so as to sequentially process the bands 3 to 5.

このように、本実施例の印刷システム1では、描画命令の解釈順を変更することにより、オブジェクトOB2を描画する前のタイミングで先頭バンドの印刷データを出力するように、印刷データを出力するタイミングを早めるようにしている。   As described above, in the printing system 1 according to the present embodiment, by changing the interpretation order of the drawing commands, the print data output timing is output so that the print data of the first band is output at the timing before drawing the object OB2. I'm trying to speed up.

次に、XMLドキュメントをパースする処理の流れについて、図5のフローチャートに従って説明する。なお、図5の処理および後述する図6の処理は、CPU20が、HD23に記録されたドライバプログラムを実行することにより行われるものである。   Next, the flow of processing for parsing an XML document will be described with reference to the flowchart of FIG. Note that the processing in FIG. 5 and the processing in FIG. 6 to be described later are performed by the CPU 20 executing a driver program recorded in the HD 23.

図5の処理を開始して、アプリケーション100からドキュメント入力部211にXMLドキュメントが入力されると、バンド情報付与部221は、制御部210からXMLドキュメントを受け取る(ステップS100)。そして、受け取ったXMLドキュメントをパースして、XMLドキュメントに記述された描画命令の描画範囲から、描画範囲に掛かるバンドのバンド番号を特定する(ステップS105)。次に、バンド情報付与部221は、XMLドキュメントの描画命令に対応する記述部分にバンド番号を示すタグを追加することにより、XMLドキュメントにバンド情報を付与する(ステップS110)。   When the processing of FIG. 5 is started and an XML document is input from the application 100 to the document input unit 211, the band information adding unit 221 receives the XML document from the control unit 210 (step S100). Then, the received XML document is parsed, and the band number of the band applied to the drawing range is specified from the drawing range of the drawing command described in the XML document (step S105). Next, the band information adding unit 221 adds band information to the XML document by adding a tag indicating the band number to the description part corresponding to the drawing instruction of the XML document (step S110).

次に、バンド情報付与部221は、XMLドキュメントの全記述についてステップS105,S110の処理を終了したか否かを判断する(ステップS115)。全記述について処理を終了していなければ(ステップS115:No)、ステップS105に戻り、XMLドキュメントの続きの記述をパースするようにしてステップS105〜S110の処理を繰り返し行う。そして、XMLドキュメントの全記述について処理を終了すると(ステップS115:Yes)、XMLドキュメントに記述された全描画命令についてバンド情報が付与された状態となって、ステップS120に進む。   Next, the band information adding unit 221 determines whether or not the processing in steps S105 and S110 has been completed for all the descriptions of the XML document (step S115). If the processing has not been completed for all the descriptions (step S115: No), the process returns to step S105, and the processing of steps S105 to S110 is repeated so as to parse the subsequent description of the XML document. When the processing is completed for all the descriptions in the XML document (step S115: Yes), the band information is assigned to all the drawing commands described in the XML document, and the process proceeds to step S120.

ステップS120に処理が進むと、描画命令取得部222は、まず、先頭バンド(バンド0)に注目する。そして、バンド情報がタグ形式で付与されたXMLドキュメントから、バンド情報のバンド番号を参照して、注目バンドを描画する描画命令の記述を探索し(ステップS125)、探索された記述をパースして描画命令を取得する(ステップS130)。そして、取得した描画命令を制御部210に返す(ステップS135)。このとき、データ制御部212は、XMLパース部220から受け取った描画命令をレンダリング部230に受け渡す。   When the process proceeds to step S120, the drawing command acquisition unit 222 first focuses on the leading band (band 0). Then, from the XML document to which the band information is attached in the tag format, the description of the drawing command for drawing the band of interest is searched with reference to the band number of the band information (step S125), and the searched description is parsed. A drawing command is acquired (step S130). Then, the acquired drawing command is returned to the control unit 210 (step S135). At this time, the data control unit 212 passes the drawing command received from the XML parsing unit 220 to the rendering unit 230.

次に、描画命令取得部222は、注目バンドについて処理を終了したか否か、すなわち注目バンドを描画範囲とする全描画命令について処理を行ったか否かを判断する(ステップS140)。全描画命令について処理を行っていなければ(ステップS140:No)、ステップS125に戻って、次の描画命令を探索するようにして、ステップS125〜S135の処理を繰り返し行う。そして、注目バンドを描画範囲とする全描画命令について処理を行うと、注目バンドについて処理を終了し(ステップS140:Yes)、ステップS145に進む。   Next, the drawing command acquisition unit 222 determines whether or not the processing has been completed for the band of interest, that is, whether or not the processing has been performed for all drawing commands in which the band of interest is the drawing range (step S140). If processing has not been performed for all drawing commands (step S140: No), the process returns to step S125, and the processing of steps S125 to S135 is repeated so as to search for the next drawing command. Then, when processing has been performed for all drawing commands in which the target band is the drawing range, the processing for the target band is terminated (step S140: Yes), and the process proceeds to step S145.

ステップS145に処理が進むと、描画命令取得部222は、全バンドについて処理を終了したか否かを判断する(ステップS145)。全バンドについてステップS125〜S140の処理を行っていなければ(ステップS145:No)、次のバンドに注目してから(ステップS150)、ステップS125に戻るようにして次の注目バンドについて処理を繰り返す。そして、全バンドについてステップS125〜S140の処理が行われると(ステップS145:Yes)、図5の処理を終了する。   When the process proceeds to step S145, the drawing command acquisition unit 222 determines whether the process has been completed for all bands (step S145). If the processing of steps S125 to S140 has not been performed for all the bands (step S145: No), after paying attention to the next band (step S150), the processing is repeated for the next attention band so as to return to step S125. And if the process of step S125-S140 is performed about all the bands (step S145: Yes), the process of FIG. 5 will be complete | finished.

以上に説明した図5の処理により、図3(b)に例として示したように、XMLドキュメントに記述された複数の描画命令は、描画範囲のバンド順でレンダリング部230に出力される。   With the processing of FIG. 5 described above, as illustrated in FIG. 3B as an example, a plurality of rendering commands described in the XML document are output to the rendering unit 230 in the band order of the rendering range.

次に、レンダリングの処理の流れについて、図6のフローチャートに従って説明する。   Next, the flow of rendering processing will be described with reference to the flowchart of FIG.

図6の処理を開始して、レンダリング部230が、制御部210から描画命令を受け取ると(ステップS200)、まず、先頭バンドに注目する(ステップS210)。なお、ここでいう先頭バンドとは、印刷データとしてプリンタに最初に出力され、プリンタによる処理が最初に行われるバンドであり、通常、バンド0である。もっとも、プリンタが、描画対象のオブジェクトがないバンドについては印刷の処理を行うことなく、描画対象のオブジェクトを含むバンドのみを順次処理するようにして印刷の効率化を図る場合、オブジェクトを最初に含むバンドが先頭バンドとなる。すなわち、バンド0,1の範囲に描画対象のオブジェクトがなく、バンド2の範囲に描画対象のオブジェクトがある場合、バンド2を先頭バンドとして処理してもよい。   When the processing of FIG. 6 is started and the rendering unit 230 receives a drawing command from the control unit 210 (step S200), first, attention is paid to the head band (step S210). The leading band here is a band that is first output to the printer as print data and is first processed by the printer, and is usually band 0. However, if the printer does not perform printing for bands that do not have a drawing target object, but only processes the bands that include the drawing target object in order to improve printing efficiency, the object is included first. The band becomes the first band. That is, when there is no object to be drawn in the range of bands 0 and 1, and there is an object to be drawn in the range of band 2, band 2 may be processed as the first band.

次に、レンダリング部230は、受け取った描画命令に従ってレンダリングして、オブジェクト画像をページメモリ234に書き込み(ステップS220)、制御部210から次の描画命令を受け取る(ステップS230)。   Next, the rendering unit 230 performs rendering according to the received drawing command, writes the object image in the page memory 234 (step S220), and receives the next drawing command from the control unit 210 (step S230).

次に、レンダリング部230は、注目バンドの内容が確定したか否かを判断する(ステップS240)。ここでは、ステップS230で受け取った次の描画命令の描画範囲が注目バンドに掛かっているか否かにより判断を行う。すなわち、描画命令はバンド番号順に制御部210から受け渡されるので、次の描画命令が注目バンドを描画範囲としない場合、それ以前に展開された結果をもって注目バンドの内容が確定したと判断する。次の描画命令の描画範囲が注目バンドに掛かっており、注目バンドが確定していなければ(ステップS240:No)、ステップS220に戻って、ステップS230にて受け取った次の描画命令についてレンダリングを行う。一方、次の描画命令の描画範囲が注目バンドに掛かっておらず、注目バンドが確定していれば(ステップS240:Yes)、印刷データ出力部213は、ページメモリ234に格納された印刷画像のうちから確定した注目バンドに対応する部分の画像データを読み出して、印刷データとしてプリンタ3に出力する(ステップS250)。このステップS250において最初に印刷データを出力したとき、出力された先頭バンドの印刷データに従ってプリンタ3による印刷が開始される。   Next, the rendering unit 230 determines whether or not the content of the band of interest has been confirmed (step S240). Here, the determination is made based on whether or not the drawing range of the next drawing command received in step S230 is on the band of interest. That is, since the drawing command is transferred from the control unit 210 in the band number order, if the next drawing command does not set the target band as the drawing range, it is determined that the content of the target band has been determined based on the result developed before that. If the drawing range of the next drawing command is applied to the target band and the target band is not fixed (step S240: No), the process returns to step S220, and the next drawing command received in step S230 is rendered. . On the other hand, if the drawing range of the next drawing command is not applied to the attention band and the attention band is fixed (step S240: Yes), the print data output unit 213 displays the print image stored in the page memory 234. The image data of the part corresponding to the target band determined from among them is read out and output to the printer 3 as print data (step S250). When print data is first output in step S250, printing by the printer 3 is started in accordance with the output print data of the first band.

次に、レンダリング部230は、全バンドについて処理を終了したか否かを判断する(ステップS260)。全バンドについて処理を終えていなければ(ステップS260:No)、次のバンドに注目してから(ステップS270)、ステップS220に戻って、ステップS230で受け取った描画命令に従ってレンダリングを行う。全バンドについて処理を終了すると(ステップS260:Yes)、図6の処理を終了する。   Next, the rendering unit 230 determines whether the processing has been completed for all bands (step S260). If the processing has not been completed for all bands (step S260: No), after paying attention to the next band (step S270), the process returns to step S220, and rendering is performed according to the drawing command received in step S230. When the process is completed for all bands (step S260: Yes), the process of FIG. 6 is terminated.

以上に説明した印刷システム1によれば、XMLドキュメントに記述された複数の描画命令はバンド順に解釈および描画されるとともに、確定したバンドの印刷データは、入力データから取得される全描画命令についての描画完了を待つことなく、プリンタ3に出力される。これにより、各々のバンドが印刷されるタイミングが早まるので、印刷完了までに要する時間が短縮する。また、特に、先頭バンドの印刷データを出力するタイミングが早まることにより、XMLドキュメントに対する印刷をより早いタイミングで開始することができるとともに、印刷完了までに要する時間が短縮することにもなる。   According to the printing system 1 described above, a plurality of drawing commands described in the XML document are interpreted and drawn in the band order, and the print data of the determined band is obtained for all drawing commands acquired from the input data. The image is output to the printer 3 without waiting for completion of drawing. As a result, the timing for printing each band is advanced, so that the time required to complete the printing is shortened. In particular, since the timing of outputting the print data of the first band is advanced, printing on the XML document can be started at an earlier timing, and the time required to complete the printing can be shortened.

(第2の実施例)
次に、第2の実施例について説明する。上記第1の実施例では、ホストコンピュータに備わるプリンタドライバ200がパースおよびレンダリングを行って印刷データを生成する、いわゆるドライバページの態様をなしていたが、第2の実施例では、システムのプリンタ側でパースおよびレンダリングが行われる。なお、以下では、第1の実施例と同様の構成については同じ符号を付与し、詳細な説明を省略するものとする。
(Second embodiment)
Next, a second embodiment will be described. In the first embodiment, the printer driver 200 provided in the host computer has a so-called driver page form in which the print data is generated by performing parsing and rendering. In the second embodiment, the printer side of the system Parsing and rendering. In the following, the same components as those in the first embodiment are denoted by the same reference numerals, and detailed description thereof is omitted.

図7は、第2の実施例に係る印刷システムの構成を示したブロック図である。図7に示すように、印刷システム6は、ホストコンピュータ7と、プリンタ8とを備えている。ホストコンピュータ7は、アプリケーション100と、プリンタドライバ300とを備えている。プリンタドライバ300は、アプリケーション100から入力されたXMLドキュメントを印刷データとしてプリンタ8に出力する処理を行う。   FIG. 7 is a block diagram illustrating a configuration of a printing system according to the second embodiment. As shown in FIG. 7, the printing system 6 includes a host computer 7 and a printer 8. The host computer 7 includes an application 100 and a printer driver 300. The printer driver 300 performs processing for outputting the XML document input from the application 100 to the printer 8 as print data.

プリンタ8は、コントローラ(印刷制御装置)80と、印刷エンジン(印刷装置)81とを備えている。コントローラ80は、制御部210、XMLパース部220、およびレンダリング部230を有しており、プリンタドライバ300から受け取った印刷データ(入力データ)に対して、第1の実施例と同様にパースおよびレンダリングを行う。コントローラ80は、確定したバンドの印刷画像を、印刷エンジン81が処理可能な形式のデータに変換して、印刷エンジン81に順次出力することにより、印刷エンジン81に印刷画像を印刷させる。   The printer 8 includes a controller (printing control device) 80 and a print engine (printing device) 81. The controller 80 includes a control unit 210, an XML parsing unit 220, and a rendering unit 230, and parses and renders print data (input data) received from the printer driver 300 in the same manner as in the first embodiment. I do. The controller 80 converts the print image of the determined band into data in a format that can be processed by the print engine 81, and sequentially outputs the data to the print engine 81, thereby causing the print engine 81 to print the print image.

第2の実施例によれば、プリンタ側でパースおよびレンダリングを行うシステムにおいても、第1の実施例と同様の効果を得ることができる。   According to the second embodiment, an effect similar to that of the first embodiment can be obtained even in a system that performs parsing and rendering on the printer side.

本印刷制御装置は、第1の実施例および第2の実施例に限られることなく、以下に説明する変形例とすることもできる。   The present printing control apparatus is not limited to the first embodiment and the second embodiment, and may be modified as described below.

(変形例1)上記第1,2の実施例では、XMLドキュメントに記述された全ての描画命令の記述に対して、バンド情報を付与するようにしたが、先頭バンドを描画する描画命令の記述に対してのみ、先頭バンドを描画する命令である旨を示すバンド情報を付与するようにしてもよい。バンド情報が付与された描画命令を優先的に描画することにより、先頭バンドを確定し、先頭バンドの印刷データをプリンタに出力するタイミングを早めることができる。この場合、先頭バンド以外のバンドについては、XMLドキュメントに記述された順番に描画命令を解釈・描画するとよい。   (Modification 1) In the first and second embodiments described above, band information is added to the description of all drawing commands described in the XML document. Only for, band information indicating that it is a command to draw the leading band may be given. By preferentially drawing the drawing command to which the band information is added, the head band can be determined and the timing for outputting the print data of the head band to the printer can be advanced. In this case, for the bands other than the head band, the drawing commands may be interpreted and drawn in the order described in the XML document.

(変形例2)上記第1,2の実施例では、バンド情報をXMLドキュメントの記述にタグ形式で直接付与するようにしたが、バンド情報付与部221は、XMLドキュメントの描画命令の行番号とバンド情報とを対応付けたデータをRAMなどのメモリに登録することによりバンド情報の付与を行ってもよい。この場合、描画命令取得部222は、登録されたデータを参照して、先頭バンドに対応する行の記述からパースするようにして描画命令を取得するとよい。   (Modification 2) In the first and second embodiments, the band information is directly attached to the description of the XML document in the tag format. However, the band information attaching unit 221 uses the line number of the drawing instruction of the XML document and The band information may be given by registering data associated with the band information in a memory such as a RAM. In this case, the drawing command acquisition unit 222 may acquire the drawing command by referring to the registered data so as to parse from the description of the line corresponding to the head band.

(変形例3)上記第1,2の実施例では、マークアップ言語であるXMLにより記述されたXMLドキュメントを処理する場合について説明したが、HTML(HyperText Markup Language)やXHTML(EXtensible HyperText Markup Language)で記述されたデータに対して処理するようにしてもよい。   (Modification 3) In the first and second embodiments, the case of processing an XML document described in XML, which is a markup language, has been described. However, HTML (HyperText Markup Language) and XHTML (EXtensible HyperText Markup Language) are described. The data described in (1) may be processed.

(変形例4)上記第1,2の実施例では、印刷装置としてプリンタを例にして説明したが、プリンタに限られることなく、複写機やファックスであってもよい。   (Modification 4) In the first and second embodiments, the printer is described as an example of the printing apparatus. However, the present invention is not limited to the printer, and may be a copier or a fax machine.

第1の実施例に係る印刷システムの構成を示したブロック図。1 is a block diagram illustrating a configuration of a printing system according to a first embodiment. ホストコンピュータの機能的構成を示したブロック図。The block diagram which showed the functional structure of the host computer. 描画命令が取得される順番を説明する図であり、(a)は記述順に解釈したときに取得される描画命令の順番、(b)はバンド番号順に解釈したときに取得される描画命令の順番を示した図。It is a figure explaining the order from which a drawing command is acquired, (a) is the order of the drawing command acquired when interpreting in description order, (b) is the order of the drawing command acquired when interpreting in band number order. FIG. レンダリングの経過を示した図であり、(a)はオブジェクトOB1描画後、(b)はオブジェクトOB3描画後、(c)はオブジェクトOB2描画後に確定されるバンドを示した図。It is the figure which showed progress of rendering, (a) shows the band decided after drawing object OB1, (b) after drawing object OB3, (c) after drawing object OB2. パース処理の流れを示したフローチャート。The flowchart which showed the flow of the parsing process. レンダリング処理の流れを示したフローチャート。The flowchart which showed the flow of the rendering process. 第2の実施例に係る印刷システムの構成を示したブロック図。The block diagram which showed the structure of the printing system which concerns on a 2nd Example. 従来の処理方法を説明するための図。The figure for demonstrating the conventional processing method.

符号の説明Explanation of symbols

1…印刷システム、2…印刷制御装置としてのホストコンピュータ、3…印刷装置としてのプリンタ、4…記録媒体としてのCD−ROM、20…CPU、21…ROM、22…RAM、23…ハードディスク、24…CD−ROMドライブ、25…通信インターフェイス、100…アプリケーション、200…プリンタドライバ、210…制御部、211…入力手段としてのドキュメント入力部、212…データ制御部、213…出力手段としての印刷データ出力部、220…XMLパース部、221…バンド情報付与手段としてのバンド情報付与部、222…描画命令取得手段としての描画命令取得部、230…印刷画像生成手段としてのレンダリング部、231…中間コード登録部、232…中間コードメモリ、233…展開処理部、234…ページメモリ。   DESCRIPTION OF SYMBOLS 1 ... Printing system, 2 ... Host computer as printing control apparatus, 3 ... Printer as printing apparatus, 4 ... CD-ROM as recording medium, 20 ... CPU, 21 ... ROM, 22 ... RAM, 23 ... Hard disk, 24 DESCRIPTION OF SYMBOLS ... CD-ROM drive, 25 ... Communication interface, 100 ... Application, 200 ... Printer driver, 210 ... Control part, 211 ... Document input part as an input means, 212 ... Data control part, 213 ... Print data output as an output means 220: XML parsing unit, 221 ... Band information adding unit as band information adding unit, 222 ... Drawing command acquiring unit as drawing command acquiring unit, 230 ... Rendering unit as print image generating unit, 231 ... Intermediate code registration , 232 ... intermediate code memory, 233 ... development processing part, 34 ... page memory.

Claims (6)

印刷すべき印刷画像を所定の高さで区画したバンドごとに順次処理して、印刷を行う印刷装置と、前記印刷装置を制御する印刷制御装置とを備える印刷システムであって、
前記印刷制御装置は、
前記印刷画像を表す複数の描画命令をマークアップ言語により記述した入力データの入力を受ける入力手段と、
前記入力データに記述された描画命令の各々に対して、前記描画命令の描画範囲に含まれるバンドを示すバンド情報を付与するバンド情報付与手段と、
前記バンド情報に基づき、前記入力データに記述された複数の描画命令のうち前記バンドの処理順が先頭のバンドを描画する描画命令を優先して解釈するようにして、前記描画命令を順次取得する描画命令取得手段と、
前記順次取得される描画命令に基づいて順次描画することにより、前記印刷画像を生成する印刷画像生成手段と、
前記印刷画像をバンドごとに表す画像データを前記印刷装置に出力する出力手段とを備え、
前記出力手段は、前記先頭バンドの範囲内について全描画が完了してから、入力データから取得される全描画命令についての描画完了に先立ち、前記先頭バンドの画像データを前記印刷装置に出力することを特徴とする印刷システム。
A printing system comprising: a printing apparatus that sequentially processes a print image to be printed for each band partitioned at a predetermined height to perform printing; and a print control apparatus that controls the printing apparatus,
The print control device includes:
Input means for receiving input of input data in which a plurality of drawing commands representing the print image are described in a markup language;
Band information giving means for giving band information indicating a band included in the drawing range of the drawing command to each of the drawing commands described in the input data;
Based on the band information, the drawing commands are sequentially obtained by preferentially interpreting the drawing command for drawing the first band in the processing order of the band among the plurality of drawing commands described in the input data. A drawing command acquisition means;
Print image generating means for generating the print image by sequentially drawing based on the drawing commands sequentially obtained;
Output means for outputting image data representing the print image for each band to the printing apparatus,
The output means outputs the image data of the first band to the printing device after completion of drawing for all drawing commands obtained from input data after all drawing is completed within the range of the first band. A printing system featuring.
印刷すべき印刷画像を所定の高さで区画したバンドごとに順次処理して、印刷を行う印刷装置を制御する印刷制御装置であって、
前記印刷画像を表す複数の描画命令をマークアップ言語により記述した入力データの入力を受ける入力手段と、
前記入力データに記述された描画命令の各々に対して、前記描画命令の描画範囲に含まれるバンドを示すバンド情報を付与するバンド情報付与手段と、
前記バンド情報に基づき、前記入力データに記述された複数の描画命令のうち前記バンドの処理順が先頭のバンドを描画する描画命令を優先して解釈するようにして、前記描画命令を順次取得する描画命令取得手段と、
前記順次取得される描画命令に基づいて順次描画することにより、前記印刷画像を生成する印刷画像生成手段と、
前記印刷画像をバンドごとに表す画像データを前記印刷装置に出力する出力手段とを備え、
前記出力手段は、前記先頭バンドの範囲内について全描画が完了してから、入力データから取得される全描画命令についての描画完了に先立ち、前記先頭バンドの画像データを前記印刷装置に出力することを特徴とする印刷制御装置。
A print control device that controls a printing device that performs printing by sequentially processing a print image to be printed for each band partitioned at a predetermined height,
Input means for receiving input of input data in which a plurality of drawing commands representing the print image are described in a markup language;
Band information giving means for giving band information indicating a band included in the drawing range of the drawing command to each of the drawing commands described in the input data;
Based on the band information, the drawing commands are sequentially obtained by preferentially interpreting the drawing command for drawing the first band in the processing order of the band among the plurality of drawing commands described in the input data. A drawing command acquisition means;
Print image generating means for generating the print image by sequentially drawing based on the drawing commands sequentially obtained;
Output means for outputting image data representing the print image for each band to the printing apparatus,
The output means outputs the image data of the first band to the printing device after completion of drawing for all drawing commands obtained from input data after all drawing is completed within the range of the first band. A printing control apparatus characterized by the above.
請求項2に記載の印刷制御装置において、
前記描画命令取得手段は、前記バンド情報に基づき、前記入力データに記述された複数の描画命令を前記バンドの処理順に解釈して、前記描画命令を順次取得し、
前記出力手段は、前記先頭バンド以降のバンドについて、バンド範囲内の全描画が完了してから、入力データから取得される全描画命令についての描画完了に先立ち、前記描画が完了したバンドの画像データを出力するようにして、バンドごとの画像データを順次出力することを特徴とする印刷制御装置。
The print control apparatus according to claim 2,
The drawing command acquisition means interprets a plurality of drawing commands described in the input data based on the band information, and sequentially acquires the drawing commands,
The output means, for the bands after the first band, after the completion of drawing for all drawing commands obtained from input data after all drawing within the band range is completed, image data of the band for which drawing has been completed A print control apparatus that sequentially outputs image data for each band.
印刷すべき印刷画像を所定の高さで区画したバンドごとに順次処理して、印刷を行う印刷装置を制御する印刷制御方法であって、
前記印刷画像を表す複数の描画命令をマークアップ言語により記述した入力データの入力を受けるステップと、
前記入力データに記述された描画命令の各々に対して、前記描画命令の描画範囲に含まれるバンドを示すバンド情報を付与するステップと、
前記バンド情報に基づき、前記入力データに記述された複数の描画命令のうち前記バンドの処理順が先頭のバンドを描画する描画命令を優先して解釈するようにして、前記描画命令を順次取得するステップと、
前記順次取得される描画命令に基づいて順次描画することにより、前記印刷画像を生成するステップと、
前記印刷画像をバンドごとに表す画像データを前記印刷装置に出力するステップとを備え、
前記出力手段は、前記先頭バンドの範囲内について全描画が完了してから、入力データから取得される全描画命令についての描画完了に先立ち、前記先頭バンドの画像データを前記印刷装置に出力することを特徴とする印刷制御方法。
A print control method for controlling a printing apparatus that performs printing by sequentially processing a print image to be printed for each band partitioned at a predetermined height,
Receiving input data describing a plurality of drawing commands representing the print image in a markup language;
Giving band information indicating a band included in a drawing range of the drawing command to each of the drawing commands described in the input data;
Based on the band information, the drawing commands are sequentially obtained by preferentially interpreting the drawing command for drawing the first band in the processing order of the band among the plurality of drawing commands described in the input data. Steps,
Generating the print image by sequentially drawing based on the drawing commands sequentially obtained;
Outputting image data representing the print image for each band to the printing apparatus,
The output means outputs the image data of the first band to the printing device after completion of drawing for all drawing commands obtained from input data after all drawing is completed within the range of the first band. A printing control method characterized by the above.
印刷すべき印刷画像を所定の高さで区画したバンドごとに順次処理して、印刷を行う印刷装置を制御するための印刷制御プログラムであって、
コンピュータを、
前記印刷画像を表す複数の描画命令をマークアップ言語により記述した入力データの入力を受ける入力手段、
前記入力データに記述された描画命令の各々に対して、前記描画命令の描画範囲に含まれるバンドを示すバンド情報を付与するバンド情報付与手段、
前記バンド情報に基づき、前記入力データに記述された複数の描画命令のうち前記バンドの処理順が先頭のバンドを描画する描画命令を優先して解釈するようにして、前記描画命令を順次取得する描画命令取得手段、
前記順次取得される描画命令に基づいて画像メモリに順次描画することにより、前記印刷画像を生成する印刷画像生成手段、
前記印刷画像をバンドごとに表す画像データを前記画像メモリから読み出して前記印刷装置に出力する出力手段、として機能させ、
前記出力手段は、前記先頭バンドの範囲内について全描画が完了してから、入力データから取得される全描画命令についての描画完了に先立ち、前記先頭バンドの画像データを前記画像メモリから読み出して前記印刷装置に出力することを特徴とする印刷制御プログラム。
A print control program for sequentially processing a print image to be printed for each band partitioned at a predetermined height and controlling a printing apparatus that performs printing,
Computer
Input means for receiving input data in which a plurality of drawing commands representing the print image are described in a markup language;
Band information giving means for giving band information indicating a band included in the drawing range of the drawing command to each drawing command described in the input data;
Based on the band information, the drawing commands are sequentially obtained by preferentially interpreting the drawing command for drawing the first band in the processing order of the band among the plurality of drawing commands described in the input data. Drawing command acquisition means,
A print image generating means for generating the print image by sequentially drawing in an image memory based on the sequentially obtained drawing commands;
The image data representing the print image for each band is read out from the image memory and functions as output means for outputting to the printing apparatus,
The output means reads out the image data of the first band from the image memory and completes the drawing for all the drawing commands acquired from the input data after all the drawing is completed within the range of the first band. A print control program for outputting to a printing apparatus.
請求項5に記載の印刷制御プログラムを記録したコンピュータ読み取り可能な記録媒体。   A computer-readable recording medium on which the print control program according to claim 5 is recorded.
JP2007165921A 2007-06-25 2007-06-25 Printing system, printing control device, printing control method, printing control program, and recording medium recording of the program Withdrawn JP2009003832A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2007165921A JP2009003832A (en) 2007-06-25 2007-06-25 Printing system, printing control device, printing control method, printing control program, and recording medium recording of the program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2007165921A JP2009003832A (en) 2007-06-25 2007-06-25 Printing system, printing control device, printing control method, printing control program, and recording medium recording of the program

Publications (1)

Publication Number Publication Date
JP2009003832A true JP2009003832A (en) 2009-01-08

Family

ID=40320127

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2007165921A Withdrawn JP2009003832A (en) 2007-06-25 2007-06-25 Printing system, printing control device, printing control method, printing control program, and recording medium recording of the program

Country Status (1)

Country Link
JP (1) JP2009003832A (en)

Similar Documents

Publication Publication Date Title
JP3873427B2 (en) Intermediate file processing apparatus in printer control system and recording medium recorded with control program thereof
US8553272B2 (en) Image processing apparatus, image processing method, program therefor, and medium storing program
JP2008262543A (en) Discontinuous transfer of pdf data for pdf direct printing
JP5273420B1 (en) Print control apparatus, image forming system, and program
JP2007156613A (en) Drawing controller, drawing control method, storage medium and program
JP2009187553A (en) Method for printing text-only content of pdf document
JP2010026895A (en) Information processor, image forming apparatus, and program
US20030076519A1 (en) Spool file modifying device
US8619284B2 (en) Method and apparatus for including converted drawing commands in a print data file
US9626131B2 (en) Print data processing method, print data processing apparatus, and storage medium for processing print data according to print setting information in the print data
JP2011175629A (en) System and method for rendering of printable data
JP2009003832A (en) Printing system, printing control device, printing control method, printing control program, and recording medium recording of the program
JP4770609B2 (en) PRINT CONTROL DEVICE, DRIVER PROGRAM, AND RECORDING MEDIUM CONTAINING THE PROGRAM
JP2009003833A (en) Printing system, printing device, printing control device, printing control program, and recording medium recording of the program
EP2284689B1 (en) PDL data processing device
JP2007334720A (en) Data processor, printing controller, printing system, data processing method, data processing program and recording medium having the program recorded thereon
JP2009269179A (en) Printer, program and recording medium
US20110261379A1 (en) System for processing pdf elements
US20110261392A1 (en) Method for processing pdf elements
EP2293180B1 (en) PDL data processing device and PDL data creating device
JP2010181999A (en) Printing system, printer, and print control program
JP5277771B2 (en) Image forming apparatus, print control program, and recording medium recording the program
JP2008287440A (en) Image processor and program
JP2009005215A (en) Image processing apparatus, image processing method, image processing program, and recording medium recording the program
JP3655219B2 (en) Print processing device

Legal Events

Date Code Title Description
A300 Withdrawal of application because of no request for examination

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 20100907