JP2006277272A - Printing instruction generating device, printer, and printing instruction generating method - Google Patents

Printing instruction generating device, printer, and printing instruction generating method Download PDF

Info

Publication number
JP2006277272A
JP2006277272A JP2005094804A JP2005094804A JP2006277272A JP 2006277272 A JP2006277272 A JP 2006277272A JP 2005094804 A JP2005094804 A JP 2005094804A JP 2005094804 A JP2005094804 A JP 2005094804A JP 2006277272 A JP2006277272 A JP 2006277272A
Authority
JP
Japan
Prior art keywords
print
page
print instruction
print request
instruction value
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
JP2005094804A
Other languages
Japanese (ja)
Inventor
Yoshinao Kitahara
義奈朗 北原
Koji Nakao
浩二 中尾
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 JP2005094804A priority Critical patent/JP2006277272A/en
Publication of JP2006277272A publication Critical patent/JP2006277272A/en
Withdrawn legal-status Critical Current

Links

Images

Landscapes

  • Accessory Devices And Overall Control Thereof (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To suppress increase of time to be used for reading and interpreting a printing request when one printing request includes a plurality of by-page printing request information. <P>SOLUTION: A specifying means 24 of this printing instruction generating device reads all by-page printing request information in a lump from a printing request 31 in which a plurality of by-page printing request information are described corresponding to a plurality of pages and specifies a printing instruction value showing printing contents in each page. A printing instruction value storage means 25 stores the printing instruction value specified by the specifying means 24 in coordination with the page. A generating means 24 reads the printing instruction value stored in the printing instruction value storage means 25 for every page to generate a printing instruction for every page. <P>COPYRIGHT: (C)2007,JPO&INPIT

Description

本発明は、印刷指示生成装置、印刷装置および印刷指示生成方法に関する。   The present invention relates to a print instruction generation apparatus, a printing apparatus, and a print instruction generation method.

非特許文献1は、ダイレクト印刷システムを開示する。ダイレクト印刷システムでは、デジタルスチルカメラとプリンタとを、パーソナルコンピュータを介さずに直接に接続する。デジタルスチルカメラは、それに格納される画像ファイルの印刷要求をプリンタへ送信する。プリンタは、印刷要求を解釈し、その印刷要求において印刷が要求された画像ファイルをデジタルスチルカメラから取得し、その画像ファイルの画像を印刷する。   Non-Patent Document 1 discloses a direct printing system. In the direct printing system, a digital still camera and a printer are directly connected without using a personal computer. The digital still camera transmits a print request for the image file stored in the digital still camera to the printer. The printer interprets the print request, acquires the image file requested to be printed in the print request from the digital still camera, and prints the image of the image file.

「White Paper of CIPA DC−001−2003 Digital Photo Solutions for Imaging Devices(Japanese)」Camera&Imaging Products Association、2003年2月3日。“White Paper of CIPA DC-001-2003 Digital Photo Solutions for Imaging Devices (Japan)” Camera & Imaging Products Association, February 3, 2003.

上述のダイレクト印刷システムにおいて、デジタルスチルカメラは、1つの印刷要求に複数のページ別印刷要求情報を記述することで、複数のページへの印刷を要求することができる。このような複数のページへの印刷要求を受信した場合、プリンタは、各ページへの印刷を実行する度に、デジタルスチルカメラから受信した印刷要求を読み込んで、解釈しなければならない。   In the direct printing system described above, the digital still camera can request printing on a plurality of pages by describing a plurality of page-specific print request information in one print request. When such a print request for a plurality of pages is received, the printer must read and interpret the print request received from the digital still camera each time printing is performed on each page.

また、デジタルスチルカメラが1つの印刷要求に複数のページへの印刷要求情報(1ページ分の印刷内容を示す情報)を含めた場合、その印刷要求の情報量は、1枚のページへの印刷を要求する場合の印刷要求に比べて多くなる。   In addition, when the digital still camera includes print request information for multiple pages (information indicating print contents for one page) in one print request, the information amount of the print request is the amount of printing on one page. This is larger than the print request in the case of requesting.

その結果、プリンタは、各ページへの印刷を実行する度に何度も、この情報量が多い印刷要求を読み込んで構文解析などして解釈しなければならない。このプリンタによる印刷要求の読込および解釈に使用される時間は、長くなってしまう。   As a result, the printer has to read a print request with a large amount of information and interpret it by parsing it each time printing is performed on each page. The time used for reading and interpreting the print request by the printer becomes long.

本発明は、1つの印刷要求に複数のページ別印刷要求情報が含まれている場合における、印刷要求の読込および解釈に使用される時間の増加を抑制する印刷指示生成装置、印刷装置および印刷指示生成方法を得ることを目的とする。   The present invention relates to a print instruction generation apparatus, a printing apparatus, and a print instruction that suppress an increase in time used for reading and interpreting a print request when a single print request includes print request information for each page. The purpose is to obtain a generation method.

本発明に係る印刷指示生成装置は、複数のページに対応する複数のページ別印刷要求情報が記述された印刷要求からすべてのページ別印刷要求情報をまとめて読み込んで、各ページの印刷内容を示す印刷指示値を特定する特定手段と、特定手段により特定された印刷指示値をページに関連付けて記憶する印刷指示値記憶手段と、印刷指示値記憶手段に記憶される印刷指示値をページ毎に読み込んで、各ページの印刷指示を生成する生成手段と、を有するものである。   The print instruction generation apparatus according to the present invention reads all print request information for each page from a print request in which a plurality of print request information for each page corresponding to a plurality of pages is described, and indicates the print contents of each page A specifying means for specifying a print instruction value, a print instruction value storage means for storing the print instruction value specified by the specifying means in association with a page, and a print instruction value stored in the print instruction value storage means for each page And generating means for generating a print instruction for each page.

この構成を採用すれば、特定手段は、生成手段による印刷指示のページ毎の生成処理に制限されることなく、印刷要求に記述される複数のページ別印刷要求情報を読み込んで、それぞれのページ別印刷要求情報に対応する印刷指示値を特定することができる。その結果、すべてのページに関するページ別印刷要求情報から印刷指示値が一括して得られるため、繰り返して印刷要求にアクセスする必要がなくなり、複数のページ別印刷要求情報が1つの印刷要求に含まれている場合における、印刷要求の読込および解釈に使用される時間の増加を抑制することができる。   If this configuration is adopted, the specifying unit is not limited to the generation processing for each page of the print instruction by the generation unit, and reads a plurality of print request information for each page described in the print request, and determines each page. The print instruction value corresponding to the print request information can be specified. As a result, print instruction values for all pages can be obtained collectively from the print request information for each page, so there is no need to repeatedly access the print request, and multiple print request information for each page is included in one print request. In this case, an increase in time used for reading and interpreting the print request can be suppressed.

本発明に係る印刷指示生成装置は、上述した発明の構成に加えて、印刷要求が、所定の構文規則に基づくテキストデータであり、特定手段が、テキストデータである印刷要求をまとめて構文解析して、すべてのページについて、印刷内容を示す所定の項目に対応する印刷指示値を抽出し、印刷指示値記憶手段が、所定の項目に対応する印刷指示値を、構文解析なしで読み出せる状態のデータとして記憶するものである。   In the print instruction generation device according to the present invention, in addition to the configuration of the above-described invention, the print request is text data based on a predetermined syntax rule, and the specifying unit collectively parses the print request that is text data. For all pages, the print instruction value corresponding to the predetermined item indicating the print content is extracted, and the print instruction value storage means can read the print instruction value corresponding to the predetermined item without parsing. It is stored as data.

この構成を採用すれば、所定の構文規則に基づくテキストデータで記述された印刷要求をまとめて構文解析し、それ以降における構文解析をしないようにすることができる。   By adopting this configuration, it is possible to collectively parse print requests described in text data based on a predetermined syntax rule, and to prevent subsequent syntax analysis.

本発明に係る印刷指示生成装置は、上述した発明の各構成に加えて、生成手段が、特定手段によるすべてのページ別印刷要求情報に対応する印刷指示値の特定が終了してから、印刷指示値記憶手段からの印刷指示値の読込を開始するものである。   In addition to the components of the above-described invention, the print instruction generation apparatus according to the present invention includes a print instruction after the generation unit finishes specifying the print instruction value corresponding to all the print request information for each page by the specifying unit. Reading of the print instruction value from the value storage means is started.

この構成を採用すれば、特定手段による処理が完了してから、生成手段による処理が開始されるため、これらの処理の間での同期処理などが不要となる。また、生成手段は、特定手段による処理後に、印刷指示値記憶手段から複数のページの印刷指示値を読み込んで複数の印刷指示を連続的に生成することができる。   If this configuration is adopted, since the processing by the generation unit is started after the processing by the specifying unit is completed, the synchronization processing between these processings becomes unnecessary. The generation unit can read the print instruction values of a plurality of pages from the print instruction value storage unit and continuously generate a plurality of print instructions after the processing by the specifying unit.

本発明に係る印刷指示生成装置は、上述した発明の各構成に加えて、特定手段が、印刷要求において複数のページ別印刷要求情報とともに記述され、複数のページの印刷に共通に利用される共通印刷要求情報を読み込んで、その共通印刷要求情報に対応する印刷指示値を特定し、印刷指示値記憶手段が、特定手段により共通印刷要求情報に基づいて特定された印刷指示値を記憶し、生成手段が、ページ毎に、ページに関連付けられた印刷指示値とともに共通印刷要求情報から特定された印刷指示値を読み込んで、各ページの印刷指示を生成するものである。   In the print instruction generation apparatus according to the present invention, in addition to each configuration of the above-described invention, the specifying unit is described together with a plurality of print request information for each page in a print request, and is commonly used for printing a plurality of pages. Read the print request information, specify the print instruction value corresponding to the common print request information, and the print instruction value storage unit stores the print instruction value specified by the specifying unit based on the common print request information The means reads, for each page, the print instruction value specified from the common print request information together with the print instruction value associated with the page, and generates a print instruction for each page.

この構成を採用すれば、特定手段が共通印刷要求情報に対応する印刷指示値を一度特定すれば、生成手段は、その印刷指示値をページ毎に読み込んで複数のページの印刷指示に利用することができる。したがって、1ページ毎に、共通印刷要求情報を読み出す必要がなくなり、印刷要求の読込および解釈に使用される時間を抑制することができる。   If this configuration is adopted, once the specifying unit specifies the print instruction value corresponding to the common print request information, the generation unit reads the print instruction value for each page and uses it for a print instruction for a plurality of pages. Can do. Therefore, it is not necessary to read the common print request information for each page, and the time used for reading and interpreting the print request can be suppressed.

本発明に係る印刷指示生成装置は、上述した発明の各構成に加えて、生成手段が、印刷指示に基づいて1ページ毎に印刷処理を実行する印刷実行手段からの要求に対応して、2ページ目以降の印刷指示を生成するものである。   In addition to the components of the above-described invention, the print instruction generation apparatus according to the present invention is configured so that the generation unit corresponds to a request from a print execution unit that executes print processing for each page based on the print instruction. A print instruction for the page and subsequent pages is generated.

この構成を採用すれば、印刷指示に基づいて印刷処理を実行する印刷実行手段として、1ページ毎に印刷指示を処理するものを採用することができる。   If this configuration is adopted, it is possible to employ a print execution means for executing a print process based on a print instruction, which processes the print instruction for each page.

本発明に係る印刷装置は、上述した発明に係る各構成の印刷指示生成装置と、印刷指示生成装置により生成された印刷指示に基づいてページ毎に印刷処理を実行する印刷実行手段と、を有するものである。   A printing apparatus according to the present invention includes: a print instruction generation apparatus having each configuration according to the above-described invention; and a print execution unit that executes print processing for each page based on the print instruction generated by the print instruction generation apparatus. Is.

この構成を採用すれば、印刷指示生成装置による、所定の記憶手段からの印刷要求の読込および解釈に使用される時間の増加を抑制し、効率よく印刷を実行することができる。   By adopting this configuration, it is possible to suppress an increase in time used for reading and interpreting a print request from a predetermined storage unit by the print instruction generation device, and to execute printing efficiently.

本発明に係る印刷指示生成方法は、複数のページに対応する複数のページ別印刷要求情報が記述された印刷要求からすべてのページ別印刷要求情報をまとめて読み込んで、各ページの印刷内容を示す印刷指示値を特定するステップと、特定された印刷指示値をページに関連付けて印刷指示値記憶手段に記憶させるステップと、印刷指示値記憶手段から印刷指示値をページ毎に読み込んで、各ページの印刷指示を生成するステップと、を有するものである。   The print instruction generation method according to the present invention reads all print request information for each page from a print request in which a plurality of print request information for each page corresponding to a plurality of pages is described, and indicates the print contents of each page. A step of specifying a print instruction value; a step of associating the specified print instruction value with a page and storing the print instruction value in the print instruction value storage unit; and reading the print instruction value from the print instruction value storage unit for each page; Generating a print instruction.

この方法を採用すれば、ページ別印刷要求情報に基づく印刷指示値の特定処理は、印刷指示のページ毎の生成処理に制限されることなく、印刷要求に記述される複数のページ別印刷要求情報を読み込んで、それぞれのページ別印刷要求情報に対応する印刷指示値を特定することができる。その結果、すべてのページに関するページ別印刷要求情報から印刷指示値が一括して得られるため、繰り返して印刷要求にアクセスする必要がなくなり、複数のページ別印刷要求情報が1つの印刷要求に含まれている場合における、印刷要求の読込および解釈に使用される時間の増加を抑制することができる。   If this method is adopted, the print instruction value specifying process based on the print request information for each page is not limited to the generation process for each page of the print instruction, and a plurality of print request information for each page described in the print request. The print instruction value corresponding to each page-specific print request information can be specified. As a result, print instruction values for all pages can be obtained collectively from the print request information for each page, so there is no need to repeatedly access the print request, and multiple print request information for each page is included in one print request. In this case, an increase in time used for reading and interpreting the print request can be suppressed.

以下、本発明の実施の形態に係る印刷指示生成装置、印刷装置および印刷指示生成方法を、図面に基づいて説明する。印刷装置は、プリンタを例として説明する。印刷指示生成装置は、プリンタの一部として説明する。印刷指示生成方法は、プリンタの動作の一部として説明する。   Hereinafter, a printing instruction generation device, a printing apparatus, and a printing instruction generation method according to an embodiment of the present invention will be described with reference to the drawings. The printing apparatus will be described using a printer as an example. The print instruction generation device will be described as a part of the printer. The print instruction generation method will be described as part of the operation of the printer.

図1は、本発明の実施の形態に係る印刷装置としてのプリンタ1およびそれに接続されるDSC(Digital Still Camera)2を示す図である。DSC2とプリンタ1とは、USBケーブル3にて接続される。このようにDSC2とプリンタ1とを直接に接続するシステムは、コンピュータを介さずに印刷をするダイレクト印刷システムの一種である。なお、ダイレクト印刷システムにおいて、DSC2とプリンタ1とは、USBケーブル3以外のたとえばプリンタ専用ケーブル、光ケーブルなどの他のケーブルや、無線通信回線などにより接続されていてもよい。   FIG. 1 is a diagram showing a printer 1 as a printing apparatus according to an embodiment of the present invention and a DSC (Digital Still Camera) 2 connected thereto. The DSC 2 and the printer 1 are connected by a USB cable 3. The system that directly connects the DSC 2 and the printer 1 as described above is a type of direct printing system that performs printing without using a computer. In the direct printing system, the DSC 2 and the printer 1 may be connected to each other by a cable other than the USB cable 3 such as a printer-dedicated cable or an optical cable, a wireless communication line, or the like.

DSC2は、半導体メモリ11と、通信部12と、液晶モニタ13と、図示外の操作ボタンを有する入力デバイス14と、印刷要求部15と、を有する。   The DSC 2 includes a semiconductor memory 11, a communication unit 12, a liquid crystal monitor 13, an input device 14 having operation buttons (not shown), and a print request unit 15.

半導体メモリ11は、フラッシュメモリ、その他のデータ記録方式のメモリなどである。カード形状の半導体メモリ11は、DSC2から挿抜可能である。半導体メモリ11は、複数のEXIF(EXchangeable Image File format)画像ファイル16を記憶する。EXIF画像ファイル16は、たとえばこのDSC2により撮像された画像の画像データを有する。EXIF画像ファイル16の画像データは、JPEG(Joint Photographic Experts Group)形式で圧縮された画像データである。複数のEXIF画像ファイル16は、互いに異なるファイル名を有する。   The semiconductor memory 11 is a flash memory or other data recording type memory. The card-shaped semiconductor memory 11 can be inserted and removed from the DSC 2. The semiconductor memory 11 stores a plurality of EXIF (EXchangeable Image File format) image files 16. The EXIF image file 16 has image data of an image captured by the DSC 2, for example. The image data of the EXIF image file 16 is image data compressed in JPEG (Joint Photographic Experts Group) format. The plurality of EXIF image files 16 have different file names.

DSC2の通信部12は、図示外のUSBコネクタを有する。USBコネクタには、USBケーブル3が接続される。通信部12は、また、たとえば、図示外のUSB通信I/F(InterFace)、USB_SIC(USBスティルイメージクラス)通信部、PTP(Picture Transfer Protocol)通信部などを有する。USB通信I/Fは、USBコネクタから信号が入力されるとその信号から受信データを抽出し、USB_SIC通信部へ供給する。USB_SIC通信部にファイルのデータの送信を指示する受信データが供給されると、PTP通信部は、半導体メモリ11からその指示されたファイルのデータを読み込み、USB_SIC通信部へ供給する。USB_SIC通信部にデータが供給されると、USB通信I/Fは、その送信データに基づく信号をUSBコネクタへ出力する。これにより、DSC2の通信部12は、USBケーブル3を介して接続される他の機器(ここではプリンタ1)との間で、データを送受する。   The communication unit 12 of the DSC 2 has a USB connector not shown. A USB cable 3 is connected to the USB connector. The communication unit 12 also includes, for example, a USB communication I / F (InterFace), a USB_SIC (USB Still Image Class) communication unit, a PTP (Picture Transfer Protocol) communication unit, etc., not shown. When a signal is input from the USB connector, the USB communication I / F extracts received data from the signal and supplies it to the USB_SIC communication unit. When the received data instructing the USB_SIC communication unit to transmit file data is supplied, the PTP communication unit reads the instructed file data from the semiconductor memory 11 and supplies it to the USB_SIC communication unit. When data is supplied to the USB_SIC communication unit, the USB communication I / F outputs a signal based on the transmission data to the USB connector. As a result, the communication unit 12 of the DSC 2 transmits / receives data to / from another device (in this case, the printer 1) connected via the USB cable 3.

印刷要求部15は、印刷する画像およびその印刷条件を選択し、その画像をその印刷条件でプリンタ1に印刷させるための印刷要求としての印刷要求スクリプトを生成し、通信部12へ供給する。印刷要求部15が選択する印刷条件としては、たとえば媒体のサイズ、種類、レイアウトなどである。   The print request unit 15 selects an image to be printed and its print condition, generates a print request script as a print request for causing the printer 1 to print the image with the print condition, and supplies the print request script to the communication unit 12. Examples of printing conditions selected by the print request unit 15 include the size, type, and layout of the medium.

図2は、印刷要求部15が生成する印刷要求スクリプト31を示す図である。この印刷要求スクリプト31は、XML(eXtensible Markup Language)で記述されるテキストデータを有する。印刷要求スクリプト31には、印刷要求部15が選択した印刷条件に対応する印刷要求値32と、印刷要求部15が選択した画像に対応するファイルID33とが、テキストデータにより記述される。ファイルID33は、印刷要求部15が選択した画像の画像データを有するEXIF画像ファイル16のファイル名と1対1に対応付けて生成される。印刷要求スクリプト31において、各印刷要求値32および各ファイルID33は、所定のタグに挟まれて記述される。なお、ファイルID33の替わりに、印刷要求部15が選択した画像の画像データを有するEXIF画像ファイル16のファイル名と1対1に対応付けて生成されるURL(Uniform Resource Locator)などを使用してもよい。   FIG. 2 is a diagram illustrating a print request script 31 generated by the print request unit 15. The print request script 31 has text data described in XML (extensible Markup Language). In the print request script 31, a print request value 32 corresponding to the print condition selected by the print request unit 15 and a file ID 33 corresponding to the image selected by the print request unit 15 are described by text data. The file ID 33 is generated in one-to-one correspondence with the file name of the EXIF image file 16 having the image data of the image selected by the print request unit 15. In the print request script 31, each print request value 32 and each file ID 33 are described by being sandwiched between predetermined tags. Note that instead of the file ID 33, a URL (Uniform Resource Locator) generated in a one-to-one correspondence with the file name of the EXIF image file 16 having the image data of the image selected by the print request unit 15 is used. Also good.

図2の印刷要求スクリプト31は、3つの印刷要求値32を有する。5行目の、印刷する用紙のサイズをA4に指定する印刷要求値32である「A4」の文字列と、6行目の、用紙の種類を普通紙に指定する印刷要求値32である「Plain」の文字列と、7行目の、印刷する画像の種類を指定する印刷要求値32である「Exif/JPEG」の文字列と、を有する。図2の印刷要求スクリプト31において、この3つの印刷要求値32は、その印刷要求スクリプト31に基づく全ページの印刷において、共通に利用されるものである。   The print request script 31 in FIG. 2 has three print request values 32. The character string “A4”, which is the print request value 32 that designates the size of the paper to be printed as A4, on the fifth line, and the print request value 32 that designates the paper type as plain paper on the sixth line “ A character string “Plain” and a character string “Exif / JPEG” that is a print request value 32 for designating the type of image to be printed on the seventh line. In the print request script 31 of FIG. 2, the three print request values 32 are commonly used in printing all pages based on the print request script 31.

「A4」の文字列は、その文字列が印刷を要求する用紙サイズの値であることを示す媒体サイズタグ「<Size>」および「</Size>」タグに挟まれる。「Plain」の文字列は、その文字列が印刷を要求する用紙の種類の値であることを示す媒体タイプタグ「<Type>」および「</Type>」に挟まれる。「Exif/JPEG」の文字列は、それが印刷を要求する画像のファイルの情報の値であることを示すファイル情報タグ「<File>」および「</File>」に挟まれる。また、この3組の印刷要求値32およびタグは、それらがジョブ全体に関する印刷要求であることを示すジョブタグ「<Job>」および「</Job>」に挟まれる。なお、1組のジョブタグおよびそれに挟まれる部分が、全ページに共通の印刷条件(印刷内容)を指定する共通印刷要求情報となる。   The character string “A4” is sandwiched between medium size tags “<Size>” and “</ Size>” tags indicating that the character string is a paper size value for which printing is requested. The character string “Plain” is sandwiched between medium type tags “<Type>” and “</ Type>” indicating that the character string is the value of the type of paper for which printing is requested. The character string “Exif / JPEG” is sandwiched between file information tags “<File>” and “</ File>” indicating that this is the information value of the file of the image for which printing is requested. The three sets of print request values 32 and tags are sandwiched between job tags “<Job>” and “</ Job>” indicating that these are print requests related to the entire job. Note that a set of job tags and a portion sandwiched between them constitute common print request information for designating print conditions (print contents) common to all pages.

図2の印刷要求スクリプト31では、3つのファイルID33を有する。10行目の「00000001」と、13行目の「00000002」と、16行目の「00000003」との、3つのファイルID33の文字列を有する。   The print request script 31 in FIG. 2 has three file IDs 33. It has three character strings of file ID 33, “00000001” on the 10th line, “00000002” on the 13th line, and “00000003” on the 16th line.

10行目に示すように、文字列「00000001」は、それがファイルID33であることを示すファイルIDタグ「<ImageFileID>」および「</ImageFileID>」に挟まれる。このファイルID33の文字列およびファイルIDタグは、さらに、ページの開始を示すページ開始タグ「<Page>」34(9行目)と、ページの終了を示すページ終了タグ「</Page>」35(11行目)に挟まれる。ページ開始タグ34およびページ終了タグ35は、ページ区切タグである。ファイルID33の文字列「00000002」および「00000003」も、同様にファイルIDタグおよびページ区切タグに挟まれる。なお、ページ開始タグ34、ページ終了タグ35、およびそれらに挟まれる部分が、1ページ分の印刷条件(印刷内容)を指定するページ別印刷要求情報となる。したがって、図2の印刷要求スクリプト31には、3ページ分のページ別印刷要求情報が含まれる。   As shown in the tenth line, the character string “00000001” is sandwiched between file ID tags “<ImageFileID>” and “</ ImageFileID>” indicating that it is a file ID33. The character string of the file ID 33 and the file ID tag further include a page start tag “<Page>” 34 (line 9) indicating the start of the page and a page end tag “</ Page>” 35 indicating the end of the page. (11th line). The page start tag 34 and the page end tag 35 are page break tags. Similarly, the character strings “00000002” and “00000003” of the file ID 33 are also sandwiched between the file ID tag and the page break tag. Note that the page start tag 34, the page end tag 35, and the portion sandwiched between them serve as print request information for each page that specifies the print conditions (print contents) for one page. Therefore, the print request script 31 of FIG. 2 includes print request information for each page for three pages.

図2の印刷要求スクリプト31では、上述した3つの印刷要求値32の文字列、3つのファイルID33の文字列およびそれらに付加される各種のタグは、さらに、そのスクリプトが印刷要求のリクエストであることを示す印刷要求スクリプトタグ「<Request><PrintJob>」(2〜3行目)および「</PrintJob></Request>」(18〜19行目)に挟まれる。スクリプトの先頭(1行目)には、そのスクリプトがXMLのバージョン1.0に準拠して記述されたものであることを示すバージョンタグ「<?xml version=”1.0”?>」が記述される。   In the print request script 31 of FIG. 2, the character string of the above three print request values 32, the character string of the three file IDs 33, and various tags added thereto are further requests for the print request. Print request script tags “<Request> <PrintJob>” (2nd to 3rd lines) and “</ PrintJob> </ Request>” (18th to 19th lines). At the top (first line) of the script, there is a version tag “<? Xml version =“ 1.0 ”?>” Indicating that the script is described in conformity with XML version 1.0. Described.

この図2の印刷要求スクリプト31は、ファイルID「00000001」に対応するEXIF画像ファイル16の画像をA4普通紙に印刷し、ファイルID「00000002」に対応するEXIF画像ファイル16の画像をA4普通紙に印刷し、ファイルID「00000003」に対応するEXIF画像ファイル16の画像をA4普通紙に印刷することを要求するものである。   The print request script 31 in FIG. 2 prints the image of the EXIF image file 16 corresponding to the file ID “00000001” on A4 plain paper, and the image of the EXIF image file 16 corresponding to the file ID “00000002” to A4 plain paper. And the image of the EXIF image file 16 corresponding to the file ID “00000003” is requested to be printed on A4 plain paper.

図1に戻り、プリンタ1は、通信部21と、印刷要求記憶手段としてのスクリプトメモリ22と、デフォルト設定メモリ23と、特定手段および生成手段としての印刷要求解釈部24と、印刷指示値記憶手段としての印刷指示バッファメモリ25と、印刷実行手段の一部としての画像処理部26と、印刷実行手段の一部としての印刷実行部27と、を有する。   Returning to FIG. 1, the printer 1 includes a communication unit 21, a script memory 22 as a print request storage unit, a default setting memory 23, a print request interpretation unit 24 as a specifying unit and a generation unit, and a print instruction value storage unit. A print instruction buffer memory 25, an image processing unit 26 as a part of the print execution unit, and a print execution unit 27 as a part of the print execution unit.

画像処理部26には、印刷要求解釈部24から印刷指示が1ページずつ供給される。画像処理部26は、印刷指示が供給されると、その印刷指示に基づく印刷制御データを生成し、印刷実行部27へ供給する。画像処理部26は、印刷制御データを印刷実行部27へ供給した後、次の印刷指示を、印刷要求解釈部24に要求する。   The image processing unit 26 is supplied with a print instruction page by page from the print request interpretation unit 24. When the print instruction is supplied, the image processing unit 26 generates print control data based on the print instruction and supplies the print control data to the print execution unit 27. After supplying the print control data to the print execution unit 27, the image processing unit 26 requests the print request interpretation unit 24 for the next print instruction.

画像処理部26への1ページ毎の印刷指示では、画像処理部26が1ページ分の印刷をするために必要とされる、すべての設定項目の印刷指示値が指示される。また、印刷する画像を特定する印刷指示値が指示される。このような設定項目の数は、プリンタ1の機能などに応じて異なるものであるが、10個程度あるいはそれ以上である。設定項目としては、たとえば、印刷する媒体4のサイズ(A4、B5、はがき、L版、ロール紙など)、印刷する媒体4の種類(普通紙、光沢紙、マット紙など)、媒体4の画像を印刷する範囲(縁有り、縁無し、センタリングなど)、媒体4に画像の印刷する向き(縦、横など)、画像の印刷の仕方(白黒、カラー、拡大、縮小など)、画質補正処理(たとえばAPF(Auto Photo Fine)処理など)の要否、読み込んだ画像データのデコード処理の要否などがある。   In the print instruction for each page to the image processing unit 26, print instruction values for all setting items necessary for the image processing unit 26 to print one page are instructed. In addition, a print instruction value for specifying an image to be printed is instructed. The number of setting items varies depending on the function of the printer 1 and the like, but is about 10 or more. Setting items include, for example, the size of the medium 4 to be printed (A4, B5, postcard, L plate, roll paper, etc.), the type of medium 4 to be printed (plain paper, glossy paper, matte paper, etc.), and the image of the medium 4 Printing range (with borders, no borders, centering, etc.), orientation of printing images on the medium 4 (vertical, horizontal, etc.), image printing methods (black and white, color, enlargement, reduction, etc.), image quality correction processing ( For example, there is necessity of APF (Auto Photo Fine) processing, etc., necessity of decoding processing of read image data, and the like.

印刷実行部27は、用紙などの媒体4を搬送する搬送機構28と、搬送機構28により搬送される媒体4に対してシアン、イエロー、マゼンタ、ブラックなどの色のインクを吐出するインク吐出機構29と、これらの機構の動作を制御する制御部30と、を有する。制御部30は、印刷制御データに基づいて、これらの機構の動作を制御する。印刷実行部27は、印刷制御データに基づき印刷を実行する。   The print execution unit 27 includes a transport mechanism 28 that transports the medium 4 such as paper, and an ink discharge mechanism 29 that discharges ink of colors such as cyan, yellow, magenta, and black to the medium 4 transported by the transport mechanism 28. And a control unit 30 for controlling the operation of these mechanisms. The control unit 30 controls the operation of these mechanisms based on the print control data. The print execution unit 27 executes printing based on the print control data.

プリンタ1の通信部21は、DSC2の通信部12と同様に、図示外のUSBコネクタ、USB通信I/F、USB_SIC通信部、PTP通信部などを有する。これにより、プリンタ1の通信部21は、USBケーブル3を介して接続される他の機器(ここではDSC2)との間で、データを送受する。   Similar to the communication unit 12 of the DSC 2, the communication unit 21 of the printer 1 includes a USB connector, a USB communication I / F, a USB_SIC communication unit, a PTP communication unit, and the like not shown. As a result, the communication unit 21 of the printer 1 transmits and receives data to and from another device (DSC 2 here) connected via the USB cable 3.

スクリプトメモリ22は、通信部21が受信したスクリプトを記憶する。スクリプトメモリ22には、たとえば図2に示す印刷要求スクリプト31などが保存される。印刷要求スクリプト31は、テキストデータであり、その先頭のテキストデータから順番に、アドレスと対応付けて格納される。   The script memory 22 stores the script received by the communication unit 21. In the script memory 22, for example, a print request script 31 shown in FIG. The print request script 31 is text data, and is stored in association with addresses in order from the head text data.

デフォルト設定メモリ23は、画像処理部26が1ページ分の印刷をするために必要とされるすべての設定項目のデフォルト値を記憶する。デフォルト設定メモリ23に記憶される設定項目のデフォルト値は、1つに限られない。また、設定項目のデフォルト値は、プリンタ1が有する機能などに応じて異なる。たとえば、デフォルト設定メモリ23は、L版の光沢紙に印刷する場合にはAPF処理のデフォルト値として「要」を記憶し、A4の普通紙に印刷する場合にはAPF処理のデフォルト値として「不要」を記憶する。   The default setting memory 23 stores default values of all setting items required for the image processing unit 26 to print one page. The default value of the setting item stored in the default setting memory 23 is not limited to one. Further, the default values of the setting items vary depending on the function of the printer 1 and the like. For example, the default setting memory 23 stores “Necessary” as the default value of the APF process when printing on L glossy paper, and “Unnecessary” as the default value of the APF process when printing on A4 plain paper. Is memorized.

なお、デフォルト設定メモリ23に記憶されるデフォルト値は、プリンタ1の出荷時に設定されたものであっても、プリンタ1の出荷後にユーザにより設定されたものであってもよい。ユーザは、たとえばプリンタ1に設けられた図示外の入力キーを操作することでデフォルト値を設定したり、プリンタ1に図示外のコンピュータなどを接続し、そのコンピュータのユーザインタフェースを使用することでデフォルト値を設定したりすればよい。   Note that the default value stored in the default setting memory 23 may be set when the printer 1 is shipped, or may be set by the user after the printer 1 is shipped. For example, the user can set a default value by operating an input key (not shown) provided in the printer 1 or connect a computer (not shown) to the printer 1 and use the user interface of the computer. You can set a value.

印刷要求解釈部24は、スクリプトメモリ22に記憶される印刷要求スクリプト31を構文解析などにより解釈し、必要に応じてデフォルト設定メモリ23を参照し、その印刷要求スクリプト31の記述に基づいて印刷内容に関する各項目の印刷指示値を特定する。印刷要求解釈部24は、特定した印刷指示値を、印刷指示バッファメモリ25に保存する。また、印刷要求解釈部24は、印刷指示バッファメモリ25に保存した印刷指示値を読み込んで印刷指示を生成し、画像処理部26へ供給する。   The print request interpreter 24 interprets the print request script 31 stored in the script memory 22 by syntax analysis or the like, refers to the default setting memory 23 as necessary, and prints content based on the description of the print request script 31. Specify the print instruction value for each item. The print request interpretation unit 24 stores the specified print instruction value in the print instruction buffer memory 25. The print request interpreter 24 reads the print instruction value stored in the print instruction buffer memory 25 to generate a print instruction, and supplies the print instruction to the image processing unit 26.

印刷指示バッファメモリ25は、印刷指示値を、印刷要求スクリプト31のページ毎に分類して記憶する。印刷指示バッファメモリ25は、印刷指示値を、構文解析せずに読み出せる状態で記憶する。特に、印刷指示値が数値である場合には、印刷指示バッファメモリ25は、テキストデータではなく数値データとしてその印刷指示値を記憶する。印刷指示バッファメモリ25は、たとえば、プリンタ1が印刷要求スクリプト31に基づいて印刷することができる最大ページ数分の記憶領域を有するものであればよい。印刷指示バッファメモリ25は、また、たとえば、設定項目毎の複数の印刷指示値をページ毎に対応付ける構造体として、印刷指示値を記憶すればよい。   The print instruction buffer memory 25 classifies and stores the print instruction values for each page of the print request script 31. The print instruction buffer memory 25 stores the print instruction value in a state where it can be read without parsing. In particular, when the print instruction value is a numerical value, the print instruction buffer memory 25 stores the print instruction value as numerical data instead of text data. The print instruction buffer memory 25 only needs to have a storage area for the maximum number of pages that the printer 1 can print based on the print request script 31, for example. The print instruction buffer memory 25 may store the print instruction value as a structure that associates a plurality of print instruction values for each setting item with each page, for example.

次に、以上のような構成を有するダイレクト印刷システムの動作を説明する。   Next, the operation of the direct printing system having the above configuration will be described.

DSC2とプリンタ1がUSBケーブル3で接続されると、DSC2の通信部12とプリンタ1の通信部21とが通信を開始する。これにより、USBのSICに基づいてデータを転送するためのエンドポイントなどが生成され、DSC2の通信部12とプリンタ1の通信部21とは互いにデータを送受可能になる。   When the DSC 2 and the printer 1 are connected by the USB cable 3, the communication unit 12 of the DSC 2 and the communication unit 21 of the printer 1 start communication. Thereby, an endpoint for transferring data is generated based on the USB SIC, and the communication unit 12 of the DSC 2 and the communication unit 21 of the printer 1 can transmit and receive data to and from each other.

DSC2の印刷要求部15は、半導体メモリ11に記憶されているEXIF画像ファイル16の中から、印刷する画像のファイルを選択する。具体的には、印刷要求部15は、半導体メモリ11から、EXIF画像ファイル16のファイル名などのデータを読み込み、そのファイル名などを液晶モニタ13に表示させる。印刷要求部15は、ユーザの操作に対応して入力デバイス14が出力する入力データに基づいて、印刷対象のEXIF画像ファイル16を選択する。   The print request unit 15 of the DSC 2 selects an image file to be printed from the EXIF image files 16 stored in the semiconductor memory 11. Specifically, the print request unit 15 reads data such as the file name of the EXIF image file 16 from the semiconductor memory 11 and displays the file name on the liquid crystal monitor 13. The print request unit 15 selects an EXIF image file 16 to be printed based on input data output from the input device 14 in response to a user operation.

印刷する画像のファイル16を選択した後、印刷要求部15は、印刷条件を選択する。具体的には、印刷要求部15は、印刷条件の選択画面を液晶モニタ13に表示させる。印刷条件には、たとえばA4、L版などの印刷をする媒体4のサイズや、普通紙、光沢紙などの媒体4の種類、1up、2upなどの1枚の媒体4に印刷する画像のレイアウトなどがある。印刷要求部15は、ユーザの操作に対応して入力デバイス14が出力する入力データに基づいて、印刷条件を選択する。   After selecting the image file 16 to be printed, the print request unit 15 selects a print condition. Specifically, the print request unit 15 causes the liquid crystal monitor 13 to display a print condition selection screen. The printing conditions include, for example, the size of the medium 4 to be printed such as A4 and L plates, the type of the medium 4 such as plain paper and glossy paper, and the layout of the image to be printed on one medium 4 such as 1up and 2up. There is. The print request unit 15 selects a print condition based on input data output from the input device 14 in response to a user operation.

その後、印刷要求部15は、選択した画像を選択した印刷条件で印刷するための印刷要求スクリプト31を生成する。たとえば、3つのEXIF画像ファイル16の画像を、A4版の普通紙の全面に1つずつ印刷する場合、印刷要求部15は、図2に示すような印刷要求スクリプト31を生成する。印刷要求部15は、生成した印刷要求スクリプト31をDSC2の通信部12へ供給する。   Thereafter, the print request unit 15 generates a print request script 31 for printing the selected image under the selected print condition. For example, when printing the images of the three EXIF image files 16 one by one on the entire surface of A4 size plain paper, the print request unit 15 generates a print request script 31 as shown in FIG. The print request unit 15 supplies the generated print request script 31 to the communication unit 12 of the DSC 2.

DSC2の通信部12は、供給された印刷要求スクリプト31を、USBケーブル3を介してプリンタ1の通信部21へ送信する。通信部21は、受信した印刷要求スクリプト31をスクリプトメモリ22に保存する。印刷要求解釈部24は、印刷指示バッファメモリ25に印刷要求スクリプト31が保存されると、その解釈を実行する。   The communication unit 12 of the DSC 2 transmits the supplied print request script 31 to the communication unit 21 of the printer 1 via the USB cable 3. The communication unit 21 stores the received print request script 31 in the script memory 22. When the print request script 31 is stored in the print instruction buffer memory 25, the print request interpreter 24 interprets the print request script 31.

図3は、印刷要求解釈部24の動作を示すフローチャートである。図4は、図3中の、ページ毎の要求に基づく印刷指示値の設定ステップST2の詳細なフローチャートである。図5は、図3中の、ジョブ全体での要求に基づく印刷指示値の設定ステップST3の詳細なフローチャートである。   FIG. 3 is a flowchart showing the operation of the print request interpretation unit 24. FIG. 4 is a detailed flowchart of the print instruction value setting step ST2 based on the request for each page in FIG. FIG. 5 is a detailed flowchart of the print instruction value setting step ST3 based on the request for the entire job in FIG.

図3に示すように、印刷要求解釈部24は、まず、プリンタ1の通信部21が印刷要求スクリプト31を受信したか否かを判断する(ステップST1)。   As shown in FIG. 3, the print request interpretation unit 24 first determines whether or not the communication unit 21 of the printer 1 has received the print request script 31 (step ST1).

印刷要求スクリプト31を受信したと判断すると、印刷要求解釈部24は、すべてのページについてのスクリプト解析を開始する。具体的には、印刷要求解釈部24は、スクリプトメモリ22における印刷要求スクリプト31を読出し、一括して、ページ毎の要求に基づく印刷指示値を特定し、印刷指示バッファメモリ25に保存し(ステップST2)、また、ジョブ全体での要求に基づく印刷指示値を特定し、印刷指示バッファメモリ25に保存する(ステップST3)。   If it is determined that the print request script 31 has been received, the print request interpretation unit 24 starts script analysis for all pages. Specifically, the print request interpretation unit 24 reads the print request script 31 in the script memory 22, specifies the print instruction value based on the request for each page, and stores it in the print instruction buffer memory 25 (step ST2) Further, the print instruction value based on the request for the entire job is specified and stored in the print instruction buffer memory 25 (step ST3).

図4に示すように、ページ毎の要求に基づく印刷指示値の特定処理では、印刷要求解釈部24は、まず、アドレスポインタに、スクリプトメモリ22に記憶されている印刷要求スクリプト31のテキストデータの先頭位置の値(たとえば、そのアドレス)を代入する(ステップST11)。なお、アドレスポインタは、変数であり、印刷要求解釈部24の図示せぬ内部メモリ領域に保存される。   As shown in FIG. 4, in the print instruction value specifying process based on the request for each page, the print request interpreter 24 first stores the text data of the print request script 31 stored in the script memory 22 in the address pointer. A value (for example, the address) of the head position is substituted (step ST11). The address pointer is a variable and is stored in an internal memory area (not shown) of the print request interpreter 24.

その後、印刷要求解釈部24は、スクリプトメモリ22のアドレスポインタの値が示す位置からテキストデータを読み込み(ステップST12)、読み込んだテキストデータに基づいて、印刷要求スクリプト31の終わりに到達したか否かを判断する(ステップST13)。図2の印刷要求スクリプト31であれば、印刷要求解釈部24は、たとえば18行目の「</PrintJob>」を読み込んだことに基づいて、印刷要求スクリプト31が終了したと判断すればよい。そして、印刷要求スクリプト31の読み込みが終了したと判断した場合、印刷要求解釈部24は、ページ毎の要求に基づく印刷指示値の特定処理(図3のステップST2)を終了する。   Thereafter, the print request interpreter 24 reads the text data from the position indicated by the value of the address pointer in the script memory 22 (step ST12), and whether or not the end of the print request script 31 has been reached based on the read text data. Is determined (step ST13). In the case of the print request script 31 in FIG. 2, the print request interpretation unit 24 may determine that the print request script 31 has ended based on reading “</ PrintJob>” on the 18th line, for example. When it is determined that the reading of the print request script 31 has been completed, the print request interpretation unit 24 ends the print instruction value specifying process based on the request for each page (step ST2 in FIG. 3).

印刷要求スクリプト31の読み込みが終了していない場合、印刷要求解釈部24は、読み込んだテキストデータに基づいて、さらに、ページ開始タグ34を読み込んだか否かを判断する(ステップST14)。   If the reading of the print request script 31 has not been completed, the print request interpreting unit 24 further determines whether or not the page start tag 34 has been read based on the read text data (step ST14).

ページ開始タグ34を読み込んでいないと判断した場合、印刷要求解釈部24は、アドレスポインタの値を次の位置を示す値に更新する(ステップST15)。印刷要求解釈部24は、更新されたアドレスポインタの値が示す位置からテキストデータを読み込み(ステップST12)、読み込んだテキストデータに基づいて、印刷要求スクリプト31が終了したか否かの判断処理(ステップST13)と、ページ開始タグ34を読み込んだか否かの判断処理(ステップST14)とを実行する。なお、印刷要求スクリプト31からテキストデータを読み込む1回のデータ量は、1文字分、1行分などとされる。   If it is determined that the page start tag 34 has not been read, the print request interpreter 24 updates the value of the address pointer to a value indicating the next position (step ST15). The print request interpreter 24 reads the text data from the position indicated by the updated value of the address pointer (step ST12), and determines whether or not the print request script 31 is completed based on the read text data (step ST12). ST13) and a process for determining whether or not the page start tag 34 has been read (step ST14). Note that the amount of data that is read once from the print request script 31 is one character, one line, or the like.

印刷要求解釈部24は、ステップST13において印刷要求スクリプト31が終了したと判断するまで、あるいは、ステップST14においてページ開始タグ34を読み込んだと判断するまで、このステップST15,ST12,ST13およびST14によるループ処理を繰り返す。   The print request interpretation unit 24 loops through steps ST15, ST12, ST13 and ST14 until it is determined in step ST13 that the print request script 31 has been completed or until it is determined in step ST14 that the page start tag 34 has been read. Repeat the process.

印刷要求解釈部24は、ページ開始タグ34を読み込んだ場合、そのページのテキストデータを読み込む(ステップST16)。印刷要求解釈部24は、ページ終了タグ35を読み込むまでのテキストデータに基づいて、印刷指示値を特定し、特定した印刷指示値をページ毎に分けて印刷指示バッファメモリ25に保存する(ステップST17)。   When reading the page start tag 34, the print request interpreter 24 reads the text data of the page (step ST16). The print request interpreter 24 specifies the print instruction value based on the text data until the page end tag 35 is read, and stores the specified print instruction value for each page in the print instruction buffer memory 25 (step ST17). ).

印刷指示値を印刷指示バッファメモリ25に保存した後、印刷要求解釈部24は、アドレスポインタのアドレス値を次の位置を示す値に更新する(ステップST15)。また、印刷要求解釈部24は、更新されたアドレスポインタの値が示す位置からテキストデータを読み込み(ステップST12)、読み込んだテキストデータに基づいて、印刷要求スクリプト31が終了したか否かの判断処理(ステップST13)と、ページ開始タグ34を読み込んだか否かの判断処理(ステップST14)とを実行する。   After storing the print instruction value in the print instruction buffer memory 25, the print request interpretation unit 24 updates the address value of the address pointer to a value indicating the next position (step ST15). The print request interpretation unit 24 reads text data from the position indicated by the updated address pointer value (step ST12), and determines whether or not the print request script 31 has ended based on the read text data. (Step ST13) and a process for determining whether or not the page start tag 34 has been read (Step ST14) are executed.

以上のように、印刷要求解釈部24は、ページ毎のページ別印刷要求情報に基づく印刷指示値の特定(ステップST2)において、印刷要求スクリプト31をその先頭から順番に読み込む。印刷要求解釈部24は、ページ開始タグ34を読み込むと、ページ終了タグ35までのテキストデータに基づいて印刷指示値を選択し、印刷指示バッファメモリ35にページ毎に分けて保存する。印刷要求解釈部24は、印刷要求スクリプト31の末尾まで読み込むと、ページ毎の要求に基づく印刷指示値の設定処理を終了する。   As described above, the print request interpreter 24 reads the print request script 31 in order from the head in specifying the print instruction value based on the print request information for each page for each page (step ST2). When reading the page start tag 34, the print request interpretation unit 24 selects a print instruction value based on the text data up to the page end tag 35, and stores the print instruction value in the print instruction buffer memory 35 for each page. When the print request interpretation unit 24 has read the end of the print request script 31, the print request value setting process based on the request for each page ends.

図2の印刷要求スクリプト31は、9行目、12行目および15行目に、ページ開始タグ34を有する。この場合、印刷要求解釈部24は、まず、印刷要求スクリプト31の1行目から9行目まで続けて読み込み、9行目を読み込んだ時点で最初のページ開始タグ34を読み込んだと判断する。その後、印刷要求解釈部24は、11行目のページ終了タグ35までの最初の1ページ分のテキストデータ(最初のページのページ別印刷要求情報)を読み込み、10行目のファイルID「00000001」を、1ページ目の画像ファイルを指定する項目の印刷指示値として、印刷指示バッファメモリ25に保存する。   The print request script 31 in FIG. 2 has page start tags 34 on the 9th, 12th, and 15th lines. In this case, the print request interpretation unit 24 first reads from the first line to the ninth line of the print request script 31 and determines that the first page start tag 34 has been read when the ninth line is read. Thereafter, the print request interpretation unit 24 reads the first page of text data (print request information for each page of the first page) up to the page end tag 35 on the 11th line, and the file ID “00000001” on the 10th line. Is stored in the print instruction buffer memory 25 as a print instruction value of an item for designating the image file of the first page.

1ページ目の印刷指示値の選択が終了すると、印刷要求解釈部24は、その続きである12行目から印刷要求スクリプト31の読み込みを開始する。そして、印刷要求解釈部24は、12行目を読み込んだ時点で、2ページ目のページ開始タグ34を読み込んだと判断する。その後、印刷要求解釈部24は、14行目のページ終了タグ35までの1ページ分のテキストデータ(2ページ目のページ別印刷要求情報)を読み込み、13行目のファイルID「00000002」を、2ページ目の画像ファイルを指定する項目の印刷指示値として、印刷指示バッファメモリ25に保存する。   When the selection of the print instruction value for the first page is completed, the print request interpretation unit 24 starts reading the print request script 31 from the twelfth line. The print request interpretation unit 24 determines that the page start tag 34 of the second page has been read when the 12th line is read. Thereafter, the print request interpretation unit 24 reads the text data for one page up to the page end tag 35 on the 14th line (print request information for each page on the second page), and sets the file ID “00000002” on the 13th line to The print instruction value is stored in the print instruction buffer memory 25 as the print instruction value of the item for designating the image file of the second page.

2ページ目の印刷指示値の選択が終了すると、印刷要求解釈部24は、その続きである15行目から印刷要求スクリプト31の読み込みを開始する。そして、印刷要求解釈部24は、15行目を読み込んだ時点で、3ページ目のページ開始タグ34を読み込んだと判断する。その後、印刷要求解釈部24は、17行目のページ終了タグ35までの1ページ分のテキストデータ(3ページ目のページ別印刷要求情報)を読み込み、16行目のファイルID「00000003」を、3ページ目の画像ファイルを指定する項目の印刷指示値として、印刷指示バッファメモリ25に保存する。   When the selection of the print instruction value for the second page is completed, the print request interpretation unit 24 starts reading the print request script 31 from the 15th line that follows. The print request interpretation unit 24 determines that the page start tag 34 of the third page has been read when the 15th line is read. Thereafter, the print request interpretation unit 24 reads the text data for one page up to the page end tag 35 on the 17th line (print request information for each page on the 3rd page), and sets the file ID “00000003” on the 16th line, The print instruction value is stored in the print instruction buffer memory 25 as the print instruction value of the item specifying the third page image file.

3ページ目の印刷指示値の選択が終了すると、印刷要求解釈部24は、その続きである18行目から印刷要求スクリプト31の読み込みを開始する。そして、印刷要求解釈部24は、たとえば18行目を読み込んだ時点で、印刷要求スクリプト31が終了したと判断し、ページ毎の要求に基づく印刷指示値の設定処理を終了する。   When the selection of the print instruction value for the third page is completed, the print request interpretation unit 24 starts reading the print request script 31 from the 18th line that follows. Then, for example, when the 18th line is read, the print request interpretation unit 24 determines that the print request script 31 has ended, and ends the print instruction value setting process based on the request for each page.

ページ毎の印刷指示値の特定処理を終了した後(図3のステップST2)、印刷要求解釈部24は、ジョブ全体、つまり全ページに対する印刷指示値の特定処理を開始する(図3のステップST3)。   After completing the print instruction value specifying process for each page (step ST2 in FIG. 3), the print request interpreter 24 starts the print instruction value specifying process for the entire job, that is, all pages (step ST3 in FIG. 3). ).

図5に示すように、ジョブ全体での要求に基づく印刷指示値の設定処理では、印刷要求解釈部24は、まず、印刷条件の最初の設定項目を選択する(ステップST31)。   As shown in FIG. 5, in the print instruction value setting process based on the request for the entire job, the print request interpreter 24 first selects the first setting item of the print condition (step ST31).

印刷条件の設定項目には、上述したように、印刷する媒体4のサイズ、種類、媒体4の画像を印刷する範囲、向き、画像の印刷の仕方、画質補正処理の要否、読み込んだ画像データのデコードの要否などがある。印刷要求解釈部24は、この複数の設定項目の中のどの設定項目を、最初の設定項目として選択してもよい。印刷要求解釈部24は、この複数の設定項目について任意の順番で設定項目を選択してもよい。ただし、たとえば、デフォルト設定メモリ23において、L版の光沢紙に印刷する場合にはAPF処理のデフォルト値として「要」を記憶し、A4の普通紙に印刷する場合にはAPF処理のデフォルト値として「不要」を記憶するように、他の設定項目の値に応じてデフォルト値が異なることとなる設定項目については、当該設定項目より先に、当該他の設定項目を選択する。印刷要求解釈部24は、たとえば、媒体4のサイズ、種類およびレイアウトを選択項目として選択した後に、APF処理を設定項目として選択するとよい。   As described above, the print condition setting items include the size and type of the medium 4 to be printed, the range to print the image on the medium 4, the direction, the printing method of the image, the necessity of image quality correction processing, and the read image data. There is a necessity of decoding. The print request interpretation unit 24 may select any setting item from among the plurality of setting items as the first setting item. The print request interpretation unit 24 may select the setting items in any order with respect to the plurality of setting items. However, for example, in the default setting memory 23, “necessary” is stored as the default value of the APF process when printing on L glossy paper, and as the default value of the APF process when printing on A4 plain paper. For a setting item whose default value varies depending on the value of another setting item so as to store “unnecessary”, the other setting item is selected prior to the setting item. For example, the print request interpreter 24 may select the APF process as a setting item after selecting the size, type, and layout of the medium 4 as selection items.

設定項目を選択した後、印刷要求解釈部24は、アドレスポインタに、スクリプトメモリ22に記憶されている印刷要求スクリプト31のテキストデータの先頭位置を示す値を代入する(ステップST32)。   After selecting the setting item, the print request interpreter 24 substitutes a value indicating the head position of the text data of the print request script 31 stored in the script memory 22 into the address pointer (step ST32).

その後、印刷要求解釈部24は、スクリプトメモリ22のアドレスポインタの値が示す位置からテキストデータを読み込み(ステップST33)、読み込んだテキストデータに基づいて、選択した設定項目に対応するタグを読み込んだか否かを判断する(ステップST34)。たとえば、選択した設定項目が媒体サイズである場合、それに対応するタグは、媒体サイズタグである。この他にもたとえば、媒体種類には、媒体タイプタグが対応し、読み込んだ画像データのデコードの要否には、ファイル情報タグが対応する。   Thereafter, the print request interpretation unit 24 reads the text data from the position indicated by the value of the address pointer in the script memory 22 (step ST33), and whether or not the tag corresponding to the selected setting item is read based on the read text data. Is determined (step ST34). For example, when the selected setting item is a medium size, the corresponding tag is a medium size tag. In addition to this, for example, a medium type tag corresponds to a medium type, and a file information tag corresponds to necessity of decoding of read image data.

選択した設定項目に対応するタグを読み込んでいない場合、印刷要求解釈部24は、さらに、印刷要求スクリプト31の末尾まで読み込んだか否かを判断し(ステップST35)、末尾まで読み込んでいない場合には、アドレスポインタの値を次のデータの位置に更新する(ステップST36)。印刷要求解釈部24は、更新されたアドレスポインタの値が示す位置からテキストデータを読み込み(ステップST33)、読み込んだテキストデータに基づいて、選択した設定項目に対応するタグを読み込んだか否かを判断する(ステップST34)。   If the tag corresponding to the selected setting item has not been read, the print request interpreter 24 further determines whether the print request script 31 has been read to the end (step ST35). The value of the address pointer is updated to the position of the next data (step ST36). The print request interpretation unit 24 reads the text data from the position indicated by the updated address pointer value (step ST33), and determines whether or not the tag corresponding to the selected setting item has been read based on the read text data. (Step ST34).

印刷要求解釈部24は、ステップST34において選択した設定項目に対応するタグを読み込んだと判断するまで、あるいは、ステップST35において印刷要求スクリプト31の末尾まで読み込んだと判断するまで、このステップST36,ST33,ST34およびST35によるループ処理を繰り返す。   The print request interpretation unit 24 determines the steps ST36 and ST33 until it is determined that the tag corresponding to the setting item selected in step ST34 has been read, or until it is determined that the tag has been read to the end of the print request script 31 in step ST35. , ST34 and ST35 are repeated.

ステップST34において選択した設定項目に対応するタグを読み込んだと判断すると、印刷要求解釈部24は、そのタグに挟まれたテキストデータを読み込む(ステップST37)。印刷要求解釈部24は、読み込んだデータに基づいて選択項目の印刷指示値を特定する。印刷要求解釈部24は、特定した印刷指示値を、印刷指示バッファメモリ35に保存する(ステップST38)。   If it is determined that the tag corresponding to the setting item selected in step ST34 has been read, the print request interpreter 24 reads the text data sandwiched between the tags (step ST37). The print request interpretation unit 24 specifies the print instruction value of the selection item based on the read data. The print request interpretation unit 24 stores the specified print instruction value in the print instruction buffer memory 35 (step ST38).

印刷要求スクリプト31に、選択した設定項目に対応するタグが記述されておらず、ステップST35において印刷要求スクリプト31の末尾まで読み込んだと判断すると、印刷要求解釈部24は、選択した設定項目に対応するデフォルト値を、デフォルト設定メモリ23から読み込む(ステップST39)。デフォルト設定メモリ23に、その設定項目に対応するデフォルト値が複数記憶されている場合、それまでに設定した印刷指示値と組み合わせた場合に印刷可能であるデフォルト値を1つ選択する。印刷要求解釈部24は、デフォルト設定メモリ23から読み込んだデフォルト値を、選択した設定項目の印刷指示値として選択し、印刷指示バッファメモリ35に保存する(ステップST38)。   If it is determined that the tag corresponding to the selected setting item is not described in the print request script 31 and the end of the print request script 31 is read in step ST35, the print request interpreting unit 24 corresponds to the selected setting item. The default value to be read is read from the default setting memory 23 (step ST39). When a plurality of default values corresponding to the setting item are stored in the default setting memory 23, one default value that can be printed when selected with the print instruction value set so far is selected. The print request interpretation unit 24 selects the default value read from the default setting memory 23 as the print instruction value of the selected setting item, and stores it in the print instruction buffer memory 35 (step ST38).

選択した設定項目の印刷指示値を印刷指示バッファメモリ25に保存した後、印刷要求解釈部24は、すべての設定項目についての印刷指示値の特定が完了したか否かを判断する(ステップST40)。すべての設定項目についての印刷指示値の特定が完了していない場合、印刷要求解釈部24は、次の設定項目を選択し(ステップST41)、その設定項目の印刷指示値の設定処理を実行する(ステップST32〜ST39)。   After storing the print instruction value of the selected setting item in the print instruction buffer memory 25, the print request interpreter 24 determines whether or not the specification of the print instruction value for all the setting items has been completed (step ST40). . If the specification of the print instruction value for all the setting items has not been completed, the print request interpretation unit 24 selects the next setting item (step ST41), and executes the process for setting the print instruction value of the setting item. (Steps ST32 to ST39).

このように、印刷要求解釈部24は、画像処理部26が1ページ分の印刷をするために設定を必要とするすべての設定項目について、1つずつ順番に、印刷要求スクリプト31を検索し、印刷指示値を選択し、印刷指示バッファメモリ25に保存する。印刷要求解釈部24は、印刷項目の数だけ繰り返して、印刷要求スクリプト31を検索し、すべての印刷項目の印刷指示値を印刷指示バッファメモリ25に保存する。   In this way, the print request interpretation unit 24 searches the print request script 31 in order one by one for all the setting items that need to be set in order for the image processing unit 26 to print one page. A print instruction value is selected and stored in the print instruction buffer memory 25. The print request interpretation unit 24 repeatedly searches the print request script 31 by the number of print items, and stores the print instruction values of all the print items in the print instruction buffer memory 25.

ステップST40においてすべての設定項目の印刷指示値を設定し終えたと判断すると、ジョブ全体についての印刷指示値の特定処理を終了する(図3のステップST3)。これにより、印刷要求解釈部24は、すべてのページについてのスクリプト解析を終了する。この時点では、印刷指示バッファメモリ25には、印刷要求スクリプト31において印刷を要求されたページ数分の印刷指示値が保存される。   If it is determined in step ST40 that the print instruction values for all setting items have been set, the print instruction value specifying process for the entire job is terminated (step ST3 in FIG. 3). As a result, the print request interpretation unit 24 ends the script analysis for all pages. At this time, the print instruction buffer memory 25 stores print instruction values for the number of pages requested to be printed in the print request script 31.

すべてのページについてのスクリプト解析を終了すると、印刷要求解釈部24は、図3に示すように、印刷指示バッファメモリ25から、最初のページの印刷指示値を読み込み、読み込んだ最初のページに関するすべての印刷指示値を含む印刷指示を生成し、画像処理部26へ供給する(ステップST4)。   When the script analysis for all pages is completed, the print request interpreter 24 reads the print instruction value of the first page from the print instruction buffer memory 25 as shown in FIG. A print instruction including the print instruction value is generated and supplied to the image processing unit 26 (step ST4).

その後、印刷要求解釈部24は、印刷指示バッファメモリ25に保存されている最後のページについての印刷指示を供給したか否かを判断する(ステップST5)。最後のページの印刷指示を供給した場合には、印刷要求解釈部24は、ステップST1に戻り、新たな印刷要求スクリプト31の受信待ち状態になる。   Thereafter, the print request interpretation unit 24 determines whether a print instruction for the last page stored in the print instruction buffer memory 25 has been supplied (step ST5). When the print instruction for the last page is supplied, the print request interpretation unit 24 returns to step ST1 and waits to receive a new print request script 31.

最後のページの印刷指示を供給していない場合、印刷要求解釈部24は、次ページの印刷指示要求待ち状態になる(ステップST6)。また、次ページの印刷指示要求があると、印刷要求解釈部24は、最後に供給したページの次のページの印刷指示値を印刷指示バッファメモリ25から読み込み、読み込んだそのページのすべての印刷指示値を含む印刷指示を生成し、画像処理部26へ供給する(ステップST7)。   When the print instruction for the last page is not supplied, the print request interpreter 24 waits for a print instruction request for the next page (step ST6). When there is a print instruction request for the next page, the print request interpretation unit 24 reads the print instruction value of the next page of the last supplied page from the print instruction buffer memory 25 and all the print instructions of the read page. A print instruction including the value is generated and supplied to the image processing unit 26 (step ST7).

その後、印刷要求解釈部24は、再び、印刷指示バッファメモリ25に保存されている最後のページについての印刷指示を供給したか否かを判断する(ステップST5)。また、最後のページの印刷指示を供給していない場合、印刷要求解釈部24は、次ページの印刷指示要求待ち状態になる(ステップST6)。印刷要求解釈部24は、図3のステップST5において最後のページの印刷指示を供給したと判断するまで、図3のステップST6、ST7およびST5の処理を繰り返し実行する。   Thereafter, the print request interpretation unit 24 again determines whether or not a print instruction for the last page stored in the print instruction buffer memory 25 has been supplied (step ST5). If the print instruction for the last page is not supplied, the print request interpretation unit 24 waits for a print instruction request for the next page (step ST6). The print request interpretation unit 24 repeatedly executes the processes of steps ST6, ST7, and ST5 of FIG. 3 until it determines that the print instruction for the last page has been supplied in step ST5 of FIG.

画像処理部26は、以上のように動作する印刷要求解釈部24から、各ページにつき1回ずつ印刷指示が供給される。印刷指示が供給されると、画像処理部26は、その印刷指示に従って印刷制御データの生成を開始する。   The image processing unit 26 is supplied with a print instruction once for each page from the print request interpreting unit 24 operating as described above. When a print instruction is supplied, the image processing unit 26 starts generating print control data in accordance with the print instruction.

画像処理部26は、まず、印刷指示にて指定されたファイルID33のEXIF画像ファイル16の画像データを取得する。具体的には、画像処理部26は、そのファイルID33を指定した画像データの要求指示を生成し、プリンタ1の通信部21へ供給する。プリンタ1の通信部21は、USBケーブル3を介して、画像データの要求指示をDSC2の通信部12へ送信する。DSC2の通信部12は、画像データの要求指示を受信すると、要求指示に含まれるファイルID33に対応するEXIF画像ファイル16を特定し、そのEXIF画像ファイル16の画像データを半導体メモリ11から読み込み、読み込んだ画像データを、USBケーブル3を介してプリンタ1の通信部21へ送信する。プリンタ1の通信部21は、受信データを画像処理部26へ供給する。   The image processing unit 26 first acquires the image data of the EXIF image file 16 having the file ID 33 specified by the print instruction. Specifically, the image processing unit 26 generates a request instruction for image data specifying the file ID 33 and supplies the request to the communication unit 21 of the printer 1. The communication unit 21 of the printer 1 transmits an image data request instruction to the communication unit 12 of the DSC 2 via the USB cable 3. When receiving the image data request instruction, the communication unit 12 of the DSC 2 specifies the EXIF image file 16 corresponding to the file ID 33 included in the request instruction, reads the image data of the EXIF image file 16 from the semiconductor memory 11 and reads it. The image data is transmitted to the communication unit 21 of the printer 1 via the USB cable 3. The communication unit 21 of the printer 1 supplies the received data to the image processing unit 26.

印刷指示にて指定されたファイルID33の画像データを取得すると、画像処理部26は、その画像データによる画像を、印刷指示にて指定された媒体4に、印刷指示にて指定された条件で印刷するための印刷イメージを生成する。たとえば、A4の普通紙に縁無しで1つの画像を印刷する印刷条件が指定されている場合、画像処理部26は、取得した画像データによる画像をA4サイズにて印刷する印刷イメージを生成する。   When the image data of the file ID 33 specified by the print instruction is acquired, the image processing unit 26 prints an image based on the image data on the medium 4 specified by the print instruction under the conditions specified by the print instruction. Generate a print image to do. For example, when printing conditions for printing one image without a border on A4 plain paper are specified, the image processing unit 26 generates a print image for printing an image based on the acquired image data in A4 size.

印刷イメージを生成した後、画像処理部26は、生成した印刷イメージの色成分を、プリンタ1のインク色成分へ変換する色変換処理と、各インク色のイメージを、印刷するドット単位の印刷有無データへ変換するハーフトーン処理と、ドット単位の印刷有無データを、キャリッジからのインク吐出順に並べ替えるなどのインターレース処理とを実行し、印刷制御データを生成する。画像処理部26は、生成した印刷制御データを、制御部30へ供給する。   After generating the print image, the image processing unit 26 performs color conversion processing for converting the color component of the generated print image into the ink color component of the printer 1 and whether or not each ink color image is printed in dot units. Print control data is generated by executing halftone processing for conversion into data and interlacing processing such as rearranging printing presence / absence data in dot units in the order of ink ejection from the carriage. The image processing unit 26 supplies the generated print control data to the control unit 30.

印刷制御データが供給されると、制御部30は、その印刷制御データに基づく印刷を開始する。制御部30は、まず、搬送機構28を制御し、媒体4の搬送を開始する。制御部30は、媒体4を搬送しながら、印刷制御データに基づいてインク吐出機構29を制御する。これにより、媒体4には、DSC2において印刷のために選択されたEXIF画像ファイル16の画像が、DSC2において選択された印刷条件にて、DSC2において選択された所定の媒体4に印刷される。   When the print control data is supplied, the control unit 30 starts printing based on the print control data. First, the control unit 30 controls the transport mechanism 28 to start transporting the medium 4. The controller 30 controls the ink ejection mechanism 29 based on the print control data while conveying the medium 4. As a result, the image of the EXIF image file 16 selected for printing in the DSC 2 is printed on the medium 4 on the predetermined medium 4 selected in the DSC 2 under the printing conditions selected in the DSC 2.

画像処理部26は、印刷制御データを制御部30へ供給した後、次のページについての印刷指示を、印刷要求解釈部24に要求する。印刷要求解釈部24は、画像処理部26から次の印刷指示が要求されると、要求されたページの印刷指示値を印刷指示バッファメモリ25から読み込み、印刷指示を生成し、画像処理部26へ供給する。これにより、画像処理部26は、印刷要求解釈部24から、印刷指示を1ページずつ順番に受け取り、各ページの印刷制御データを順番に生成する。   After supplying the print control data to the control unit 30, the image processing unit 26 requests the print request interpretation unit 24 for a print instruction for the next page. When the next print instruction is requested from the image processing unit 26, the print request interpreting unit 24 reads the print instruction value of the requested page from the print instruction buffer memory 25, generates a print instruction, and sends it to the image processing unit 26. Supply. Accordingly, the image processing unit 26 receives print instructions from the print request interpreting unit 24 one by one in order, and generates print control data for each page in order.

図2の印刷要求スクリプト31の場合、印刷要求解釈部24は、3ページ分の印刷指示値を印刷指示バッファメモリ25に保存する。その後、印刷要求解釈部24は、印刷指示バッファメモリ25から最初のページについての印刷指示値を読み込み、最初の印刷指示を画像処理部26へ供給する。画像処理部26は、その最初の印刷指示に基づく印刷制御データを生成して印刷実行部27へ供給した後、印刷要求解釈部24に次の印刷指示を要求する。   In the case of the print request script 31 of FIG. 2, the print request interpretation unit 24 stores the print instruction values for three pages in the print instruction buffer memory 25. Thereafter, the print request interpretation unit 24 reads the print instruction value for the first page from the print instruction buffer memory 25 and supplies the first print instruction to the image processing unit 26. The image processing unit 26 generates print control data based on the first print instruction, supplies the print control data to the print execution unit 27, and then requests the next print instruction from the print request interpretation unit 24.

印刷要求解釈部24は、この画像処理部26の最初の要求に基づいて、印刷指示バッファメモリ25から2ページ目についての印刷指示値を読み込み、2ページ目の印刷指示を画像処理部26へ供給する。画像処理部26は、その2ページ目の印刷指示に基づく印刷制御データを生成して印刷実行部27へ供給した後、印刷要求解釈部24に次の印刷指示を要求する。   Based on the first request from the image processing unit 26, the print request interpreting unit 24 reads the print instruction value for the second page from the print instruction buffer memory 25 and supplies the print instruction for the second page to the image processing unit 26. To do. The image processing unit 26 generates print control data based on the print instruction for the second page, supplies the print control data to the print execution unit 27, and then requests the next print instruction from the print request interpretation unit 24.

印刷要求解釈部24は、この画像処理部26の2回目の要求に基づいて、印刷指示バッファメモリ25から3ページ目の印刷指示値を読み込み、3ページ目の印刷指示を画像処理部26へ供給する。3ページ目の印刷指示を画像処理部26へ供給した印刷要求解釈部24は、新たな印刷要求スクリプト31の受信待ち状態になる。画像処理部26は、その3ページ目の印刷指示に基づく印刷制御データを生成して印刷実行部27へ供給した後、印刷要求解釈部24に次の印刷指示を要求する。   Based on the second request from the image processing unit 26, the print request interpreting unit 24 reads the print instruction value for the third page from the print instruction buffer memory 25 and supplies the print instruction for the third page to the image processing unit 26. To do. The print request interpretation unit 24 that has supplied the print instruction for the third page to the image processing unit 26 waits to receive a new print request script 31. The image processing unit 26 generates print control data based on the print instruction for the third page, supplies the print control data to the print execution unit 27, and then requests the print request interpretation unit 24 for the next print instruction.

なお、印刷要求解釈部24は、新たな印刷要求スクリプト31の受信待ち状態になっている場合、画像処理部26から次の印刷指示が要求されたとしても、直ちに印刷指示の生成処理を開始しない。印刷要求解釈部24は、当該次の印刷指示の要求後に新たな印刷要求スクリプト31を受信すると、その新たな印刷要求スクリプト31の最初のページの印刷指示を生成し、その最初のページの印刷指示を、当該次の印刷指示の要求に対応する印刷指示として画像処理部26へ供給する。   Note that the print request interpretation unit 24 does not immediately start the print instruction generation process even if the next print instruction is requested from the image processing unit 26 when waiting for the reception of the new print request script 31. . When the print request interpreter 24 receives a new print request script 31 after requesting the next print instruction, the print request interpreter 24 generates a print instruction for the first page of the new print request script 31 and prints the first page. Is supplied to the image processing unit 26 as a print instruction corresponding to the request for the next print instruction.

以上のように、この実施の形態では、印刷要求解釈部24は、印刷要求スクリプト31を受信すると、まず、そのスクリプト31を解釈して印刷が要求されたすべてのページの印刷指示値を印刷指示バッファメモリ25に保存する。印刷要求解釈部24は、その処理後に、画像処理部26の要求などに応じて各ページの印刷指示値を印刷指示バッファメモリ25から読み出して、1ページずつ、各ページの印刷指示を画像処理部26へ供給する。   As described above, in this embodiment, when receiving the print request script 31, the print request interpreter 24 first interprets the script 31 and prints the print instruction values of all pages requested to be printed. Save in the buffer memory 25. After the processing, the print request interpretation unit 24 reads the print instruction value of each page from the print instruction buffer memory 25 in response to a request from the image processing unit 26 and the like, and prints the print instruction of each page page by page. 26.

したがって、複数の媒体4へ印刷する複数のページ別印刷要求情報が1つの印刷要求スクリプト31に記述されている場合でも、印刷要求解釈部24は、ページ毎のファイルID33を一度に連続的に読み込んで解釈するため、ページ毎のページ別印刷要求情報に基づき印刷指示値を特定するために、印刷要求スクリプト31に記述された同じページのファイルID33、ページ開始タグ34およびページ終了タグ35を複数回読み込まずに済む。   Therefore, even when a plurality of print request information for each page to be printed on a plurality of media 4 is described in one print request script 31, the print request interpretation unit 24 continuously reads the file ID 33 for each page at a time. In order to specify the print instruction value based on the print request information for each page for each page, the file ID 33, the page start tag 34, and the page end tag 35 of the same page described in the print request script 31 are set a plurality of times. No need to read.

これに対して、たとえば、図2に示す印刷要求スクリプト31のページ毎のファイルID33を特定するために、印刷指示の生成の度に、印刷要求スクリプト31の先頭からデータを読み込んだ場合、印刷要求解釈部は、ページ毎の印刷要求を解釈するために、最初のページの印刷指示を生成する際に、図2に示す印刷要求スクリプト31の1行目から11行目までを読み込み、2ページ目の印刷指示を生成する際に、図2に示す印刷要求スクリプト31の1行目から14行目までを読み込み、3ページ目の印刷指示を生成する際に、図2に示す印刷要求スクリプト31の1行目から17行目までを読み込むことになる。   On the other hand, for example, when data is read from the top of the print request script 31 every time a print instruction is generated in order to specify the file ID 33 for each page of the print request script 31 shown in FIG. When interpreting the print request for each page, the interpreter reads the first to eleventh lines of the print request script 31 shown in FIG. 2 when generating the print instruction for the first page. 2 is read from the first line to the 14th line of the print request script 31 shown in FIG. 2, and when the print instruction for the third page is generated, the print request script 31 shown in FIG. The first to 17th lines are read.

この比較例の場合、印刷要求解釈部は、印刷要求スクリプト31の1行目から11行目までを3回読み込み、12行目から16行目を2回読み込む。したがって、1つの印刷要求スクリプト31により印刷が要求されるページ数が増えれば増えるほど、印刷要求解釈部による印刷要求スクリプトの読込および解釈にかかる時間は、飛躍的に増加してしまう。   In the case of this comparative example, the print request interpretation unit reads the first line to the eleventh line of the print request script 31 three times and reads the twelfth to sixteenth lines twice. Therefore, as the number of pages requested to be printed by one print request script 31 increases, the time required for reading and interpreting the print request script by the print request interpretation unit increases dramatically.

また、印刷要求解釈部24は、複数のページの印刷要求に共通する共通印刷要求値を読み込んで、それに対応する印刷指示値を一度特定すれば、その特定された印刷指示値を複数のページの印刷指示において繰り返し読み出して利用することができる。その結果、各ページ別印刷要求情報が別々の印刷要求スクリプト31により個別に記述される場合に比べて、それらのページにおいて共通する印刷要求値の読込および解釈にかかるトータルの時間を減らすことができる。   The print request interpretation unit 24 reads a common print request value common to print requests for a plurality of pages, and once identifies the corresponding print instruction value, the print request value for the plurality of pages is determined. It can be read and used repeatedly in print instructions. As a result, it is possible to reduce the total time required for reading and interpreting print request values common to those pages as compared with the case where each page-specific print request information is individually described by separate print request scripts 31. .

以上の実施の形態は、本発明の好適な実施の形態の例であるが、本発明は、これに限定されるものではなく、発明の要旨を逸脱しない範囲において、種々の変形、変更が可能である。   The above embodiment is an example of a preferred embodiment of the present invention, but the present invention is not limited to this, and various modifications and changes can be made without departing from the scope of the invention. It is.

たとえば、上記実施の形態では、印刷要求スクリプト31において、ページ区切りを示すページ区切情報として、ページ開始タグ34およびページ終了タグ35を使用している。この他にもたとえば、印刷要求スクリプト31において、ページ区切りを示すページ区切情報は、ページ開始タグ34およびページ終了タグ35の中の一方のみを使用するようにしてもよい。この場合、印刷要求解釈部24は、たとえばページ開始タグ34から次のページ開始タグ34までの間を、1つのページの印刷要求であると解釈し、印刷指示値を設定すればよい。   For example, in the above embodiment, the page start tag 34 and the page end tag 35 are used as page break information indicating the page break in the print request script 31. In addition, for example, in the print request script 31, only one of the page start tag 34 and the page end tag 35 may be used as the page break information indicating the page break. In this case, the print request interpretation unit 24 may interpret, for example, a page request from the page start tag 34 to the next page start tag 34 as a print request for one page, and set a print instruction value.

上記実施の形態では、スクリプトメモリ22、デフォルト設定メモリ23および印刷指示バッファメモリ25が、別々に設けられている。この他にもたとえば、スクリプトメモリ22、デフォルト設定メモリ23および印刷指示バッファメモリ25を、1つのメモリとしてもよい。   In the above embodiment, the script memory 22, the default setting memory 23, and the print instruction buffer memory 25 are provided separately. In addition, for example, the script memory 22, the default setting memory 23, and the print instruction buffer memory 25 may be a single memory.

上記実施の形態では、DSC2の通信部12とプリンタ1の通信部21とは、USBスティルイメージクラス通信部およびPTP通信部を有する。この他にもたとえば、DSC2の通信部12とプリンタ1の通信部21とは、USBマスストレージクラス通信部を有するものであってもよい。この変形例の場合、印刷要求解釈部24は、DSC2の半導体メモリ11を、1つのストレージとして認識する。したがって、印刷要求部15は、印刷要求においてファイル情報として印刷するEXIF画像ファイル16のファイル名を指定すればよい。   In the above embodiment, the communication unit 12 of the DSC 2 and the communication unit 21 of the printer 1 have a USB still image class communication unit and a PTP communication unit. In addition, for example, the communication unit 12 of the DSC 2 and the communication unit 21 of the printer 1 may have a USB mass storage class communication unit. In the case of this modification, the print request interpretation unit 24 recognizes the semiconductor memory 11 of the DSC 2 as one storage. Therefore, the print request unit 15 may specify the file name of the EXIF image file 16 to be printed as file information in the print request.

上記実施の形態では、印刷要求解釈部24などは、DSC2に接続されるプリンタ1に設けられ、このDSC2の半導体メモリ13に保存されているEXIF画像ファイル21のデータを読み込んでいる。この他にもたとえば、印刷要求解釈部24などは、デジタルムービーカメラ、カードリーダ、半導体メモリ、携帯端末、コンピュータなどに接続されるプリンタ1に設けられ、これらに保存されている画像データを読み込むものであってもよい。   In the above embodiment, the print request interpreter 24 and the like are provided in the printer 1 connected to the DSC 2 and read the data of the EXIF image file 21 stored in the semiconductor memory 13 of the DSC 2. In addition to this, for example, the print request interpreter 24 is provided in the printer 1 connected to a digital movie camera, a card reader, a semiconductor memory, a portable terminal, a computer, etc., and reads image data stored in these. It may be.

本発明は、たとえばデジタルカメラが接続され、そのデジタルカメラに記憶されている画像ファイルに基づく画像を印刷するプリンタなどに利用することができる。   The present invention can be used in, for example, a printer that is connected to a digital camera and prints an image based on an image file stored in the digital camera.

本発明の実施の形態に係るプリンタおよびDSCを示す図である。It is a figure which shows the printer and DSC which concern on embodiment of this invention. 印刷要求部が生成する印刷要求スクリプトを示す図である。It is a figure which shows the print request script which a print request part produces | generates. 印刷要求解釈部の解釈処理を示すフローチャートである。It is a flowchart which shows the interpretation process of a printing request interpretation part. 図3中のステップST2の詳細なフローチャートである。It is a detailed flowchart of step ST2 in FIG. 図3中のステップST3の詳細なフローチャートである。It is a detailed flowchart of step ST3 in FIG.

符号の説明Explanation of symbols

1 プリンタ(印刷装置)、4 媒体、24 印刷要求解釈部(特定手段、生成手段)、25 印刷指示バッファメモリ(印刷指示値記憶手段)、26 画像処理部(印刷実行手段の一部)、27 印刷実行部(印刷実行手段の一部)、32 印刷要求値(共通印刷要求情報の一部)、31 印刷要求スクリプト(印刷要求)、33 ファイルID(ページ別印刷要求情報の一部) DESCRIPTION OF SYMBOLS 1 Printer (printing apparatus), 4 media, 24 Print request interpretation part (specification means, production | generation means), 25 Print instruction buffer memory (print instruction value storage means), 26 Image processing part (a part of print execution means), 27 Print execution unit (part of print execution means), 32 print request value (part of common print request information), 31 print request script (print request), 33 file ID (part of print request information by page)

Claims (7)

複数のページに対応する複数のページ別印刷要求情報が記述された印刷要求からすべてのページ別印刷要求情報をまとめて読み込んで、各ページの印刷内容を示す印刷指示値を特定する特定手段と、
上記特定手段により特定された印刷指示値をページに関連付けて記憶する印刷指示値記憶手段と、
上記印刷指示値記憶手段に記憶される印刷指示値をページ毎に読み込んで、各ページの印刷指示を生成する生成手段と、
を有することを特徴とする印刷指示生成装置。
A specifying means for collectively reading all the print request information for each page from a print request in which a plurality of print request information for each page corresponding to a plurality of pages is described, and specifying a print instruction value indicating a print content of each page;
Print instruction value storage means for storing the print instruction value specified by the specifying means in association with the page;
Generation means for reading the print instruction value stored in the print instruction value storage means for each page and generating a print instruction for each page;
A print instruction generation apparatus comprising:
前記印刷要求は、所定の構文規則に基づくテキストデータであり、
前記特定手段は、テキストデータである前記印刷要求をまとめて構文解析して、すべてのページについて、印刷内容を示す所定の項目に対応する前記印刷指示値を抽出し、
前記印刷指示値記憶手段は、上記所定の項目に対応する前記印刷指示値を、構文解析なしで読み出せる状態のデータとして記憶すること、
を特徴とする請求項1記載の印刷指示生成装置。
The print request is text data based on a predetermined syntax rule,
The specifying means collectively parses the print requests that are text data, and extracts the print instruction value corresponding to a predetermined item indicating print contents for all pages;
The print instruction value storage means stores the print instruction value corresponding to the predetermined item as data that can be read without syntax analysis;
The print instruction generation apparatus according to claim 1.
前記生成手段は、前記特定手段による前記すべてのページ別印刷要求情報に対応する印刷指示値の特定が終了してから、前記印刷指示値記憶手段からの印刷指示値の読込を開始することを特徴とする請求項1または2記載の印刷指示生成装置。   The generation unit starts reading the print instruction value from the print instruction value storage unit after the specification unit finishes specifying the print instruction value corresponding to all the print request information for each page. The print instruction generation apparatus according to claim 1 or 2. 前記特定手段は、前記印刷要求において複数のページ別印刷要求情報とともに記述され、複数のページの印刷に共通に利用される共通印刷要求情報を読み込んで、その共通印刷要求情報に対応する印刷指示値を特定し、
前記印刷指示値記憶手段は、前記特定手段により共通印刷要求情報に基づいて特定された印刷指示値を記憶し、
前記生成手段は、ページ毎に、ページに関連付けられた印刷指示値とともに上記共通印刷要求情報から特定された印刷指示値を読み込んで、各ページの印刷指示を生成すること、
を特徴とする請求項3記載の印刷指示生成装置。
The specifying unit reads the common print request information that is described together with a plurality of print request information for each page in the print request, and is commonly used for printing a plurality of pages, and print instruction values corresponding to the common print request information Identify
The print instruction value storage means stores the print instruction value specified by the specifying means based on common print request information;
The generating means reads, for each page, a print instruction value specified from the common print request information together with a print instruction value associated with the page, and generates a print instruction for each page;
The print instruction generation apparatus according to claim 3.
前記生成手段は、前記印刷指示に基づいて1ページ毎に印刷処理を実行する印刷実行手段からの要求に対応して、2ページ目以降の前記印刷指示を生成することを特徴とする請求項1から4の中のいずれか1項記載の印刷指示生成装置。   The generation unit generates the print instruction for the second and subsequent pages in response to a request from a print execution unit that executes print processing for each page based on the print instruction. 5. The print instruction generation device according to any one of items 1 to 4. 請求項1から5の中のいずれか1項記載の印刷指示生成装置と、
前記印刷指示生成装置により生成された印刷指示に基づいてページ毎に印刷処理を実行する印刷実行手段と、
を有することを特徴とする印刷装置。
A print instruction generation device according to any one of claims 1 to 5,
Print execution means for executing print processing for each page based on the print instruction generated by the print instruction generation device;
A printing apparatus comprising:
複数のページに対応する複数のページ別印刷要求情報が記述された印刷要求からすべてのページ別印刷要求情報をまとめて読み込んで、各ページの印刷内容を示す印刷指示値を特定するステップと、
上記特定された印刷指示値をページに関連付けて印刷指示値記憶手段に記憶させるステップと、
上記印刷指示値記憶手段から印刷指示値をページ毎に読み込んで、各ページの印刷指示を生成するステップと、
を有することを特徴とする印刷指示生成方法。
A step of collectively reading all print request information for each page from a print request in which a plurality of print request information for each page corresponding to a plurality of pages is described, and specifying a print instruction value indicating the print contents of each page;
Storing the specified print instruction value in a print instruction value storage unit in association with a page;
Reading a print instruction value for each page from the print instruction value storage means, and generating a print instruction for each page;
A print instruction generation method comprising:
JP2005094804A 2005-03-29 2005-03-29 Printing instruction generating device, printer, and printing instruction generating method Withdrawn JP2006277272A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2005094804A JP2006277272A (en) 2005-03-29 2005-03-29 Printing instruction generating device, printer, and printing instruction generating method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2005094804A JP2006277272A (en) 2005-03-29 2005-03-29 Printing instruction generating device, printer, and printing instruction generating method

Publications (1)

Publication Number Publication Date
JP2006277272A true JP2006277272A (en) 2006-10-12

Family

ID=37211980

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2005094804A Withdrawn JP2006277272A (en) 2005-03-29 2005-03-29 Printing instruction generating device, printer, and printing instruction generating method

Country Status (1)

Country Link
JP (1) JP2006277272A (en)

Similar Documents

Publication Publication Date Title
US7821663B2 (en) Image supply device, control method of the device, and printing system
US7990555B2 (en) Image supply device and control method thereof and printing system
US20040196484A1 (en) Printing apparatus, control method therefor, and storage medium
JP2007140786A (en) Controller unit, its control method, and printing system
US7916340B2 (en) Print system, an image supply apparatus and control methods thereof
US9830541B2 (en) Image output system, image output method, document server, and non-transitory computer readable recording medium
JP2006205549A (en) Digital image printing system, printer, control method of digital image printing system, control method of printer, program of printer and storage medium
JP4468120B2 (en) Image supply device, method for controlling the device, program thereof, and storage medium
JP2006080902A (en) Image processing system, image processor, control method, program and storage medium
US20080316545A1 (en) Image processing apparatus and method, and program for implementing the method
US20070296934A1 (en) Image Forming Apparatus and Method of Controlling the Apparatus
US20080084476A1 (en) Image forming apparatus
JP2005317044A (en) Printing contents sending device, printer, and printing system
JP2006277273A (en) Printing instruction generating device, printer, and printing instruction generating method
JP2006277272A (en) Printing instruction generating device, printer, and printing instruction generating method
JP2005006012A (en) Image input unit, image output unit and image output system
JP2006277271A (en) Printing instruction generating device, printer, and printing instruction generating method
JP4709246B2 (en) Image supply device, method for controlling the device, and printing system
JP2010218325A (en) Printing controller and printing system
US8199345B2 (en) Method for controlling printing apparatus and method for controlling image processing apparatus connected to printing apparatus
JP5094551B2 (en) Image forming apparatus, control method thereof, program thereof, and storage medium
JP4612822B2 (en) Image supply device, method for controlling the device, and printing system
JP4350615B2 (en) Image supply device, method for controlling the device, and printing system
JP2006272723A (en) Image data cache apparatus, printer and image data cache method
JP2006086588A (en) Image supply device, control method of the device, and print system

Legal Events

Date Code Title Description
RD04 Notification of resignation of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7424

Effective date: 20070404

A300 Withdrawal of application because of no request for examination

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 20080603