JP2005148927A - Information processor and print control method - Google Patents

Information processor and print control method Download PDF

Info

Publication number
JP2005148927A
JP2005148927A JP2003382682A JP2003382682A JP2005148927A JP 2005148927 A JP2005148927 A JP 2005148927A JP 2003382682 A JP2003382682 A JP 2003382682A JP 2003382682 A JP2003382682 A JP 2003382682A JP 2005148927 A JP2005148927 A JP 2005148927A
Authority
JP
Japan
Prior art keywords
print
print data
print setting
setting
printer
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
JP2003382682A
Other languages
Japanese (ja)
Inventor
Hideo Natori
英夫 名取
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.)
Canon Inc
Original Assignee
Canon Inc
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Canon Inc filed Critical Canon Inc
Priority to JP2003382682A priority Critical patent/JP2005148927A/en
Publication of JP2005148927A publication Critical patent/JP2005148927A/en
Withdrawn legal-status Critical Current

Links

Images

Abstract

<P>PROBLEM TO BE SOLVED: To solve the problem that it is impossible to reflect the sheet size of a printer acquired from a printer on a print setting structure when the print setting structure of plotting data to be outputted by an application is not provided with any private structure. <P>SOLUTION: A complete print setting structure is prepared through a user interface driver having a print setting structure correcting function, and the prepared complete print setting structure is used by a print processor and a printer graphic driver which actually perform print processing. <P>COPYRIGHT: (C)2005,JPO&NCIPI

Description

本発明は、印刷装置で印刷すべき印刷データを生成する情報処理装置および印刷制御方法に関し、特に、印刷するためのドキュメントを作成するアプリケーションから呼び出されユーザに印刷設定を行なわせ設定された印刷設定を保持する印刷設定構造を作成するユーザインタフェースドライバと、印刷設定構造を補正する機能を有する印刷設定構造補正モジュールを有するプリンタドライバを含む情報処理装置及び印刷制御方法に関する。   The present invention relates to an information processing apparatus that generates print data to be printed by a printing apparatus and a print control method, and more particularly, a print setting that is called by an application that creates a document to be printed and is set by a user performing print settings. The present invention relates to an information processing apparatus and a print control method including a user interface driver for creating a print setting structure that holds a print setting, and a printer driver having a print setting structure correction module having a function of correcting the print setting structure.

従来の印刷システムでは、目的の文書を印刷する際に、印刷設定の各項目はユーザインタフェースドライバを介して行われ、ユーザインタフェースドライバはユーザに設定された各設定項目の設定値を含む情報を印刷設定構造としてアプリケーションに返却し、アプリケーションは返却された印刷設定構造を使用して印刷処理を行なう。   In a conventional printing system, when printing a target document, each item of print settings is performed via a user interface driver, and the user interface driver prints information including setting values of each setting item set by the user. The setting structure is returned to the application, and the application performs print processing using the returned print setting structure.

印刷設定構造に格納される情報は、アプリケーションがユーザインタフェースドライバを介して対話的にユーザに各設定項目を設定させることが可能である。また印刷設定構造はオペレーティングシステムの既定の設定項目として公開されているパブリック構造と、プリンタドライバに依存し非公開となっているプライベート構造の二つの部分により構成されている。パブリック構造に格納される情報はプリンタの機種に依存しなく、つまり様々なプリンタドライバの種類には関係なく、一般的な印刷処理に必要な設定項目である。   The information stored in the print setting structure allows the application to interactively set each setting item via the user interface driver. The print setting structure is composed of two parts: a public structure that is disclosed as a default setting item of the operating system and a private structure that is private depending on the printer driver. The information stored in the public structure does not depend on the printer model, that is, it is a setting item necessary for general print processing regardless of the types of various printer drivers.

また、プライベート構造に格納される情報はプリンタの機種に依存する、つまりプリンタドライバ固有の機能であり、プリンタやプリンタドライバの個性的な機能に関する設定項目である。   The information stored in the private structure depends on the printer model, that is, a function specific to the printer driver, and is a setting item regarding individual functions of the printer and the printer driver.

また、アプリケーションは、印刷設定項目のうちOSを介してパブリック構造領域の印刷設定項目についてはOSで規定されているAPIを用いることで設定可能になっている。よって、アプリケーションは公開されているパブリック構造の設定項目については、ユーザインタフェースドライバを介することなく、アプリケーション自身で設定することが可能である。   In addition, the application can set the print setting items in the public structure area through the OS among the print setting items by using an API defined by the OS. Therefore, the application can set the public setting items that are open to the public without using the user interface driver.

アプリケーションが文書を印刷する環境を提供する印刷システムのスプーラは、アプリケーションが印刷に使用する印刷設定構造や、印刷用に作成した文書内容の描画命令をスプールファイルに格納し、印刷システムのデスプーラはスプールファイルから格納されている印刷設定構造を抽出し、文書のページをレイアウトするプリントプロセッサに提供する。   The spooler of the printing system that provides the environment in which the application prints the document stores the print setting structure used by the application for printing and the drawing instruction for the document content created for printing in the spool file. The despooler of the printing system spools the spool The print setting structure stored in the file is extracted and provided to the print processor that lays out the pages of the document.

プリントプロセッサは抽出された印刷設定構造を用いてスプールファイルに格納された印刷データをレイアウトし、プリンタグラフィックドライバに供給する。プリンタグラフィックドライバは供給されたレイアウト済みの印刷データからプリンタが解釈できる印刷コマンドを作成し、作成した印刷コマンドをプリンタに送信する。プリンタは受信した印刷コマンドに従い印刷用紙に印刷処理を行ない、印刷結果が得られる構造になっている。   The print processor uses the extracted print setting structure to lay out the print data stored in the spool file and supplies it to the printer graphic driver. The printer graphic driver creates a print command that the printer can interpret from the supplied laid-out print data, and transmits the created print command to the printer. The printer has a structure in which a print result is obtained by performing print processing on the print paper in accordance with the received print command.

なお、従来、この種の印刷システムとして、下記特許文献が提案されている。
特開2002−333959号公報
Conventionally, the following patent documents have been proposed as this type of printing system.
JP 2002-333959 A

しかしながら上述した従来の技術においては、以下のような問題があった。上述したようにアプリケーションは、印刷設定項目のうち、パブリック構造領域の印刷設定項目は、ユーザインタフェースドライバを介さずに自身で設定することが可能である。現在、米国マイクロソフト社のWINDOWS(登録商標)OS上で動作するアプリケーションは、印刷時に、GDIを介して出力するスプールファイルに印刷設定構造を含ませる仕様となっているが、アプリケーションの中には、この印刷設定構造をスプールファイルと共に出力する際に、ユーザインタフェースドライバからの印刷設定項目(プライベート構造)を含ませないで、出力するものがある。このように、アプリケーションが印刷に使用した印刷設定構造がパブリック構造のみで構成されている場合、プライベート構造が無いためプリンタドライバ固有の設定は含まれない。   However, the conventional techniques described above have the following problems. As described above, the application can set the print setting items in the public structure area among the print setting items by itself without using the user interface driver. Currently, applications that run on WINDOWS (registered trademark) OS of Microsoft Corporation in the United States are designed to include a print setting structure in a spool file that is output via GDI at the time of printing. When this print setting structure is output together with the spool file, some print setting structures (private structure) from the user interface driver are not included. As described above, when the print setting structure used for printing by the application is configured only by the public structure, the setting specific to the printer driver is not included because there is no private structure.

よって、スプール時にはパブリック構造のみで構成される印刷設定構造がスプールファイルに格納され、デスプール時にはこの印刷設定構造が印刷コマンドを生成するためにプリンタドライバのモジュールであるプリントプロセッサに渡される。ここでプリンタドライバを構成するモジュールが印刷設定構造のプライベート構造に印刷実行時の情報を格納しモジュール間で相互に情報の交換を行なうプリンタドライバ(例えば、ユニバーサルプリンタドライバ)では、プライベート構造が無い印刷設定構造で印刷処理を実行するとモジュール間で情報の交換ができなくなり、動作が不安定になったり、プリンタドライバ固有の性能(例えば、ポスター印刷機能)を出し切ることができないという問題があった。   Therefore, a print setting structure including only a public structure is stored in the spool file at the time of spooling, and this print setting structure is passed to a print processor which is a module of the printer driver in order to generate a print command at the time of despooling. Here, a printer driver (for example, a universal printer driver) in which modules constituting a printer driver store information at the time of printing in a private structure of a print setting structure and exchange information between the modules, print without a private structure When the printing process is executed with the setting structure, information cannot be exchanged between the modules, the operation becomes unstable, and the performance specific to the printer driver (for example, a poster printing function) cannot be obtained.

また、同様にアプリケーションが印刷に使用した印刷設定構造のプライベート構造が、プリンタドライバ依存のプライベート構造では無い場合にも、プライベート構造は自身以外のプリンタドライバのものであるので内容を知ることができず、プリンタドライバの動作が不安定になったり、プリンタドライバ固有の性能を出し切ることができないという問題がある。   Similarly, even if the private structure of the print setting structure used for printing by the application is not a printer driver-dependent private structure, the contents cannot be known because the private structure is for a printer driver other than itself. There is a problem that the operation of the printer driver becomes unstable or the performance unique to the printer driver cannot be fully achieved.

例えばプリンタドライバ構成モジュールの一つであるプリントプロセッサが、デスプール時にプリンタから取得したプリンタにセットされている用紙のサイズと、印刷設定構造のパブリック構造に格納されたアプリケーションの用紙サイズとを比較し、用紙サイズが異なっている場合、プライベート構造のプリンタ用紙サイズをプリンタから取得した用紙サイズに変更した印刷設定構造をプリンタグラフィックドライバに供給することで、プリンタにセットされている用紙サイズとアプリケーションの文書の用紙サイズが異なっている時はプリンタの用紙サイズにフィットさせて出力するというプリンタドライバ独自の機能を提供できる。ところが印刷設定構造にプライベート構造が無い場合などは、プリンタから取得したプリンタの用紙サイズを印刷設定構造に反映できないために、プリンタドライバはこの独自機能を適用することができない不具合がある。   For example, the print processor, which is one of the printer driver configuration modules, compares the paper size set in the printer acquired from the printer at the time of despooling with the application paper size stored in the public structure of the print setting structure, If the paper sizes are different, supply the print setting structure in which the printer paper size of the private structure is changed to the paper size obtained from the printer to the printer graphic driver. When the paper size is different, it is possible to provide a function unique to the printer driver that fits the paper size of the printer for output. However, when there is no private structure in the print setting structure, the printer driver cannot apply this unique function because the paper size of the printer acquired from the printer cannot be reflected in the print setting structure.

本発明は上記従来の問題点に鑑みなされたものであり、アプリケーションは文書を印刷するための印刷設定の情報を印刷設定構造に格納し、スプーラはアプリケーションから渡された印刷設定構造をスプールファイルに格納し、デスプーラはスプールファイルに格納された印刷設定構造を抽出しプリントプロセッサに渡し、プリントプロセッサはデスプーラから取得した印刷設定構造を用いて印刷処理を行なう印刷システムにおいて、アプリケーションがプライベート構造を含まない印刷設定構造やプリンタドライバにとって未知のプライベート構造を含む不完全な印刷設定構造を利用した場合に備え、印刷設定構造補正機能を有するユーザインタフェースドライバを介して完全な印刷設定構造を作成し、実際に印刷処理を行なうプリントプロセッサとプリンタグラフィックドライバは作成された完全な印刷設定構造を用いるべく、下記の構成とした。   The present invention has been made in view of the above-described conventional problems. The application stores print setting information for printing a document in a print setting structure, and the spooler stores the print setting structure passed from the application in a spool file. The despooler extracts the print setting structure stored in the spool file and passes it to the print processor. In the printing system in which the print processor performs print processing using the print setting structure acquired from the despooler, the application does not include the private structure. In preparation for using an incomplete print setting structure including a print setting structure or a private structure unknown to the printer driver, a complete print setting structure is created through a user interface driver having a print setting structure correction function. Print process for printing Processor and printer graphic driver to use full print setting structure created, and the following configuration.

まず第1に、上記印刷システムにおいて、スプーラはアプリケーションから取得した印刷設定構造をスプールファイルに格納する前にユーザインタフェースドライバに渡し、完全な印刷設定構造を取得し、取得した完全な印刷設定構造をスプールファイルに格納する構成とした。   First, in the printing system, the spooler passes the print setting structure acquired from the application to the user interface driver before storing it in the spool file, acquires the complete print setting structure, and acquires the acquired complete print setting structure. It is configured to store in a spool file.

第2に、上記印刷システムにおいて、デスプーラはスプールファイルから抽出した印刷設定構造をプリントプロセッサに渡す前にユーザインタフェースドライバに渡し、完全な印刷設定構造を取得し、取得した完全な印刷設定構造をプリントプロセッサに渡す構成とした。   Second, in the above printing system, the despooler passes the print setting structure extracted from the spool file to the user interface driver before passing it to the print processor, acquires the complete print setting structure, and prints the acquired complete print setting structure. It was configured to pass to the processor.

第3に、上記印刷システムにおいて、プリンタドライバの構成モジュールであるプリントプロセッサはデスプーラから取得した印刷設定構造を用いて印刷処理を開始する前にユーザインタフェースドライバに渡し、完全な印刷設定構造を取得し、取得した完全な印刷設定構造を用いて印刷処理を開始する構成とした。   Third, in the above printing system, the print processor, which is a component module of the printer driver, passes the print setting structure acquired from the despooler to the user interface driver before starting the printing process to acquire a complete print setting structure. The print processing is started using the acquired complete print setting structure.

以上説明したように、本発明によれば次のような効果が得られる。   As described above, according to the present invention, the following effects can be obtained.

第1に、スプーラにより完全な印刷設定構造を取得しスプールファイルに格納することにより、プリントプロセッサは完全な印刷設定構造を取得でき、プリンタドライバ固有の性能を引き出すことが可能となる。   First, by acquiring the complete print setting structure by the spooler and storing it in the spool file, the print processor can acquire the complete print setting structure, and the performance specific to the printer driver can be extracted.

第2に、スプーラにより完全な印刷設定構造を取得しスプールファイルに格納することにより、スプールされている状態つまり印刷キューに入っている印刷ジョブの印刷設定を正確に知ることができるようになる。   Secondly, by acquiring a complete print setting structure by the spooler and storing it in the spool file, it is possible to accurately know the print settings of the spooled state, that is, the print job in the print queue.

第3に、デスプーラにより完全な印刷設定構造を取得しプリントプロセッサに供給することにより、プリントプロセッサは完全な印刷設定構造を取得でき、プリンタドライバ固有の性能を引き出すことが可能となる。   Thirdly, by acquiring a complete print setting structure by the despooler and supplying it to the print processor, the print processor can acquire the complete print setting structure, and the performance specific to the printer driver can be extracted.

まず発明に関る基本的な印刷システムを具体例を用いて説明する。なお本具体例ではオペレーティングシステム(以下OSと略す)として、米国マイクロソフト社のWINDOWS(登録商標)2000/XPを用いた場合を示す。   First, a basic printing system related to the invention will be described using a specific example. In this specific example, a case where WINDOWS (registered trademark) 2000 / XP of Microsoft Corporation in the United States is used as an operating system (hereinafter abbreviated as OS) is shown.

図1は、本発明による印刷システムの具体例を示すブロック図である。図において、本発明に関るモジュールは、印刷設定処理部と印刷ページ生成処理部を兼備するユーザインタフェースドライバ3と、印刷ページ合成処理部であるプリントプロセッサ5である。これらのモジュールは、一般にプリンタドライバと呼ばれているが、ここではより詳細にモノレシックプリンタドライバと呼ぶ。モノレシックプリンタドライバとは、米国マイクロソフト社のオペレーションシステムに合わせて、プリンタ開発会社が作成する一貫した構成のプリンタドライバである。このモノレシックプリンタドライバに対して、ユニバーサルプリンタドライバが存在する。ユニバーサルプリンタドライバとは、米国マイクロソフト社が作成する各社のプリンタで共通に用いるプリンタドライバであり、各社のプリンタに固有の印刷設定は、ミニドライバまたはレンダリングプラグインと呼ばれる。ミニドライバまたはレンダリングプラグインは、プリンタ開発会社が独自で作成するモジュールである。   FIG. 1 is a block diagram showing a specific example of a printing system according to the present invention. In the figure, modules related to the present invention are a user interface driver 3 having both a print setting processing unit and a print page generation processing unit, and a print processor 5 which is a print page composition processing unit. These modules are generally called printer drivers, but are more specifically called monolithic printer drivers here. The monolithic printer driver is a printer driver having a consistent configuration created by a printer development company in accordance with an operating system of Microsoft Corporation. A universal printer driver exists for this monolithic printer driver. A universal printer driver is a printer driver that is commonly used by printers of various companies created by Microsoft Corporation in the United States, and print settings unique to the printers of the respective companies are called mini-drivers or rendering plug-ins. The mini driver or the rendering plug-in is a module created by the printer development company.

図1に、モノレシックプリンタドライバを用いた印刷システムのブロック構成を示しており、この印刷システムを構成する101〜108はプリンタ109の上位装置であるパーソナルコンピュータ(本発明の情報処理装置に相当する)等で動作し、アプリケーション101が作成した文書の印刷データをGDI103を介して一時的にEMF形式でスプールファイル105に一時保持し、これをプリンタ109が解釈可能な印刷コマンド形式のビットマップデータに変換しプリンタ109に供給して印刷するよう構成されている。ここでGDIとはグラフィックデバイスインタフェースのことでWINDOWS(登録商標)のグラフィクスエンジンである。またEMFとはEnhancedMetaFileの略でWINDOWS(登録商標)における描画データの論理的な格納形式であり、スプールファイルには印刷データがEMF形式で格納される。ここで、プリンタドライバを構成するモジュールはユーザインタフェースドライバ102と、プリントプロセッサ107とプリンタグラフィックドライバ108である。また、WINDOWS(登録商標)が提供するモジュールはGDI103とスプーラ104とデスプーラ106である。   FIG. 1 shows a block configuration of a printing system using a monolithic printer driver. Reference numerals 101 to 108 constituting the printing system denote personal computers (corresponding to the information processing apparatus of the present invention) which are upper devices of the printer 109. The print data of the document created by the application 101 is temporarily stored in the spool file 105 in the EMF format via the GDI 103, and is converted into bitmap data in the print command format that can be interpreted by the printer 109. The image data is converted, supplied to the printer 109, and printed. Here, GDI is a graphics device interface and is a graphics engine of WINDOWS (registered trademark). EMF is an abbreviation of EnhancedMetaFile, which is a logical storage format of drawing data in WINDOWS (registered trademark), and print data is stored in the spool file in the EMF format. Here, the modules constituting the printer driver are the user interface driver 102, the print processor 107, and the printer graphic driver 108. Modules provided by WINDOWS (registered trademark) are the GDI 103, the spooler 104, and the despooler 106.

ユーザインタフェースドライバ102は印刷に使用する用紙サイズや印刷品位、その他の属性を設定する機能をユーザに提供する。ユーザはユーザインタフェースドライバを介して対話的に印刷設定の各設定項目を変更することが可能であり、設定値を印刷設定構造であるDEVMODEに格納し、アプリケーション101に返却する。   The user interface driver 102 provides the user with a function for setting the paper size, print quality, and other attributes used for printing. The user can interactively change each setting item of the print setting via the user interface driver, stores the setting value in DEVMODE which is the print setting structure, and returns it to the application 101.

アプリケーションは印刷設定構造DEVMODEを作成し、必要に応じユーザインタフェースドライバ102を介してユーザに印刷設定を行なわせ印刷設定構造を獲得し、印刷設定構造に格納されている設定を利用することや文書の内容を描画命令としてGDI103に供給する。   The application creates a print setting structure DEVMODE, makes the user perform print settings via the user interface driver 102 as necessary, obtains the print setting structure, uses the settings stored in the print setting structure, and creates document settings. The contents are supplied to the GDI 103 as a drawing command.

スプーラ104はGDI103を介してアプリケーション101が作成した文書の内容を印刷データとしてスプールファイル105に格納する。またアプリケーション101が印刷に用いた印刷設定構造DEVMODEもスプールファイル105に格納する機能を有する。   The spooler 104 stores the contents of the document created by the application 101 via the GDI 103 in the spool file 105 as print data. The print setting structure DEVMODE used for printing by the application 101 also has a function of storing it in the spool file 105.

デスプーラ106は印刷時にスプールファイル105から印刷設定構造と印刷データを抽出しプリントプロセッサ107に渡す機能を有する。またスプールファイル105に格納された印刷データはページ単位で扱えるような形式でプリントプロセッサ107に供給する機能を有する。   The despooler 106 has a function of extracting a print setting structure and print data from the spool file 105 at the time of printing, and passing them to the print processor 107. The print data stored in the spool file 105 has a function of supplying the print processor 107 with a format that can be handled in units of pages.

プリントプロセッサ107は、印刷時にスプールファイル105から印刷設定構造と印刷データを取得し、印刷データを1ページずつレイアウトし、GDI103を介してプリンタグラフィクスドライバ108に供給し印刷を行うモジュールである。   The print processor 107 is a module that acquires a print setting structure and print data from the spool file 105 during printing, lays out the print data page by page, supplies the print data to the printer graphics driver 108 via the GDI 103, and performs printing.

プリンタグラフィックドライバ108はイメージ生成処理部であり、プリントプロセッサ107が供給した印刷データをもとにGDI2が生成したグラフィック描画コマンドからビットマップデータを生成するモジュールであり、生成したビットマップデータをプリンタが解釈できる印刷コマンド形式にして、図に示していないデータ送信部を介してプリンタ109に供給する。   The printer graphic driver 108 is an image generation processing unit. The printer graphic driver 108 is a module that generates bitmap data from a graphic drawing command generated by the GDI 2 based on print data supplied from the print processor 107, and the printer generates the generated bitmap data. A print command format that can be interpreted is supplied to the printer 109 via a data transmission unit (not shown).

ここで出力デバイスであるプリンタ109は、プリンタグラフィックドライバ108から渡された、印刷コマンド形式のビットマップデータを印刷用紙110に対し印刷する機能を持つ。   Here, the printer 109 as an output device has a function of printing bitmap data in the print command format passed from the printer graphic driver 108 on the printing paper 110.

また、図14を用いて、ユニバーサルプリンタドライバを用いた印刷システムのブロック構成を示している。   FIG. 14 shows a block configuration of a printing system using a universal printer driver.

ここで、この情報処理装置であるコンピュータがプリンタ1108にデータを出力する際には、コンピュータのプリンタドライバ1103がプリンタ1108に応じたデータを作成する。このプリンタドライバ1103には幾つかの形態が考えられるが、ここでは最も簡単な方法としてWINDOWS(登録商標)で提供されるユニバーサルプリンタドライバ1109を用いる場合で説明する。このプリンタドライバ1103は、各プリンタ1108に対応する用紙種類や解像度などの機種情報が記述されたGPDファイル1111と、ユニバーサルプリンタドライバ1109に情報を提供したり、ユニバーサルプリンタドライバ1109の一部の機能を代替するプログラムであるレンダリングplug−in(プラグイン)1110とを具備している。   Here, when the computer as the information processing apparatus outputs data to the printer 1108, the printer driver 1103 of the computer creates data corresponding to the printer 1108. Several forms of the printer driver 1103 are conceivable. Here, a case where a universal printer driver 1109 provided by WINDOWS (registered trademark) is used will be described as the simplest method. The printer driver 1103 provides information to the GPD file 1111 in which model information such as paper type and resolution corresponding to each printer 1108 is described, and the universal printer driver 1109, and provides some functions of the universal printer driver 1109. A rendering plug-in (plug-in) 1110, which is an alternative program, is provided.

アプリケーション1101が印刷要求した描画データ(文書データ、画像データ等の印刷データ)は、グラフィックデバイス・インターフェース(Graphics Device Interface:以下、「GDI」)1102経由でプリンタドライバ1103へ印刷要求として出力される。GDI1102は、通常、一旦、そのデータをEMF(Enhanced Meta File)データとしてスプールファイル1104にスプールし、そのスプールが終了すると、OSが提供するプリントプロセッサ1105に印刷要求を発行する。これによりプリントプロセッサ1105は、スプールファイル1104から印刷出力情報と描画データをページ単位で読み込み、1ページずつGDI1102を介してプリンタドライバ1103に出力して印刷するように要求する。   Drawing data (print data such as document data and image data) requested by the application 1101 is output as a print request to the printer driver 1103 via a graphic device interface (“GDI”) 1102. Normally, the GDI 1102 once spools the data as EMF (Enhanced Meta File) data in the spool file 1104, and when the spooling is completed, issues a print request to the print processor 1105 provided by the OS. As a result, the print processor 1105 reads the print output information and the drawing data from the spool file 1104 on a page-by-page basis, and requests each page to be output to the printer driver 1103 via the GDI 1102 for printing.

このプリントプロセッサ1105は、スプールファイル1104にスプールされている描画データをプリンタドライバ1103に出力する際、プリンタドライバ1103から出力されるラスタイメージデータの解像度に合わせて座標情報を変換する機能がある。尚、このプリントプロセッサ1105は、OSのモジュールとして用意されているが、プリンタ1108のメーカ等がカスタマイズしたプリントプロセッサ1105をレンダリングplug−in1110、GPDファイル1111とともに供給し、それらをハードディスクにインストールするようにしてもよい。こうしてプリントプロセッサ1105から印刷が要求されたプリンタドライバ1103は、GDIレンダリングエンジン1107を用いて、その描画データをラスタイメージデータにレンダリングした後、色処理やプリンタコマンドの付加などを行い、ポートモニタ1106経由でプリンタ1108に送信する。   The print processor 1105 has a function of converting coordinate information in accordance with the resolution of raster image data output from the printer driver 1103 when the drawing data spooled in the spool file 1104 is output to the printer driver 1103. Although this print processor 1105 is prepared as an OS module, the print processor 1105 customized by the manufacturer of the printer 1108 and the like is supplied together with the rendering plug-in 1110 and the GPD file 1111 and installed on the hard disk. May be. In this way, the printer driver 1103 requested to print from the print processor 1105 uses the GDI rendering engine 1107 to render the rendering data into raster image data, and then performs color processing, addition of a printer command, and the like, via the port monitor 1106. To the printer 1108.

図3に完全な印刷設定構造DEVMODEの概念図を示す。図に示されるようにパブリック構造とプライベート構造で構成され、パブリック構造には一般的な印刷に必要な設定項目の情報が格納される。本図では部数、印刷品位、アプリケーションの原稿の用紙サイズ、プリンタにセットされているメディアの種類、メディアがセットされている給紙口をパブリック構造の設定項目として例に挙げている。   FIG. 3 shows a conceptual diagram of the complete print setting structure DEVMODE. As shown in the figure, it is composed of a public structure and a private structure, and information on setting items necessary for general printing is stored in the public structure. In this figure, the number of copies, the print quality, the paper size of the original document of the application, the type of media set in the printer, and the paper feed port on which the media is set are given as examples of setting items of the public structure.

一方プライベート構造にはプリンタドライバ固有の情報が格納されており、ハーフトーン手法、濃度調整値、プリンタにセットされているメディアのサイズ、スタンプ機能、背景機能を設定項目の例に挙げている。プライベート構造の内容はプリンタドライバによって異なっており、アプリケーションは内部を知ることが出来ないためプライベート構造に格納された設定項目の設定値を独自に変更することはできない。   On the other hand, information specific to the printer driver is stored in the private structure, and examples of setting items include a halftone method, a density adjustment value, a size of a medium set in the printer, a stamp function, and a background function. The contents of the private structure differ depending on the printer driver, and the application cannot know the inside, so the setting value of the setting item stored in the private structure cannot be changed independently.

アプリケーションは図2で示されるユーザインタフェースドライバの印刷設定ダイアログを表示し、ユーザは設定項目を変更するために印刷設定ダイアログを操作し、その結果印刷設定ダイアログの各設定項目の設定値が印刷設定構造のプライベート構造とパブリック構造に格納される。アプリケーションがユーザインタフェースドライバの印刷設定ダイアログを表示することなく変更できるのは印刷設定構造のパブリック構造に格納される設定項目のみに限定される。   The application displays the print setting dialog of the user interface driver shown in FIG. 2, and the user operates the print setting dialog to change the setting item. As a result, the setting value of each setting item in the print setting dialog is the print setting structure. Stored in private and public structures. The application can change only without displaying the print setting dialog of the user interface driver only for setting items stored in the public structure of the print setting structure.

不完全な印刷設定構造DEVMODEのうち、プライベート構造を含まない印刷設定構造は図4に示すようにパブリック構造のみで構成される。またプリンタドライバにとって未知のプライベート構造を含む印刷設定構造は図5のようにパブリック構造の他にも未知のプライベート構造を含んでおり、プリンタドライバは未知のプライベート構造にはどのような設定項目が含まれているかを知り得ない。   Of the incomplete print setting structure DEVMODE, the print setting structure that does not include the private structure includes only a public structure as shown in FIG. The print setting structure including the private structure unknown to the printer driver includes an unknown private structure in addition to the public structure as shown in FIG. 5, and the printer driver includes any setting items in the unknown private structure. I do not know if it is.

図1のプリントプロセッサ107はデスプール時にデスプーラから取得した印刷設定構造DEVMODEのプライベート構造の内容を必要に応じ変更し、GDI103を介してプリンタグラフィックドライバ108に供給し印刷処理を行なう。ここでデスプーラ106から取得した印刷設定構造が完全では無い場合、従来の印刷システムでは印刷設定構造のプライベート構造にプリンタグラフィックドライバ108に連絡すべき情報を格納することができず、プリンタドライバ固有の性能を引き出すことができなかった。   The print processor 107 in FIG. 1 changes the contents of the private structure of the print setting structure DEVMODE acquired from the despooler at the time of despooling, and supplies it to the printer graphic driver 108 via the GDI 103 to perform printing processing. If the print setting structure acquired from the despooler 106 is not perfect, the conventional print system cannot store information to be communicated to the printer graphic driver 108 in the private structure of the print setting structure, and the performance unique to the printer driver. Could not be pulled out.

本実施例の印刷システムでは、少なくともプリントプロセッサ107が完全な印刷設定構造DEVMODEを取得することができ、プリンタドライバ固有の性能を発揮できる。如何に本発明の印刷システムについて記述する。   In the printing system of this embodiment, at least the print processor 107 can acquire the complete print setting structure DEVMODE, and can exhibit the performance specific to the printer driver. How the printing system of the present invention is described.

以下、図面に示す実施例に基づき本発明を詳細に説明する。尚、本実施形態の特徴を説明する上で特に必要ないと思われる機能については省略する。   Hereinafter, the present invention will be described in detail based on embodiments shown in the drawings. It should be noted that functions that are not particularly necessary for describing the features of the present embodiment are omitted.

<スプーラが完全な印刷設定構造を取得しスプールファイルに格納する形態>
以下、図面に示す実施例に基づき本実施形態を詳細に説明する。
<Spooler obtains complete print setting structure and stores it in spool file>
Hereinafter, the present embodiment will be described in detail based on examples shown in the drawings.

図2は本実施形態におけるユーザインタフェースドライバが提供する、各種印刷設定を行う際に表示される印刷設定ダイアログの一例を示す図である。この印刷設定ダイアログによりユーザによる上記設定内容の変更指示や入力を受け付ける。   FIG. 2 is a diagram illustrating an example of a print setting dialog provided when various print settings are provided by the user interface driver according to the present embodiment. The print setting dialog accepts a change instruction or input of the setting contents from the user.

同図において、301は印刷設定ダイアログであり、302〜311、320〜331までの各表示エリアから構成される。印刷設定では表示する項目が非常に多いため、タブシートを使用して設定項目を内容ごとに分けて見やすい構成にするのが通例である。本実施形態でもタブを使用する。302は基本設定タブであり、印刷の基本に関する内容を表示する。詳細については後述する。303はページ設定のタブであり、用紙の大きさ、印刷方向、印刷レイアウト(N−up)などの各種ページ設定に関する内容を表示する。   In the figure, reference numeral 301 denotes a print setting dialog, which includes display areas 302 to 311 and 320 to 331. Since there are a large number of items to be displayed in the print settings, it is common to use a tab sheet to divide the setting items according to the contents so that they are easy to see. Tabs are also used in this embodiment. Reference numeral 302 denotes a basic setting tab, which displays contents related to printing basics. Details will be described later. Reference numeral 303 denotes a page setting tab, which displays contents related to various page settings such as the paper size, print direction, and print layout (N-up).

304はスタンプ/背景のタブであり、印刷文書に対して文字を重ねるスタンプ機能や、画像を重ねる背景機能という、印刷文書を変更することなしに印刷時に付加するパターンの選択画面を表示する。305は特殊効果のタブであり、各種画像補整やセピア調など特殊な効果を画像に与える場合に使用する機能の選択画面を表示する。306はお気に入りのタブであり頻繁に使用する印刷設定などの保存と呼び出し機能を選択させる画面を表示する。   Reference numeral 304 denotes a stamp / background tab, which displays a pattern selection screen to be added at the time of printing without changing the print document, such as a stamp function for superimposing characters on a print document and a background function for overlaying an image. Reference numeral 305 denotes a special effect tab, which displays a selection screen of functions used when special effects such as various image corrections and sepia tones are given to an image. Reference numeral 306 denotes a favorite tab, which displays a screen for selecting a save and call function such as frequently used print settings.

307はユーティリティのタブであり、ヘッドの調整やクリーニングなどの機能の選択画面を表示する。320は基本設定の簡易表示エリアであり、文字情報だけでなく視覚に訴える形で、設定された情報を表示する。321はプリントアドバイザであり印刷目的から最適な印刷設定を段階的に導く機能を持つサブダイアログを表示する。322は用紙種類選択部であり用紙種類を表示するとともに選択することができ、ドロップダウンメニューとなっており普段は選択されている用紙種類が表示され、クリックすることで選択可能な用紙種類がリストされる。選択可能な用紙種類はプリンタで印刷可能な用紙である。   Reference numeral 307 denotes a utility tab that displays a selection screen for functions such as head adjustment and cleaning. Reference numeral 320 denotes a basic setting simple display area, which displays not only character information but also set information in a form appealing visually. Reference numeral 321 denotes a print advisor that displays a sub-dialog having a function for guiding optimum print settings step by step from the print purpose. Reference numeral 322 denotes a paper type selection unit that displays and can select a paper type. A drop-down menu displays a normally selected paper type. A list of paper types that can be selected by clicking is displayed. Is done. The selectable paper type is paper that can be printed by the printer.

323はプリンタ本体が用紙を給紙する給紙方法を表示選択することができ、たとえば自動給紙口である給紙トレイや給紙カセットが選択できる。324は印刷の品位を設定する項目である。325は印刷の色や濃度を調整するための項目である。326は印刷文書がカラーであっても印刷結果をグレースケールにするためのチェックボックスである。327は印刷部数を設定する項目である。この数値を設定することによりアプリケーションが作成した印刷ジョブの印刷データを、プリンタドライバが繰り返し印刷することにより複数部数の印刷結果を得ることができる。   A printer 323 can display and select a paper feed method for feeding paper by the printer main body. For example, a paper feed tray or a paper cassette as an automatic paper feed port can be selected. Reference numeral 324 denotes an item for setting the print quality. Reference numeral 325 denotes an item for adjusting the printing color and density. Reference numeral 326 denotes a check box for making the print result gray scale even if the print document is in color. Reference numeral 327 denotes an item for setting the number of copies to be printed. By setting this numerical value, the print data of the print job created by the application is repeatedly printed by the printer driver, whereby a plurality of copies of the print results can be obtained.

328はページ順を逆順に設定する項目である。329は印刷を部単位で行なうかどうかを設定する項目であり印刷部数327の設定が2以上の場合に設定が有効となる。330は本ダイアログを表示するドライバのバージョンを示すサブダイアログを表示する。331は基本設定302の設定を標準(出荷時設定)に戻す機能をもつ。ユーザは各項目を選択した後にOKボタン308を押下することで印刷設定ダイアログ301を閉じ、選択した印刷設定を印刷に反映させることができる。つまりOKボタン308が押下されたことによりユーザが操作した印刷設定ダイアログの情報を、印刷設定構造DEVMODEの設定項目として格納することになる。Cancelボタン309を押下すると印刷設定ダイアログ301が閉じ、選択した設定項目の内容は破棄され印刷に反映されることはない。Applyボタン310を押下することで、印刷設定ダイアログ301は開いたままで選択した印刷設定を印刷に反映させることができる。Helpボタン311は基本設定302の各設定項目に関する説明文を別ウィンドウで表示させることができる。   328 is an item for setting the page order in reverse order. Reference numeral 329 denotes an item for setting whether or not to perform printing in units of copies. The setting is effective when the setting of the number of copies 327 is 2 or more. 330 displays a sub-dialog indicating the version of the driver that displays this dialog. Reference numeral 331 has a function of returning the setting of the basic setting 302 to the standard (shipment setting). The user closes the print setting dialog 301 by pressing an OK button 308 after selecting each item, and can reflect the selected print setting in printing. That is, the information of the print setting dialog operated by the user when the OK button 308 is pressed is stored as the setting item of the print setting structure DEVMODE. When the Cancel button 309 is pressed, the print setting dialog 301 is closed, and the contents of the selected setting item are discarded and are not reflected in printing. By pressing the Apply button 310, the print settings dialog 301 can be reflected and the selected print settings can be reflected in printing. A Help button 311 can display an explanatory text regarding each setting item of the basic setting 302 in a separate window.

図6は、本実施形態における印刷システムの具体例を示すブロック図である。本図に示されるスプーラ114以外の各ブロックは図1と同様であるので指示番号は同じ数字を利用し説明を省略する。   FIG. 6 is a block diagram showing a specific example of the printing system in the present embodiment. Since the blocks other than the spooler 114 shown in the figure are the same as those in FIG. 1, the same reference numerals are used for the instruction numbers, and the description thereof is omitted.

本実施形態のスプーラ114はGDI103を介して取得したアプリケーションの印刷設定構造をそのままスプールファイル105に格納するのではなく、取得した印刷設定構造をユーザインタフェースドライバ102に渡し、完全な印刷設定構造を作成してからスプールファイル105に格納する。従ってスプールファイル105には完全な印刷設定構造が格納され、デスプーラ106によりスプールファイル105から抽出された完全な印刷設定構造はプリントプロセッサ107に供給される。結果プリントプロセッサ107はデスプーラ106から得た完全な印刷設定構造のプライベート構造の印刷設定項目の設定値を変更し、GDI103を介してグラフィックドライバ106に情報を正しく通知することが可能となり、プリンタドライバ固有の性能を発揮することができるようになる。   The spooler 114 of the present embodiment does not store the print setting structure of the application acquired via the GDI 103 in the spool file 105 as it is, but passes the acquired print setting structure to the user interface driver 102 to create a complete print setting structure. And then stored in the spool file 105. Therefore, the complete print setting structure is stored in the spool file 105, and the complete print setting structure extracted from the spool file 105 by the despooler 106 is supplied to the print processor 107. As a result, the print processor 107 can change the setting value of the print setting item of the private structure of the complete print setting structure obtained from the despooler 106, and can correctly notify the graphic driver 106 of information via the GDI 103. The performance of can be demonstrated.

次に図を用いてスプーラ114の完全な印刷設定構造取得処理の流れと、ユーザインタフェースドライバ102の受け取った印刷設定構造から完全な印刷設定構造を作成する処理の流れを説明する。   Next, a flow of a complete print setting structure acquisition process of the spooler 114 and a flow of a process of creating a complete print setting structure from the print setting structure received by the user interface driver 102 will be described with reference to the drawings.

図8はスプーラ114の完全な印刷設定構造取得処理を含む印刷命令格納処理を示すフローチャートである。このフローチャートでは、図6に示したスプーラ114の動作について説明するものであるが、図14に示したスプールファイル1104をスプールするGDI1102に置き換えても成り立つ。   FIG. 8 is a flowchart showing print command storage processing including complete print setting structure acquisition processing of the spooler 114. In this flowchart, the operation of the spooler 114 shown in FIG. 6 is described. However, the spool file 1104 shown in FIG. 14 may be replaced with the GDI 1102 for spooling.

S101で、スプーラ114は、アプリケーション101が発行した文書を印刷するための命令を取得する。S102では、スプーラ114は、取得した命令が印刷命令かどうか、つまりアプリケーション101による印刷設定構造を利用することを表す命令かどうかを判定し、印刷設定構造命令の場合はS103に移る。S103では、スプーラ114は、取得した印刷命令構造をユーザインタフェースドライバ102に渡し、後述するユーザインタフェースドライバ102の印刷設定構造補正処理により、完全な印刷設定構造を新たに取得する。続いてS104では、スプーラ114は、印刷設定構造命令と新たに取得した完全な印刷設定構造をスプール形式でスプールファイル105に格納し、処理を終了する。また、S102において取得した命令が印刷設定構造命令では無い場合、つまりアプリケーション101の文書を印刷するための描画命令で在る場合は、取得した印刷命令を対応するスプール形式でスプールファイル105に格納し、処理を終了する。こうしてアプリケーション101が発行した印刷設定構造命令に付随する印刷設定構造が不完全な場合であっても、スプーラ114が完全な印刷設定構造を取得し、不完全な印刷設定構造の代わりにスプールファイル105に格納することで、後にプリントプロセッサ107はデスプーラ106から完全な印刷設定構造を取得できるようになる。   In step S <b> 101, the spooler 114 acquires a command for printing a document issued by the application 101. In S102, the spooler 114 determines whether the acquired command is a print command, that is, a command indicating that the print setting structure is used by the application 101. If the command is a print setting structure command, the process proceeds to S103. In S103, the spooler 114 passes the acquired print command structure to the user interface driver 102, and newly acquires a complete print setting structure by print setting structure correction processing of the user interface driver 102 described later. Subsequently, in S104, the spooler 114 stores the print setting structure command and the newly acquired complete print setting structure in the spool file 105 in the spool format, and ends the processing. If the command acquired in S102 is not a print setting structure command, that is, if it is a drawing command for printing the document of the application 101, the acquired print command is stored in the spool file 105 in the corresponding spool format. The process is terminated. Thus, even if the print setting structure accompanying the print setting structure command issued by the application 101 is incomplete, the spooler 114 acquires the complete print setting structure, and the spool file 105 is used instead of the incomplete print setting structure. , The print processor 107 can acquire a complete print setting structure from the despooler 106 later.

図7はユーザインタフェースドライバ102の印刷設定構造補正処理を示すフローチャートである。このフローチャートでは、図1に示したユーザインタフェースドライバ102の動作について説明するものであり、本処理はユーザインタフェースドライバ102に入力された印刷設定構造から、完全な印刷設定構造を作成することを目的としている。   FIG. 7 is a flowchart showing print setting structure correction processing of the user interface driver 102. This flowchart describes the operation of the user interface driver 102 shown in FIG. 1, and this processing is for the purpose of creating a complete print setting structure from the print setting structure input to the user interface driver 102. Yes.

まずS201で、ユーザインタフェースドライバ102は、各設定項目の設定値を既定値とする完全な設定構造を作成し出力印刷設定構造とする。続いてS202でユーザインタフェースドライバに与えられた入力印刷設定構造を取得する。続いてS203では、ユーザインタフェースドライバ102は、前のステップで取得した入力印刷設定構造が正当なパブリック構造を持つかどうか確認し、正当なパブリック構造を持たない場合はS208に移り、S201で作成した出力印刷設定構造を返却し、処理を終了する。一方S203の判断で正当なパブリック構造を持つと判断された場合はS204に移り、入力印刷設定構造のパブリック構造を出力印刷設定構造のパブリック構造にコピーする。続いてS205では、ユーザインタフェースドライバ102は、入力印刷設定構造は正当なプライベート構造を持つかどうか確認し、正当なプライベート構造を持つ場合はS206に移り、正当なプライベート構造を持たない場合はS207に移る。   First, in step S <b> 201, the user interface driver 102 creates a complete setting structure in which the setting value of each setting item is a default value, and sets it as an output print setting structure. In step S202, the input print setting structure given to the user interface driver is acquired. In step S203, the user interface driver 102 checks whether the input print setting structure acquired in the previous step has a valid public structure. If the input print setting structure does not have a valid public structure, the process proceeds to step S208 and is created in step S201. The output print setting structure is returned and the process is terminated. On the other hand, if it is determined in S203 that the public structure is valid, the process proceeds to S204, and the public structure of the input print setting structure is copied to the public structure of the output print setting structure. In step S205, the user interface driver 102 checks whether the input print setting structure has a valid private structure. If the input print setting structure has a valid private structure, the process proceeds to step S206. If the input print setting structure does not have a valid private structure, the process proceeds to step S207. Move.

S206では、入力印刷設定構造は正当なプライベート構造を持つため、ユーザインタフェースドライバ102は、これを出力印刷設定構造のプライベート構造へコピーし、S207に移る。S207では、ユーザインタフェースドライバ102は、出力印刷設定構造のプライベート構造の設定項目の設定値と、パブリック構造の設定項目の設定値を調査し、全体として設定に矛盾が無いように調整する。続いてS208に移り出力印刷設定構造を返却して処理を終了する。ここでS207における矛盾の無い設定とは、例えば図3で示される印刷設定構造の設定項目のうち、パブリック構造の設定項目である給紙口は「オートシートフィーダ」となっており、プライベート構造の設定項目である出力用紙サイズは「A4」となっている。ここではプリンタ109のオートシートフィーダがA4サイズの印刷用紙を給紙できるため、この二つの設定項目の間に矛盾がない。   In S206, since the input print setting structure has a valid private structure, the user interface driver 102 copies this to the private structure of the output print setting structure, and proceeds to S207. In step S207, the user interface driver 102 investigates the setting value of the private structure setting item and the setting value of the public structure setting item in the output print setting structure, and adjusts the settings so that there is no contradiction as a whole. In step S208, the output print setting structure is returned and the process is terminated. Here, the setting with no contradiction in S207 means that, for example, among the setting items of the print setting structure shown in FIG. 3, the sheet feeding port which is the setting item of the public structure is “auto sheet feeder”, and the private structure The output paper size, which is a setting item, is “A4”. Here, since the auto sheet feeder of the printer 109 can feed A4 size printing paper, there is no contradiction between the two setting items.

ここでプライベート構造の設定項目である出力用紙サイズは、アプリケーション101がユーザインタフェースドライバ102を介して図3に示される印刷設定ダイアログを表示しユーザが設定を変更することによってはじめて設定値が変わる。   Here, the output paper size, which is a setting item of the private structure, changes only when the application 101 displays the print setting dialog shown in FIG. 3 via the user interface driver 102 and the user changes the setting.

一方パブリック構造の設定項目は印刷設定ダイアログを表示しなくてもアプリケーション101が自由に変更できる。従って例えばプリンタ109は手差し給紙口からはA4サイズの印刷用紙を給紙できない仮定において、出力用紙サイズの設定値が「A4」、給紙口の設定値が「手差し給紙」となる場合もあり、この場合は設定項目間に矛盾があることになる。以上のようにユーザインタフェースドライバは入力された印刷設定構造を用いて設定項目間に矛盾のないような完全な印刷設定項目を作成することができる。   On the other hand, the setting items of the public structure can be freely changed by the application 101 without displaying the print setting dialog. Therefore, for example, assuming that the printer 109 cannot feed A4 size printing paper from the manual paper feed slot, the output paper size setting value may be “A4” and the paper feed slot setting value may be “manual paper feed”. In this case, there is a contradiction between the setting items. As described above, the user interface driver can use the input print setting structure to create complete print setting items that do not contradict settings items.

図13は本実施形態における印刷システムのハードウェア構成を示すブロック図である。本図において、901は、CRT表示装置であり、図2に示すユーザインタフェースドライバが提供する印刷設定ダイアログ等を表示する。902はCRTCで表示装置用のコントローラである。903は、キーボードなどのデータ入力装置であり、904は、キーボードコントローラである。905は、ポインティングデバイス等の座標入力装置であり、906は、ポインティングデバイスコントローラである。907は、装置全体の制御を司るCPUである。908は、ブートプログラムなどを記憶しているROMである。909は、OS、各アプリケーションプログラムと図7、8、10、12のフローチャートに関るプリンタドライバプログラムを格納したり、さらにはワークエリアとしても利用されるRAMである。   FIG. 13 is a block diagram illustrating a hardware configuration of the printing system according to the present embodiment. In this figure, reference numeral 901 denotes a CRT display device, which displays a print setting dialog provided by the user interface driver shown in FIG. Reference numeral 902 denotes a controller for a display device which is a CRTC. Reference numeral 903 denotes a data input device such as a keyboard, and reference numeral 904 denotes a keyboard controller. Reference numeral 905 denotes a coordinate input device such as a pointing device, and reference numeral 906 denotes a pointing device controller. Reference numeral 907 denotes a CPU that controls the entire apparatus. Reference numeral 908 denotes a ROM that stores a boot program and the like. Reference numeral 909 denotes a RAM that stores an OS, each application program, and a printer driver program related to the flowcharts of FIGS. 7, 8, 10, and 12, and is also used as a work area.

910は、OS、各アプリケーションプログラムと図7、8、10、12のフローチャートに関るプログラムを含むプリンタドライバプログラム、フォントデータを記憶しており、さらにはスプールファイル等を一時的に記憶するハードディスク装置であり、911はハードディスクコントローラである。912は、可搬性記憶媒体の駆動装置であるフロッピー(登録商標)ディスク装置であり、913はフロッピー(登録商標)ディスクコントローラである。   A hard disk device 910 stores an OS, each application program, a printer driver program including programs related to the flowcharts of FIGS. 7, 8, 10 and 12, font data, and temporarily stores spool files and the like. 911 is a hard disk controller. A floppy (registered trademark) disk device 912 is a drive device for a portable storage medium, and a floppy (registered trademark) disk controller 913.

914は、インターフェースであり、インターフェースケーブルを介してインクジェットプリンタなどの印刷装置915に接続される。916は、各デバイスを接続するバスである。本装置に電源が投入されると、CPU907はROM908に格納されているブートプログラムに従って起動し、ハードディスク装置910からOSをロードし、操作者の操作待ち状態になる。そして、操作者からKB903またはPD905からアプリケーションを介して印刷指示やプリンタドライバの印刷設定変更指示を受けた場合、もしくは自動的に起動するように設定されている場合は、ハードディスク装置910に格納されているプリンタドライバプログラムがRAM909にロードされ実行される。   Reference numeral 914 denotes an interface which is connected to a printing apparatus 915 such as an inkjet printer via an interface cable. A bus 916 connects each device. When the power of the apparatus is turned on, the CPU 907 is activated in accordance with a boot program stored in the ROM 908, loads the OS from the hard disk device 910, and waits for an operator operation. When an operator receives a print instruction or a print setting change instruction for the printer driver from the KB 903 or PD 905 via an application, or when the operator is set to start automatically, it is stored in the hard disk device 910. The printer driver program is loaded into the RAM 909 and executed.

<デスプーラが完全な印刷設定構造を取得しプリントプロセッサに渡す形態>
以下、図面に示す実施例に基づき本実施形態を説明する。ただし印刷設定ダイアログとユーザインタフェースドライバの印刷設定構造補正処理、ハードウェア構成は上述した実施形態と同様なので説明を省略する。
<Despooler obtains complete print setting structure and passes to print processor>
Hereinafter, the present embodiment will be described based on examples shown in the drawings. However, the print setting dialog, the print setting structure correction processing of the user interface driver, and the hardware configuration are the same as those in the above-described embodiment, and thus description thereof is omitted.

図9は、本実施形態における印刷システムの具体例を示すブロック図である。本図に示されるデスプーラ116以外の各ブロックは図1と同様であるので指示番号は同じ数字を利用し説明を省略する。本実施形態のデスプーラ116はスプールファイル105から取得したアプリケーションの印刷設定構造をそのままプリントプロセッサ107に渡すのではなく、取得した印刷設定構造をユーザインタフェースドライバ102に渡し、完全な印刷設定構造を作成してからプリントプロセッサ107に渡す。従ってプリントプロセッサ107には完全な印刷設定構造が渡され、結果プリントプロセッサ107はデスプーラ116から得た完全な印刷設定構造のプライベート構造の印刷設定項目の設定値を変更し、GDI103を介してグラフィックドライバ108に情報を正しく通知することが可能となり、プリンタドライバ固有の性能を発揮することができるようになる。   FIG. 9 is a block diagram showing a specific example of the printing system in the present embodiment. Each block other than the despooler 116 shown in this figure is the same as that shown in FIG. The despooler 116 of this embodiment does not pass the print setting structure of the application acquired from the spool file 105 to the print processor 107 as it is, but passes the acquired print setting structure to the user interface driver 102 to create a complete print setting structure. And then to the print processor 107. Accordingly, the complete print setting structure is passed to the print processor 107, and the result print processor 107 changes the setting value of the print setting item of the private structure of the complete print setting structure obtained from the despooler 116, and the graphic driver via the GDI 103. The information can be correctly notified to 108, and the performance specific to the printer driver can be exhibited.

図10はデスプーラ116の完全な印刷設定構造取得処理を含む、スプールファイル105からの印刷設定構造抽出処理を示すフローチャートである。S301で、デスプーラ116は、スプールファイルから印刷設定構造を抽出する。この印刷設定構造はアプリケーション101が作成したものであり不完全である可能性が在る。続いてS302では、デスプーラ116は、前のステップで取得した印刷設定構造をユーザインタフェースドライバ102に渡し、前述したユーザインタフェースドライバ102の印刷設定構造補正処理により、完全な印刷設定構造を新たに取得する。続いてS303では、デスプーラ116は、新たに取得した完全な印刷設定構造をプリントプロセッサ107に供給する。こうしてアプリケーション101が作成した印刷設定構造が不完全な場合であっても、デスプーラ116が完全な印刷設定構造を取得し、不完全な印刷設定構造の代わりにプリントプロセッサ107に供給することで、プリントプロセッサ107は完全な印刷設定構造を取得できるようになる。   FIG. 10 is a flowchart showing a print setting structure extraction process from the spool file 105 including a complete print setting structure acquisition process of the despooler 116. In step S301, the despooler 116 extracts a print setting structure from the spool file. This print setting structure is created by the application 101 and may be incomplete. In step S302, the despooler 116 passes the print setting structure acquired in the previous step to the user interface driver 102, and newly acquires a complete print setting structure by the print setting structure correction processing of the user interface driver 102 described above. . In step S <b> 303, the despooler 116 supplies the newly acquired complete print setting structure to the print processor 107. Even when the print setting structure created by the application 101 is incomplete, the despooler 116 acquires the complete print setting structure and supplies it to the print processor 107 instead of the incomplete print setting structure. The processor 107 can acquire a complete print setting structure.

<プリントプロセッサが完全な印刷設定構造を取得し印刷処理を行なう形態>
以下、図面に示す実施例に基づき本実施形態を説明する。ただし印刷設定ダイアログとユーザインタフェースドライバの印刷設定構造補正処理、ハードウェア構成は前述した実施形態と同様なので説明を省略する。
<Mode in which the print processor acquires a complete print setting structure and performs print processing>
Hereinafter, the present embodiment will be described based on examples shown in the drawings. However, the print setting dialog, the print setting structure correction processing of the user interface driver, and the hardware configuration are the same as those in the above-described embodiment, and thus description thereof is omitted.

図11は、本実施形態における印刷システムの具体例を示すブロック図である。本図に示されるプリントプロセッサ117以外の各ブロックは図1と同様であるので指示番号は同じ数字を利用し説明を省略する。本実施形態のプリントプロセッサ117は、デスプーラ108から取得したアプリケーションの印刷設定構造をそのまま印刷処理に用いるのではなく、取得した印刷設定構造をユーザインタフェースドライバ102に渡し、完全な印刷設定構造を作成してから印刷処理を行なう。プリントプロセッサ117は完全な印刷設定構造のプライベート構造の印刷設定項目の設定値を変更し、GDI103を介してグラフィックドライバ106に情報を正しく通知することが可能となり、プリンタドライバ固有の性能を発揮することができるようになる。   FIG. 11 is a block diagram illustrating a specific example of a printing system according to the present embodiment. Since the blocks other than the print processor 117 shown in this figure are the same as those in FIG. 1, the same reference numerals are used for the instruction numbers, and the description thereof is omitted. The print processor 117 according to the present embodiment does not directly use the print setting structure of the application acquired from the despooler 108 for print processing, but passes the acquired print setting structure to the user interface driver 102 to create a complete print setting structure. Then print. The print processor 117 can change the setting value of the print setting item of the private structure of the complete print setting structure, and can correctly notify the information to the graphic driver 106 via the GDI 103, thereby exhibiting the performance specific to the printer driver. Will be able to.

図12はプリントプロセッサ117の完全な印刷設定構造取得処理を含む、デスプーラ106からの印刷設定構造取得処理を示すフローチャートである。S401では、プリントプロセッサ117は、デスプーラ106から印刷設定構造を取得する。この印刷設定構造はアプリケーション101が作成したものであり不完全である可能性が在る。続いてS402では、プリントプロセッサ117は、前のステップで取得した印刷設定構造をユーザインタフェースドライバ102に渡し、前述したユーザインタフェースドライバ102の印刷設定構造補正処理により、完全な印刷設定構造を新たに取得し、処理を終了する。こうしてアプリケーション101が作成した印刷設定構造が不完全な場合であっても、プリントプロセッサ117が完全な印刷設定構造を取得できるようになる。   FIG. 12 is a flowchart showing print setting structure acquisition processing from the despooler 106 including complete print setting structure acquisition processing of the print processor 117. In step S <b> 401, the print processor 117 acquires a print setting structure from the despooler 106. This print setting structure is created by the application 101 and may be incomplete. In step S <b> 402, the print processor 117 passes the print setting structure acquired in the previous step to the user interface driver 102, and newly acquires a complete print setting structure by the print setting structure correction processing of the user interface driver 102 described above. Then, the process ends. Thus, even when the print setting structure created by the application 101 is incomplete, the print processor 117 can acquire a complete print setting structure.

以上、3つの実施形態を説明したが、上記3パターンの実施形態の組み合わせた印刷システムでも同様の効果が得られることは言うまでもない。   Although the three embodiments have been described above, it is needless to say that the same effect can be obtained with a printing system in which the above three patterns of embodiments are combined.

また、本実施形態ではユーザインタフェースドライバは印刷設定構造の補正機能を有し、完全な印刷設定構造の取得はユーザインタフェースドライバを介して行なう構成としたが、印刷設定構造の補正機能を別のプリンタドライバを構成するモジュールとしてもよい。   In this embodiment, the user interface driver has a print setting structure correction function, and a complete print setting structure is acquired via the user interface driver. However, the print setting structure correction function is provided by another printer. It may be a module constituting a driver.

<他の実施形態>
本発明は上述のように、複数の機器(たとえばホストコンピュータ、インタフェース機器、リーダ、プリンタ等)から構成されるシステムに適用しても一つの機器(たとえば複写機、ファクシミリ装置)からなる装置に適用してもよい。
<Other embodiments>
As described above, the present invention can be applied to a system composed of a plurality of devices (for example, a host computer, an interface device, a reader, a printer, etc.) but also to an apparatus composed of a single device (for example, a copying machine, a facsimile machine). May be.

また、前述した実施形態の機能を実現するように各種のデバイスを動作させるように該各種デバイスと接続された装置あるいはシステム内のコンピュータに、前記実施形態機能を実現するためのソフトウェアのプログラムコードを供給し、そのシステムあるいは装置のコンピュータ(CPUあるいはMPU)を格納されたプログラムに従って前記各種デバイスを動作させることによって実施したものも本発明の範疇に含まれる。   In addition, a program code of software for realizing the functions of the embodiment is provided in an apparatus or a computer in the system connected to the various devices so as to operate the various devices so as to realize the functions of the above-described embodiments. What is implemented by operating the various devices in accordance with a program stored in a computer (CPU or MPU) of the system or apparatus supplied is also included in the scope of the present invention.

またこの場合、前記ソフトウェアのプログラムコード自体が前述した実施形態の機能を実現することになり、そのプログラムコード自体、およびそのプログラムコードをコンピュータに供給するための手段、例えばかかるプログラムコードを格納した記憶媒体は本発明を構成する。   Further, in this case, the program code of the software itself realizes the functions of the above-described embodiments, and the program code itself and means for supplying the program code to the computer, for example, a storage storing the program code The medium constitutes the present invention.

かかるプログラムコードを格納する記憶媒体としては例えばフロッピー(登録商標)ディスク、ハードディスク、光ディスク、光磁気ディスク、CD−ROM、磁気テープ、不揮発性のメモリカード、ROM等を用いることができる。   As a storage medium for storing the program code, for example, a floppy (registered trademark) disk, a hard disk, an optical disk, a magneto-optical disk, a CD-ROM, a magnetic tape, a nonvolatile memory card, a ROM, or the like can be used.

またコンピュータが供給されたプログラムコードを実行することにより、前述の実施形態の機能が実現されるだけではなく、そのプログラムコードがコンピュータにおいて稼働しているOS(オペレーティングシステム)、あるいは他のアプリケーションソフト等と共同して前述の実施形態の機能が実現される場合にもかかるプログラムコードは本発明の実施形態に含まれることは言うまでもない。   Further, by executing the program code supplied by the computer, not only the functions of the above-described embodiments are realized, but also the OS (operating system) in which the program code is running on the computer, or other application software, etc. It goes without saying that the program code is also included in the embodiment of the present invention even when the functions of the above-described embodiment are realized in cooperation with the embodiment.

さらに供給されたプログラムコードが、コンピュータの機能拡張ボードやコンピュータに接続された機能拡張ユニットに備わるメモリに格納された後そのプログラムコードの指示に基づいてその機能拡張ボードや機能格納ユニットに備わるCPU等が実際の処理の一部または全部を行い、その処理によって前述した実施形態の機能が実現される場合も本発明に含まれることは言うまでもない。   Further, after the supplied program code is stored in a memory provided in a function expansion board of a computer or a function expansion unit connected to the computer, a CPU provided in the function expansion board or function storage unit based on an instruction of the program code However, it is needless to say that the present invention also includes a case where the function of the above-described embodiment is realized by performing part or all of the actual processing.

従来の印刷システムのブロック図Block diagram of a conventional printing system ユーザインタフェースドライバの画面例User interface driver screen example 完全な印刷設定構造の例Example of a complete print settings structure 不完全な印刷設定構造の例(パブリック構造のみ)Example of incomplete print settings structure (public structure only) 不完全な印刷設定構造の例(プライベート構造が不明)Example of incomplete print settings structure (private structure is unknown) 実施形態(1)の印刷システムのブロック図Block diagram of printing system of embodiment (1) ユーザインタフェースドライバの印刷設定構造補正処理のフローチャートFlowchart of print setting structure correction processing of user interface driver スプーラの印刷命令格納処理のフローチャートFlowchart of spooler print command storage processing 実施形態(2)の印刷システムのブロック図Block diagram of printing system of embodiment (2) デスプーラの印刷設定構造抽出処理のフローチャートFlowchart of despooler print setting structure extraction processing 実施形態(3)の印刷システムのブロック図Block diagram of printing system of embodiment (3) プリントプロセッサの印刷設定構造取得処理のフローチャートFlow chart of print setting structure acquisition processing of print processor 実施例のハードウェアのブロック図Hardware block diagram of the embodiment ユニバーサルプリンタドライバを用いた印刷システムのブロック図Block diagram of a printing system using a universal printer driver

Claims (4)

印刷装置で印刷すべき印刷データを生成する情報処理装置であって、
文書のページを印刷するにあたり、文書の描画命令を一時中間ファイルに印刷データとして格納する印刷データ格納手段と、
前記一時中間ファイルから前記印刷データを抽出する印刷データ抽出手段と、
前記印刷データ抽出手段から取得した印刷データをページ単位でレイアウトするページレイアウト手段とを有し、
前記印刷データ格納手段は、印刷設定が不完全な場合は完全な印刷設定としてから前記一時中間ファイルに格納することを特徴とする情報処理装置。
An information processing apparatus that generates print data to be printed by a printing apparatus,
Print data storage means for storing a document drawing command as print data in a temporary intermediate file when printing a document page;
Print data extraction means for extracting the print data from the temporary intermediate file;
Page layout means for laying out print data acquired from the print data extraction means in units of pages;
The information processing apparatus according to claim 1, wherein the print data storage unit stores the complete print setting in the temporary intermediate file after the print setting is incomplete.
印刷装置で印刷すべき印刷データを生成する情報処理装置であって、
文書のページを印刷するにあたり、文書の描画命令を一時中間ファイルに印刷データとして格納する印刷データ格納手段と、
前記一時中間ファイルから前記印刷データを抽出する印刷データ抽出手段と、
前記印刷データ抽出手段から取得した印刷データをページ単位でレイアウトするページレイアウト手段とを有し、
前記印刷データ抽出手段は印刷設定が不完全な場合は完全な印刷設定としてから前記ページレイアウト手段に供給することを特徴とする情報処理装置。
An information processing apparatus that generates print data to be printed by a printing apparatus,
Print data storage means for storing a document drawing command as print data in a temporary intermediate file when printing a document page;
Print data extraction means for extracting the print data from the temporary intermediate file;
Page layout means for laying out print data acquired from the print data extraction means in units of pages;
The information processing apparatus according to claim 1, wherein when the print setting is incomplete, the print data extraction unit supplies the page layout unit with the complete print setting.
印刷装置で印刷すべき印刷データを生成する情報処理装置であって、
文書のページを印刷するにあたり、文書の描画命令を一時中間ファイルに印刷データとして格納する印刷データ格納手段と、
前記一時中間ファイルから前記印刷データを抽出する印刷データ抽出手段と、
前記印刷データ抽出手段から取得した印刷データをページ単位でレイアウトするページレイアウト手段とを有し、
前記ページレイアウト手段は印刷設定が不完全な場合は完全な印刷設定としてからレイアウトすることを特徴とする情報処理装置。
An information processing apparatus that generates print data to be printed by a printing apparatus,
Print data storage means for storing a document drawing command as print data in a temporary intermediate file when printing a document page;
Print data extraction means for extracting the print data from the temporary intermediate file;
Page layout means for laying out print data acquired from the print data extraction means in units of pages;
The information processing apparatus according to claim 1, wherein the page layout means performs layout after setting the complete print setting when the print setting is incomplete.
印刷装置で印刷すべき印刷データを生成する情報処理装置における印刷制御方法であって、
文書のページを印刷するにあたり、文書の描画命令を一時中間ファイルに印刷データとして格納する印刷データ格納工程と、
前記一時中間ファイルから前記印刷データを抽出する印刷データ抽出工程と、
前記印刷データ抽出工程から取得した印刷データをページ単位でレイアウトするページレイアウト工程とを含み、
前記印刷データ格納工程が印刷設定が不完全な場合は完全な印刷設定としてから前記一時中間ファイルに格納するか、前記印刷データ抽出工程が印刷設定が不完全な場合は完全な印刷設定としてから前記ページレイアウト工程に供給するか、前記ページレイアウト工程が印刷設定が不完全な場合は完全な印刷設定としてからレイアウトすることを特徴とする印刷制御方法。
A printing control method in an information processing apparatus for generating print data to be printed by a printing apparatus,
A print data storage step of storing a document rendering command as print data in a temporary intermediate file for printing a document page;
A print data extraction step of extracting the print data from the temporary intermediate file;
A page layout step of laying out the print data acquired from the print data extraction step in units of pages,
If the print data storage step is incomplete print settings, it is stored in the temporary intermediate file as a complete print setting, or if the print data extraction step is incomplete print settings, it is set as a complete print setting. A print control method comprising: supplying to a page layout process; or, if the page layout process has incomplete print settings, laying out after setting the complete print settings.
JP2003382682A 2003-11-12 2003-11-12 Information processor and print control method Withdrawn JP2005148927A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2003382682A JP2005148927A (en) 2003-11-12 2003-11-12 Information processor and print control method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2003382682A JP2005148927A (en) 2003-11-12 2003-11-12 Information processor and print control method

Publications (1)

Publication Number Publication Date
JP2005148927A true JP2005148927A (en) 2005-06-09

Family

ID=34691681

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2003382682A Withdrawn JP2005148927A (en) 2003-11-12 2003-11-12 Information processor and print control method

Country Status (1)

Country Link
JP (1) JP2005148927A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008162084A (en) * 2006-12-27 2008-07-17 Fuji Xerox Co Ltd Image processing device, image processing system, image formation device, image forming system, information processor, information processing system and control program
JP2008299635A (en) * 2007-05-31 2008-12-11 Brother Ind Ltd Printing controller and program

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008162084A (en) * 2006-12-27 2008-07-17 Fuji Xerox Co Ltd Image processing device, image processing system, image formation device, image forming system, information processor, information processing system and control program
JP2008299635A (en) * 2007-05-31 2008-12-11 Brother Ind Ltd Printing controller and program
JP4552970B2 (en) * 2007-05-31 2010-09-29 ブラザー工業株式会社 Print control apparatus and program
US8823972B2 (en) 2007-05-31 2014-09-02 Brother Kogyo Kabushiki Kaisha Print control device, printing system and computer-readable recording medium storing printing program

Similar Documents

Publication Publication Date Title
US7839531B2 (en) Printing control method
US8014013B2 (en) Systems and methods for segmenting pages and changing settings for graphical elements in printing
US8711392B2 (en) Information processing apparatus, information processing method, and program
CN102756573B (en) Information processing apparatus and print setting method
US20040061897A1 (en) Printing control method and printing control apparatus
US8605316B2 (en) Information processing apparatus and control method thereof, and storage medium
JP2005271581A (en) System and method for pull type printing which starts rendering by printer
JP2008015922A (en) Information processor and peripheral device control method
US20100232910A1 (en) Information processing apparatus, information processing method, program, and storage medium
JP2008247023A (en) Direct printing of desired or multiple appearances of object in document file
JP6257307B2 (en) Information processing method and paper size setting method
US20110279843A1 (en) Apparatus for Controlling Image Formation, Computer Readable Device Having Stored Thereon Computer-Executable Instructions for Forming Images, and Method of Generating Image Formation Setting Information
US20050094163A1 (en) Printer driver and method of forming user interface
JP4396749B2 (en) Print control device and printer driver program
US8928933B2 (en) Information processing apparatus for generating printing data by different methods, computer readable recording medium and method of controlling the information processing apparatus
US8773692B2 (en) Printing control apparatus and printing control method for document layout processing
JP2005182694A (en) Layout printing system
JP2005148927A (en) Information processor and print control method
US9632737B2 (en) Information processing device, and method and medium for the same
JP3805263B2 (en) Printing control program, printing control method, printing system, and information processing apparatus
JP2008015563A (en) Printing control device, printing control method, program and recording medium
JP2006228128A (en) Information processing device, communication equipment controller, and program
JP5526863B2 (en) Printer driver and print control apparatus
JP2005004320A (en) System and program for controlling printing
US8160469B2 (en) Information processing apparatus, method for controlling the information processing apparatus, and storage medium

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: 20070206