JP2009146362A - Information processor, information processing method, program and recording medium - Google Patents
Information processor, information processing method, program and recording medium Download PDFInfo
- Publication number
- JP2009146362A JP2009146362A JP2007326056A JP2007326056A JP2009146362A JP 2009146362 A JP2009146362 A JP 2009146362A JP 2007326056 A JP2007326056 A JP 2007326056A JP 2007326056 A JP2007326056 A JP 2007326056A JP 2009146362 A JP2009146362 A JP 2009146362A
- Authority
- JP
- Japan
- Prior art keywords
- capability
- input
- application
- ticket
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Images
Abstract
Description
本発明は、情報処理装置、情報処理方法、プログラム、及び記憶媒体に関するものである、特に印刷設定に関するものである。 The present invention relates to an information processing apparatus, an information processing method, a program, and a storage medium, and particularly relates to print settings.
Microsoft社のオペレーティングシステム(OS)であるMicrosoft Windows(登録商標)Vistaにおいて印刷システムが大きく変更された。従来のGDI(Graphic Device Interface)ベースの印刷システムと互換性を維持しつつ、XPS(XML Paper Specification)ベースの新しい印刷システムが導入された(http://www.microsoft.com/japan/whdc/device/print/default.mspx)。 The printing system has been greatly changed in Microsoft Windows (registered trademark) Vista, which is an operating system (OS) of Microsoft Corporation. A new printing system based on XPS (XML Paper Specification) was introduced (http://www.microsoft.com/japan/whdc/) while maintaining compatibility with the conventional GDI (Graphic Device Interface) based printing system. device / print / default.mspx).
XPSとは、電子文書フォーマットの一つである。その中身は、文書構造、描画情報、印刷設定などの情報を保持するXMLとビットマップやフォントなどのバイナリリソースといった様々なパーツから構成される。XPSを構成する特に重要なパーツを図1にて示す。FixedDocumentSequence101をジョブ、FixedDocument102をドキュメント、FixedPage103をページと理解するとよい。FixedDocumentSequenceパーツ201は必ず1つだけ存在し、複数のFixedDocumentパーツ202を保持する。さらに各々のFixedDocumentパーツ202は複数のFixedPageパーツ203を保持する。さらに、これら任意のFixedDocumentSequenceパーツ201、FixedDocumentパーツ202、FixedPageパーツ203には各々印刷設定を関連付けることができる(図2)。この印刷設定のことをプリントチケットと呼ぶ。アプリケーションが、このプリントチケットを生成するためには、デバイスの能力を知る必要がある。このデバイス能力を表すドキュメント形式をプリントケーパビリティ(PrintCapabilities)と呼ぶ。プリントケーパビリティについては、特許文献1にも詳細が記されている。
このプリントケーパビリティは、デバイスの機能を列挙してXMLに記述するため、記述量が膨大になる傾向になる。また、プリントケーパビリティの大きな特徴として、静的なデバイスの能力を列挙して記述するだけでなく、プリントチケットに応じた動的なデバイス能力を記述できることにある。具体的には、プリントチケットに記述されている用紙の種類、用紙の向きに応じた、有効印字領域といった情報をプリントケーパビリティは保持している。
Since this print capability enumerates device functions and describes them in XML, the amount of description tends to be enormous. A major feature of the print capability is that it can describe not only enumeration and description of static device capabilities but also dynamic device capabilities according to print tickets. Specifically, the print capability holds information such as the effective print area corresponding to the paper type and paper orientation described in the print ticket.
プリントケーパビリティの記述量は大きいため、アプリケーションなどがプリントケーパビリティを取得する際に、相応の処理時間を必要とする。アプリケーションは、ユーザーのストレスとなるような待ち時間を感じさせないように、可能な限りプリントケーパビリティの取得回数を減らし、取得したプリントケーパビリティを使いまわすことを試みるだろう。しかしながら、プリントケーパビリティには有効印字領域といった用紙の種類、用紙の向きに応じてページ毎に変更される可能性のあるデータを保持している。よって、単純に一度取得したプリントケーパビリティを使いまわすわけにはいかない。最悪、アプリケーションは、ページ毎にプリントケーパビリティを取得し直す必要がある。 Since the amount of description of the print capability is large, an appropriate processing time is required when an application or the like acquires the print capability. The application will try to reuse the acquired print capability by reducing the number of acquisitions of the print capability as much as possible so as not to let the user feel the waiting time. However, the print capability holds data that may be changed for each page according to the type of paper, such as an effective print area, and the orientation of the paper. Therefore, it is not possible to simply reuse the print capability once acquired. Worst, the application needs to re-acquire the print capability for each page.
以上、新しいXPSプリンティングシステムでは、その土台となるプリントケーパビリティにおいて、性能劣化を引き起こす構造上の問題を抱えている。 As described above, the new XPS printing system has a structural problem that causes performance deterioration in the print capability as a foundation.
上述した課題を解決するために、本発明は、
プリントチケット、及びプリントケーパビリティのスコープを入力する入力手段と、
前記入力手段により入力されたプリントチケットとプリントケーパビリティのスコープとに基づきプリントケーパビリティを生成する手段と、
前記生成したプリントケーパビリティをアプリケーションに返却する返却手段とを有することを特徴とする。
In order to solve the problems described above, the present invention provides:
An input means for inputting a print ticket and a scope of print capability;
Means for generating a print capability based on the print ticket inputted by the input means and a scope of the print capability;
And a return means for returning the generated print capability to the application.
本発明によって、アプリケーションがプリンタドライバからデバイス能力を得る際に、必要とする情報をストレスなく入手可能になる。ひいては、ユーザーの利便性を向上させることができる。 The present invention makes it possible to obtain necessary information without stress when an application obtains device capabilities from a printer driver. As a result, user convenience can be improved.
[実施例1]
本発明に係る情報処理装置の一実施形態としてのコンピュータについて説明する。図3は、本実施形態のコンピュータを含むプリンタ制御システムの構成を説明するブロック図である。なお、特に断らない限り、本発明の機能が実行されるのであれば、単体の機器であっても、複数の機器からなるシステムであっても、LAN,WAN等のネットワークを介して接続が為され処理が行われるシステムであっても本発明を適用できることは言うまでもない。
[Example 1]
A computer as an embodiment of an information processing apparatus according to the present invention will be described. FIG. 3 is a block diagram illustrating a configuration of a printer control system including a computer according to the present embodiment. Unless otherwise specified, if the function of the present invention is executed, a single device or a system composed of a plurality of devices can be connected via a network such as a LAN or WAN. Needless to say, the present invention can be applied to a system in which processing is performed.
図において、300はホストコンピュータである。ホストコンピュータはROM3のプログラム用ROMあるいは外部メモリ11に記憶された文書処理プログラム等に基づいて図形、イメージ、文字、表(表計算等を含む)等が混在した文書処理を実行するCPU1を備え、システムバス4に接続される各デバイスをCPU1が総括的に制御する。
In the figure,
また、このROM3のプログラム用ROMあるいは外部メモリ11には、CPU1の制御プログラムであるオペレーティングシステムプログラム(以下OS)等を記憶する。また、ROM3のフォント用ROMあるいは外部メモリ11には上記文書処理の際に使用するフォントデータ等を記憶し、ROM3のデータ用ROMあるいは外部メモリ11には上記文書処理等を行う際に使用する各種データを記憶する。
Further, an operating system program (hereinafter referred to as OS) which is a control program of the
2はRAMで、CPU1の主メモリ、ワークエリア等として機能する。5はキーボードI/Fで、キーボード9や不図示のポインティングデバイスからのキー入力を制御する。6はディプレイI/Fで、ディスプレイ10の表示を制御する。7は外部メモリI/Fで、ブートプログラム、各種のアプリケーション、フォントデータ、ユーザファイル、編集ファイル、プリンタドライバ等を記憶するハードディスク(HD)、フロッピー(登録商標)ディスク(FD)等の外部メモリ11とのアクセスを制御する。なお、外部メモリはプリンタドライバ等の各種処理プログラムを記憶するコンピュータが読み取り可能な記憶媒体として機能する。
Reference numeral 2 denotes a RAM which functions as a main memory, work area, and the like for the
8はプリンタI/Fで、所定の双方向性インターフェース21を介してプリンタ150に接続されて、プリンタ150との通信制御処理を実行する。なお、CPU1は、例えばRAM2上に設定された表示情報RAMへのアウトラインフォントの展開(ラスタライズ)処理を実行し、ディプレイ10上でのWYSIWYGを可能としている。
A printer I / F 8 is connected to the printer 150 via a predetermined
また、CPU1は、CRT10上の不図示のマウスカーソル等で指示されたコマンドに基づいて登録された種々のウインドウを開き、種々のデータ処理を実行する。ユーザは印刷を実行する際、印刷の設定に関するウインドウを開き、プリンタの設定や、印刷モードの選択を含むプリンタドライバに対する印刷処理方法の設定を行える。
The
プリンタ150において、12はプリンタCPUで、ROM13のプログラム用ROMに記憶された制御プログラム等あるいは外部メモリ14に記憶された制御プログラム等に基づいてシステムバス15に接続される印刷部(プリンタエンジン)17に出力情報としての画像信号を出力する。
In the printer 150,
また、このROM13のプログラムROMには、CPU12の制御プログラム等を記憶する。ROM13のフォント用ROMには上記出力情報を生成する際に使用するフォントデータ等を記憶し、ROM13のデータ用ROMにはハードディスク等の外部メモリ14がないプリンタの場合には、ホストコンピュータ上で利用される情報等を記憶している。
Further, a control program for the
CPU12は入力部18を介してホストコンピュータとの通信処理が可能となっており、プリンタ内の情報等をホストコンピュータ3000に通知可能に構成されている。19はCPU12の主メモリ、ワークエリア等として機能するRAMで、図示しない増設ポートに接続されるオプションRAMによりメモリ容量を拡張することができるように構成されている。なお、RAM19は、出力情報展開領域、環境データ格納領域、NVRAM等に用いられる。前述したハードディスク(HD)、ICカード等の外部メモリ14は、メモリコントローラ(MC)20によりアクセスを制御される。
The
外部メモリ14は、オプションとして接続され、フォントデータ、エミュレーションプログラム、フォームデータ等を記憶する。また、18は前述した操作パネルで操作のためのスイッチおよびLED表示器等が配されている。また、前述した外部メモリは1個に限らず、少なくとも1個以上備え、内蔵フォントに加えてオプションフォントカード、言語系の異なるプリンタ制御言語を解釈するプログラムを格納した外部メモリを複数接続できるように構成されていてもよい。さらに、図示しないNVRAMを有し、操作パネル20からのプリンタモード設定情報を記憶するようにしてもよい。
The
図4は、ホストコンピュータにおける典型的な印刷データ生成方法を説明する図である。 FIG. 4 is a diagram for explaining a typical print data generation method in the host computer.
アプリケーション401、グラフィックエンジン402、プリンタドライバ403、およびシステムスプーラ404は、外部メモリ11に保存されたファイルとして存在し、OSやそのモジュールを利用するモジュールによってRAM2にロードされ実行されるプログラムモジュールである。また、アプリケーション401およびプリンタドライバ403は、外部メモリ11のFDや不図示のCD−ROM、あるいは不図示のネットワークを経由して外部ディスク11のHDに追加することが可能となっている。
The
外部メモリ11に保存されているアプリケーション401はRAM2にロードされて実行されるが、このアプリケーション401からプリンタ1500に対して印刷を行う際には、同様にRAM2にロードされ実行可能となっているグラフィックエンジン402を利用して出力(描画)を行う。グラフィックエンジン402は、印刷装置ごとに用意されたプリンタドライバ403を、外部メモリ11からRAM2にロードし、アプリケーション210の出力をプリンタドライバ403を用いてプリンタの制御コマンドに変換する。変換されたプリンタ制御コマンドはOSによってRAM2にロードされたシステムスプーラ404を経てインターフェース21経由でプリンタ1500へ出力される仕組みとなっている。
The
図5は、アプリケーション504と、各プリンタ用のプリンタドライバ501,502との関係をあらわした模式図である。
FIG. 5 is a schematic diagram showing the relationship between the
アプリケーション504はオペレーティングシステム503が提供する各種関数(Application Program Interface、通称API)をコールして処理を行う。
The
オペレーティングシステム503は印刷に関わる処理を選択されているプリンタのプリンタドライバ501,502が提供する関数(Device Driver Interface、通称DDI)をコールして処理を行う。
The
このようにしてアプリケーションから選択されたプリンタへの印刷が可能となっている。 In this way, printing to a printer selected from the application is possible.
このときプリンタドライバ501,502とオペレーティングシステム503、及び、アプリケーション504間でプリンタの印刷設定データがやり取りされる。これを表したのが図6である。
At this time, printer print setting data is exchanged between the
図6は、プリントチケット対応アプリケーション601や当発明のポイントであるドライバ拡張インターフェイスに対応したアプリケーション604から印刷設定する場合のプリンタドライバとの関係をあらわした模式図である。602はプリントチケット・プリントケーパビリティAPIを示している。すなわちOSの一部である。このAPIとほぼ同等の機能を持つDDIは、プリンタドライバ603にも用意されている。つまり、アプリケーション601が、PTGetPrintCapabilitiesのようなAPIを呼び出すと、API層である602を通って、ドライバ本体603に入力データであるプリントチケットが渡されることになる。ドライバ本体603は、渡されたプリントチケットに応じたプリントケーパビリティを生成し、API層である602を通って、アプリケーション601に生成したプリントケーパビリティを返す。これが従来例である。ドライバ拡張インターフェイスに対応したアプリケーション604が、図7で示すようなプリンタドライバ独自の拡張インターフェイスを呼び出すと、プリンタドライバの拡張部である605に直接入力データであるプリントチケット等が渡されることになる。プリンタドライバの拡張部である605は、渡されたプリントチケット等の情報に応じたプリントケーパビリティを生成し、直接アプリケーション604に生成したプリントケーパビリティを返す。
FIG. 6 is a schematic diagram showing the relationship with the printer driver when print settings are made from the print ticket
図7は、プリンタドライバが公開する独自のインターフェースの一部である。
図7はC言語の関数として定義している。OSが定義するプリンタドライバインターフェース関数PTGetPrintCapabilitiesとは名前が異なりかつ第二引数LPCWSTR pScopeが追加されている。他のところの関数仕様はほぼ同等なので、ここでは説明を省略する。なお、PTGetPrintCapabilities関数の詳細については、http://msdn2.microsoft.com/en−us/library/ms536107.aspxにて確認できる。
FIG. 7 is a part of a unique interface published by the printer driver.
FIG. 7 is defined as a C language function. The name is different from the printer driver interface function PTGetPrintCapabilities defined by the OS, and the second argument LPCWSTR pScope is added. Since the function specifications in other places are almost the same, the explanation is omitted here. For details of the PTGetPrintCapabilities function, refer to http: // msdn2. Microsoft. com / en-us / library / ms536107. It can be confirmed by aspx.
図8は、図7の関数の処理フローを示している。ステップ801で第二引数からスコープ文字列を取得する。ステップ802で第三引数からプリントチケットを取得する。ステップ803はプリンタドライバが保持するデバイスのモデル別情報にアクセスする。一般に、803でアクセスするデータはローカルファイルであることが多い。ステップ804でpScopeがNULLだったどうかの判定をする。NULLの場合は、従来のPTGetPrintCapabilitiesと全く同じ動作する。すなわち、続くステップ805でフルセットのプリントケーパビリティを生成し、ステップ806で第四引数としてプリントケーパビリティを返却する。ステップ804でpScopeがNULL以外の場合は、ステップ807へ進む。ステップ807では、pScopeが指す文字列が“PageImageableSize”だったどうかの判定をする。“PageImageableSize”だった場合、PageImageableSizeプロパティのみ保持する小さなプリントケーパビリティを生成する。そして、ステップ806へ進む。ステップ807でpScopeが指す文字列が“PageImageableSize”以外の場合は、ステップ809にてエラー処理をする。
FIG. 8 shows a processing flow of the function of FIG. In
図9は、図8のステップ808で生成したプリントケーパビリティの実例を示す。
FIG. 9 shows an example of the print capability generated in
なお、本実施形態においては、新インターフェース対応アプリ604が直接プリンタドライバのプリントチケット入出力部605を呼びだすことによって実現している。ここでは説明を省略するが、OS層で602相当のインターフェースが用意されていて、アプリケーションはOS層を呼び出し、プリンタドライバは、そのインターフェースを実装する、といった構成であってもかまわない。
In this embodiment, the new interface
150 プリンタ
300 ホストコンピュータ
401 アプリケーション
403 プリンタドライバ
150
Claims (7)
前記入力手段により入力されたプリントチケットとプリントケーパビリティのスコープとに基づきプリントケーパビリティを生成する手段と、
前記生成したプリントケーパビリティをアプリケーションに返却する返却手段とを有することを特徴とする情報処理装置。 An input means for inputting a print ticket and a scope of print capability;
Means for generating a print capability based on the print ticket inputted by the input means and a scope of the print capability;
An information processing apparatus comprising return means for returning the generated print capability to an application.
前記入力手段により入力されたプリントチケットとプリントケーパビリティのスコープとに基づきプリントケーパビリティを生成するステップと、
前記生成したプリントケーパビリティをアプリケーションに返却する返却ステップとを有することを特徴とする情報処理装置。 An input step for entering the scope of the print ticket and print capability;
Generating a print capability based on the print ticket input by the input means and a scope of the print capability;
A return step for returning the generated print capability to the application.
前記入力手段により入力されたプリントチケットとプリントケーパビリティのスコープとに基づきプリントケーパビリティを生成するステップと、
前記生成したプリントケーパビリティをアプリケーションに返却する返却ステップとをコンピュータに実行させるためのプログラム。 An input step for entering the scope of the print ticket and print capability;
Generating a print capability based on the print ticket input by the input means and a scope of the print capability;
A program for causing a computer to execute a return step of returning the generated print capability to an application.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2007326056A JP2009146362A (en) | 2007-12-18 | 2007-12-18 | Information processor, information processing method, program and recording medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2007326056A JP2009146362A (en) | 2007-12-18 | 2007-12-18 | Information processor, information processing method, program and recording medium |
Publications (1)
Publication Number | Publication Date |
---|---|
JP2009146362A true JP2009146362A (en) | 2009-07-02 |
Family
ID=40916861
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2007326056A Pending JP2009146362A (en) | 2007-12-18 | 2007-12-18 | Information processor, information processing method, program and recording medium |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP2009146362A (en) |
-
2007
- 2007-12-18 JP JP2007326056A patent/JP2009146362A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP4785578B2 (en) | Information processing apparatus and method | |
JP4785579B2 (en) | Information processing apparatus, print setting reflection method and program in information processing apparatus | |
US8498002B2 (en) | Information processing apparatus capable of customizing device driver, information processing method, and control program | |
JP4651112B2 (en) | Information processing apparatus, control method therefor, and program | |
KR100838871B1 (en) | An information processing apparatus, an information processing method, and a storage medium | |
US8537438B2 (en) | Information processing apparatus in which a plurality of types of print drivers and plurality of graphics units run, control method therefor, and program | |
US8451463B2 (en) | Information processing apparatus and information processing method | |
US20060221361A1 (en) | Print control apparatus, print control method, and program for implementing the method | |
JP2009211695A (en) | Method of building print container and gui program | |
JP2002091728A (en) | Information processor, printing system and command generating method | |
JP6833419B2 (en) | Information processing equipment, methods and programs | |
JP6089542B2 (en) | Print control apparatus, print control method, and program | |
JP2017033052A (en) | Control device and program in image forming apparatus | |
JP2009003712A (en) | Printing system and control method | |
US20040263892A1 (en) | Information processisng apparatus, information processing method, and control program | |
JP2009146362A (en) | Information processor, information processing method, program and recording medium | |
JP2008217433A (en) | Information processor, information processing method, program, and storage medium | |
JP2006215725A (en) | Print system, printer management method, computer-readable storage medium storing program, and program | |
JP5611014B2 (en) | Information processing apparatus, control method thereof, and program | |
JP2005159764A (en) | Recording method, apparatus, program, and storage medium | |
JP2006277237A (en) | Host device | |
JP2006228103A (en) | Information processor | |
JP2007066063A (en) | Method, device and program for print control | |
JP2006338166A (en) | Information processor, its control method and program | |
JP2000218901A (en) | Apparatus and method for processing information and memory medium for storing computer readable program |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
RD04 | Notification of resignation of power of attorney |
Free format text: JAPANESE INTERMEDIATE CODE: A7424 Effective date: 20100201 |
|
RD01 | Notification of change of attorney |
Free format text: JAPANESE INTERMEDIATE CODE: A7421 Effective date: 20100630 |