JP2007004332A - Information processor, print control method and program - Google Patents

Information processor, print control method and program Download PDF

Info

Publication number
JP2007004332A
JP2007004332A JP2005181555A JP2005181555A JP2007004332A JP 2007004332 A JP2007004332 A JP 2007004332A JP 2005181555 A JP2005181555 A JP 2005181555A JP 2005181555 A JP2005181555 A JP 2005181555A JP 2007004332 A JP2007004332 A JP 2007004332A
Authority
JP
Japan
Prior art keywords
print
function
application program
printing
printer driver
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
JP2005181555A
Other languages
Japanese (ja)
Inventor
Hiroshi Koga
宏 古閑
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 JP2005181555A priority Critical patent/JP2007004332A/en
Publication of JP2007004332A publication Critical patent/JP2007004332A/en
Withdrawn legal-status Critical Current

Links

Images

Abstract

<P>PROBLEM TO BE SOLVED: To provide a print environment of higher added value, by permitting optimum document editing according to a usable print function, detailed usable print function restrictions according to authentication information, and use of a standard print function, a printer device function realizable by incorporating an option device or the like, and an advanced printer driver realization function. <P>SOLUTION: There is provided a configuration such that from an application program 103, authentication information for the application program 103 is notified to a printer driver 102, on the basis of the notified authentication information, print setting information is selected for performing print for which the printer driver 102 can operate and function and is notified to the application program 103, and on the basis of the notified print setting information, edition and print settings for a document are controlled on the application program 103. <P>COPYRIGHT: (C)2007,JPO&INPIT

Description

本発明は、所定のアプリケーションプログラムにおけるドキュメントの印刷制御処理に基づいてプリンタドライバが該ドキュメントの印刷ジョブを生成して印刷装置に送信する情報処理装置および印刷制御方法およびプログラムに関する。   The present invention relates to an information processing apparatus, a print control method, and a program in which a printer driver generates a print job for a document based on document print control processing in a predetermined application program and transmits the print job to the printing apparatus.

従来のオペレーティングシステム上で実行されるドキュメント作成・印刷アプリケーションプログラムからの印刷に関して、以下(1),(2)に示す方法が一般的であった。   Regarding printing from a document creation / printing application program executed on a conventional operating system, the following methods (1) and (2) have been common.

(1)Windows(登録商標)に代表されるオペレーティングシステム環境においては、Software Development Kit(SDK)で共通のアプリケーションプログラムインタフェース(API)が提供され、これを利用して最小限の印刷属性設定および印刷指示を行う方法。   (1) In an operating system environment represented by Windows (registered trademark), a common application program interface (API) is provided in the Software Development Kit (SDK), and minimum print attribute setting and printing are performed using this. How to make instructions.

(2)特開平7−44388号公報の「コンピュータシステムの印刷処理装置および方法」に代表されるように一般的なプリンタドライバの動作で、利用者にユーザインタフェース(ダイアログボックス)でオプション装置を指定させ、そのオプション情報に基づき、最終的な印刷データを作成し、印刷装置に送信する方法。   (2) A typical printer driver operation, as typified by "Print processing apparatus and method for computer system" in Japanese Patent Application Laid-Open No. 7-44388, designates an optional device on the user interface (dialog box) to the user. The final print data is created based on the option information and transmitted to the printing apparatus.

さらに、プログラム認証によるアクセス制御においては、以下の従来技術がある。   Furthermore, there are the following conventional techniques in access control by program authentication.

特開2003−30149号公報の「認証方法に基づいてリソースへのアクセスを制御するための方法および装置」にあるように、この技術は、オペレーティングシステムを介して、コンピュータおよびコンピュータネットワーク中のリソース、オブジェクト(ファイル/フォルダ/プログラム/プリンタ/…など)へのユーザあるいはグループのログイン情報に基づく、アクセスおよび監査を制御するものである。
特開平7−44388号公報 特開2003−30149号公報
As described in “Method and apparatus for controlling access to resources based on an authentication method” in Japanese Patent Application Laid-Open No. 2003-30149, this technology is provided with resources in computers and computer networks via an operating system. Controls access and auditing based on user or group login information to objects (files / folders / programs / printers /...).
Japanese Patent Laid-Open No. 7-44388 JP 2003-30149 A

しかしながら上記従来例では、ドキュメント作成・印刷アプリケーションプログラムからの印刷を行う場合、以下に示すような問題があった。   However, the conventional example has the following problems when printing from a document creation / print application program.

Windows(登録商標) SDKなどのオペレーティングシステムに付属する開発キットでは、印刷装置の一般的な印刷属性設定および印刷指示だけしかできず、高機能を有する印刷装置に対して、一部の一般的な機能のみ使用して、その他の付加価値が高い機能は使用できないでいた。   Development kits attached to an operating system such as Windows (registered trademark) SDK can only set general printing attributes and printing instructions of a printing apparatus, and some general printing apparatuses have high functions. Only functions were used, and other high value-added functions could not be used.

印刷装置の使用可能な機能は、利用者がユーザインタフェース(ダイアログボックス)等で明示的に確認しなければ、認識できない。例えば、カラー印刷不可能な印刷装置で印刷するドキュメントを作成する場合、ユーザがカラー印刷不可能な旨を知らずに、カラーでドキュメントを作成・編集してしまう等といった事態が発生していた。   The usable functions of the printing apparatus cannot be recognized unless the user explicitly confirms the user interface (dialog box) or the like. For example, when creating a document to be printed by a printing apparatus that cannot perform color printing, a situation has occurred in which a user creates and edits a document in color without knowing that color printing is not possible.

従来、アプリケーションプログラム使用あるいはデータファイル、オブジェクト利用のためのアクセス制御はあったが、アプリケーションプログラムの使用目的あるいは動作目的に応じて、使用する印刷機能の制限、一般には公開されていない機能の使用許可のアクセス制御を行う認証機構がなく、細かなアクセス制御ができなかった等の問題点があった。   Conventionally, access control for using application programs or data files and objects has been used, but depending on the purpose of use of the application program or the purpose of operation, restrictions on the printing functions to be used and permission to use functions that are not publicly available There is no authentication mechanism for performing access control, and fine access control cannot be performed.

本発明は、上記の問題点を解決するためになされたもので、本発明の目的は、所定のアプリケーションプログラムにおけるドキュメントの印刷制御処理に基づいてプリンタドライバが該ドキュメントの印刷ジョブを生成して印刷装置に送信する情報処理装置において、前記アプリケーションプログラムから該当アプリケーションプログラムの認証情報を前記プリンタドライバに通知し、該通知される認証情報に基づいて、前記プリンタドライバが動作および機能可能な印刷を行うための印刷設定情報を選択して前記アプリケーションプログラムに通知し、該通知される印刷設定情報に基づいて、前記アプリケーションプログラム上でのドキュメントの編集及び印刷設定を制御することにより、使用可能な印刷機能に応じて最適なドキュメント編集を可能とし、また、認証情報に応じた細かな使用可能な印刷機能制限を可能とし、さらに、標準的な印刷機能の他にオプション装置類等を搭載して実現可能なプリンタデバイス機能および高度なプリンタドライバ実現機能を使用可能とし、より付加価値の高い印刷機能を提供することを可能とする情報処理装置および印刷制御方法およびプログラムおよび記憶媒体を提供することである。   The present invention has been made to solve the above-described problems. An object of the present invention is to generate a print job for a document based on a document print control process in a predetermined application program and print it. In the information processing apparatus to be transmitted to the apparatus, the authentication information of the application program is notified from the application program to the printer driver, and based on the notified authentication information, the printer driver performs printing that can operate and function. The print setting information is selected and notified to the application program, and based on the notified print setting information, the editing of the document and the print setting on the application program are controlled, so that the print function can be used. Depending on the best document In addition to the standard printing functions, the printer device functions and advanced functions that can be realized by installing optional devices in addition to the standard printing functions are possible. It is to provide an information processing apparatus, a print control method, a program, and a storage medium capable of using a printer driver realization function and providing a print function with higher added value.

本発明は、所定のアプリケーションプログラムにおけるドキュメントの印刷制御処理に基づいてプリンタドライバが該ドキュメントの印刷ジョブを生成して印刷装置に送信する情報処理装置において、前記アプリケーションプログラムから該当アプリケーションプログラムの認証情報を前記プリンタドライバに通知する第1の通知手段と、前記第1の通知手段により通知される認証情報に基づいて、前記プリンタドライバが動作および機能可能な印刷を行うための印刷設定情報を選択して前記アプリケーションプログラムに通知する第2の通知手段と、前記第2の通知手段により通知される印刷設定情報に基づいて、前記アプリケーションプログラム上でのドキュメントの編集及び印刷設定を制御する制御手段とを有することを特徴とする。   The present invention provides an information processing apparatus in which a printer driver generates a print job for a document based on document print control processing in a predetermined application program and transmits the print job to the printing apparatus. Authentication information of the application program is obtained from the application program. A first notifying unit for notifying the printer driver, and print setting information for performing printing that can be operated and functioned by the printer driver based on authentication information notified by the first notifying unit; Second notification means for notifying the application program, and control means for controlling document editing and print settings on the application program based on the print setting information notified by the second notification means. It is characterized by that.

本発明によれば、所定のアプリケーションプログラムにおけるドキュメントの印刷制御処理に基づいてプリンタドライバが該ドキュメントの印刷ジョブを生成して印刷装置に送信する情報処理装置において、前記アプリケーションプログラムから該当アプリケーションプログラムの認証情報を前記プリンタドライバに通知し、該通知される認証情報に基づいて、前記プリンタドライバが動作および機能可能な印刷を行うための印刷設定情報を選択して前記アプリケーションプログラムに通知し、該通知される印刷設定情報に基づいて、前記アプリケーションプログラム上でのドキュメントの編集及び印刷設定を制御するので、使用可能な印刷機能に応じて最適なドキュメント編集を可能とし、また、認証情報に応じた細かな使用可能な印刷機能制限を可能とし、さらに、標準的な印刷機能の他にオプション装置類等を搭載して実現可能なプリンタデバイス機能および高度なプリンタドライバ実現機能を使用可能とし、より付加価値の高い印刷機能を使用可能な印刷環境を提供することができる等の効果を奏する。   According to the present invention, in an information processing apparatus in which a printer driver generates a print job for a document based on document print control processing in a predetermined application program and transmits the print job to the printing apparatus, the application program authenticates the application program. Information to the printer driver, and based on the notified authentication information, the printer driver selects print setting information for performing operation and functionable printing, notifies the application program, and is notified. Since document editing and print settings on the application program are controlled based on the print setting information, it is possible to perform optimum document editing according to the available print functions, and to make fine adjustments according to the authentication information. Available printing press In addition to standard printing functions, printer device functions and advanced printer driver implementation functions that can be implemented by installing optional devices, etc. can be used, and higher value-added printing functions are used. There is an effect that a possible printing environment can be provided.

以下、添付図面にしたがって本発明の実施形態を詳細に説明する。   Hereinafter, embodiments of the present invention will be described in detail with reference to the accompanying drawings.

〔第1実施形態〕
<本実施形態における動作例の概略>
以下にホストコンピュータシステム(以下、ホストコンピュータ)上にWindows(登録商標)オペレーティング(OS)、ドキュメント作成・印刷アプリケーションプログラム、プリンタドライバプログラムおよびこれに接続する印刷装置(プリンタ)から構成される印刷システムを、本発明の印刷システムの一例として説明する。
[First Embodiment]
<Outline of operation example in this embodiment>
A printing system comprising a Windows (registered trademark) operating (OS), a document creation / printing application program, a printer driver program, and a printing apparatus (printer) connected thereto on a host computer system (hereinafter referred to as a host computer). An example of the printing system of the present invention will be described.

本発明の印刷システムでは、ホストコンピュータシステム上で動作するアプリケーションプログラムおよびプリンタドライバプログラムにおいて、相互に各種情報および各種データを通知する手段として、任意にプログラミング可能な関数あるいはデータ形式のアプリケーションプログラムインタフェース(API)を備える。なお、このAPIは、上記アプリケーションプログラムおよびプリンタドライバが動作する上記ホストコンピュータ上のオペレーティングシステム上で認識実行可能である。   In the printing system of the present invention, an application program interface (API) having an arbitrarily programmable function or data format as means for mutually reporting various information and various data in an application program and printer driver program running on a host computer system. ). This API can be recognized and executed on an operating system on the host computer on which the application program and printer driver operate.

この印刷システムでは、アプリケーションプログラムからの認証情報通知により、プリンタドライバでアプリケーションプログラムのアクセス制御レベルに応じた、印刷機能属性情報および印刷能力属性情報を生成し、APIを使用し、アプリケーションプログラムに通知する。アプリケーションプログラムでは、上記プリンタドライバから通知される印刷機能属性情報および印刷能力属性情報に基づき、目的の印刷ドキュメント体裁加工を施し、同じくAPIを使用し、各種印刷属性設定および印刷指示を行う例を示す。   In this printing system, printing function attribute information and printing capability attribute information corresponding to the access control level of the application program are generated by the printer driver in response to notification of authentication information from the application program, and notified to the application program using the API. . The application program shows an example in which the target print document is processed based on the print function attribute information and the print capability attribute information notified from the printer driver, and various print attribute settings and print instructions are similarly performed using the API. .

<OS、アプリケーション、プリンタドライバおよびプリンタのシステム構成の説明(図1)>
図1は、本発明の一実施形態を示す印刷システムの一例を示すシステム構成図である。なお、本実施形態では、Windows(登録商標)オペレーティングシステム(OS)、ドキュメント作成・印刷アプリケーションプログラム、プリンタドライバプログラムおよびこれに接続する印刷装置(プリンタ)から構成されるシステムについて、各要素間のAPIの流れ、及び各種データの流れを示す。
<Description of OS, Application, Printer Driver, and Printer System Configuration (FIG. 1)>
FIG. 1 is a system configuration diagram showing an example of a printing system showing an embodiment of the present invention. In the present embodiment, an API between elements of a system including a Windows (registered trademark) operating system (OS), a document creation / print application program, a printer driver program, and a printing apparatus (printer) connected thereto. And the flow of various data.

図1において、100はホストコンピュータである。このホストコンピュータ100のプログラムメモリ上では、Windows(登録商標)オペレーティングシステム(OS)101、プリンタドライバプログラム102およびドキュメント作成・印刷アプリケーションプログラム103が動作・実行される。   In FIG. 1, reference numeral 100 denotes a host computer. On the program memory of the host computer 100, a Windows (registered trademark) operating system (OS) 101, a printer driver program 102, and a document creation / print application program 103 are operated and executed.

104はプリンタであり、上記ホストコンピュータ100に接続される。プリンタ104において、105はプリンタ104から出力されるドキュメント印刷である。   A printer 104 is connected to the host computer 100. In the printer 104, reference numeral 105 denotes document printing output from the printer 104.

次に、本発明の印刷システムの動作・作用について詳細に説明する。   Next, the operation / action of the printing system of the present invention will be described in detail.

ホストコンピュータ100のプログラムメモリ上で動作するOS101上で実行されるアプリケーションプログラム103が初期化される時点で、プリンタドライバ102が、OS101へロードされる。これにより、アプリケーションプログラム103からもプリンタドライバ102と各種情報およびデータの送受信が可能となる。   When the application program 103 executed on the OS 101 operating on the program memory of the host computer 100 is initialized, the printer driver 102 is loaded into the OS 101. As a result, various information and data can be transmitted / received to / from the printer driver 102 also from the application program 103.

また、この初期化時、APIとなるプログラム関数を含むライブラリ群(プリンタドライバSDK(Software Development Kit)API)も、アプリケーションプログラム103においてロードする。   Further, at the time of initialization, a library group (printer driver SDK (Software Development Kit) API) including a program function serving as an API is also loaded in the application program 103.

そして、アプリケーションプログラム103は、本印刷システムにおけるその使用目的あるいは動作目的に応じたアクセス権限に基づく認証情報をプリンタドライバに通知する。ここでの認証情報は、アプリケーションプログラムの名称、対応OS、バージョン番号などの前記アプリケーションプログラムを識別する情報、及び、あらかじめ該当アプリケーションプログラム103に付与されるアクセスID、パスワード等の情報であり、前記アプリケーションプログラムにおいて利用する印刷機能・能力あるいは性能に対するアクセス権限を決定するための情報である。また、この認証情報に、アプリケーションプログラム103のユーザのユーザID,パスワード等も含めるように構成してもよく、ユーザ毎にアプリケーションプログラムの認証情報を変化させるように構成してもよい。   Then, the application program 103 notifies the printer driver of authentication information based on the access authority corresponding to the purpose of use or the purpose of operation in the printing system. The authentication information here is information for identifying the application program such as the name of the application program, the corresponding OS, and the version number, and information such as an access ID and a password that are given to the corresponding application program 103 in advance. This is information for determining the access authority for the printing function / capability or performance used in the program. The authentication information may be configured to include the user ID and password of the user of the application program 103, or may be configured to change the authentication information of the application program for each user.

さらに、アプリケーションプログラム103は、前記初期化時に前記プリンタドライバSDK APIを使用して、OS101を介して、プリンタドライバ102に、印刷機能属性情報,印刷能力属性情報を問い合わせる。ここで、印刷機能属性情報とは、印刷装置において実行可能な印刷機能およびプリンタドライバ102の印刷制御処理で実行可能な印刷機能を表わす情報を示す。また、印刷能力属性情報とは、上記各種印刷機能情報に基づきOS101およびプリンタドライバ102で実行可能な各種印刷機能の実行範囲を表わす情報を示す。なお、印刷機能属性情報,印刷能力属性情報の具体的例は後述する。   Further, the application program 103 inquires of the printer driver 102 about printing function attribute information and printing capability attribute information via the OS 101 using the printer driver SDK API at the time of initialization. Here, the print function attribute information indicates information representing a print function that can be executed in the printing apparatus and a print function that can be executed by the print control process of the printer driver 102. The printing capability attribute information indicates information representing the execution range of various printing functions that can be executed by the OS 101 and the printer driver 102 based on the various printing function information. Specific examples of the print function attribute information and the print capability attribute information will be described later.

プリンタドライバ102は、上記アプリケーションプログラム103からのプリンタドライバSDK APIによる問い合わせを受けて、プリンタドライバ102内で備え、管理される認証情報データベースを参照する。なお、この認証情報データベースは、上記アプリケーションプログラムの認証情報毎に、各アプリケーションプログラムのアクセス制御レベル情報を格納、保管するものである。   The printer driver 102 receives an inquiry by the printer driver SDK API from the application program 103, and refers to an authentication information database provided and managed in the printer driver 102. The authentication information database stores and stores access control level information of each application program for each authentication information of the application program.

また、プリンタドライバ102は、アプリケーションプログラム103からのAPIによる前記認証情報通知に基づき、前記アプリケーションプログラム103に対する認証を行い、現在動作するアプリケーションプログラムが利用できる印刷機能・能力あるいは性能に対するアクセス制御レベルを決定する。   The printer driver 102 authenticates the application program 103 based on the authentication information notification by the API from the application program 103, and determines an access control level for a printing function / capability or performance that can be used by the currently operating application program. To do.

さらに、プリンタドライバ102は、アプリケーションプログラム103の前記アクセス制御レベルに応じた印刷機能属性情報および印刷能力属性情報を生成する。なお、上記印刷機能属性情報とは、具体的には、給紙方法、排紙方法、両面印刷機能、N−up印刷(複数ページ割付印刷)機能、ステイプル機能、パンチ機能、トリミング機能、用紙Z折り機能などの各種フィニッシング機能、さらにこれらの機能を複合して実現する製本機能、スタンプ(Watermark)機能、フォントダウンロード機能、フォント置換機能、フォームオーバレイ機能等の、前記プリンタドライバにおいて実行可能な印刷機能属性情報を示す。また、上記印刷能力属性情報とは、具体的には、モノクロ印刷時の階調数、カラー印刷時の色深度、色調、色空間および設定可能なカラープロファイル、マッチング方法、設定可能解像度、ベクタ/イメージ描画、ディザリングなどのグラフィックス描画方法、印刷可能な用紙サイズおよび用紙種、最大設定可能コピー部数、N−up印刷時の印刷設定可能N−up数(複数ページ割付印刷時の割付可能ページ数)等の、前記プリンタドライバ102において各種印刷機能実行のための印刷能力属性情報を示す。   Further, the printer driver 102 generates printing function attribute information and printing capability attribute information according to the access control level of the application program 103. The print function attribute information specifically includes a paper feed method, a paper discharge method, a duplex printing function, an N-up printing (multiple page layout printing) function, a stapling function, a punch function, a trimming function, and a paper Z. Various finishing functions such as the folding function, and the printing functions that can be executed by the printer driver, such as a bookbinding function realized by combining these functions, a stamp (Watermark) function, a font download function, a font replacement function, and a form overlay function Indicates attribute information. The print capability attribute information specifically includes the number of gradations during monochrome printing, the color depth during color printing, the color tone, the color space, and a settable color profile, matching method, settable resolution, vector / Graphics drawing methods such as image drawing and dithering, printable paper size and paper type, maximum number of copies that can be set, number of print settings that can be set during N-up printing (number of pages that can be assigned during multi-page assignment printing) The printing capability attribute information for executing various printing functions in the printer driver 102 is shown.

そして、プリンタドライバ102は、上記生成された印刷機能属性情報および印刷能力属性情報を、前記アプリケーションプログラム103からコールされたプリンタドライバSDK API関数に対するリターンとして、OS101を介して、アプリケーションプログラム103に通知する。   Then, the printer driver 102 notifies the application program 103 via the OS 101 of the generated printing function attribute information and printing capability attribute information as a return to the printer driver SDK API function called from the application program 103. .

また、アプリケーションプログラム103では、プリンタドライバ102より通知された印刷機能属性情報および印刷能力属性情報に基づいて、アプリケーションプログラム内の各種設定処理を行う。例えば、印刷機能属性情報および印刷能力属性情報でカラー印刷機能が不可となっていた場合には、アプリケーションプログラム103でのカラー編集(カラードキュメント作成)を不可に設定する。また、製本機能が不可となっていた場合には、アプリケーションプログラム103での印刷ダイアログ上の製本指定を不可能に設定する。さらに、スタンプ機能が不可となっていた場合には、アプリケーションプログラム103での印刷ダイアログ上のスタンプ指定を不可能に設定する。そして、このように設定されたアプリケーションプログラム103において、ユーザはドキュメント作成・体裁加工を行う。   The application program 103 performs various setting processes in the application program based on the printing function attribute information and the printing capability attribute information notified from the printer driver 102. For example, when the color printing function is disabled in the printing function attribute information and the printing capability attribute information, the color editing (color document creation) in the application program 103 is set to be disabled. If the bookbinding function is disabled, the bookbinding designation on the print dialog in the application program 103 is set to be impossible. Further, when the stamp function is disabled, the stamp designation on the print dialog in the application program 103 is set to be impossible. Then, in the application program 103 set in this way, the user performs document creation and appearance processing.

さらに、ユーザがアプリケーションプログラム103上で印刷設定,印刷指示を行うと、アプリケーションプログラム103では、プリンタドライバSDK APIを使用しての各種印刷属性設定,印刷指示、又は/及び、通常のOS101がもつGDI(Graphical Device Interface)で提供されるWindows(登録商標) SDK APIを使用しての印刷設定(例えば、DEVMODE構造体を用いた印刷設定),印刷指示をプリンタドライバ102に対して行う。   Further, when the user makes print settings and print instructions on the application program 103, the application program 103 uses the printer driver SDK API to set various print attributes, print instructions, and / or GDI of the normal OS 101. A print setting (for example, a print setting using a DEVMODE structure) and a print instruction using Windows (registered trademark) SDK API provided by (Graphical Device Interface) are performed to the printer driver 102.

そして、プリンタドライバ102は、アプリケーションプログラム103からプリンタドライバSDK APIを使用しての各種印刷属性設定、印刷指示がなされると、該印刷属性設定に基づいて、印刷制御命令を生成し、印刷指示に基づく印刷データと組み合わせて、プリンタ104に送信する。一方、アプリケーションプログラム103から通常のWindows(登録商標) SDK APIを使用しての印刷設定、印刷指示がなされると、プリンタドライバ102では、OS101からコールされる印刷属性設定および印刷指示関数に基づいて、印刷制御命令を生成し、印刷指示に基づく印刷データと組み合わせて、プリンタ104に送信する。これにより、プリンタ104から目的のドキュメントの印刷出力105を行うことが可能となる。   When various print attribute settings and print instructions using the printer driver SDK API are made from the application program 103, the printer driver 102 generates a print control command based on the print attribute settings and outputs the print control instruction. It is transmitted to the printer 104 in combination with the print data based on it. On the other hand, when a print setting and a print instruction using a normal Windows (registered trademark) SDK API are made from the application program 103, the printer driver 102 is based on the print attribute setting and the print instruction function called from the OS 101. A print control command is generated and transmitted to the printer 104 in combination with print data based on the print instruction. As a result, the print output 105 of the target document can be performed from the printer 104.

本実施形態の印刷システムは、以上示したような構成からなる。   The printing system of the present embodiment has the configuration as described above.

なお、ここでは、ホストコンピュータ100上の各種プログラム環境となるOS101として、Windows(登録商標)を例にあげて説明したが、他のオペレーティングシステムにおいても本発明を適用できる。   Here, although Windows (registered trademark) has been described as an example of the OS 101 serving as various program environments on the host computer 100, the present invention can also be applied to other operating systems.

<OS,アプリケーション、プリンタドライバの各処理の流れを表すブロック図の説明(図2)>
図2は、図1に示したホストコンピュータ100上のOS101、アプリケーションプログラム103、プリンタドライバ102およびプリンタ104における、プリンタドライバSDK APIを使用して、初期化から印刷までの各構成要素の内部および構成要素間の処理の流れをあらわすブロック図である。なお、図1と同一のものには同一の符号を付してある。
<Explanation of Block Diagram showing Flow of Processing of OS, Application, and Printer Driver (FIG. 2)>
2 shows the internal and configuration of each component from initialization to printing using the printer driver SDK API in the OS 101, application program 103, printer driver 102, and printer 104 on the host computer 100 shown in FIG. It is a block diagram showing the flow of processing between elements. In addition, the same code | symbol is attached | subjected to the same thing as FIG.

図2において、300はOS101のWindows(登録商標) GDI(以下、単にGDI)である。   In FIG. 2, reference numeral 300 denotes a Windows (registered trademark) GDI (hereinafter simply referred to as GDI) of the OS 101.

以下、アプリケーションプログラム103、GDI300、プリンタドライバ102から、プリンタ200へドキュメントデータ送信、ドキュメント印刷までの流れについて、詳細に説明する。なお、図2中のS201〜S207はアプリケーションプログラム103のステップに対応する。また、S211〜S213はGDI300のステップに対応する。さらに、S221〜S229はプリンタドライバ102のステップに対応する。   Hereinafter, the flow from the application program 103, the GDI 300, and the printer driver 102 to document data transmission to the printer 200 and document printing will be described in detail. Note that S201 to S207 in FIG. 2 correspond to steps of the application program 103. S211 to S213 correspond to steps of the GDI300. Further, S221 to S229 correspond to the steps of the printer driver 102.

図2のステップS201に示すように、まず、アプリケーションプログラム103で、各種動作処理に要するメモリ領域の確保、各種属性パラメータの初期化、ディスプレイやプリンタ104に対するデバイスコンテキストの作成、フォント/ペン/ブラシなどのオブジェクト作成などの初期化処理を行う。   As shown in step S201 of FIG. 2, first, the application program 103 secures a memory area required for various operation processes, initializes various attribute parameters, creates a device context for the display and the printer 104, font / pen / brush, etc. Perform initialization processing such as object creation.

GDI300では、アプリケーションプログラム103のドキュメント生成、印刷のための各種初期化処理を受けて、GDI300における各種動作処理に要するメモリ領域の確保、各種属性パラメータの初期化処理を行う(S211)。   The GDI 300 receives various initialization processes for document generation and printing of the application program 103, and secures a memory area required for various operation processes in the GDI 300 and initializes various attribute parameters (S211).

プリンタドライバ102においても、アプリケーションプログラム103およびGDI300のドキュメント印刷のための各種初期化処理を受けて、プリンタドライバ102における各種動作処理に要するメモリ領域の確保、各種属性パラメータの初期化処理を行う(S221)。   The printer driver 102 also receives various initialization processes for document printing of the application program 103 and the GDI 300, secures a memory area required for various operation processes in the printer driver 102, and initializes various attribute parameters (S221). ).

次に、アプリケーションプログラム103から、プリンタドライバSDK APIを使用して、前記アプリケーションプログラム103のシステム上での使用目的あるいは動作目的に応じたアクセス権限に基づく認証情報をプリンタドライバ102に通知する(S202)。   Next, the application program 103 notifies the printer driver 102 of authentication information based on the access authority corresponding to the purpose of use or operation of the application program 103 on the system using the printer driver SDK API (S202). .

そして、プリンタドライバ102は、アプリケーションプログラム103からの認証情報通知を受けて、認証情報データベースを参照し、前記認証情報の認証および照合を行う(S222)。さらに、プリンタドライバ102は、アプリケーションプログラム103のドキュメント印刷に係る印刷機能および印刷能力・性能に対するアクセス制御レベルを決定する(S223)。   The printer driver 102 receives the authentication information notification from the application program 103, refers to the authentication information database, and performs authentication and verification of the authentication information (S222). Further, the printer driver 102 determines an access control level for the printing function and printing capability / performance related to document printing of the application program 103 (S223).

続いて、アプリケーションプログラム103は、現在有効で使用可能なドキュメント印刷に係る印刷機能および印刷能力・性能について、プリンタドライバSDK APIを使用して、プリンタドライバ102に問い合わせる(S203)。   Subsequently, the application program 103 makes an inquiry to the printer driver 102 using the printer driver SDK API regarding the print function and print capability / performance related to document printing that is currently valid and usable (S203).

プリンタドライバ102は、この問い合わせを受けて、アプリケーションプログラム103のドキュメント印刷に係る印刷機能および印刷能力・性能に対するアクセス制御レベルに応じた、印刷機能および印刷能力・性能を選択する(S224)。さらに、プリンタドライバ102は、前記選択した印刷機能および印刷能力・性能をアプリケーションプログラム103に通知するための印刷機能属性情報および印刷能力属性情報を生成する(S225)。さらに、プリンタドライバ102は、該生成した印刷機能属性情報および印刷能力属性情報を、前記アプリケーションプログラム103からの問い合わせのためにコールされたプリンタドライバSDK APIのリターン値として、アプリケーションプログラム103に通知する(S226)。   In response to this inquiry, the printer driver 102 selects the printing function and the printing capability / performance according to the access control level for the printing function and printing capability / performance related to document printing of the application program 103 (S224). Further, the printer driver 102 generates printing function attribute information and printing capability attribute information for notifying the application program 103 of the selected printing function and printing capability / performance (S225). Further, the printer driver 102 notifies the generated print function attribute information and print capability attribute information to the application program 103 as a return value of the printer driver SDK API called for the inquiry from the application program 103 ( S226).

ここで、印刷機能および印刷能力・性能とは、給紙方法、排紙方法、両面印刷機能、N−up印刷(複数ページ割付印刷)機能、ステイプル機能、パンチ機能、トリミング機能、用紙Z折り機能などの各種フィニッシング機能、さらにこれらの機能を複合して実現する製本機能、スタンプ(Watermark)機能、フォントダウンロード機能、フォント置換機能、フォームオーバレイ機能などの前記プリンタドライバにおいて実行可能な印刷機能属性情報、およびモノクロ印刷時の階調数、カラー印刷時の色深度、色調、色空間および設定可能なカラープロファイル、マッチング方法、設定可能解像度、ベクタ/イメージ描画、ディザリングなどのグラフィックス描画方法、印刷可能な用紙サイズおよび用紙種、最大設定可能コピー部数、N−up印刷時の印刷設定可能N−up数等である。   Here, the printing function and the printing capability / performance are a paper feeding method, a paper discharging method, a duplex printing function, an N-up printing (multiple page layout printing) function, a stapling function, a punching function, a trimming function, and a paper Z folding function. Printing function attribute information that can be executed by the printer driver such as a bookbinding function that combines these functions, a stamp function (Watermark) function, a font download function, a font replacement function, a form overlay function, etc. And monochrome printing, color depth, color tone, color space, configurable color profile, matching method, configurable resolution, graphics / drawing methods such as vector / image drawing, dithering, etc. Paper size and paper type, maximum number of copies that can be set, N-up mark It is a print that can be set N-up Suto of time.

アプリケーションプログラム103は、上述のプリンタドライバ102より通知された印刷機能属性情報および印刷能力属性情報を取得し、アプリケーションプログラム103上の各種設定を行う(S204)。具体的には、例えば、印刷機能属性情報および印刷能力属性情報でカラー印刷機能が不可となっていた場合には、アプリケーションプログラム103でのカラー編集(カラードキュメント作成)を不可に設定する。また、製本機能が不可となっていた場合には、アプリケーションプログラム103での印刷ダイアログ上の製本指定を不可能に設定する等である。   The application program 103 acquires the printing function attribute information and the printing capability attribute information notified from the printer driver 102, and performs various settings on the application program 103 (S204). Specifically, for example, when the color printing function is disabled by the printing function attribute information and the printing capability attribute information, color editing (color document creation) by the application program 103 is set to be disabled. If the bookbinding function is disabled, bookbinding designation on the print dialog in the application program 103 is set to be impossible.

そして、アプリケーションプログラム103は、GDI300のGDI描画エンジンと、Windows(登録商標) SDK APIを介して、ユーザからのドキュメント編集およびドキュメントの体裁加工を受け付ける(S204,S212)。   Then, the application program 103 receives document editing and document formatting from the user via the GDI drawing engine of the GDI 300 and the Windows (registered trademark) SDK API (S204, S212).

そして、アプリケーションプログラム103は、ユーザからアプリケーションの印刷ダイアログ等により各種印刷属性が設定され(S205)、印刷指示がなされると、GDI300に対してドキュメント印刷指示を行う(S206)。なお、これらの各種印刷属性設定および指示は、プリンタドライバSDK APIを使用して行うことも可能である。   Then, the application program 103 sets various print attributes by the print dialog of the application from the user (S205), and when a print instruction is given, instructs the GDI 300 to print a document (S206). Note that these various print attribute settings and instructions can also be performed using the printer driver SDK API.

GDI300は、アプリケーションプログラム103からのWindows(登録商標) SDK APIによる各種印刷属性設定およびドキュメント印刷指示に基づき、印刷に係るDevice Driver Interface(DDI)に変換するドキュメント印刷処理を経て、プリンタドライバ102に前記DDIをコールして、印刷指示を行う(S213)。   The GDI 300 performs a document printing process for converting to a device driver interface (DDI) related to printing based on various printing attribute settings and document printing instructions by the Windows (registered trademark) SDK API from the application program 103, and then sends the above information to the printer driver 102. The DDI is called to issue a print instruction (S213).

プリンタドライバ102は、GDI300からの各種DDIコールに基づき、各種文字・図形・イメージ描画処理を行い(S227)、プリンタ200の印刷制御命令を生成し(S228)、スプーラに送信することにより(S229)、プリンタ104からドキュメント印刷105を行う。   The printer driver 102 performs various character / graphic / image drawing processes based on various DDI calls from the GDI 300 (S227), generates a print control command for the printer 200 (S228), and transmits the print control command to the spooler (S229). Document printing 105 is performed from the printer 104.

<GDI,アプリケーション、ドライバ間のSDK APIコーリングシーケンス図の説明(図3)>
図3は、図1に示したホストコンピュータ100上のOS101、アプリケーションプログラム103およびプリンタドライバ102における、プリンタドライバSDK APIの初期化から印刷までのコーリングシーケンス図である。なお、図1,図2と同一のものには同一の符号を付してある。
<Description of SDK API calling sequence diagram between GDI, application, and driver (FIG. 3)>
FIG. 3 is a calling sequence diagram from initialization of the printer driver SDK API to printing in the OS 101, the application program 103, and the printer driver 102 on the host computer 100 shown in FIG. 1 and 2 are denoted by the same reference numerals.

アプリケーションプログラム103およびプリンタドライバ102間で通常のWindows(登録商標) SDK APIおよびプリンタドライバSDK APIによる情報およびデータの送受信は、OS101のGDI300を介して行なわれる。   Transmission / reception of information and data between the application program 103 and the printer driver 102 using the normal Windows (registered trademark) SDK API and the printer driver SDK API is performed via the GDI 300 of the OS 101.

まず、アプリケーションプログラム103は、Windows(登録商標) SDK APIであるCreateDC( )関数303をコールし、プリンタ104に対するデバイスコンテキストを作成する。なお、対応するプリンタが複数ある場合には、このタイミングでダイアログを表示してユーザに使用するプリンタを選択させるように構成したもよい。また、このときにアプリケーションプログラム103は、プリンタドライバ102と組み合わせて用意されるアプリケーションプログラムインタフェース(API)関数群を構成するプリンタドライバSDKライブラリをロードする。   First, the application program 103 calls a CreateDC () function 303 that is a Windows (registered trademark) SDK API to create a device context for the printer 104. When there are a plurality of corresponding printers, a dialog may be displayed at this timing so that the user can select a printer to be used. At this time, the application program 103 loads a printer driver SDK library constituting an application program interface (API) function group prepared in combination with the printer driver 102.

次に、アプリケーションプログラム103は、初期化処理に移行し、Windows(登録商標) SDK APIであるStartDoc( )関数304をコールし、指定のプリンタデバイスで印刷ジョブを開始する。   Next, the application program 103 shifts to an initialization process, calls the StartDoc () function 304 that is a Windows (registered trademark) SDK API, and starts a print job on a designated printer device.

プリンタドライバ102では、アプリケーションプログラム103からコールされたStartDoc( )関数303がGDI300で変換されてDDIであるDrvStartDoc( )関数305がGDI300よりコールされる。この結果、プリンタドライバ102は、この関数内で印刷のための各種初期化処理を行う。   In the printer driver 102, the StartDoc () function 303 called from the application program 103 is converted by the GDI 300, and the DrvStartDoc () function 305 that is DDI is called from the GDI 300. As a result, the printer driver 102 performs various initialization processes for printing within this function.

アプリケーションプログラム103は、前記初期化処理と同時に、プリンタSDK APIである本システムにおけるその使用目的あるいは動作目的に応じたアクセス権限に基づく認証情報を通知するFS_FNCertificate( ) 関数401(詳細は図4に示す)をコールする。   At the same time as the initialization process, the application program 103 notifies the authentication information based on the access authority according to the purpose of use or the purpose of operation in this system, which is the printer SDK API, and the function 401 (details are shown in FIG. 4). ).

また、さらにアプリケーションプログラム103は、プリンタSDK APIであるプリンタおよびプリンタドライバにおける印刷に関する機能情報および能力情報を取得するFS_GetFuncItem( )関数402(詳細は図4に示す)をコールする。   Further, the application program 103 calls a FS_GetFuncItem () function 402 (details are shown in FIG. 4) for acquiring function information and capability information regarding printing in the printer and printer driver which are printer SDK APIs.

プリンタドライバ102は、前記FS_GetFuncItem( )関数402コールに基づいて、印刷能力情報および印刷機能情報をGDI300を介して、前記FS_GetFuncItem( )関数402のリターンとして、アプリケーションプログラム103に通知する。なお、ここで、印刷能力情報とは、具体的には、モノクロ印刷時の階調数、カラー印刷時の色深度、色調、色空間および設定可能なカラープロファイル、マッチング方法、設定可能解像度、ベクタ/イメージ描画、ディザリングなどのグラフィックス描画方法、印刷可能な用紙サイズおよび用紙種、最大設定可能コピー部数、N−up印刷時の印刷設定可能N−up数などの前記プリンタドライバ102において各種印刷機能実行のための印刷能力情報を示す。また、印刷機能情報とは、および給紙方法、排紙方法、両面印刷機能、N−up印刷機能、ステイプル機能、パンチ機能、トリミング機能、用紙Z折り機能などの各種フィニッシング機能、さらにこれらの機能を複合して実現する製本機能、スタンプ(Watermark)機能、フォントダウンロード機能、フォント置換機能、フォームオーバレイ機能などの前記プリンタドライバ102において実行可能な印刷機能情報を示す。   Based on the FS_GetFuncItem () function 402 call, the printer driver 102 notifies the application program 103 of print capability information and print function information as a return of the FS_GetFuncItem () function 402 via the GDI 300. Here, the print capability information specifically refers to the number of gradations during monochrome printing, the color depth during color printing, the color tone, the color space, the settable color profile, the matching method, the settable resolution, the vector / Various types of printing in the printer driver 102 such as graphics drawing methods such as image drawing and dithering, printable paper size and paper type, maximum settable number of copies, printable N-up number for N-up printing, etc. Print capability information for function execution is shown. The printing function information includes various finishing functions such as a paper feeding method, a paper discharging method, a duplex printing function, an N-up printing function, a stapling function, a punching function, a trimming function, and a paper Z folding function, and these functions. The print function information that can be executed by the printer driver 102, such as a bookbinding function, a stamp function (Watermark) function, a font download function, a font replacement function, and a form overlay function, which are realized by combining the above.

そして、アプリケーションプログラム103では、上記FS_GetFuncItem( )関数402で取得した印刷能力情報および印刷機能情報に基づきアプリケーションプログラム103内の各種設定処理がなされ、ユーザによるドキュメントの編集,体裁加工が施されることになる。   In the application program 103, various setting processes in the application program 103 are performed based on the print capability information and the print function information acquired by the FS_GetFuncItem () function 402, and the document is edited and formatted by the user. Become.

さらに、ユーザからの印刷設定及びドキュメント印刷指示がなされると、アプリケーションプログラム103は、ユーザからの各種印刷設定に基づいて各種印刷設定をプリンタドライバ102に指定する。例えば、前記同様にプリンタドライバSDK APIである両面印刷属性を設定するFS_SetDuplexPrint( )関数308あるいはステイプル印刷属性を設定するFS_SetStaplePrint( )関数309をコールして、最終的なドキュメント出力形態を指定する。   Further, when a print setting and a document print instruction are issued from the user, the application program 103 specifies various print settings to the printer driver 102 based on the various print settings from the user. For example, the FS_SetDuplexPrint () function 308 that sets the duplex printing attribute, which is the printer driver SDK API, or the FS_SetStaplePrint () function 309 that sets the staple printing attribute is called to specify the final document output form.

以降、同様にプリンタドライバSDK APIを使用して、各印刷属性設定を行う。例えば、複数サイズの用紙の混在する場合の製本機能等のより付加価値が高い機能(一般的でない印刷機能)の設定も可能である。   Thereafter, each print attribute is set using the printer driver SDK API in the same manner. For example, it is possible to set a function with higher added value (unusual printing function) such as a bookbinding function when a plurality of sizes of paper are mixed.

また、一般的な印刷設定に関しては、DEVMODE構造体に通常の印刷属性の設定値をセットし、Windows(登録商標) SDK APIであるResetDC( )をコールして印刷属性を指定するようにしてもよい。   As for general print settings, the normal print attribute setting values are set in the DEVMODE structure, and the Windows (registered trademark) SDK API ResetDC () is called to specify the print attributes. Good.

そして、プリンタドライバ102は、前記プリンタドライバSDK APIによる各種印刷属性設定を受けて、各関数処理において、プリンタ制御命令の生成あるいは解像度、カラー/モノクロ出力、ベクタ/イメージ描画、ディザリングなどの画像描画のための初期化設定処理などを行う。   The printer driver 102 receives various print attribute settings by the printer driver SDK API, and in each function process, generates a printer control command or image rendering such as resolution, color / monochrome output, vector / image rendering, dithering, etc. Perform initialization setting processing for the.

続いて、アプリケーションプログラム103は、ドキュメント出力処理に移行するために、Windows(登録商標) SDK APIであるStartPage( )関数310をコールし、プリンタドライバ102に新しいページも受け取りを開始するように指示する。以降、アプリケーションプログラム103は、ドキュメントページを構成するWindows(登録商標) SDK API,プリンタドライバSDK APIの各関数312および印刷データを書き込み・送信する。   Subsequently, the application program 103 calls the StartPage () function 310 that is a Windows (registered trademark) SDK API in order to shift to document output processing, and instructs the printer driver 102 to start receiving a new page. . Thereafter, the application program 103 writes and transmits the Windows 3 (registered trademark) SDK API, the printer driver SDK API functions 312 and the print data that constitute the document page.

そして、プリンタドライバ102では、前記アプリケーションプログラム103からコールされたStartPage( )関数310がGDI300で変換されてDDIであるDrvStartPage( )関数311がGDI300よりコールされる。この関数内で、プリンタドライバ102は、新しいページ印刷のための各種処理を行う。   In the printer driver 102, the StartPage () function 310 called from the application program 103 is converted by the GDI 300 and the DrvStartPage () function 311 that is DDI is called from the GDI 300. Within this function, the printer driver 102 performs various processes for printing a new page.

また、アプリケーションプログラム103は、ドキュメントページ毎にWindows(登録商標) SDK APIであるEndPage( )関数313をコールし、1ページの書き込みを終えたことをプリンタドライバ102に伝える。   Further, the application program 103 calls an EndPage () function 313 that is a Windows (registered trademark) SDK API for each document page, and notifies the printer driver 102 that writing of one page is completed.

プリンタドライバ102では、前記アプリケーションプログラム201からコールされたEndPage( )関数313がGDI 300で変換されてDDIであるDrvEndPage( )関数314がGDI 300よりコールされる。この関数内で、プリンタドライバ102は、ページ終了のための各種処理を行う。   In the printer driver 102, the EndPage () function 313 called from the application program 201 is converted by the GDI 300, and the DrvEndPage () function 314, which is DDI, is called from the GDI 300. Within this function, the printer driver 102 performs various processes for ending the page.

また、アプリケーションプログラム103は、全てのドキュメントページの書き込み・送信が完了したら、Windows(登録商標) SDK APIであるEndDoc( )関数315をコールし、StartDoc( )関数304で開始された印刷ジョブを終了する。   When the writing and transmission of all the document pages are completed, the application program 103 calls the EndDoc () function 315 that is a Windows (registered trademark) SDK API, and ends the print job started by the StartDoc () function 304. To do.

プリンタドライバ102では、前記アプリケーションプログラム103からコールされたEndDoc( )関数317がGDI 300で変換されてDDIであるDrvEndDoc( )関数316がGDI 300よりコールされる。この関数内で、プリンタドライバ102は、ジョブ終了のための各種処理を行う。   In the printer driver 102, the EndDoc () function 317 called from the application program 103 is converted by the GDI 300, and the DrvEndDoc () function 316 that is DDI is called from the GDI 300. Within this function, the printer driver 102 performs various processes for ending the job.

そして、アプリケーションプログラム103は、全ての印刷処理を完了し、Windows(登録商標) SDK APIであるDeleteDC( )関数317をコールして、CreateDC( )関数303で作成されたデバイスコンテキストを削除し、プリンタドライバ102とのセッションを終了する。   Then, the application program 103 completes all the printing processes, calls the DeleteDC () function 317 that is a Windows (registered trademark) SDK API, deletes the device context created by the CreateDC () function 303, and The session with the driver 102 is terminated.

<認証関数および印刷機能属性情報、印刷能力属性情報を取得する関数の説明(図4)>
図4は、図3に示したプリンタドライバSDK APIである認証情報通知するFS_FNCertificate( )関数401および印刷機能属性情報、印刷能力属性情報を取得・通知するFS_GetFuncItem()関数402を説明する図である。
<Description of Function for Acquiring Authentication Function, Printing Function Attribute Information, and Printing Capability Attribute Information (FIG. 4)>
FIG. 4 is a diagram for explaining the FS_FNCertificate () function 401 for notifying authentication information and the FS_GetFuncItem () function 402 for acquiring / notifying printing function attribute information and printing capability attribute information, which are the printer driver SDK API shown in FIG. .

FS_FNCertificate( )関数401は、アプリケーションプログラム103において、本印刷システムにおけるその使用目的あるいは動作目的に応じたアクセス権限に基づく認証情報をプリンタドライバ102に通知するプリンタドライバSDK APIの関数である。   The FS_FNCertificate () function 401 is a function of the printer driver SDK API that notifies the printer driver 102 of authentication information based on the access authority corresponding to the purpose of use or the purpose of operation in the printing system in the application program 103.

アプリケーションプログラム103から本関数がコールされると、プリンタドライバ102は、プリンタドライバ内で備え、管理される各アプリケーションプログラムのアクセス制御レベル情報を格納・保管するデータベースを参照する。そして、プリンタドライバ102は、該参照した情報と前記通知されたアプリケーションプログラムの認証情報に基づき、前記アプリケーションプログラムに対する認証を行い、現在動作するアプリケーションプログラムが利用できる印刷機能・能力あるいは性能に対するアクセス制御レベルを決定する。   When this function is called from the application program 103, the printer driver 102 refers to a database that is provided in the printer driver and stores / stores access control level information of each managed application program. The printer driver 102 authenticates the application program based on the referred information and the authentication information of the notified application program, and an access control level for a printing function / capability or performance that can be used by the currently operating application program To decide.

アプリケーションプログラム103は、例えば、FS_FNCertificate( )関数401のパラメータの1つであるアプリケーションプログラム103側で確保されたメモリバッファのポインタとして渡されるCERTIFICATIONで型定義されるプログラム構造体に、識別情報および種認証情報を代入して、リターンすることで前記プリンタドライバ102に通知し、前記プリンタドライバ102で認証情報を参照することが可能となる。   The application program 103 includes, for example, identification information and seed authentication in a program structure type-defined by CERTIFICATION passed as a memory buffer pointer secured on the application program 103 side, which is one of the parameters of the FS_FNCertificate () function 401 By substituting information and returning, the printer driver 102 is notified and the printer driver 102 can refer to the authentication information.

なお、上記識別情報とは、該当アプリケーションプログラムのアプリケーションプログラム名称、対応OS、バージョン番号等の該当アプリケーションプログラムを識別する情報を示す。また、上記種認証情報とは、あらかじめ該当アプリケーションプログラムに付与されるアクセスID,パスワード等の各種認証情報を示す。また、この認証情報に、ユーザID,パスワード等も含めるように構成してもよく、ユーザ毎にアプリケーションプログラムの認証情報を変化させるように構成してもよい。   The identification information indicates information for identifying the application program such as the application program name, the corresponding OS, and the version number of the application program. The type authentication information indicates various types of authentication information such as an access ID and a password given to the application program in advance. Further, the authentication information may include a user ID, a password, or the like, or the authentication information of the application program may be changed for each user.

FS_GetFuncItem()関数402は、アプリケーションプログラム103において上述の印刷機能属性情報および印刷能力属性情報を問い合わせ・取得するプリンタドライバSDK APIの関数である。   The FS_GetFuncItem () function 402 is a function of the printer driver SDK API that inquires and acquires the above-described print function attribute information and print capability attribute information in the application program 103.

アプリケーションプログラム103から本関数がコールされると、プリンタドライバ102は、先にFS_FNCertificate( )関数401により通知された該当アプリケーションプログラムの認証情報に基づいて、印刷機能・能力あるいは性能に対するアクセス制御レベルに応じた、現在有効な印刷に係る印刷機能属性情報および印刷能力属性情報を決定・生成し、前記アプリケーションプログラム103に通知する。   When this function is called from the application program 103, the printer driver 102 corresponds to the access control level for the printing function / capability or performance based on the authentication information of the corresponding application program previously notified by the FS_FNCertificate () function 401. In addition, printing function attribute information and printing capability attribute information relating to the currently effective printing are determined and generated, and notified to the application program 103.

プリンタドライバ102は、例えば、FS_GetFuncItem()関数402のパラメータの1つであるアプリケーションプログラム103側で確保されたメモリバッファのポインタとして渡されるFUNCITEMで型定義されるプログラム構造体に、各種印刷機能情報および印刷能力情報を代入して、リターンすることでアプリケーションプログラム103に上記各種印刷機能情報および印刷能力情報を通知する。   For example, the printer driver 102 stores various printing function information and a program structure defined by FUNCITEM as a memory buffer pointer secured on the application program 103 side, which is one of the parameters of the FS_GetFuncItem () function 402. By substituting printing capability information and returning, the application program 103 is notified of the various printing function information and printing capability information.

<32-Bitオペレーティングシステム環境での各構成要素ブロック図の説明(図5)>
図5は、Windows(登録商標) NT4.0/Windows(登録商標) 2000/Windows(登録商標) XP等の32-Bitオペレーティングシステム環境下におけるオペレーティングシステムのGDI,アプリケーションプログラム,プリンタドライバおよびプリンタドライバSDKライブラリの各構成例を示す図である。
<Explanation of each component block diagram in 32-bit operating system environment (FIG. 5)>
FIG. 5 shows operating system GDI, application program, printer driver and printer driver SDK under 32-bit operating system environment such as Windows (registered trademark) NT4.0 / Windows (registered trademark) 2000 / Windows (registered trademark) XP. It is a figure which shows each structural example of a library.

図5において、501は32-bitアプリケーションプログラムである。502はWindows(登録商標)(登録商標) NT4.0/Windows(登録商標) 2000/Windows(登録商標) XPなどの32-Bitオペレーティングシステムが備えるGDIである。   In FIG. 5, reference numeral 501 denotes a 32-bit application program. Reference numeral 502 denotes a GDI provided in a 32-Bit operating system such as Windows (registered trademark) NT4.0 / Windows (registered trademark) 2000 / Windows (registered trademark) XP.

503は、プリンタドライバSDKライブラリとしてのPDSDK.dllであり、32-bitオペレーティングシステム環境下で動作・実行できるよう32-bit関数群で構成される。このPDSDK.dll503は、アプリケーションプログラム501の初期化時にロードされる。そして、本ライブラリPDSDK.dll503に定義される関数を、前記アプリケーションプログラム501においてコールすることにより、プリンタドライバ504に実装される関数がコールされる。   Reference numeral 503 denotes PDSDK.dll as a printer driver SDK library, which is configured of a 32-bit function group so that it can be operated and executed under a 32-bit operating system environment. The PDSDK.dll 503 is loaded when the application program 501 is initialized. Then, by calling a function defined in the library PDSDK.dll 503 in the application program 501, a function implemented in the printer driver 504 is called.

上述した図4に示したFS_FNCertificate( )関数401およびFS_GetFuncItem( )関数402等も、本SDKライブラリPDSDK.dll 503に定義される。   The above-described FS_FNCertificate () function 401 and FS_GetFuncItem () function 402 shown in FIG. 4 are also defined in the SDK library PDSDK.dll 503.

なお、通常の印刷属性設定および印刷指示を行うWindows(登録商標) SDK APIは、アプリケーションプログラム501からコールされると、GDI502を介してDDIに変換されてプリンタドライバ504の各関数をコールする。   When a Windows (registered trademark) SDK API that performs normal print attribute setting and print instruction is called from the application program 501, it is converted to DDI via the GDI 502 and calls each function of the printer driver 504.

一方、上記印刷機能属性情報および印刷能力属性情報に基づいてさらに高機能で詳細な印刷属性設定を行うプリンタドライバSDKライブラリPDSDK.dll503は、アプリケーションプログラム501からコールされると、直接プリンタドライバ504に対して通知を行う。   On the other hand, when the application driver 501 calls the printer driver SDK library PDSDK.dll 503 that performs more advanced and detailed print attribute settings based on the print function attribute information and the print capability attribute information, the printer driver 504 directly To notify.

<16-Bitオペレーティングシステム環境での各構成要素ブロック図の説明(図6)>
図6は、Windows(登録商標) 95/Windows(登録商標) 98/Windows(登録商標) Me等の16-Bitオペレーティングシステム環境下におけるオペレーティングシステムのGDI,アプリケーションプログラム,プリンタドライバおよびプリンタドライバSDKライブラリの各構成例を示す図である。
<Description of block diagram of each component in 16-Bit operating system environment (FIG. 6)>
FIG. 6 shows the operating system GDI, application program, printer driver, and printer driver SDK library under a 16-bit operating system environment such as Windows (registered trademark) 95 / Windows (registered trademark) 98 / Windows (registered trademark) Me. It is a figure which shows each structural example.

図6において、601は現在一般的にある32-bitアプリケーションプログラムである。602はWindows(登録商標) 95/Windows(登録商標) 98/Windows(登録商標) Me等の16-Bitオペレーティングシステムが備えるGDIである。   In FIG. 6, reference numeral 601 denotes a 32-bit application program that is generally present. Reference numeral 602 denotes a GDI provided in a 16-bit operating system such as Windows (registered trademark) 95 / Windows (registered trademark) 98 / Windows (registered trademark) Me.

603はプリンタドライバSDKライブラリとしてのPDSDK.dllであり、32-bitオペレーティングシステム環境下で動作・実行できるよう32-bit関数群で構成される。   PDSDK.dll 603 as a printer driver SDK library is configured by a 32-bit function group so that it can operate and execute under a 32-bit operating system environment.

上述の図4に示したFS_FNCertificate( )関数401およびFS_GetFuncItem( )関数402等も、本SDKライブラリPDSDK.dll603に定義される。   The FS_FNCertificate () function 401 and the FS_GetFuncItem () function 402 shown in FIG. 4 are also defined in the SDK library PDSDK.dll 603.

604はプリンタドライバSDKライブラリとしてのSDK32.dllである。このSDK32.dllは、前記32-bitプリンタドライバSDKライブラリPDSDK.dll603からコールされる32-bit関数群および32-bitデータタイプを受け取り、16-bit関数群および16-bitデータタイプに変換し、前記16-bitGDI602との入出力インタフェースとなる。   Reference numeral 604 denotes an SDK32.dll as a printer driver SDK library. This SDK32.dll receives the 32-bit function group and 32-bit data type called from the 32-bit printer driver SDK library PDSDK.dll 603, converts it into a 16-bit function group and 16-bit data type, It becomes an input / output interface with the 16-bit GDI 602.

605はプリンタドライバSDKライブラリSDK16.dllである。このSDK16.dll605は、前記16-bitオペレーティングシステム環境下で動作・実行できるよう16-bitデータタイプを扱う16-bit関数群で構成され、16-bitデータタイプおよび関数群で構成されるプリンタドライバ606との入出力インタフェースとなる。   Reference numeral 605 denotes a printer driver SDK library SDK16.dll. This SDK16.dll 605 is composed of a 16-bit function group that handles a 16-bit data type so that it can operate and execute under the 16-bit operating system environment, and a printer driver composed of a 16-bit data type and a function group. It becomes an input / output interface with 606.

前記PDSDK.dll603、SDK32.dll604およびSDK16.dll605は、前記アプリケーションプログラム601の初期化時にロードされる。PDSDK.dll603に定義される関数を、前記アプリケーションプログラム601においてコールすることにより、SDK32.dll604およびSDK16.dll605でそれぞれデータタイプを変化され、プリンタドライバ606に実装される関数がコールされる。   The PDSDK.dll 603, SDK32.dll 604, and SDK16.dll 605 are loaded when the application program 601 is initialized. By calling a function defined in PDSDK.dll 603 in the application program 601, the data type is changed in each of SDK32.dll 604 and SDK16.dll 605, and a function implemented in the printer driver 606 is called.

なお、通常の印刷属性設定および印刷指示を行うWindows(登録商標) SDK APIは、アプリケーションプログラム601からコールされると、GDI602を介してDDIに変換されてプリンタドライバ504の各関数をコールする。   When a Windows (registered trademark) SDK API that performs normal print attribute setting and print instruction is called from the application program 601, it is converted to DDI via the GDI 602 and calls each function of the printer driver 504.

一方、上記印刷機能属性情報および印刷能力属性情報に基づいてさらに高機能で詳細な印刷属性設定を行うプリンタドライバSDKライブラリPDSDK.dll603は、アプリケーションプログラム501からコールされると、SDK32.dll604およびSDK16.dll605を介して、直接プリンタドライバ504に対して通知を行う。   On the other hand, when the application driver 501 calls the printer driver SDK library PDSDK.dll 603 that performs more advanced and detailed print attribute settings based on the print function attribute information and the print capability attribute information, the SDK32.dll 604 and the SDK 16. Notification is made directly to the printer driver 504 via the dll 605.

<ホストコンピュータ及びプリンタ接続構成図の説明(図7)>
図7は、図1に示したホストコンピュータ100及びプリンタ104のハードウェア接続構成を示すブロック図である。
<Description of Host Computer and Printer Connection Configuration Diagram (FIG. 7)>
FIG. 7 is a block diagram showing a hardware connection configuration of the host computer 100 and the printer 104 shown in FIG.

図7において、1001は入力装置であり、ホストコンピュータ100に対して入力を行うキーボード,マウス等に対応する。1002は表示装置(ディスプレイ(Display))1002であり、表示出力を行う。1003はディスク(Disk)であり、ファイルの入出力を行うハードディスク等の外部記憶装置に対応する。   In FIG. 7, reference numeral 1001 denotes an input device, which corresponds to a keyboard, a mouse, or the like that inputs to the host computer 100. Reference numeral 1002 denotes a display device (Display) 1002 that performs display output. Reference numeral 1003 denotes a disk, which corresponds to an external storage device such as a hard disk for inputting and outputting files.

以下、ホストコンピュータ100の構成を詳細に説明する。   Hereinafter, the configuration of the host computer 100 will be described in detail.

ホストコンピュータ100において、1004はCPUであり、ホストシステムおよび接続される各入出力装置の制御や、入力された指示に従って出力制御などの一連の処理、各種プログラムを実行する。1005はROMであり、CPU1004を動作させるためのブートプログラム、各種データ等を格納するメモリである。ディスク1003には、OS101、プリンタドライバプログラム102、アプリケーションプログラム103、SDKライブラリ、及び、各種データが格納されている。   In the host computer 100, reference numeral 1004 denotes a CPU which executes a series of processes such as control of the host system and each input / output device connected thereto and output control in accordance with input instructions, and various programs. A ROM 1005 is a memory for storing a boot program for operating the CPU 1004, various data, and the like. The disk 1003 stores an OS 101, a printer driver program 102, an application program 103, an SDK library, and various data.

1006はRAMであり、プリンタに係る各種印刷属性設定、ドキュメント印刷を実行/動作させる各種処理のための作業領域として用いられるメモリである。また、このRAM1006上には、CPU1004により、ROM1005やディスク1003から各種プログラムがロードされて実行される。CPU1004は、ディスク1003からOS101,プリンタドライバ102,アプリケーションプログラム103,プリンタSDKライブラリをRAM1006上にロードして、これらのプログラムを用いて一連の印刷制御処理を行い、プリンタ104からドキュメント出力を行う。   A RAM 1006 is a memory used as a work area for various processes for executing / operating various print attribute settings and document printing related to the printer. On the RAM 1006, the CPU 1004 loads and executes various programs from the ROM 1005 and the disk 1003. The CPU 1004 loads the OS 101, printer driver 102, application program 103, and printer SDK library from the disk 1003 onto the RAM 1006, performs a series of print control processes using these programs, and outputs a document from the printer 104.

1007はキーボード・コントローラであり、入力装置1001のインタフェースを備える。1008はディスプレイ・コントローラであり、ディスプレイ1002への表示出力を行うためのインタフェースを備える。1009はディスク・コントローラであり、ディスク1003への入出力インタフェースを備える。   Reference numeral 1007 denotes a keyboard controller, which has an interface for the input device 1001. Reference numeral 1008 denotes a display controller, which includes an interface for performing display output on the display 1002. A disk controller 1009 has an input / output interface to the disk 1003.

1010はイーサネット(登録商標)・インタフェースであり、ホストコンピュータ100とプリンタ104を接続して、通信を行うための通信プロトコルを備えたイーサネット(登録商標)等のネットワーク回線を介して、入出力を行うネットワークインタフェースである。なお、ここでは、イーサネット(登録商標)・インタフェースとしているが、その他のネットワークインタフェースであってもよい。1011はCPUバスであり、各構成要素1004〜1011を接続するバスである。   Reference numeral 1010 denotes an Ethernet (registered trademark) interface, which connects the host computer 100 and the printer 104 and performs input / output via a network line such as Ethernet (registered trademark) having a communication protocol for performing communication. Network interface. Here, the Ethernet (registered trademark) interface is used, but other network interfaces may be used. Reference numeral 1011 denotes a CPU bus, which connects the components 1004 to 1011.

以下、プリンタ104の構成を詳細に説明する。   Hereinafter, the configuration of the printer 104 will be described in detail.

プリンタ104において、1014はCPUであり、プリンタ104に接続される各種入出力の制御や、入力された指示に従って印刷制御等の一連の処理、通信制御制御処理等のプログラムを実行する。   In the printer 104, reference numeral 1014 denotes a CPU that executes programs such as a series of processes such as print control and communication control control processes in accordance with various input / output controls connected to the printer 104, and input instructions.

1015はROMであり、各入出力の制御、通信制御処理、入力された指示に従って印字制御など一連の処理、制御コマンド解析処理などプリンタを動作させるプログラム、各種データ等が格納されているメモリである。   Reference numeral 1015 denotes a ROM, which is a memory storing various input / output control, communication control processing, a series of processing such as print control according to input instructions, a program for operating the printer such as control command analysis processing, and various data. .

1016はRAMであり、CPU1014が各種プログラムで実行・処理を行うための作業領域として用いられるメモリである。このRAM1016には、CPU1014により、ROM1015から各種プログラムがロードされて実行される。   Reference numeral 1016 denotes a RAM, which is a memory used as a work area for the CPU 1014 to execute and process various programs. Various programs are loaded into the RAM 1016 from the ROM 1015 and executed by the CPU 1014.

1017はイーサネット(登録商標)・インタフェースであり、ホストコンピュータ100とプリンタ104を接続して、データのやり取りを行うための通信プロトコルを備えたイーサネット(登録商標)などのネットワーク回線を介して、入出力を行うネットワークインタフェースである。なお、ここでは、イーサネット(登録商標)・インタフェースとしているが、その他のネットワークインタフェースであってもよい。   Reference numeral 1017 denotes an Ethernet (registered trademark) interface, which connects the host computer 100 and the printer 104 and inputs / outputs via a network line such as Ethernet (registered trademark) having a communication protocol for exchanging data. It is a network interface that performs Here, the Ethernet (registered trademark) interface is used, but other network interfaces may be used.

1018はディスク・コントローラであり、ハードディスク等のディスク1013への入出力インタフェースを備える。1019はエンジン制御処理部であり、機構的にパターン出力を行うビデオインタフェースで印刷装置駆動系(エンジン部)1021とのデータおよび信号のやり取りを行う入出力インタフェースを備える。1020はCPUバスであり、各構成要素1014〜1019を接続するバスである。   A disk controller 1018 has an input / output interface to a disk 1013 such as a hard disk. An engine control processing unit 1019 is a video interface that mechanically outputs a pattern, and includes an input / output interface that exchanges data and signals with the printing apparatus drive system (engine unit) 1021. Reference numeral 1020 denotes a CPU bus, which is a bus for connecting the components 1014 to 1019.

なお、エンジン部1021は、レーザビーム方式であっても、レーザビーム方式以外の電子写真方式(例えばLED方式)でも、液晶シャッタ方式、インクジェット方式、熱転写方式、昇華方式でもその他のプリント方式であっても本発明は適用可能である。   The engine unit 1021 is a laser beam method, an electrophotographic method other than the laser beam method (for example, an LED method), a liquid crystal shutter method, an ink jet method, a thermal transfer method, a sublimation method, or any other printing method. The present invention is also applicable.

また、ホストコンピュータ100のイーサネット(登録商標)・インタフェース1010およびプリンタ104のイーサネット(登録商標)・インタフェース1017で構築されるTCP/IPなどの通信プロトコルを備えたネットワークに替えて、USB,セントロニクスインタフェース,シリアルインタフェース,SCSI等の通信プロトコルを備えた各種インタフェースにおいても適用可能である。   Further, instead of a network having a communication protocol such as TCP / IP constructed by the Ethernet (registered trademark) interface 1010 of the host computer 100 and the Ethernet (registered trademark) interface 1017 of the printer 104, a USB, a Centronics interface, The present invention can also be applied to various interfaces having a communication protocol such as a serial interface and SCSI.

以下、ホストコンピュータ100内のプログラムメモリRAM1006上にある(ロードされた)Windows(登録商標)SDKライブラリを含むOS101、アプリケーションプログラム103、プリンタドライバ102およびプリンタドライバSDKライブラリの各制御処理および動作を詳細に説明する。   Hereinafter, the control processing and operation of the OS 101 including the Windows (registered trademark) SDK library (loaded) on the program memory RAM 1006 in the host computer 100, the application program 103, the printer driver 102, and the printer driver SDK library will be described in detail. explain.

まず、アプリケーションプログラム103における動作について説明する。   First, the operation in the application program 103 will be described.

ホストコンピュータ100内のRAM1006上にある(ロードされた)アプリケーションプログラム103は、ドキュメント作成、体裁加工および印刷出力のための各種初期化処理を行う過程で、オペレーティングシステムを介してプリンタドライバのロードおよび起動、プリンタドライバSDKライブラリのロードを行う。   The application program 103 (loaded) on the RAM 1006 in the host computer 100 loads and activates the printer driver via the operating system in the process of performing various initialization processes for document creation, appearance processing, and print output. The printer driver SDK library is loaded.

ここでアプリケーションプログラム103は、通常のWindows(登録商標) SDK APIを使用しての各種初期化処理の他に、プリンタ104およびプリンタドライバ102において、現在使用可能な機能・能力を認識するために、前記プリンタドライバSDKライブラリに含まれるAPIを使用して、該当アプリケーションプログラムの使用目的あるいは動作目的に応じたアクセス権限に基づく認証情報をプリンタドライバ102に通知する。さらに、アプリケーションプログラム103は、プリンタドライバ102に印刷機能属性情報および印刷能力属性情報を問い合わせる。   Here, the application program 103 recognizes the functions and capabilities currently available in the printer 104 and the printer driver 102 in addition to various initialization processes using the normal Windows (registered trademark) SDK API. Using the API included in the printer driver SDK library, the authentication information based on the access authority corresponding to the purpose of use or the purpose of operation of the application program is notified to the printer driver 102. Further, the application program 103 inquires of the printer driver 102 about printing function attribute information and printing capability attribute information.

そして、アプリケーションプログラム103は、この印刷機能属性情報および印刷能力属性情報を問い合わせに応答してプリンタドライバ102から通知される前記印刷機能属性情報および印刷能力属性情報を取得し、これに基づきアプリケーションプログラム103内の各種設定を行う。具体的には、例えば、印刷機能属性情報および印刷能力属性情報でカラー印刷機能が不可となっていた場合には、アプリケーションプログラム103でのカラー編集(カラードキュメント作成)を不可に設定する。また、製本機能が不可となっていた場合には、アプリケーションプログラム103での印刷ダイアログ上の製本指定を不可能に設定する等である。   Then, the application program 103 acquires the print function attribute information and the print capability attribute information notified from the printer driver 102 in response to the inquiry about the print function attribute information and the print capability attribute information. Based on this, the application program 103 Make various settings. Specifically, for example, when the color printing function is disabled by the printing function attribute information and the printing capability attribute information, color editing (color document creation) by the application program 103 is set to be disabled. If the bookbinding function is disabled, bookbinding designation on the print dialog in the application program 103 is set to be impossible.

このように設定処理されたアプリケーションプログラム103において、ユーザは入力手段1001によりドキュメントを目的の出力形態に作成および体裁加工を行う。   In the application program 103 set as described above, the user creates and forms a document in a desired output form by the input unit 1001.

さらにアプリケーションプログラム103において、ユーザは入力手段1001により、目的の出力形態を実現するために、各種印刷属性設定および印刷指示を行う。   Further, in the application program 103, the user performs various print attribute settings and print instructions with the input unit 1001 in order to realize a desired output form.

このユーザからの印刷指示により、アプリケーションプログラム103は、上述の各種印刷設定と印刷指示をドキュメントデータと共に、Windows(登録商標) SDK APIおよびプリンタドライバSDK APIを使用して送信する。   In response to the print instruction from the user, the application program 103 transmits the above-described various print settings and print instructions together with document data using the Windows (registered trademark) SDK API and the printer driver SDK API.

以下、プリンタドライバ102における動作を説明する。   Hereinafter, the operation of the printer driver 102 will be described.

ホストコンピュータ100内のRAM1006上にあるプリンタドライバ102は、前記アプリケーションプログラム103の起動初期化時に、OS101上にロードされて起動される。   The printer driver 102 on the RAM 1006 in the host computer 100 is loaded on the OS 101 and activated when the application program 103 is activated and initialized.

前記アプリケーションプログラム103におけるドキュメント作成、印刷のための各種初期化処理に基づき、Windows(登録商標) SDK APIがコールされることによって、OS101のGDI300を介してDDIに変換され、コールされることによって、プリンタドライバ102での初期化処理が開始される。   By calling Windows (registered trademark) SDK API based on various initialization processes for document creation and printing in the application program 103, it is converted to DDI via the GDI 300 of the OS 101, and is called. Initialization processing in the printer driver 102 is started.

同時に、アプリケーションプログラム103からプリンタSDK APIによる該当アプリケーションプログラムの使用目的あるいは動作目的に応じたアクセス権限に基づく認証情報をプリンタドライバ102に通知する。   At the same time, the application program 103 notifies the printer driver 102 of authentication information based on the access authority corresponding to the purpose of use or operation of the application program using the printer SDK API.

また、プリンタドライバ102は、アプリケーションプログラム103からプリンタSDK APIによる前記印刷機能属性情報および印刷能力属性情報を問い合わせに対し、プリンタ機器が有するリソース情報およびプリンタ機器が有する印刷機能情報に基づき、上述した印刷機能属性情報および印刷能力属性情報を生成し、前記アプリケーションプログラム103から問い合わせを受けたプリンタドライバSDK APIのリターンとして、前記アプリケーションプログラム103に通知する。   In response to an inquiry from the application program 103 for the print function attribute information and the print capability attribute information by the printer SDK API, the printer driver 102 performs the above-described printing based on the resource information of the printer device and the print function information of the printer device. Function attribute information and printing capability attribute information are generated and notified to the application program 103 as a return of the printer driver SDK API that has received an inquiry from the application program 103.

なお、上記プリンタ機器が有するリソース情報とは、印刷用紙の給紙方法を決定する各種給紙装置、用紙出力方法を決定する各種排紙装置、両面印刷装置、ステイプル装置、パンチャー装置、トリマー装置、用紙Z折り装置などのフィニッシング装置類、メモリ、ハードディスクなどの記憶装置、機器に搭載され出力可能な用紙サイズおよび用紙種、搭載されるフォント等を示す。また、上記プリンタ機器が有する印刷機能情報とは、モノクロ/カラー印刷機能、解像度、グラフィックス描画方法、用紙印刷方向、最大コピー部数、N−up印刷機能、ジョブストア機能、フォントダウンロード機能等を示す。   The resource information of the printer device includes various paper feeding devices that determine a paper feeding method, various paper ejection devices that determine a paper output method, a duplex printing device, a stapling device, a puncher device, a trimmer device, A finishing device such as a paper Z-folding device, a storage device such as a memory and a hard disk, a paper size and paper type that can be output by being mounted on a device, and a font that is mounted. The printing function information possessed by the printer device includes monochrome / color printing function, resolution, graphics drawing method, paper printing direction, maximum number of copies, N-up printing function, job store function, font download function, and the like. .

さらに、プリンタドライバ102は、アプリケーションプログラム103から目的のドキュメント印刷を行うための各種印刷属性設定をGDI300を介してWindows(登録商標) SDK APIおよびプリンタドライバSDK APIがコールされると、該コールされることによってプリンタドライバ102においてコールされるDDIに基づいて、各種印刷属性設定処理を行う。   Further, the printer driver 102 calls various printing attribute settings for performing target document printing from the application program 103 when the Windows (registered trademark) SDK API and the printer driver SDK API are called via the GDI 300. Accordingly, various print attribute setting processes are performed based on the DDI called by the printer driver 102.

プリンタドライバ102は、前記アプリケーションプログラム103からのドキュメント印刷指示と併せて、ドキュメントデータに基づき、図形/文字およびイメージのパターン・データ、サイズ、描画出力開始位置などのデータおよび各種設定情報の入力処理を行う。さらに、プリンタドライバ102は、前記読み込まれた印刷属性設定情報等を解析する解析処理を行う。さらに、プリンタドライバ102は、サイズ、描画出力形態等を指示する各設定パラメータに基づいて、構成されるドキュメントの描画出力形態を決定する描画出力形態制御処理を行う。さらに、プリンタドライバ102は、前記決定したドキュメントを印刷するため、プリンタ104のプリンタ制御命令を変換・生成する出力制御命令変換処理を行う。さらに、プリンタドライバ102は、生成された印字出力制御命令をプリンタに送信する出力制御命令送信制御処理を行う。これらの一連の処理により、プリンタドライバ102は、プリンタ104から目的のドキュメントを出力する。   The printer driver 102 performs input processing of data such as graphic / character and image pattern data, size, drawing output start position, and various setting information based on the document data together with the document print instruction from the application program 103. Do. Further, the printer driver 102 performs an analysis process for analyzing the read print attribute setting information and the like. Further, the printer driver 102 performs a drawing output form control process for determining a drawing output form of a document to be configured based on each setting parameter that instructs a size, a drawing output form, and the like. Further, the printer driver 102 performs output control command conversion processing for converting and generating a printer control command for the printer 104 in order to print the determined document. Further, the printer driver 102 performs output control command transmission control processing for transmitting the generated print output control command to the printer. Through these series of processes, the printer driver 102 outputs a target document from the printer 104.

以下、プリンタ104における動作について説明する。   Hereinafter, the operation of the printer 104 will be described.

プリンタ104内のメモリROM1015上にある制御プログラムにおける印刷出力制御処理によるドキュメントの出力動作を詳細に説明する。   The document output operation by the print output control process in the control program on the memory ROM 1015 in the printer 104 will be described in detail.

まず、プリンタ104内の制御プログラムは、現在サポートしている用紙サイズ、用紙タイプ、ステイプル機能をもつフィニッシャの有無など、印刷を行う際の有効な機能、資源のプリンタ構成情報をイーサネット(登録商標)・インタフェース1017を介して、ホストコンピュータ100のRAM1006上にあるプリンタドライバ102に通知する。   First, the control program in the printer 104 displays the currently supported paper size, paper type, and the presence or absence of a finisher with a stapling function, such as effective functions for printing, and printer configuration information of resources using Ethernet (registered trademark). Notify the printer driver 102 on the RAM 1006 of the host computer 100 via the interface 1017.

また、プリンタ104内の制御プログラムは、ホストコンピュータ100内のプログラムメモリRAM1006上にあるプリンタドライバ102から送信されるプリンタを初期化する制御命令を受信し、初期化処理を行う。   The control program in the printer 104 receives a control command for initializing the printer transmitted from the printer driver 102 on the program memory RAM 1006 in the host computer 100, and performs an initialization process.

続いて、プリンタ104内の制御プログラムは、ホストコンピュータ100からプリンタ104で印刷を行うために送信されてくるプリンタ印刷制御命令の入力を行な印刷制御命令入力処理を行う。さらに、プリンタ104内の制御プログラムは、前記入力されたプリンタ印刷制御命令及び各種設定パラメータなどを解析する制御設定パラメータ解析処理を行う。さらに、プリンタ104内の制御プログラムは、前記印刷制御命令、制御設定パラメータに基づいて、ビットマップを生成し、ビットマップメモリに展開するビットマップ展開処理の一連の処理を行う。そして、プリンタ104内の制御プログラムは、エンジン制御処理部1021と入出力を行うビデオインタフェース1019を通して、印字出力装置駆動系(エンジン部)1021に前記生成されたビットマップ・データを送信して、ドキュメントを出力する(105)。   Subsequently, the control program in the printer 104 performs a print control command input process in which a printer print control command transmitted from the host computer 100 for printing by the printer 104 is input. Further, the control program in the printer 104 performs control setting parameter analysis processing for analyzing the input printer printing control command and various setting parameters. Further, the control program in the printer 104 generates a bitmap based on the print control command and the control setting parameter, and performs a series of bitmap development processing for developing the bitmap in the bitmap memory. The control program in the printer 104 transmits the generated bitmap data to the print output device drive system (engine unit) 1021 through the video interface 1019 that performs input / output with the engine control processing unit 1021, and Is output (105).

<本実施形態のアプリケーションプログラムにおける各制御処理(図8)>
以下、図8に示すフローチャートによって、本実施形態におけるホストコンピュータ100のプログラムメモリ上にあるアプリケーションプログラム103の各制御処理を詳細に説明する。
<Each control process in the application program of this embodiment (FIG. 8)>
Hereinafter, the control processing of the application program 103 on the program memory of the host computer 100 in this embodiment will be described in detail with reference to the flowchart shown in FIG.

図8は、本発明の印刷システムにおける第1の制御処理手順の一例を示すフローチャートである。   FIG. 8 is a flowchart showing an example of a first control processing procedure in the printing system of the present invention.

なお、図8中、S701〜S709に示すステップは、本実施形態に係るホストコンピュータ100におけるアプリケーションプログラム103(CPU304がRAM306上で実行する)での各処理に対応する。これらの処理は、プリンタドライバSDKライブラリを使用して、アプリケーションプログラム103の認証情報をプリンタドライバ102に通知して、この認証情報より決定されるアクセス制御レベルに応じた印刷機能属性情報および印刷能力属性情報を取得して、目的のドキュメント作成、体裁加工および印刷指示を行う一連の制御処理に対応する。   In FIG. 8, the steps shown in S701 to S709 correspond to each process in the application program 103 (executed by the CPU 304 on the RAM 306) in the host computer 100 according to the present embodiment. In these processes, the printer driver SDK library is used to notify the authentication information of the application program 103 to the printer driver 102, and the printing function attribute information and the printing capability attribute corresponding to the access control level determined from this authentication information. It corresponds to a series of control processes for acquiring information and performing target document creation, appearance processing, and printing instructions.

まず、ステップS701は、アプリケーションプログラム起動時に行われる初期化処理である(CreateDC( )303,StartDC( )304をコール)。このときにプリンタドライバもOS101上でロードされ、起動される。   First, step S701 is an initialization process performed when the application program is activated (CreateDC () 303 and StartDC () 304 are called). At this time, the printer driver is also loaded on the OS 101 and activated.

また同時にステップS702において、アプリケーションプログラム103は、プリンタドライバSDK APIライブラリもロードする。   At the same time, in step S702, the application program 103 also loads the printer driver SDK API library.

そして、アステップS703において、アプリケーションプログラム103は、プリンタドライバ102に対して、プリンタドライバSDK APIであるFS_FNCertificate( )関数401(図4)を使用して、該当アプリケーションプログラムの使用目的あるいは動作目的に応じたアクセス権限に基づく認証情報を通知する。ここでの認証情報は、アプリケーションプログラムの名称、対応OS、バージョン番号などの前記アプリケーションプログラムを識別する情報、及び、あらかじめ該当アプリケーションプログラム103に付与されるアクセスID、パスワード等の情報であり、前記アプリケーションプログラムにおいて利用する印刷機能・能力あるいは性能に対するアクセス権限を決定するための情報である。また、この認証情報に、ユーザID,パスワード等も含めるように構成してもよく、ユーザ毎にアプリケーションプログラムの認証情報を変化させるように構成してもよい。   In step S703, the application program 103 uses the FS_FNCertificate () function 401 (FIG. 4), which is the printer driver SDK API, for the printer driver 102, depending on the purpose of use or operation of the application program. Notify authentication information based on access authority. The authentication information here is information for identifying the application program such as the name of the application program, the corresponding OS, and the version number, and information such as an access ID and a password that are given to the corresponding application program 103 in advance. This is information for determining the access authority for the printing function / capability or performance used in the program. Further, the authentication information may include a user ID, a password, or the like, or the authentication information of the application program may be changed for each user.

次に、ステップS704において、アプリケーションプログラム103は、プリンタドライバ102に対して、プリンタドライバSDK APIであるFS_GetFuncItem( )関数402(図4)を使用して、印刷機能属性情報および印刷能力属性情報の問い合わせを行い、該情報をプリンタドライバ102から取得する。   Next, in step S704, the application program 103 uses the FS_GetFuncItem () function 402 (FIG. 4), which is the printer driver SDK API, to query the printer driver 102 for printing function attribute information and printing capability attribute information. And the information is acquired from the printer driver 102.

そして、ステップS705において、アプリケーションプログラム103は、前記取得した印刷機能属性情報および印刷能力属性情報に基づき、アプリケーションプログラム内の各種設定を行う。具体的には、例えば、印刷機能属性情報および印刷能力属性情報でカラー印刷機能が不可となっていた場合には、アプリケーションプログラム103でのカラー編集(カラードキュメント作成)を不可に設定する。この様子を図9に示す。また、スタンプ機能,製本機能が不可となっていた場合には、アプリケーションプログラム103での印刷ダイアログ上のスタンプ指定,製本指定を不可能に設定する等である。この様子を図10,図11に示す。   In step S705, the application program 103 performs various settings in the application program based on the acquired printing function attribute information and printing capability attribute information. Specifically, for example, when the color printing function is disabled by the printing function attribute information and the printing capability attribute information, color editing (color document creation) by the application program 103 is set to be disabled. This is shown in FIG. If the stamp function and the bookbinding function are disabled, the stamp designation and bookbinding designation on the print dialog in the application program 103 are set to be impossible. This situation is shown in FIGS.

図9は、図1に示したアプリケーションプログラム103の編集画面及び色設定画面の一例を示す図である。   FIG. 9 is a diagram showing an example of the editing screen and color setting screen of the application program 103 shown in FIG.

図9において、1300はアプリケーションプログラム103の編集画面である。1301はアプリケーションプログラム103の色設定ダイアログである。ここでは、印刷機能属性情報および印刷能力属性情報でカラー印刷機能が不可となり、1302に示すように、カラー選択部分がグレー表示され(又は非表示とされ)、カラー選択不可能になっている。即ち、アプリケーションプログラム103でのカラー編集が不可能に制御される。   In FIG. 9, reference numeral 1300 denotes an editing screen of the application program 103. Reference numeral 1301 denotes a color setting dialog of the application program 103. Here, the color printing function is disabled by the printing function attribute information and the printing capability attribute information, and the color selection portion is displayed in gray (or not displayed) as indicated by 1302, and the color selection is disabled. That is, it is controlled so that color editing by the application program 103 is impossible.

図10,図11は、図1に示したアプリケーションプログラム103の印刷ダイアログの一例を示す図である。   10 and 11 are diagrams showing an example of the print dialog of the application program 103 shown in FIG.

図10,図11において、1400はアプリケーションプログラム103の印刷ダイアログである。1401はプリンタドライバ102より通知された印刷機能属性情報および印刷能力属性情報に基づいて、設定された部分である。   10 and 11, reference numeral 1400 denotes a print dialog of the application program 103. Reference numeral 1401 denotes a portion set based on the printing function attribute information and the printing capability attribute information notified from the printer driver 102.

図10では、印刷機能属性情報および印刷能力属性情報でスタンプ(Watermark)機能が不可となり、1402に示すように、スタンプ設定部分がグレー表示され(又は非表示とされ)、スタンプ(Watermark)機能が使用不可と設定された場合に対応する。   In FIG. 10, the stamp function (Watermark) function is disabled by the print function attribute information and the print capability attribute information. As shown by 1402, the stamp setting portion is displayed in gray (or not displayed), and the stamp (Watermark) function is displayed. Corresponds to the case where it is set as unusable.

図11では、印刷機能属性情報および印刷能力属性情報で製本機能が不可となり、1403に示すように、製品設定部分がグレー表示され(又は非表示とされ)、製本機能が使用不可と設定された場合に対応する。   In FIG. 11, the bookbinding function is disabled by the print function attribute information and the print capability attribute information, and as shown in 1403, the product setting part is displayed in gray (or not displayed), and the bookbinding function is set to be unusable. Corresponds to the case.

以下、図8のフローチャートの説明に戻る。   Returning to the flowchart of FIG.

次に、ステップS705において、アプリケーションプログラム103は、図9に示したような、図9に示したような、上記ステップS704で印刷機能属性情報および印刷能力属性情報に基づいて設定された編集画面1300をディスプレイ1002に表示し、目的のドキュメントを作成のためのドキュメントを構成する文字・図形などの描画操作および体裁加工操作等のユーザによる編集操作を受け付ける。   Next, in step S705, the application program 103 displays the edit screen 1300 set based on the print function attribute information and the print capability attribute information in step S704 as shown in FIG. 9, as shown in FIG. Is displayed on the display 1002, and editing operations by the user such as drawing operations and appearance manipulations of characters and figures constituting the document for creating the target document are accepted.

次に、ステップS706において、アプリケーションプログラム103は、ユーザから印刷ダイアログ表示指示があると、図10,図11に示したような、上記ステップS704で印刷機能属性情報および印刷能力属性情報に基づいて設定された印刷ダイアログ1400をディスプレイ1002に表示し、ユーザからの各種設定及び印刷指示を受け付ける。   Next, in step S706, the application program 103 is set based on the print function attribute information and the print capability attribute information in step S704 as shown in FIGS. The displayed print dialog 1400 is displayed on the display 1002 to accept various settings and print instructions from the user.

そして、ユーザから印刷指示があると(印刷ダイアログ1400の「OK」ボタンが入力装置1001により指示されると)、ステップS707において、アプリケーションプログラム103は、一般的な印刷属性設定欄1301の設定に従いWindows(登録商標) SDK APIを使用して一般的な印刷属性設定を行い、また、高度な印刷属性設定欄1302の設定値に従いプリンタドライバSDK APIを使用して、プリンタ104およびプリンタドライバ102が有するより高機能な印刷属性設定を行う。ここで、高度な印刷属性設定とは、例えば、異なるサイズの用紙が混在し、さらに、製本設定等がなされている場合に、自動的に縮小又は拡大して、一つのサイズの用紙に印刷処理して製本処理するような高機能を有する印刷装置に対して、この機能を使用する設定を示す。なお、高度な印刷設定は、この例に限られるものではなく、一般的に用意されている印刷機能以外の印刷機能の設定も全て含まれる。   When the user issues a print instruction (when the “OK” button of the print dialog 1400 is instructed by the input device 1001), in step S 707, the application program 103 follows the settings in the general print attribute setting field 1301. (Registered Trademark) General print attribute setting is performed using the SDK API, and the printer driver SDK API is used according to the setting value of the advanced print attribute setting field 1302, and the printer 104 and the printer driver 102 have Set advanced printing attributes. Here, the advanced print attribute setting means, for example, when papers of different sizes are mixed and bookbinding settings are made, the print processing is automatically reduced or enlarged to print on one size of paper. A setting for using this function is shown for a printing apparatus having a high function for bookbinding processing. Note that advanced print settings are not limited to this example, and include all settings of print functions other than print functions that are generally prepared.

さらに、アプリケーションプログラム103は、Windows(登録商標) SDK APIを使用してドキュメント印刷指示とともに、前記描画処理を行った文字・図形データをプリンタドライバ1002に送る。   Further, the application program 103 uses the Windows (registered trademark) SDK API to send the character / graphic data subjected to the drawing process to the printer driver 1002 together with a document print instruction.

全てのドキュメントデータを送信後、ステップS708において、アプリケーションプログラム103は、印刷終了処理に移行するとともに、ステップS709において、プリンタドライバSDK APIライブラリをアンロードし、処理を終了する。   After transmitting all the document data, in step S708, the application program 103 proceeds to a print end process, and in step S709, unloads the printer driver SDK API library and ends the process.

<本実施形態のプリンタドライバにおける認証、印刷機能/能力情報通知の各制御処理(図12,図13)>
以下、図12,図13に示すフローチャートによって、本実施形態におけるホストコンピュータ100のプログラムメモリ上にあるプリンタドライバプログラム104の各制御処理を詳細に説明する。
<Authentication and Print Function / Capability Information Notification Control Processes in Printer Driver of this Embodiment (FIGS. 12 and 13)>
Hereinafter, the control processing of the printer driver program 104 in the program memory of the host computer 100 in this embodiment will be described in detail with reference to the flowcharts shown in FIGS.

図12は、本発明の印刷システムにおける第2の制御処理手順の一例を示すフローチャートである。   FIG. 12 is a flowchart showing an example of a second control processing procedure in the printing system of the present invention.

なお、図12中、S801〜S809に示すステップは、本実施形態に係るホストコンピュータ100におけるプリンタドライバプログラム102(CPU304がRAM306上で実行する)におけるアプリケーションプログラム103から通知される認証情報の照合、印刷機能/能力に対するアクセス制御レベルに応じた印刷機能属性情報および印刷能力属性情報をアプリケーションプログラム103に通知する一連の制御処理に対応する。   In FIG. 12, the steps shown in S801 to S809 are verification and printing of authentication information notified from the application program 103 in the printer driver program 102 (executed by the CPU 304 on the RAM 306) in the host computer 100 according to the present embodiment. This corresponds to a series of control processes for notifying the application program 103 of printing function attribute information and printing capability attribute information corresponding to the access control level for the function / capability.

まず、ステップS801において、プリンタドライバ102は、プリンタドライバが動作するためのプログラムメモリ領域確保、各種パラメータの初期化を行う。プリンタドライバSDK APIの各種関数処理を行うライブラリの初期化も行う。   First, in step S801, the printer driver 102 secures a program memory area for the printer driver to operate and initializes various parameters. It also initializes a library that performs various functions of the printer driver SDK API.

次に、ステップS802において、プリンタドライバ102は、アプリケーションプログラム103からの認証情報通知に対する受理を行う。この認証情報通知は、アプリケーションプログラム103から、プリンタドライバSDK APIであるFS_FNCertificate( )関数401がコールされることにより行われる。   In step S <b> 802, the printer driver 102 accepts authentication information notification from the application program 103. This authentication information notification is performed when the application program 103 calls the FS_FNCertificate () function 401 that is a printer driver SDK API.

ステップS803において、プリンタドライバ102は、認証情報の照合処理(プリンタドライバ102におけるFS_FNCertificate( )関数401モジュール処理である)を行い、前記認証情報に基づくアクセス制御レベルあるいは認証失敗ステータスを出力する。なお、この認証情報照合処理の詳細は図13に示す。   In step S <b> 803, the printer driver 102 performs authentication information collation processing (which is FS_FNCertificate () function 401 module processing in the printer driver 102), and outputs an access control level or an authentication failure status based on the authentication information. Details of this authentication information collating process are shown in FIG.

次に、ステップS804において、プリンタドライバ102は、上記ステップS803の認証情報照合処理(FS_FNCertificate( )関数401モジュール処理)の処理結果に基づき、認証に成功しアプリケーションプログラム103のアクセス制御レベルが決定できたか否か(認証に失敗したか)を判定する。   Next, in step S804, based on the processing result of the authentication information collation process (FS_FNCertificate () function 401 module process) in step S803, the printer driver 102 has successfully authenticated and has determined the access control level of the application program 103. Determine whether or not (authentication failed).

ステップS804で、プリンタドライバ102が、認証に成功したと判定し、前記アプリケーションプログラム103のアクセス制御レベルが決定できたと判定した場合には、ステップS805に処理を進め、前記決定したアクセス制御レベルに応じた印刷機能および印刷能力を選択し、ステップS807に処理を進める。なお、アクセス制御レベルに応じた印刷機能および印刷能力の情報は、プリンタドライバ102内に格納されているものとする。   If it is determined in step S804 that the printer driver 102 has succeeded in authentication and the access control level of the application program 103 has been determined, the process proceeds to step S805, and according to the determined access control level. The selected printing function and printing capability are selected, and the process proceeds to step S807. It is assumed that information on the printing function and printing capability according to the access control level is stored in the printer driver 102.

一方、ステップS804で、プリンタドライバ102が、認証に失敗したと判定した場合には、ステップS806に処理を進め、デフォルトの印刷機能および印刷能力を選択し、ステップS807に処理を進める。なお、通常、デフォルトの印刷機能および印刷能力は、一般的な印刷機能および印刷能力選択にとどまるものとする。なお、このデフォルト印刷機能および印刷能力を、管理者等が自由に設定可能に構成してもよい。   On the other hand, if the printer driver 102 determines in step S804 that the authentication has failed, the process proceeds to step S806, the default print function and print capability are selected, and the process proceeds to step S807. Normally, the default printing function and printing capability are limited to general printing function and printing capability selection. The default printing function and printing capability may be configured so that an administrator or the like can freely set.

次に、ステップS807において、プリンタドライバ102は、前記アプリケーションプログラム103からの印刷機能属性情報および印刷能力属性情報の問い合わせ通知受理を行う。この印刷機能属性情報および印刷能力属性情報の問い合わせ通知は、アプリケーションプログラム103から、プリンタドライバSDK APIであるFS_GetFuncItem( )関数402コールによって行なわれる。   In step S <b> 807, the printer driver 102 receives an inquiry notification for printing function attribute information and printing capability attribute information from the application program 103. The inquiry notification of the print function attribute information and the print capability attribute information is performed from the application program 103 by a FS_GetFuncItem () function 402 call that is a printer driver SDK API.

次に、ステップS808において、プリンタドライバ102は、上記ステップS805あるいはステップS806の印刷機能および印刷能力の選択結果より、印刷機能属性情報および印刷能力属性情報を作成する。   Next, in step S808, the printer driver 102 creates printing function attribute information and printing capability attribute information from the selection result of the printing function and printing capability in step S805 or step S806.

次に、ステップS809において、プリンタドライバ102は、ステップS808で作成した印刷機能属性情報および印刷能力属性情報を、アプリケーションプログラム103からコールされたFS_GetFuncItem( )関数402のパラメータであるメモリバッファのポインタへコピーして、リターンすることにより、前記アプリケーションプログラムに通知して、処理を終了する。   Next, in step S809, the printer driver 102 copies the printing function attribute information and printing capability attribute information created in step S808 to a memory buffer pointer that is a parameter of the FS_GetFuncItem () function 402 called from the application program 103. Then, by returning, the application program is notified and the process is terminated.

図13は、本発明の印刷システムにおける第3の制御処理手順の一例を示すフローチャートであり、図12のステップS803に示した認証情報照合処理に対応する。   FIG. 13 is a flowchart showing an example of a third control processing procedure in the printing system of the present invention, and corresponds to the authentication information collation processing shown in step S803 of FIG.

なお、図12中、S901〜S907に示す各ステップは、本実施形態に係るホストコンピュータ100におけるプリンタドライバプログラム102(CPU304がRAM306上で実行する)により実行される認証情報照合処理であるFS_FNCertificate( )関数401モジュール内の処理の一例に対応する。   In FIG. 12, each step shown in S901 to S907 is FS_FNCertificate (), which is an authentication information collation process executed by the printer driver program 102 (executed by the CPU 304 on the RAM 306) in the host computer 100 according to the present embodiment. This corresponds to an example of processing in the function 401 module.

まず、ステップS901において、プリンタドライバ102は、図8のステップS703でFS_FNCertificate( )関数401をコールしたアプリケーションプログラムから通知される認証情報を入力する。   First, in step S901, the printer driver 102 inputs authentication information notified from the application program that called the FS_FNCertificate () function 401 in step S703 in FIG.

上記FS_FNCertificate( )関数401のパラメータであるCERTIFICATIONプログラム構造体へのポインタが示す領域には、前記アプリケーションプログラム103のアプリケーションプログラム名称、対応OS、バージョン番号等の前記アプリケーションプログラム103を識別する情報および予め該当アプリケーションプログラム103に付与されるアクセスID、パスワード等の各種認証情報が格納されている。また、この認証情報に、ユーザID,パスワード等も含めるように構成してもよく、ユーザ毎にアプリケーションプログラムの認証情報を変化させるように構成してもよい。   The area indicated by the pointer to the CERTIFICATION program structure, which is a parameter of the FS_FNCertificate () function 401, includes information for identifying the application program 103 such as the application program name, the corresponding OS, and the version number of the application program 103 and the corresponding information. Various authentication information such as an access ID and a password given to the application program 103 are stored. Further, the authentication information may include a user ID, a password, or the like, or the authentication information of the application program may be changed for each user.

ステップS902において、プリンタドライバ102は、プリンタドライバ102のデータ定義領域あるいはリソース(例えば、ディスク1003内の所定の領域)に格納される認証情報データベース(認証情報DB)を参照する。この認証情報DBは、複数のアプリケーションプログラムに関する前記アプリケーションプログラム名称、対応OS、バージョン番号等の前記アプリケーションプログラムを識別する情報、あらかじめ該当アプリケーションプログラムに付与されるアクセスID、パスワードなどの各種認証情報、およびこれらに対応するアクセス制御レベルを格納・保管および管理するものである。ここでの認証情報は、アプリケーションプログラムの名称、対応OS、バージョン番号などの前記アプリケーションプログラムを識別する情報、及び、あらかじめ該当アプリケーションプログラム103に付与されるアクセスID、パスワード等の情報であり、前記アプリケーションプログラムにおいて利用する印刷機能・能力あるいは性能に対するアクセス権限を決定するための情報である。また、この認証情報に、ユーザID,パスワード等も含めるように構成してもよく、ユーザ毎にアプリケーションプログラムの認証情報を変化させるように構成してもよい。   In step S <b> 902, the printer driver 102 refers to an authentication information database (authentication information DB) stored in a data definition area or resource (for example, a predetermined area in the disk 1003) of the printer driver 102. The authentication information DB includes information for identifying the application program such as the application program name, the corresponding OS, and the version number regarding a plurality of application programs, various authentication information such as an access ID and a password given to the application program in advance, and The access control levels corresponding to these are stored / stored / managed. The authentication information here is information for identifying the application program such as the name of the application program, the corresponding OS, and the version number, and information such as an access ID and a password that are given to the corresponding application program 103 in advance. This is information for determining the access authority for the printing function / capability or performance used in the program. Further, the authentication information may include a user ID, a password, or the like, or the authentication information of the application program may be changed for each user.

次に、ステップS903において、プリンタドライバ102は、ステップS901でアプリケーションプログラム103から通知・入力された認証情報内のアプリケーションプログラム103を識別する情報に基づいて、ステップS902で参照した認証情報データベースに登録されている前記アプリケーションプログラム103を検索する(登録アプリケーションプログラム検索)。   Next, in step S903, the printer driver 102 is registered in the authentication information database referred to in step S902 based on the information for identifying the application program 103 in the authentication information notified / input from the application program 103 in step S901. The application program 103 is searched (registered application program search).

次に、ステップS904において、プリンタドライバ102は、上記ステップS903の登録アプリケーションプログラムの検索結果に基づき、検索に成功したか失敗したかを判定する。   In step S904, the printer driver 102 determines whether the search has succeeded or failed based on the search result of the registered application program in step S903.

ステップS904で、プリンタドライバ102が、検索に成功したと判定した場合には、ステップS905に処理を進め、該認証情報DBから検索されたアプリケーションプログラムの登録アクセスID,パスワード等と前記アプリケーションプログラム103から通知された認証情報内のアクセスID、パスワード等を照合する。ここでの認証情報は、アプリケーションプログラムの名称、対応OS、バージョン番号などの前記アプリケーションプログラムを識別する情報、及び、あらかじめ該当アプリケーションプログラム103に付与されるアクセスID、パスワード等の情報であり、前記アプリケーションプログラムにおいて利用する印刷機能・能力あるいは性能に対するアクセス権限を決定するための情報である。ユーザID,パスワード等の照合も含めるように構成してもよい。   If it is determined in step S904 that the printer driver 102 has succeeded in the search, the process proceeds to step S905, where the registered access ID and password of the application program searched from the authentication information DB and the application program 103 are used. The access ID, password, etc. in the notified authentication information are verified. The authentication information here is information for identifying the application program such as the name of the application program, the corresponding OS, and the version number, and information such as an access ID and a password that are given to the corresponding application program 103 in advance. This is information for determining the access authority for the printing function / capability or performance used in the program. You may comprise so that collation of a user ID, a password, etc. may be included.

次に、ステップS906において、プリンタドライバ102は、前記ステップS905の照合結果に基づき、照合に成功したか失敗したかを判定する。   In step S906, the printer driver 102 determines whether the collation has succeeded or failed based on the collation result in step S905.

ステップS906で、プリンタドライバ102が、照合に成功したと判定した場合には、ステップS907に処理を進め、該照合されたアプリケーションプログラムの印刷機能および印刷能力に対するアクセス制御レベルを認証情報DBから取得出力して、処理を終了する。   If the printer driver 102 determines in step S906 that the collation is successful, the process proceeds to step S907, and the access control level for the print function and print capability of the collated application program is acquired and output from the authentication information DB. Then, the process ends.

一方、ステップS904で、プリンタドライバ102が、検索に成功しなかった(失敗した)と判定した場合には、ステップS908に処理を進め、認証失敗ステータスを出力して、処理を終了する。   On the other hand, if the printer driver 102 determines in step S904 that the search was not successful (failed), the process proceeds to step S908, an authentication failure status is output, and the process ends.

また、ステップS906で、プリンタドライバ102が、照合に成功しなかった(失敗した)と判定した場合には、上記検索に失敗した場合と同様に、ステップS908に処理を進め、認証失敗ステータスを出力して、処理を終了する。   If the printer driver 102 determines in step S906 that the collation has not succeeded (failed), the process proceeds to step S908 and the authentication failure status is output as in the case where the search has failed. Then, the process ends.

<プリンタドライバプログラムにおける印刷制御処理の説明(図14)>
以下、図14に示すフローチャートによって、本実施形態におけるホストコンピュータ100のプログラムメモリRAM1006上にあるプリンタドライバプログラム102の印刷制御処理を詳細に説明する。
<Description of Print Control Processing in Printer Driver Program (FIG. 14)>
Hereinafter, the print control process of the printer driver program 102 on the program memory RAM 1006 of the host computer 100 in this embodiment will be described in detail with reference to the flowchart shown in FIG.

図14は、本発明の印刷システムにおける第4の制御処理手順の一例を示すフローチャートである。   FIG. 14 is a flowchart showing an example of a fourth control processing procedure in the printing system of the present invention.

なお、図14中の1101〜S1111に示すステップは、本実施形態に係るプリンタ104におけるプリンタドライバプログラム102(CPU304がRAM306上で実行する)での印刷制御処理に対応する。   14 correspond to print control processing in the printer driver program 102 (executed by the CPU 304 on the RAM 306) in the printer 104 according to the present embodiment.

プリンタドライバ102は、外部、例えば文字、図形、イメージ作成、編集、印刷アプリケーションプログラム103などのドキュメント入力プログラムからのプリンタへの印刷指示によって、起動されステップS1101〜S1111を実行する。   The printer driver 102 is activated by a print instruction to the printer from an external document input program such as a character, graphic, image creation, editing, or print application program 103, and executes steps S1101 to S1111.

まず、ステップS1101において、プリンタドライバプログラム102は、アプリケーションプログラム103からWindows(登録商標) SDK APIを介して渡される各種印刷属性設定パラメータおよびアプリケーションから印刷指示されたドキュメントを構成する文字/図形/イメージデータの印刷指示を入力する。   First, in step S1101, the printer driver program 102 prints various print attribute setting parameters passed from the application program 103 via the Windows (registered trademark) SDK API and character / graphic / image data constituting the document instructed to be printed from the application. Enter the print instruction.

そして、ステップS1102おいて、プリンタドライバプログラム102は、ステップS1101で入力されたパラメータおよびデータを解析する。   In step S1102, the printer driver program 102 analyzes the parameters and data input in step S1101.

なお、ステップS1101,S1102は、各種印刷属性設定パラメータおよび文字/図形/イメージデータの印刷指示が入力される毎に実行される。   Steps S1101 and S1102 are executed each time various print attribute setting parameters and character / graphic / image data print instructions are input.

次に、ステップS1103において、プリンタドライバプログラム102は、ステップS1102での前記入力データの解析結果より、用紙サイズ、印刷方向、描画解像度設定、座標系の単位設定など印刷の準備をするため、プリンタ104に対する各設定パラメータをプリンタ制御命令に変換・生成し、プリンタ104に送信してプリンタ104の初期化処理を行う。   Next, in step S1103, the printer driver program 102 prepares for printing such as paper size, printing direction, drawing resolution setting, and coordinate system unit setting based on the analysis result of the input data in step S1102. Each setting parameter is converted and generated into a printer control command and transmitted to the printer 104 to perform initialization processing of the printer 104.

なお、ステップS1103は、ジョブ中のページ/グループ/章単位で出力属性が異なる度に実行される。   Note that step S1103 is executed each time the output attribute is different for each page / group / chapter in the job.

さらに、ステップS1104およびステップS1106において、プリンタドライバプログラム102は、前記ステップS1102で解析処理されたパラメータ及びデータを、文字データ,図形データ,イメージデータに分離する。   In step S1104 and step S1106, the printer driver program 102 separates the parameters and data analyzed in step S1102 into character data, graphic data, and image data.

ステップS1104で、プリンタドライバプログラム102が、文字データと判定したデータについては、ステップS1105において、文字印字制御処理モジュールで文字印字制御処理を施す。   For the data determined by the printer driver program 102 as character data in step S1104, the character print control processing module performs character print control processing in step S1105.

また、ステップS1104及びS1106で、プリンタドライバプログラム102が図形データと判定したデータについては、ステップS1107において、図形描画制御処理モジュールで図形描画制御処理を施す。   For the data determined by the printer driver program 102 as graphic data in steps S1104 and S1106, the graphic drawing control processing module performs graphic drawing control processing in step S1107.

また、ステップS1104及びS1106で、プリンタドライバプログラム102がイメージデータと判定したデータについては、ステップS1108において、イメージ描画制御処理モジュールでイメージ描画制御処理を施す。   Further, for the data determined by the printer driver program 102 as image data in steps S1104 and S1106, the image drawing control processing module performs image drawing control processing in step S1108.

そして、ステップS1109において、プリンタドライバプログラム102は、上記ステップS1105の文字印字制御処理,ステップS1107の図形描画制御処理,ステップS1108のイメージ描画制御処理に基づき、ドキュメント構成制御処理モジュールで描画出力属性,サイズ計算,描画出力位置等パターンの出力形態を決定し、プリンタの出力ページに配置する処理(ドキュメント構成処理)を行う。   In step S1109, the printer driver program 102 executes the drawing output attribute and size in the document configuration control processing module based on the character printing control process in step S1105, the graphic drawing control process in step S1107, and the image drawing control process in step S1108. A pattern output form such as calculation and drawing output position is determined, and processing (document composition processing) is performed for placement on the output page of the printer.

次に、ステップS1110において、プリンタドライバプログラム102は、ステップS1109で構成されたドキュメント出力の制御データを、印刷制御命令生成処理モジュールで、プリンタにドキュメントを出力するためにプリンタの印刷制御命令に変換・生成する処理(印刷制御命令生成処理)を行う。   In step S1110, the printer driver program 102 converts the document output control data configured in step S1109 into a print control command for the printer to output the document to the printer by the print control command generation processing module. Generate processing (print control command generation processing).

そして、ステップS1111において、プリンタドライバプログラム102は、プリンタへの出力送信処理モジュールで、ステップS1110で生成した印刷制御命令をプリンタ104に対して送信する処理(出力送信処理)を行い、プリンタ104でドキュメントを印刷させる。   In step S <b> 1111, the printer driver program 102 performs processing (output transmission processing) for transmitting the print control command generated in step S <b> 1110 to the printer 104 in the output transmission processing module to the printer. To print.

なお、ステップS1104〜S1111の処理は、各種印刷属性設定パラメータおよび文字/図形/イメージデータの印刷指示毎に実行される。   Note that the processing in steps S1104 to S1111 is executed for each print attribute setting parameter and each print instruction of character / graphic / image data.

以上説明したように、本実施形態によれば、Windows(登録商標)オペレーティングシステム環境下において、ドキュメント作成・印刷アプリケーションプログラムで標準的に使用されるWindows(登録商標) SDK APIライブラリとともに、本発明のプリンタドライバSDK APIライブラリも使用することによって、標準的な印刷機能の他に、オプション装置類を搭載して実現可能なプリンタデバイス機能およびプリンタドライバ機能を使用可能とし、より付加価値の高い印刷機能を提供することが可能である。   As described above, according to the present embodiment, in the Windows (registered trademark) operating system environment, together with the Windows (registered trademark) SDK API library that is normally used in the document creation / print application program, By using the printer driver SDK API library, in addition to the standard printing function, the printer device function and printer driver function that can be realized by installing optional devices can be used. It is possible to provide.

さらに、これらの印刷機能は、アプリケーションプログラムの使用目的あるいは動作目的に応じて、アクセス制御レベルに基づく機能拡張および機能制限を行うため、アプリケーションプログラムの種類、アプリケーションプログラム利用者(ユーザ)にとって、特定用途向けに機能の拡張、あるいは簡便なドキュメント印刷操作などの最適用途かつ運用性の高い印刷システムを提供することが可能となる。   Furthermore, since these printing functions perform function expansion and function restriction based on the access control level in accordance with the purpose of use or operation of the application program, the application program type and application program user (user) have a specific purpose. For this purpose, it is possible to provide a printing system that is optimal in use and high in operability such as function expansion or simple document printing operation.

また、認証による印刷機能および印刷能力の提供を行うため、セキュリティ向上を図るドキュメント印刷システムを構築することが可能となる。   In addition, since the printing function and printing capability are provided by authentication, it is possible to construct a document printing system that improves security.

〔第2実施形態〕
第2実施形態では、上記第1実施形態の図2にあるプリンタドライバ102で行っているアプリケーションプログラム103の印刷機能および印刷能力・性能に対するアクセス制御レベルの決定を、部門管理あるいは課金管理に応用させるように構成する。
[Second Embodiment]
In the second embodiment, the determination of the access control level for the printing function and the printing capability / performance of the application program 103 performed by the printer driver 102 shown in FIG. 2 of the first embodiment is applied to department management or billing management. Configure as follows.

部門管理においては、部門毎にアプリケーションプログラムの認証情報を変化させることによって、部門毎に前記アクセス制御レベルを変化させ、使用および動作可能とする印刷機能、印刷能力・性能を管理することで実現可能となる。   Department management can be realized by changing the access control level for each department by changing the authentication information of the application program for each department, and managing the printing function, printing capability and performance that can be used and operated. It becomes.

また、課金管理においては、ユーザ毎の使用上限課金度数(使用上限費用)及び、前記プリンタドライバのアクセス制御レベルに基づいて、使用および動作可能とする印刷機能、印刷能力・性能を選択決定することにより、アプリケーション及びユーザに対する使用および動作可能とする印刷機能、印刷能力・性能を管理することで実現可能となる。   In charge management, select and determine the print function and print capability / performance that can be used and operated based on the use upper limit charge frequency (use upper limit cost) for each user and the access control level of the printer driver. Thus, it can be realized by managing printing functions and printing capabilities / performances that can be used and operated by applications and users.

以下、図15〜図17を参照して、課金管理に基づくアプリケーションプログラムの認証およびアクセス制御レベルの決定の一例について説明する。   Hereinafter, an example of application program authentication and access control level determination based on billing management will be described with reference to FIGS.

<本システムの課金管理における各制御処理の流れを表わすブロック図の説明(図15)>
図15は、本発明の第2実施形態におけるアプリケーションプログラム、プリンタドライバ、プリンタおよび各種データベースから構成されるドキュメント印刷課金管理システムの各制御処理の流れに一例を示す図である。なお、図1と同一のものには同一の符号を付してある。
<Explanation of Block Diagram showing Flow of Control Processing in Billing Management of This System (FIG. 15)>
FIG. 15 is a diagram showing an example of the flow of each control process of the document print billing management system including the application program, printer driver, printer, and various databases according to the second embodiment of the present invention. In addition, the same code | symbol is attached | subjected to the same thing as FIG.

図15に示すように、アプリケーションプログラム103およびプリンタドライバ102は、上述の第1実施形態と同様に、アプリケーションプログラム103の認証情報をプリンタドライバ102にプリンタドライバSDK APIを使用して通知し、プリンタドライバ102がこの認証情報に基づき、印刷機能および印刷能力・性能に対するアクセス制御レベルを決定する。   As shown in FIG. 15, the application program 103 and the printer driver 102 notify the authentication information of the application program 103 to the printer driver 102 using the printer driver SDK API, as in the first embodiment, and the printer driver. Based on this authentication information 102, the access control level for the printing function and the printing capability / performance is determined.

さらに、プリンタドライバ102は、アプリケーションプログラム103からプリンタドライバSDK APIを使用しての現在使用・動作可能な印刷機能および印刷能力・性能についての問い合わせに対して、前記アクセス制御レベルに基づく、印刷機能属性情報および印刷能力属性情報を生成してアプリケーションプログラムに通知する。   Further, the printer driver 102 receives a print function attribute based on the access control level in response to an inquiry about a print function and print capability / performance that can be currently used / operated using the printer driver SDK API from the application program 103. Information and print capability attribute information are generated and notified to the application program.

一方、アプリケーションプログラム103は、これらのプリンタドライバ102から通知される情報に基づき、ドキュメント編集・加工を行い、ドキュメント印刷指示をプリンタドライバ102に対して行う。   On the other hand, the application program 103 performs document editing / processing based on information notified from the printer driver 102, and issues a document print instruction to the printer driver 102.

そして、プリンタドライバ102は、前記アプリケーションプログラム103からの印刷指示に基づき、各種印刷制御処理および文字、図形、イメージ描画出力に係るプリンタ印刷制御命令に変換・生成し、OS101のスプーラ1202を経由してプリンタ104に送信し、ドキュメント出力105を行う構成からなる。   The printer driver 102 converts and generates various print control processes and printer print control commands related to character, figure, and image drawing output based on the print instruction from the application program 103, and passes through the spooler 1202 of the OS 101. The document is output to the printer 104 and the document output 105 is performed.

なお、本実施形態のプリンタドライバ102は、認証情報DB1200からアクセス制御レベル及びアクセス制御レベルに応じたユーザ毎の使用上限課金度数(使用上限費用)を取得する。   Note that the printer driver 102 according to the present exemplary embodiment acquires the access control level and the usage upper limit charge frequency (usage upper limit cost) for each user according to the access control level from the authentication information DB 1200.

また、本実施形態のプリンタドライバ102は、図示しないサーバ上に構築された機能/能力コスト情報データベース1208にアクセス可能である。なお、この機能/能力コスト情報データベース1208は、給紙方法、排紙方法、両面印刷機能、N−up印刷機能、ステイプル機能、パンチ機能、トリミング機能、用紙Z折り機能などの各種フィニッシング機能、さらにこれらの機能を複合して実現する製本機能、スタンプ(Watermark)機能、フォントダウンロード機能、フォント置換機能、フォームオーバレイ機能等の前記プリンタドライバにおいて実行可能な印刷機能属性情報、およびモノクロ印刷時の階調数、カラー印刷時の色深度、色調、色空間および設定可能なカラープロファイル、マッチング方法、設定可能解像度、ベクタ/イメージ描画、ディザリング等のグラフィックス描画方法、印刷可能な用紙サイズおよび用紙種、最大設定可能コピー部数、N−up印刷時の印刷設定可能N−up数などの各種印刷機能および印刷能力それぞれに、使用費用,公開費用(より高度な機能の明示/使用に係る費用)等を割り当てて管理するデータベースである。なお、上記「使用費用」も「公開費用(より高度な機能の明示/使用に係る費用)」も共に、使用された際に課金されるものであるが、「使用費用」は一般的な印刷属性設定をの使用費用に対応し、「公開費用(より高度な機能の明示/使用に係る費用)」は、例えば、異なるサイズの用紙が混在し、さらに、製本設定等がなされている場合に、自動的に縮小又は拡大して、一つのサイズの用紙に印刷処理して製本処理するような高機能を有する印刷装置に対して、この機能を使用する費用に対応する。なお、「公開費用(より高度な機能の明示/使用に係る費用)」は、この例に限られるものではなく、一般的な印刷装置に用意されている印刷機能以外の印刷機能を使用する費用は全て含まれるものである。   In addition, the printer driver 102 of this embodiment can access a function / capability cost information database 1208 constructed on a server (not shown). This function / capacity cost information database 1208 includes various finishing functions such as a paper feeding method, a paper discharging method, a duplex printing function, an N-up printing function, a stapling function, a punching function, a trimming function, and a paper Z folding function. Print function attribute information that can be executed by the printer driver such as a bookbinding function, a stamp function (Watermark) function, a font download function, a font replacement function, a form overlay function, and the like, which are realized by combining these functions, and gradation in monochrome printing Number, color depth during color printing, color tone, color space and configurable color profile, matching method, configurable resolution, vector / image drawing, graphics drawing methods such as dithering, printable paper size and paper type, Maximum number of copies that can be set, print settings available for N-up printing This is a database that allocates and manages usage costs, publication costs (expenses for specifying / using more advanced functions), etc., to various printing functions and printing capabilities such as the number of functions N-up. In addition, both the above “use cost” and “publication cost (expense for specifying / using more advanced functions)” are charged when used, but “use cost” is a general printing. Corresponding to the usage cost of the attribute setting, the “publication cost (expense for specifying / using more advanced functions)” is, for example, when papers of different sizes are mixed and bookbinding is set. It corresponds to the cost of using this function for a printing apparatus having a high function such as automatically reducing or enlarging, printing on a single size paper, and bookbinding. “Publication costs (expenses for specifying / using more advanced functions)” is not limited to this example, but costs for using printing functions other than printing functions prepared in general printing devices. Are all included.

そして、プリンタドライバ102において、アプリケーションプログラム103に通知する印刷機能および印刷能力・性能を選択決定する際、この機能/能力コスト情報データベース1208を参照し、アクセス制御レベル及び上記使用上限課金度数に応じた(使用上限課金度数以下の)課金対象となる印刷機能および印刷能力を選択・決定しアプリケーションプログラム103に通知する。   In the printer driver 102, when selecting and determining the printing function and the printing capability / performance to be notified to the application program 103, the function / capability cost information database 1208 is referred to in accordance with the access control level and the above-mentioned usage upper limit charging frequency. The printing function and printing capability to be charged (below the upper limit charging frequency) are selected and determined and notified to the application program 103.

また、プリンタドライバ102は、アプリケーションプログラム103から印刷指示とともに送信される各種印刷属性設定情報に基づき、印刷制御命令を生成し、OS101のスプーラ1202を経由してプリンタ104に送信し、ドキュメント出力105を行う。そして、プリンタドライバ102は、上記各種印刷属性設定情報の使用実績に基づいて、課金対象の情報を生成し(1206)、前記機能/能力コスト情報データベース1208を参照して、ドキュメント印刷を行ったユーザ毎に課金算出処理を行い(1207)、課金結果を課金情報データベース1209に蓄積する。   Also, the printer driver 102 generates a print control command based on various print attribute setting information transmitted from the application program 103 together with the print instruction, transmits the print control command to the printer 104 via the spooler 1202 of the OS 101, and outputs the document output 105. Do. The printer driver 102 generates information to be charged based on the usage record of the various print attribute setting information (1206), refers to the function / capability cost information database 1208, and the user who has printed the document Charge calculation processing is performed every time (1207), and the charge result is stored in the charge information database 1209.

なお、前記機能/能力コスト情報データベース1208および課金情報データベース1209は、一般的にホストコンピュータ100が通信可能なサーバ上に構築することにより運用される。   The function / capacity cost information database 1208 and the billing information database 1209 are generally operated by being constructed on a server with which the host computer 100 can communicate.

<第2実施形態のプリンタドライバにおける認証、印刷機能/能力情報通知の各制御処理(図16,図17)>
以下、図16,図17に示すフローチャートによって、第2実施形態におけるホストコンピュータ100のプログラムメモリ上にあるプリンタドライバプログラム104の各制御処理を詳細に説明する。
<Authentication and Print Function / Capability Information Notification Control Processes in Printer Driver of Second Embodiment (FIGS. 16 and 17)>
Hereinafter, the control processing of the printer driver program 104 on the program memory of the host computer 100 in the second embodiment will be described in detail with reference to the flowcharts shown in FIGS.

図16は、本発明の印刷システムにおける第5の制御処理手順の一例を示すフローチャートである。なお、図12と同一のステップには同一のステップ番号を付してある。   FIG. 16 is a flowchart showing an example of a fifth control processing procedure in the printing system of the present invention. In addition, the same step number is attached | subjected to the step same as FIG.

また、図16中、S801〜S802、S1601〜S160、S805〜S809に示すステップは、本実施形態に係るホストコンピュータ100におけるプリンタドライバプログラム102(CPU304がRAM306上で実行する)におけるアプリケーションプログラム103から通知される認証情報の照合、印刷機能/能力に対するアクセス制御レベルに応じた印刷機能属性情報および印刷能力属性情報をアプリケーションプログラム103に通知する一連の制御処理に対応する。   In FIG. 16, steps S801 to S802, S1601 to S160, and S805 to S809 are notified from the application program 103 in the printer driver program 102 (executed by the CPU 304 on the RAM 306) in the host computer 100 according to the present embodiment. This corresponds to a series of control processes for notifying the application program 103 of the authentication function verification, the print function attribute information according to the access control level for the print function / capability, and the print capability attribute information.

以下、図12と異なるステップのみ説明する。   Only the steps different from those in FIG. 12 will be described below.

ステップS1601において、プリンタドライバ102は、認証情報の照合処理(プリンタドライバ102におけるFS_FNCertificate( )関数401モジュール処理である)を行い、前記認証情報に基づくアクセス制御レベル,上限課金度数あるいは認証失敗ステータスを出力する。なお、この認証情報照合処理の詳細は図17に示す。   In step S <b> 1601, the printer driver 102 performs authentication information collation processing (FS_FNCertificate () function 401 module processing in the printer driver 102), and outputs an access control level based on the authentication information, an upper limit charge frequency, or an authentication failure status. To do. Details of this authentication information collating process are shown in FIG.

次に、ステップS1602において、プリンタドライバ102は、上記ステップS803の認証情報照合処理(FS_FNCertificate( )関数401モジュール処理)の処理結果に基づき、認証に成功しアプリケーションプログラム103のアクセス制御レベル,上限課金度数が決定できたか否か(認証に失敗したか)を判定する。   In step S1602, the printer driver 102 succeeds in the authentication based on the processing result of the authentication information collation process (FS_FNCertificate () function 401 module process) in step S803, and determines the access control level and the upper limit charge frequency of the application program 103. Is determined (whether authentication has failed).

ステップS1602で、プリンタドライバ102が、認証に成功したと判定し、前記アプリケーションプログラム103のアクセス制御レベル,上限課金度数が決定できたと判定した場合には、ステップS1603に処理を進め、前記決定したアクセス制御レベル,上限課金度数に応じた印刷機能および印刷能力を選択し、ステップS807に処理を進める。   If it is determined in step S1602 that the printer driver 102 has succeeded in authentication and it is determined that the access control level and the upper limit charge frequency of the application program 103 have been determined, the process proceeds to step S1603, and the determined access is performed. The printing function and printing capability corresponding to the control level and the upper limit charging frequency are selected, and the process proceeds to step S807.

一方、ステップS1602で、プリンタドライバ102が、認証に失敗したと判定した場合には、ステップS806に処理を進る。   On the other hand, if the printer driver 102 determines in step S1602 that the authentication has failed, the process proceeds to step S806.

図17は、本発明の印刷システムにおける第6の制御処理手順の一例を示すフローチャートであり、図16のステップS1601に示した認証情報照合処理に対応する。なお、図13と同一のステップには同一のステップ番号を付してある。   FIG. 17 is a flowchart showing an example of a sixth control processing procedure in the printing system of the present invention, and corresponds to the authentication information matching processing shown in step S1601 of FIG. The same steps as those in FIG. 13 are given the same step numbers.

なお、図12中、S901〜S906,S908,S1701に示す各ステップは、本実施形態に係るホストコンピュータ100におけるプリンタドライバプログラム102(CPU304がRAM306上で実行する)により実行される認証情報照合処理であるFS_FNCertificate( )関数401モジュール内の処理の一例に対応する。   In FIG. 12, each step shown in S901 to S906, S908, and S1701 is an authentication information collating process executed by the printer driver program 102 (executed by the CPU 304 on the RAM 306) in the host computer 100 according to the present embodiment. This corresponds to an example of processing in a certain FS_FNCertificate () function 401 module.

ステップS906で、プリンタドライバ102が、照合に成功したと判定した場合には、ステップS1701に処理を進め、該照合されたアプリケーションプログラムの印刷機能および印刷能力に対するアクセス制御レベル,上限課金度数を認証情報DBから取得出力して、処理を終了する。   If the printer driver 102 determines in step S906 that the collation is successful, the process proceeds to step S1701, and the access control level and the upper limit charge frequency for the print function and print capability of the collated application program are authenticated. Obtained and output from the DB, and the process ends.

<プリンタドライバプログラムにおける印刷制御処理の説明(図18)>
以下、図18に示すフローチャートによって、第2実施形態におけるホストコンピュータ100のプログラムメモリRAM1006上にあるプリンタドライバプログラム102の印刷制御処理を詳細に説明する。
<Description of Print Control Processing in Printer Driver Program (FIG. 18)>
Hereinafter, the print control process of the printer driver program 102 in the program memory RAM 1006 of the host computer 100 according to the second embodiment will be described in detail with reference to the flowchart shown in FIG.

図18は、本発明の印刷システムにおける第7の制御処理手順の一例を示すフローチャートである。なお、図14と同一のステップには同一のステップ番号を付してある。   FIG. 18 is a flowchart showing an example of a seventh control processing procedure in the printing system of the present invention. The same steps as those in FIG. 14 are denoted by the same step numbers.

なお、図18中の1101〜S1111,S1801に示すステップは、本実施形態に係るプリンタ104におけるプリンタドライバプログラム102(CPU304がRAM306上で実行する)での印刷制御処理に対応する。   18 correspond to print control processing in the printer driver program 102 (executed by the CPU 304 on the RAM 306) in the printer 104 according to the present embodiment.

プリンタドライバプログラム102は、プリンタ104でのドキュメントが印刷が終了すると、ステップS1801において、この印刷処理における上記各種印刷属性設定情報の使用実績に基づいて、課金対象の情報を生成し、前記機能/能力コスト情報データベース1208を参照して、ドキュメント印刷を行ったユーザ毎に課金算出処理を行い、課金結果を課金情報データベース1209に蓄積し、処理を終了する。   When printing of the document on the printer 104 is completed, the printer driver program 102 generates information to be charged based on the use results of the various print attribute setting information in the print processing in step S1801, and the function / capability With reference to the cost information database 1208, the accounting calculation process is performed for each user who has printed the document, the accounting result is accumulated in the accounting information database 1209, and the process is terminated.

本実施形態によれば、第1の実施形態をさらに部門管理あるいは課金管理を行うことによって、印刷機能および印刷能力・性能を得るために、最適なコストで印刷システム構築、運用が可能となる。   According to the present embodiment, the department management or billing management of the first embodiment is further performed, so that the printing system can be constructed and operated at an optimum cost in order to obtain the printing function and the printing capability / performance.

〔第3実施形態〕
第3実施形態では、上記第1実施形態において、プリンタドライバ102内に備えていたアプリケーションプログラム103の認証情報データベースを外部ファイル形式で提供するように構成する。例えば、プリンタドライバ102へのプラグイン形態・運用を採用することによって、必要に応じて、上記各種認証情報あるいはアクセス制御レベルを書き換え可能とすることができる。
[Third Embodiment]
In the third embodiment, the authentication information database of the application program 103 provided in the printer driver 102 in the first embodiment is provided in an external file format. For example, by adopting a plug-in form / operation to the printer driver 102, the various authentication information or access control level can be rewritten as necessary.

本実施形態によれば、例えば、アプリケーションプログラムのバージョンアップ、印刷機能・能力および利用者制限解除などを行った場合に、プリンタドライバ提供者あるいはユーザシステム管理者により、上記各種認証情報あるいはアクセス制御レベルを更新可能になり、効率の良い、柔軟なシステム構築、運用を実現することが可能となる。   According to the present embodiment, for example, when the application program is upgraded, the printing function / capability and the user restriction release are performed, the printer driver provider or the user system administrator performs the above various authentication information or access control level. Can be updated, and efficient and flexible system construction and operation can be realized.

〔第4実施形態〕
第4実施形態では、上記第1実施形態において、プリンタドライバ内に備えていたアプリケーションプログラムの認証情報データベースを外部のサーバ上に構築するように構成してもよい。
[Fourth Embodiment]
In the fourth embodiment, the authentication information database of the application program provided in the printer driver in the first embodiment may be configured on an external server.

例えば、上記第2実施形態において、機能/能力コスト情報データベース1208および課金情報データベース1209と併せて、サーバ上に構築するように構成してもよい。   For example, in the second embodiment, the function / capability cost information database 1208 and the billing information database 1209 may be configured on the server.

本実施形態によれば、例えば、大規模なシステムにおいて、多数のアプリケーションプログラム、多数のアプリケーションプログラム利用者の認証情報を一元管理することができる。また、上記第2形態形態の部門管理あるいは課金管理を適用する場合でも、効率の良いシステム構築、運用を実現することが可能となる。   According to the present embodiment, for example, in a large-scale system, authentication information of a large number of application programs and a large number of application program users can be centrally managed. Even when the department management or billing management according to the second embodiment is applied, it is possible to realize efficient system construction and operation.

〔第5実施形態〕
第5実施形態では、アプリケーションプログラム103側で動作環境、特定用途利用者向けなどの各レベルに応じた複数認証情報を用意し、該アプリケーションプログラム103側に設定しておくように構成する。
[Fifth Embodiment]
In the fifth embodiment, a plurality of pieces of authentication information corresponding to each level such as an operating environment and a special purpose user are prepared on the application program 103 side and set on the application program 103 side.

本実施形態によれば、アプリケーションプログラム側で意図した印刷機能および印刷能力・性能に対するアクセス制御レベル決定を可能になるため、セキュリティの高いアプリケーションプログラム、ドキュメント印刷システムの提供が可能となる。   According to the present embodiment, since it is possible to determine the access control level for the printing function and the printing capability / performance intended on the application program side, it is possible to provide an application program and a document printing system with high security.

〔第6実施形態〕
上記各実施形態では、プリンタSDK APIライブラリを、ホストコンピュータ100上のアプリケーションプログラム103、プリンタドライバプログラム102から読み込み可能なプログラムライブラリ形式として提供する構成について説明した。
[Sixth Embodiment]
In each of the above embodiments, the configuration in which the printer SDK API library is provided as a program library format that can be read from the application program 103 and the printer driver program 102 on the host computer 100 has been described.

このプリンタSDK APIライブラリは、ホストコンピュータ100上のアプリケーションプログラム103、プリンタドライバプログラム102において、スタティックリンクライブラリとして、予め各プログラムに内蔵される構成であっても、或いは、外部ファイル形式(ダイナミックリンクライブラリ)として、任意のタイミングで必要に応じて、プログラムメモリ上に外部ライブラリファイルをロードして使用する構成であってもよい。   This printer SDK API library may be a static link library built in each program in advance in the application program 103 and printer driver program 102 on the host computer 100, or an external file format (dynamic link library). As an alternative, the configuration may be such that an external library file is loaded onto the program memory and used as needed at an arbitrary timing.

なお、上記各実施形態内で示した印刷能力情報および印刷機能情報等の各種情報や画面等の構成及びその内容はこれに限定されるものではなく、用途や目的に応じて、様々な構成や内容で構成されることは言うまでもない。   The configuration and contents of various information and screens such as printing capability information and printing function information shown in the above embodiments are not limited to this, and various configurations and contents may be used depending on applications and purposes. Needless to say, it consists of content.

以上、一実施形態について示したが、本発明は、例えば、システム、装置、方法、プログラムもしくは記憶媒体等としての実施態様をとることが可能であり、具体的には、複数の機器から構成されるシステムに適用しても良いし、また、一つの機器からなる装置に適用しても良い。   Although one embodiment has been described above, the present invention can take an embodiment as, for example, a system, apparatus, method, program, or storage medium, and specifically includes a plurality of devices. The present invention may be applied to a system including a single device.

なお、上記各実施形態をいずれか又は全てを組み合わせた実施形態も全て本発明に含まれるものである。   Note that embodiments in which any or all of the above embodiments are combined are also included in the present invention.

以上説明したように、本実施形態の情報処理装置は、一般的な印刷機能はもとより、印刷装置のもつオプション類などのリソース付加による種々の機能およびプリンタドライバで処理実現される高付加価値機能をアプリケーションプログラムから利用するために、ドキュメント作成・印刷アプリケーションプログラムで標準的に使用されるWindows(登録商標) SDKライブラリとともに、使用可能な機能をアプリケーションプログラムインタフェース(API)を使用して、プリンタドライバからアプリケーションプログラムに通知することにより、アプリケーションプログラムにおいて、印刷可能な機能に応じた印刷するドキュメント体裁加工を可能とし、標準的な印刷機能の他に、オプション装置類などを搭載して実現可能なプリンタデバイス機能および高度なプリンタドライバ実現機能を使用可能とし、より付加価値の高い印刷機能を提供することが可能である。   As described above, the information processing apparatus according to the present embodiment has not only a general printing function but also various functions by adding resources such as options of the printing apparatus and high value-added functions that are realized by the printer driver. Along with the Windows (registered trademark) SDK library that is used as standard in the document creation / printing application program for use from the application program, the available functions can be applied from the printer driver using the application program interface (API). By notifying the program, it is possible to perform document formatting according to the printable function in the application program, and in addition to the standard printing function, it can be realized by installing optional devices. It is possible to use a printer device function and an advanced printer driver implementation function, and to provide a printing function with higher added value.

さらに、アプリケーションプログラムの使用目的あるいは動作目的により、アプリケーションプログラムの認証情報をアプリケーションプログラムインタフェース(API)を使用して、プリンタドライバに通知することにより、アプリケーションプログラムのシステム上における使用目的、動作目的および利用者毎の印刷機能使用制限に応じて認証を行い、印刷機能および印刷能力・性能のアクセス制御が行えるため、個別ユーザ向けの特定アプリケーションプログラム、特殊用途アプリケーションプログラム、公開されていない機能を利用するアプリケーションプログラム、製本機能などのプリンタの機能をフルに使用するアプリケーションプログラム、機能・能力に関してセキュリティの高い印刷システムを実現できる。従って、アプリケーションプログラムおよび印刷システム開発のコスト低減、低コストかつ構築・運用性の高い印刷システムの提供が可能となる効果を奏する。   Further, the application program authentication information is notified to the printer driver using the application program interface (API) according to the purpose of use or operation of the application program, so that the purpose of use, operation purpose, and use of the application program on the system are obtained. Applications that use specific application programs, special-purpose application programs, and undisclosed functions for individual users because authentication can be performed according to restrictions on the use of printing functions for each user, and access control of printing functions and printing capabilities / performances can be performed. It is possible to realize a printing system with high security in terms of functions and capabilities, application programs that make full use of printer functions such as programs and bookbinding functions. Therefore, it is possible to reduce the cost of developing an application program and a printing system, and to provide a printing system with low cost and high construction / operability.

さらに、前記認証について、印刷機能のアクセス制御を部門管理、課金管理に基づいて行う等の応用も可能である。   Further, the authentication can be applied such that access control of the printing function is performed based on department management and billing management.

以下、図19に示すメモリマップを参照して本発明に係る印刷システムを構成する情報処理装置(ホストコンピュータ100)で読み取り可能なデータ処理プログラムの構成について説明する。   The configuration of a data processing program that can be read by the information processing apparatus (host computer 100) constituting the printing system according to the present invention will be described below with reference to the memory map shown in FIG.

図19は、本発明に係る本発明に係る印刷システムを構成する情報処理装置(ホストコンピュータ100)で読み取り可能な各種データ処理プログラムを格納する記憶媒体(記録媒体)のメモリマップを説明する図である。   FIG. 19 is a diagram for explaining a memory map of a storage medium (recording medium) storing various data processing programs readable by the information processing apparatus (host computer 100) constituting the printing system according to the present invention. is there.

なお、特に図示しないが、記憶媒体に記憶されるプログラム群を管理する情報、例えばバージョン情報,作成者等も記憶され、かつ、プログラム読み出し側のOS等に依存する情報、例えばプログラムを識別表示するアイコン等も記憶される場合もある。   Although not particularly illustrated, information for managing a program group stored in the storage medium, for example, version information, creator, etc. is also stored, and information depending on the OS on the program reading side, for example, a program is identified and displayed. Icons may also be stored.

さらに、各種プログラムに従属するデータも上記ディレクトリに管理されている。また、各種プログラムをコンピュータにインストールするためのプログラムや、インストールするプログラムが圧縮されている場合に、解凍するプログラム等も記憶される場合もある。   Further, data depending on various programs is also managed in the directory. In addition, a program for installing various programs in the computer, and a program for decompressing when the program to be installed is compressed may be stored.

本実施形態における図8,図12,図13,図14,図16,図17,図18に示す機能が外部からインストールされるプログラムによって、ホストコンピュータにより遂行されていてもよい。そして、その場合、CD−ROMやフラッシュメモリやFD等の記憶媒体により、あるいはネットワークを介して外部の記憶媒体から、プログラムを含む情報群を出力装置に供給される場合でも本発明は適用されるものである。   The functions shown in FIGS. 8, 12, 13, 14, 16, 17, and 18 in this embodiment may be performed by a host computer by a program installed from the outside. In this case, the present invention is applied even when an information group including a program is supplied to the output device from a storage medium such as a CD-ROM, a flash memory, or an FD, or from an external storage medium via a network. Is.

以上のように、前述した実施形態の機能を実現するソフトウェアのプログラムコードを記録した記憶媒体を、システムあるいは装置に供給し、そのシステムあるいは装置のコンピュータ(またはCPUやMPU)が記憶媒体に格納されたプログラムコードを読出し実行することによっても、本発明の目的が達成されることは言うまでもない。   As described above, a storage medium storing software program codes for realizing the functions of the above-described embodiments is supplied to a system or apparatus, and the computer (or CPU or MPU) of the system or apparatus is stored in the storage medium. It goes without saying that the object of the present invention can also be achieved by reading and executing the program code.

この場合、記憶媒体から読み出されたプログラムコード自体が本発明の新規な機能を実現することになり、そのプログラムコードを記憶した記憶媒体は本発明を構成することになる。   In this case, the program code itself read from the storage medium realizes the novel function of the present invention, and the storage medium storing the program code constitutes the present invention.

従って、プログラムの機能を有していれば、オブジェクトコード、インタプリタにより実行されるプログラム、OSに供給するスクリプトデータ等、プログラムの形態を問わない。   Therefore, as long as it has the function of the program, the form of the program such as an object code, a program executed by an interpreter, or script data supplied to the OS is not limited.

プログラムを供給するための記憶媒体としては、例えばフレキシブルディスク、ハードディスク、光ディスク、光磁気ディスク、MO、CD−ROM、CD−R、CD−RW、磁気テープ、不揮発性のメモリカード、ROM、DVDなどを用いることができる。   As a storage medium for supplying the program, for example, a flexible disk, hard disk, optical disk, magneto-optical disk, MO, CD-ROM, CD-R, CD-RW, magnetic tape, nonvolatile memory card, ROM, DVD, etc. Can be used.

この場合、記憶媒体から読出されたプログラムコード自体が前述した実施形態の機能を実現することになり、そのプログラムコードを記憶した記憶媒体は本発明を構成することになる。   In this case, the program code itself read from the storage medium realizes the functions of the above-described embodiments, and the storage medium storing the program code constitutes the present invention.

その他、プログラムの供給方法としては、クライアントコンピュータのブラウザを用いてインターネットのホームページに接続し、該ホームページから本発明のコンピュータプログラムそのもの、もしくは、圧縮され自動インストール機能を含むファイルをハードディスク等の記憶媒体にダウンロードすることによっても供給できる。また、本発明のプログラムを構成するプログラムコードを複数のファイルに分割し、それぞれのファイルを異なるホームページからダウンロードすることによっても実現可能である。つまり、本発明の機能処理をコンピュータで実現するためのプログラムファイルを複数のユーザに対してダウンロードさせるWWWサーバやftpサーバ等も本発明の請求項に含まれるものである。   As another program supply method, a browser on a client computer is used to connect to a homepage on the Internet, and the computer program itself of the present invention or a compressed file including an automatic installation function is stored on a storage medium such as a hard disk from the homepage. It can also be supplied by downloading. It can also be realized by dividing the program code constituting the program of the present invention into a plurality of files and downloading each file from a different homepage. That is, a WWW server, an ftp server, and the like that allow a plurality of users to download a program file for realizing the functional processing of the present invention on a computer are also included in the claims of the present invention.

また、本発明のプログラムを暗号化してCD−ROM等の記憶媒体に格納してユーザに配布し、所定の条件をクリアしたユーザに対し、インターネットを介してホームページから暗号化を解く鍵情報をダウンロードさせ、その鍵情報を使用することにより暗号化されたプログラムを実行してコンピュータにインストールさせて実現することも可能である。   In addition, the program of the present invention is encrypted, stored in a storage medium such as a CD-ROM, distributed to users, and key information for decryption is downloaded from a homepage via the Internet to users who have cleared predetermined conditions. It is also possible to execute the encrypted program by using the key information and install the program on a computer.

また、コンピュータが読み出したプログラムコードを実行することにより、前述した実施形態の機能が実現されるだけでなく、そのプログラムコードの指示に基づき、コンピュータ上で稼働しているOS(オペレーティングシステム)等が実際の処理の一部または全部を行い、その処理によって前述した実施形態の機能が実現される場合も含まれることは言うまでもない。   Further, by executing the program code read by the computer, not only the functions of the above-described embodiments are realized, but also an OS (operating system) or the like running on the computer based on the instruction of the program code. It goes without saying that a case where the function of the above-described embodiment is realized by performing part or all of the actual processing and the processing is included.

さらに、記憶媒体から読み出されたプログラムコードが、コンピュータに挿入された機能拡張ボードやコンピュータに接続された機能拡張ユニットに備わるメモリに書き込まれた後、そのプログラムコードの指示に基づき、その機能拡張ボードや機能拡張ユニットに備わるCPU等が実際の処理の一部または全部を行い、その処理によって前述した実施形態の機能が実現される場合も含まれることは言うまでもない。   Further, after the program code read from the storage medium is written to a memory provided in a function expansion board inserted into the computer or a function expansion unit connected to the computer, the function expansion is performed based on the instruction of the program code. It goes without saying that the case where the CPU or the like provided in the board or the function expansion unit performs part or all of the actual processing and the functions of the above-described embodiments are realized by the processing.

また、本発明は、複数の機器から構成されるシステムに適用しても、1つの機器からなる装置に適用してもよい。また、本発明は、システムあるいは装置にプログラムを供給することによって達成される場合にも適応できることは言うまでもない。この場合、本発明を達成するためのソフトウェアによって表されるプログラムを格納した記憶媒体を該システムあるいは装置に読み出すことによって、そのシステムあるいは装置が、本発明の効果を享受することが可能となる。   Further, the present invention may be applied to a system composed of a plurality of devices or an apparatus composed of a single device. Needless to say, the present invention can be applied to a case where the present invention is achieved by supplying a program to a system or apparatus. In this case, by reading a storage medium storing a program represented by software for achieving the present invention into the system or apparatus, the system or apparatus can enjoy the effects of the present invention.

本発明は上記実施形態に限定されるものではなく、本発明の趣旨に基づき種々の変形(各実施形態の有機的な組み合わせを含む)が可能であり、それらを本発明の範囲から排除するものではない。   The present invention is not limited to the above embodiments, and various modifications (including organic combinations of the embodiments) are possible based on the spirit of the present invention, and these are excluded from the scope of the present invention. is not.

本発明の様々な例と実施形態を示して説明したが、当業者であれば、本発明の趣旨と範囲は、本明細書内の特定の説明に限定されるのではない。   Although various examples and embodiments of the present invention have been shown and described, those skilled in the art will not limit the spirit and scope of the present invention to the specific description in the present specification.

以上説明したように、アプリケーションからSDK APIでアプリケーションの使用/動作目的に応じた認証情報をプリンタドライバに通知し、ドライバにおいてこの認証情報に基づき各種印刷機能及び印刷能力・性能に対するアクセス制御レベルを決定し、アプリケーションからAPIによる現在使用可能な印刷機能及び印刷能力・性能をドライバに問い合わせ、ドライバは、アクセス制御レベルに基づいた印刷機能属性情報及び印刷能力属性情報をアプリケーションに通知し、アプリケーションは、これらの情報に基づき、ドキュメント編集・加工及び印刷設定を制御し、ドキュメント印刷を行うことにより、アプリケーションの使用/動作目的に応じ使用する各種印刷機能に対するアクセス制御レベルを与え、印刷に関して、機能拡張、機能制限を設けることが可能とあんり、アプリケーション用途及び利用者による高機能あるいは簡便機能を目的に応じて提供することを可能とする。また、APIによる認証により機能制限を行えるため、低コストかつセキュリティ向上を図る運用性の高い印刷システムを提供することが可能となる。   As described above, the authentication information corresponding to the use / operation purpose of the application is notified from the application to the printer driver using the SDK API, and the driver determines the access control level for various printing functions and printing capabilities / performances based on the authentication information. Then, the application inquires the driver about the currently available printing function and printing capability / performance by the API, and the driver notifies the application of the printing function attribute information and the printing capability attribute information based on the access control level. Based on this information, document editing / processing and print settings are controlled, and document printing is performed to provide access control levels for various printing functions to be used according to the use / operation purpose of the application. It is possible to provide a function restriction, and it is possible to provide a high function or a simple function according to the purpose by the application use and the user. In addition, since the function can be restricted by the authentication by API, it is possible to provide a printing system with high operability for improving security at low cost.

本発明の一実施形態を示す印刷システムの一例を示すシステム構成図である。1 is a system configuration diagram illustrating an example of a printing system according to an embodiment of the present invention. 図1に示したホストコンピュータ上のOS、アプリケーションプログラム、プリンタドライバおよびプリンタにおける、プリンタドライバSDK APIを使用して、初期化から印刷までの各構成要素の内部および構成要素間の処理の流れをあらわすブロック図である。Using the printer driver SDK API in the OS, application program, printer driver, and printer on the host computer shown in FIG. 1, the flow of processing inside each component and between components is shown from initialization to printing. It is a block diagram. 図1に示したホストコンピュータ上のOS、アプリケーションプログラムおよびプリンタドライバにおける、プリンタドライバSDK APIの初期化から印刷までのコーリングシーケンス図である。FIG. 2 is a calling sequence diagram from initialization of the printer driver SDK API to printing in the OS, application program, and printer driver on the host computer shown in FIG. 1. 図3に示したプリンタドライバSDK APIである認証情報通知するFS_FNCertificate( )関数および印刷機能属性情報、印刷能力属性情報を取得・通知するFS_GetFuncItem()関数を説明する図である。FIG. 4 is a diagram illustrating an FS_FNCertificate () function for notifying authentication information and a FS_GetFuncItem () function for acquiring / notifying printing function attribute information and printing capability attribute information, which are the printer driver SDK API shown in FIG. 3. Windows(登録商標) NT4.0/Windows(登録商標) 2000/Windows(登録商標) XP等の32-Bitオペレーティングシステム環境下におけるオペレーティングシステムのGDI,アプリケーションプログラム,プリンタドライバおよびプリンタドライバSDKライブラリの各構成例を示す図である。Configuration of GDI, application program, printer driver and printer driver SDK library of operating system under 32-bit operating system environment such as Windows (registered trademark) NT4.0 / Windows (registered trademark) 2000 / Windows (registered trademark) XP It is a figure which shows an example. Windows(登録商標) 95/Windows(登録商標) 98/Windows(登録商標) Me等の16-Bitオペレーティングシステム環境下におけるオペレーティングシステムのGDI,アプリケーションプログラム,プリンタドライバおよびプリンタドライバSDKライブラリの各構成例を示す図である。Configuration examples of operating system GDI, application program, printer driver and printer driver SDK library under 16-bit operating system environment such as Windows (registered trademark) 95 / Windows (registered trademark) 98 / Windows (registered trademark) Me FIG. 図1に示したホストコンピュータ及びプリンタのハードウェア接続構成を示すブロック図である。FIG. 2 is a block diagram illustrating a hardware connection configuration of a host computer and a printer illustrated in FIG. 1. 本発明の印刷システムにおける第1の制御処理手順の一例を示すフローチャートである。6 is a flowchart illustrating an example of a first control processing procedure in the printing system of the present invention. 図1に示したアプリケーションプログラム103の編集画面及び色設定画面の一例を示す図である。It is a figure which shows an example of the edit screen and color setting screen of the application program 103 shown in FIG. 図1に示したアプリケーションプログラム103の印刷ダイアログの一例を示す図である。It is a figure which shows an example of the print dialog of the application program 103 shown in FIG. 図1に示したアプリケーションプログラム103の印刷ダイアログの一例を示す図である。It is a figure which shows an example of the print dialog of the application program 103 shown in FIG. 本発明の印刷システムにおける第2の制御処理手順の一例を示すフローチャートである。It is a flowchart which shows an example of the 2nd control processing procedure in the printing system of this invention. 本発明の印刷システムにおける第3の制御処理手順の一例を示すフローチャートである。It is a flowchart which shows an example of the 3rd control processing procedure in the printing system of this invention. 本発明の印刷システムにおける第4の制御処理手順の一例を示すフローチャートである。It is a flowchart which shows an example of the 4th control processing procedure in the printing system of this invention. 本発明の第2実施形態におけるアプリケーションプログラム、プリンタドライバ、プリンタおよび各種データベースから構成されるドキュメント印刷課金管理システムの各制御処理の流れに一例を示す図である。It is a figure which shows an example in the flow of each control processing of the document printing charge management system comprised from the application program, printer driver, printer, and various databases in 2nd Embodiment of this invention. 本発明の印刷システムにおける第5の制御処理手順の一例を示すフローチャートである。It is a flowchart which shows an example of the 5th control processing procedure in the printing system of this invention. 本発明の印刷システムにおける第6の制御処理手順の一例を示すフローチャートである。It is a flowchart which shows an example of the 6th control processing procedure in the printing system of this invention. 本発明の印刷システムにおける第7の制御処理手順の一例を示すフローチャートである。It is a flowchart which shows an example of the 7th control processing procedure in the printing system of this invention. 本発明に係る本発明に係る印刷システムを構成する情報処理装置で読み取り可能な各種データ処理プログラムを格納する記憶媒体(記録媒体)のメモリマップを説明する図である。It is a figure explaining the memory map of the storage medium (recording medium) which stores the various data processing program which can be read with the information processing apparatus which comprises the printing system which concerns on this invention which concerns on this invention.

符号の説明Explanation of symbols

100 ホストコンピュータシステム
101 オペレーティングシステム(OS)
102 プリンタドライバ
103 アプリケーションプログラム
104 プリンタ
100 Host computer system 101 Operating system (OS)
102 Printer Driver 103 Application Program 104 Printer

Claims (11)

所定のアプリケーションプログラムにおけるドキュメントの印刷制御処理に基づいてプリンタドライバが該ドキュメントの印刷ジョブを生成して印刷装置に送信する情報処理装置において、
前記アプリケーションプログラムから該当アプリケーションプログラムの認証情報を前記プリンタドライバに通知する第1の通知手段と、
前記第1の通知手段により通知される認証情報に基づいて、前記プリンタドライバが動作および機能可能な印刷を行うための印刷設定情報を選択して前記アプリケーションプログラムに通知する第2の通知手段と、
前記第2の通知手段により通知される印刷設定情報に基づいて、前記アプリケーションプログラム上でのドキュメントの編集及び印刷設定を制御する制御手段と、
を有することを特徴とする情報処理装置。
An information processing apparatus in which a printer driver generates a print job for a document based on document print control processing in a predetermined application program and transmits the print job to the printing apparatus.
First notification means for notifying the printer driver of authentication information of the application program from the application program;
Second notification means for selecting print setting information for performing printing that the printer driver can operate and function based on the authentication information notified by the first notification means, and notifying the application program;
Control means for controlling document editing and print settings on the application program based on the print setting information notified by the second notification means;
An information processing apparatus comprising:
前記認証情報は、前記アプリケーションプログラムの使用目的あるいは動作目的に応じたものであり、
前記認証情報に応じたアクセス制御レベル情報を記憶管理する第1の記憶手段とを設け、
前記第2の通知手段は、前記第1の通知手段により通知される認証情報に基づいて、前記プリンタドライバにて認証処理を行って前記第1の記憶手段からアクセス制御レベルを取得し、該取得したアクセス制御レベルに応じた動作および機能可能な印刷を行うための印刷設定情報を選択して前記アプリケーションプログラムに通知することを特徴とする請求項1記載の情報処理装置。
The authentication information is in accordance with the purpose of use or operation of the application program,
A first storage means for storing and managing access control level information corresponding to the authentication information;
The second notifying unit acquires an access control level from the first storage unit by performing an authentication process in the printer driver based on the authentication information notified by the first notifying unit, and acquires the access control level. 2. The information processing apparatus according to claim 1, further comprising: selecting print setting information for performing an operation and a functionable print according to the access control level and notifying the application program.
前記印刷設定情報は、前記印刷装置において実行可能な印刷機能および前記プリンタドライバの印刷制御処理で実行可能な印刷機能を表わす印刷機能属性情報と、前記印刷機能情報に基づきプリンタドライバで実行可能な各種印刷機能の実行範囲を表わす印刷能力属性情報を含むことを特徴とする請求項1又は2記載の情報処理装置。   The print setting information includes a print function that can be executed by the printing apparatus and print function attribute information that represents a print function that can be executed by print control processing of the printer driver, and various types that can be executed by the printer driver based on the print function information. The information processing apparatus according to claim 1, further comprising print capability attribute information representing an execution range of the print function. 前記印刷機能属性情報は、給紙方法、排紙方法、両面印刷機能、複数ページ割付印刷、ステイプル機能、パンチ機能、トリミング機能、用紙Z折り機能などの各種フィニッシング機能、さらにこれらの機能を複合して実現する製本機能、スタンプ機能、フォントダウンロード機能、フォント置換機能、フォームオーバレイ機能等の前記プリンタドライバにおいて実行可能な印刷機能情報を含むことを特徴とする請求項3記載の情報処理装置。   The printing function attribute information includes various finishing functions such as a paper feeding method, a paper discharging method, a double-sided printing function, a multi-page layout printing, a stapling function, a punching function, a trimming function, a paper Z folding function, and a combination of these functions. 4. The information processing apparatus according to claim 3, further comprising print function information executable by the printer driver, such as a bookbinding function, a stamp function, a font download function, a font replacement function, and a form overlay function. 前記印刷能力属性情報は、モノクロ印刷時の階調数、カラー印刷時の色深度、色調、色空間および設定可能なカラープロファイル、マッチング方法、設定可能解像度、ベクタ/イメージ描画、ディザリングなどのグラフィックス描画方法、印刷可能な用紙サイズおよび用紙種、最大設定可能コピー部数、複数ページ割付印刷時の割付可能ページ数の前記プリンタドライバにおいて各種印刷機能実行のための印刷能力情報を含むことを特徴とする請求項3又は4記載の情報処理装置。   The print capability attribute information includes the number of gradations in monochrome printing, color depth in color printing, color tone, color space and settable color profile, matching method, settable resolution, vector / image drawing, dithering, and other graphics. Including printing capability information for executing various printing functions in the printer driver of the image drawing method, printable paper size and paper type, the maximum number of copies that can be set, and the number of assignable pages at the time of multi-page assignment printing. The information processing apparatus according to claim 3 or 4. 前記第1通知手段,前記第2の通知手段は、前記アプリケーションプログラムおよび前記プリンタドライバプログラムに、共通の任意にプログラミング可能な関数あるいはデータ形式のプログラミングインターフェースによりデータの送受信を行うことを特徴とする請求項1〜5のいずれかに記載の情報処理装置。   The first notification means and the second notification means transmit and receive data to and from the application program and the printer driver program by using a common programming function or data format programming interface. Item 6. The information processing apparatus according to any one of Items 1 to 5. 前記アプリケーションプログラムから前記アプリケーションプログラムインタフェースを用いて前記プリンタドライバに印刷設定を指示する印刷設定手段を設けたことを特徴とする請求項1〜6のいずれかに記載の情報処理装置。   The information processing apparatus according to claim 1, further comprising: a print setting unit that instructs the printer driver to perform print settings using the application program interface from the application program. 前記プリンタドライバで、前記印刷設定手段により指示された印刷設定に基づき、印刷制御命令を生成し、該印刷制御命令と前記アプリケーションプログラムからの印刷ドキュメントデータを組み合わせて印刷装置に送信する印刷制御手段を設けたことを特徴とする請求項1〜7のいずれかに記載の情報処理装置。   Print control means for generating a print control instruction based on the print setting instructed by the print setting means in the printer driver, and transmitting the print control instruction and print document data from the application program to the printing apparatus in combination. The information processing apparatus according to claim 1, wherein the information processing apparatus is provided. 所定のアプリケーションプログラムにおけるドキュメントの印刷制御処理に基づいてプリンタドライバが該ドキュメントの印刷ジョブを生成して印刷装置に送信する情報処理装置における印刷制御方法において、
前記アプリケーションプログラムから該当アプリケーションプログラムの認証情報を前記プリンタドライバに通知する第1の通知ステップと、
前記第1の通知ステップにより通知される認証情報に基づいて、前記プリンタドライバが動作および機能可能な印刷を行うための印刷設定情報を選択して前記アプリケーションプログラムに通知する第2の通知ステップと、
前記第2の通知ステップにより通知される印刷設定情報に基づいて、前記アプリケーションプログラム上でのドキュメントの編集及び印刷設定を制御する制御ステップと、
を有することを特徴とする印刷制御方法。
In a print control method in an information processing apparatus in which a printer driver generates a print job for a document based on document print control processing in a predetermined application program and transmits the print job to the printing apparatus.
A first notification step of notifying the printer driver of authentication information of the application program from the application program;
A second notification step of selecting print setting information for performing printing that the printer driver can operate and function based on the authentication information notified in the first notification step, and notifying the application program;
A control step for controlling document editing and print settings on the application program based on the print setting information notified in the second notification step;
A printing control method characterized by comprising:
請求項9に記載された印刷制御方法をコンピュータに実行させるためのプログラム。   A program for causing a computer to execute the printing control method according to claim 9. 請求項9に記載された印刷制御方法をコンピュータに実行させるためのプログラムをコンピュータが読み取り可能に記憶した記憶媒体。   A storage medium storing a computer-readable program for causing a computer to execute the printing control method according to claim 9.
JP2005181555A 2005-06-22 2005-06-22 Information processor, print control method and program Withdrawn JP2007004332A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2005181555A JP2007004332A (en) 2005-06-22 2005-06-22 Information processor, print control method and program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2005181555A JP2007004332A (en) 2005-06-22 2005-06-22 Information processor, print control method and program

Publications (1)

Publication Number Publication Date
JP2007004332A true JP2007004332A (en) 2007-01-11

Family

ID=37689920

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2005181555A Withdrawn JP2007004332A (en) 2005-06-22 2005-06-22 Information processor, print control method and program

Country Status (1)

Country Link
JP (1) JP2007004332A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102135864A (en) * 2010-01-27 2011-07-27 株式会社理光 Information processing apparatus, print controlling program, computer-readable storage medium, printing apparatus, and printing system
EP2237146A3 (en) * 2009-03-30 2012-12-26 Canon Kabushiki Kaisha Printing control method, printing control apparatus and computer program
US8368905B2 (en) 2007-05-30 2013-02-05 Brother Kogyo Kabushiki Kaisha Method and computer readable medium for printer driver and information processing device

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8368905B2 (en) 2007-05-30 2013-02-05 Brother Kogyo Kabushiki Kaisha Method and computer readable medium for printer driver and information processing device
EP2237146A3 (en) * 2009-03-30 2012-12-26 Canon Kabushiki Kaisha Printing control method, printing control apparatus and computer program
US8873072B2 (en) 2009-03-30 2014-10-28 Canon Kabushiki Kaisha Printing control method and printing control apparatus and computer program using program module for varying print settings
CN102135864A (en) * 2010-01-27 2011-07-27 株式会社理光 Information processing apparatus, print controlling program, computer-readable storage medium, printing apparatus, and printing system
EP2354920A3 (en) * 2010-01-27 2012-10-24 Ricoh Company, Ltd. Information processing apparatus, print controlling program, computer-readable storage medium, printing apparatus, and printing system

Similar Documents

Publication Publication Date Title
US7057747B1 (en) Management of printer settings
US8125657B2 (en) Printing apparatus and method and non-transitory computer-readable storage medium for managing printing format information
JP4969324B2 (en) Information processing apparatus, program, and recording medium thereof
JP4240690B2 (en) Information processing apparatus, information processing method, information processing system, and recording medium
US7907313B2 (en) Management of multiple printer drivers
KR101396028B1 (en) Information processing apparatus, method of controlling information processing apparatus, and storage medium
JP5100488B2 (en) Information processing apparatus, information processing method, and program
JP2007241661A (en) Image forming device and its control method
US8171503B2 (en) Image processing system and image processing method in which a plurality of devices cooperate to perform image processing, wherein the image processing system and image processing method are capable of displaying information on operations to be performed by the devices
JP2007083725A (en) Image forming process of image forming device
US8605316B2 (en) Information processing apparatus and control method thereof, and storage medium
JP2009123012A (en) Print system, client terminal apparatus and print control method
JP7341647B2 (en) Information processing device, control method and program
JP2006350443A (en) Printing system, print control method and program
JP2007249931A (en) Information processing apparatus, print setting method, storage medium, and program
JP2007004332A (en) Information processor, print control method and program
JP4164488B2 (en) Information leakage prevention method, information processing apparatus and driver program for realizing the method
JP2005190426A (en) Data processing method, data processor, and computer program
JP4227614B2 (en) Automatic authentication method and system in printing process
JP2006344081A (en) Information processor, print processing method, storage medium stored computer-readable program, and program
US8902469B2 (en) Print setting apparatus, control method of print setting apparatus, computer readable storage medium storing control program of print setting apparatus, and printing apparatus
CN104850362A (en) Printing instruction apparatus, image forming system and printing instruction method
JP2007148652A (en) Print system
JP4542719B2 (en) Printer and printing method using the printer
JP2005348205A (en) Information processor, data processing method, storage medium storing computer readable program and program

Legal Events

Date Code Title Description
RD03 Notification of appointment of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7423

Effective date: 20080108

RD04 Notification of resignation of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7424

Effective date: 20080219

A300 Withdrawal of application because of no request for examination

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 20080902