[go: up one dir, main page]

JP4857135B2 - Information processing apparatus, information processing method, program, and storage medium - Google Patents

Information processing apparatus, information processing method, program, and storage medium Download PDF

Info

Publication number
JP4857135B2
JP4857135B2 JP2007019469A JP2007019469A JP4857135B2 JP 4857135 B2 JP4857135 B2 JP 4857135B2 JP 2007019469 A JP2007019469 A JP 2007019469A JP 2007019469 A JP2007019469 A JP 2007019469A JP 4857135 B2 JP4857135 B2 JP 4857135B2
Authority
JP
Japan
Prior art keywords
preview
print
document data
layout
document
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.)
Expired - Fee Related
Application number
JP2007019469A
Other languages
Japanese (ja)
Other versions
JP2008186254A (en
Inventor
健一郎 魚谷
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 JP2007019469A priority Critical patent/JP4857135B2/en
Priority to US11/953,747 priority patent/US8537408B2/en
Publication of JP2008186254A publication Critical patent/JP2008186254A/en
Application granted granted Critical
Publication of JP4857135B2 publication Critical patent/JP4857135B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Description

本発明は、例えば印刷処理を行う前に、印刷イメージをユーザが認識可能に表示する、いわゆるプレビュー機能等を有する情報処理装置、情報処理方法、プログラム、及び記憶媒体に関する。   The present invention relates to an information processing apparatus having a so-called preview function, an information processing method, a program, and a storage medium that display a print image in a recognizable manner before a print process, for example.

従来より、印刷前に印刷イメージを取得して画面に表示する技術が提案されている。   Conventionally, a technique for acquiring a print image before printing and displaying it on a screen has been proposed.

このような技術の一例として、プリンタが解釈可能な印刷コマンドをプリンタに接続された計算機(データ処理装置)によって解析し、その計算機でCMYKプレーン毎に展開することによって印刷イメージを生成する手法が知られている。また、プリンタに接続された計算機から当該プリンタに印刷コマンドを送信した後、その計算機は当該プリンタ内部で作成された印刷イメージを受信し、受信した印刷イメージに基づいて表示を行なう手法が一般に知られている。   As an example of such a technique, a method is known in which a print command interpretable by a printer is analyzed by a computer (data processing device) connected to the printer, and the computer generates a print image by developing for each CMYK plane. It has been. Further, a method is generally known in which after a print command is transmitted from a computer connected to the printer to the printer, the computer receives a print image created in the printer and performs display based on the received print image. ing.

ここで、オペレーティングシステム(OS)としてMicrosoft社のWindows(登録商標)を搭載した計算機を用いた印刷システムにおいて、アプリケーションプログラム(アプリケーション)等で生成された印刷データは、OS標準のデータ形式でスプールファイルに格納される。OSは印刷データを印刷するためにプリンタドライバを呼び出す。そしてプリンタドライバが、スプールファイルに格納された印刷データを読み取り、イメージ生成処理部により印刷イメージを作成し、さらにプリンタが解釈可能な印刷コマンドに変換する。印刷コマンドはプリンタに送信され、プリンタは印刷コマンドを解釈し、記録媒体に像を形成することで印刷処理が実行される。   Here, in a printing system using a computer equipped with Windows (registered trademark) of Microsoft Corporation as an operating system (OS), print data generated by an application program (application) or the like is a spool file in an OS standard data format. Stored in The OS calls a printer driver to print the print data. The printer driver reads the print data stored in the spool file, creates a print image by the image generation processing unit, and further converts the print command into a print command that can be interpreted by the printer. The print command is transmitted to the printer, and the printer interprets the print command and forms an image on the recording medium to execute the printing process.

この印刷システムにおいてプレビュー機能を提供するために、プリンタドライバは印刷処理を開始した時に、印刷イメージを表示するプレビューアを実行する。そして画像生成部はプレビュー用の印刷イメージを作成し、プレビューアは当該プレビュー用の印刷イメージを表示する。つまり、プリンタドライバにおいて、印刷イメージを作成する当該画像生成部と、印刷イメージを表示する当該プレビューアとが協調することにより、プレビュー機能が実現される(特許文献1参照)。   In order to provide a preview function in this printing system, the printer driver executes a previewer that displays a print image when printing processing is started. The image generation unit creates a print image for preview, and the previewer displays the print image for preview. That is, in the printer driver, a preview function is realized by cooperation between the image generation unit that creates a print image and the previewer that displays the print image (see Patent Document 1).

また、印刷ジョブを結合する機能を有する印刷システムにおけるプレビューでは、それぞれの印刷ジョブのレイアウトを考慮したプレビューを行える仕組みが考案されている。印刷すべきデータを中間コード形式に変換した印刷ジョブを結合して1つの結合ジョブを生成する際に、結合ジョブ内のそれぞれの印刷ジョブのレイアウト情報を個別に保存する。結合ジョブのプレビューを表示する際には、プレビューを行うページに対応するレイアウト情報を参照することで、結合ジョブ内のそれぞれの印刷ジョブのレイアウトを再現する。また、中間データの他にレイアウト情報を持つことで、結合ジョブ内のそれぞれの印刷ジョブのレイアウト情報を、同一結合ジョブ内の他の印刷ジョブに影響を与えることなくプレビュー中に変更することができる(特許文献2参照)。   In addition, in a preview in a printing system having a function for combining print jobs, a mechanism has been devised that allows a preview that takes into account the layout of each print job. When a print job obtained by converting data to be printed into an intermediate code format is combined to generate one combined job, layout information of each print job in the combined job is individually saved. When displaying the preview of the combined job, the layout of each print job in the combined job is reproduced by referring to the layout information corresponding to the page to be previewed. Also, by having layout information in addition to the intermediate data, the layout information of each print job in the combined job can be changed during the preview without affecting other print jobs in the same combined job. (See Patent Document 2).

上記に加え、画像生成部が生成したプレビュー用の印刷イメージに対し、プレビューア自身が加工を施してからプレビュー表示を行うことによって、CD−R等の円盤状の記録媒体や複雑な短形であるメディアに印刷を行うことがある。その場合等に、事前にプレビューにて印刷内容を確認するに際し、メディアの領域の内外に印字される領域をより識別できるようにする手段(CD−R領域表示機能と称す)が知られている(特許文献3参照)。   In addition to the above, the preview print image generated by the image generation unit is processed by the previewer itself, and then a preview display is performed, so that a disc-shaped recording medium such as a CD-R or a complicated short form can be obtained. Sometimes print on some media. In such a case, a means (referred to as a CD-R area display function) is known that makes it possible to more clearly identify areas printed on the inside and outside of the area of the medium when confirming the print contents in advance in a preview. (See Patent Document 3).

また、プレビュー内容と並行して印刷設定の内容を確認する手法、ならびに、プレビュー表示中に印刷設定の間違いに気づいた場合に、プレビュー表示中に印刷設定を変更し実印刷を継続できる手段(印刷設定変更機能と称す)が知られている(特許文献4参照)。
特開2004−102618号公報 特開2001−130082号公報 特開2004−110807号公報 特開2006−011847号公報
Also, a method for checking the contents of the print settings in parallel with the preview contents, and a means that allows the user to continue the actual printing by changing the print settings during the preview display when a mistake in the print settings is noticed during the preview display. (Referred to as a setting change function) (see Patent Document 4).
JP 2004-102618 A Japanese Patent Laid-Open No. 2001-130082 JP 2004-110807 A JP 2006-011847 A

ところで、前記のような従来の技術には次のような解決すべき課題があった。
前記従来例の第一の手法では、プリンタドライバがOSに呼び出されている間にプレビューの実行が可能であった。OSがプリンタドライバを呼び出し印刷処理を行うのは、印刷キュー中の先頭の印刷ジョブを対象としている。通常、印刷処理の対象となる印刷ジョブは印刷キューにつき一つのみとなる。従って、プレビュー機能を実行している間は、他の印刷ジョブは印刷対象にならない。このため印刷キュー中に印刷処理中の印刷ジョブがある場合、他の印刷ジョブのプレビュー機能を実行できない欠点がある。また、印刷処理中の印刷ジョブにおいてプレビュー機能を実行している際、少なくともプレビュー機能を実行しているジョブの処理が終了するまで、同一印刷キュー中の他のジョブは印刷されない欠点がある。また、同OSを用いれば複数のユーザが同時に印刷ジョブを発行することがあるにも関らず、複数のユーザが同時にプレビュー機能を利用できないことが問題である。
By the way, the conventional techniques as described above have the following problems to be solved.
In the first method of the conventional example, the preview can be executed while the printer driver is called by the OS. The OS calls the printer driver and performs print processing for the first print job in the print queue. Normally, there is only one print job to be subjected to print processing per print queue. Therefore, while the preview function is being executed, other print jobs are not to be printed. For this reason, when there is a print job being processed in the print queue, there is a disadvantage that the preview function of another print job cannot be executed. Further, when the preview function is executed in a print job being printed, there is a drawback that other jobs in the same print queue are not printed until at least processing of the job executing the preview function is completed. Further, when the OS is used, there is a problem that a plurality of users cannot use the preview function at the same time even though a plurality of users may issue a print job at the same time.

レイアウト処理の視点では、プレビュー用の印刷イメージを作成する際にレイアウト処理を行い、さらにその時点では上記印刷ジョブは中間データなので、プレビュー画面を表示させるためには、ビットマップ化処理を行わなければならない。このように画面表示用にビットマップ化処理を行ったプレビュー用のビットマップデータは、実際に印刷処理を続行させるにおいて、必ずしもプリンタが必要とするビットマップデータに適合していないので、流用することができない。すなわち、実際に印刷を行うための印刷イメージを作成するにあたってはレイアウト処理を再度行う必要がある。つまり同一のレイアウト処理を印刷イメージを作成する度に繰り返し行う必要があり、同一処理を重複して行う問題がある。   From the viewpoint of layout processing, layout processing is performed when creating a print image for preview, and since the print job is intermediate data at that time, bitmap processing must be performed to display the preview screen. Don't be. The bitmap data for preview that has been subjected to bitmap processing for screen display in this way does not necessarily conform to the bitmap data required by the printer in actually continuing the printing processing, so it should be diverted. I can't. That is, it is necessary to perform the layout process again when creating a print image for actual printing. That is, it is necessary to repeat the same layout process every time a print image is created, and there is a problem that the same process is repeated.

前記従来例の第二の手法では、複数の印刷ジョブを結合するにあたりレイアウト情報を別途保存するため、プレビュー機能で印刷イメージを表示する際にレイアウト処理が必要となる。また、プレビュー中にレイアウト情報を変更できることから、実際にプリンタで印刷する際にもレイアウト処理が必要になる。つまり、プレビュー中にレイアウト情報が変更されなかった場合は、同一のレイアウト処理をプレビュー時と実印刷時に繰り返し行う必要があり、同一処理を重複して行う問題がある。   In the second method of the conventional example, layout information is separately stored when a plurality of print jobs are combined. Therefore, layout processing is required when displaying a print image with the preview function. In addition, since layout information can be changed during preview, layout processing is also required when actually printing with a printer. That is, if the layout information is not changed during the preview, it is necessary to repeat the same layout process at the time of preview and actual printing, and there is a problem that the same process is repeated.

本発明は上記従来の問題点に鑑み、同一のレイアウト処理を重複して行わないことで効率的に処理を行う、プレビュー機能を有する情報処理装置を提供することを目的とする。また、プレビュー時に付加されたプレビュー固有の情報は印刷しない情報処理装置を提供することを目的とする。   In view of the above-described conventional problems, an object of the present invention is to provide an information processing apparatus having a preview function that efficiently performs processing by not performing the same layout processing repeatedly. It is another object of the present invention to provide an information processing apparatus that does not print preview-specific information added at the time of preview.

上記目的を達成するために、本発明の情報処理装置は、
スプールファイルから文書データを入力するレイアウト処理手段と、
前記レイアウト処理手段から文書データを入力するプレビュー文書作成手段と、
前記プレビュー文書作成手段から文書データを入力する印刷コマンド生成処理手段と、
プレビュー用文書データに基づきプレビューを制御するプレビュー制御手段とを有し、
前記レイアウト処理手段は、プレビュー済みフラグが設定されている場合、スプールファイルから入力された文書データを印刷設定情報に基づきレイアウト処理することなく前記プレビュー文書作成手段に出力し、プレビュー済みフラグが設定されていない場合、印刷設定情報に基づきスプールファイルから入力された文書データのレイアウト処理を行い、レイアウト処理された文書データを前記プレビュー文書作成手段に出力し、
前記プレビュー文書作成手段は、プレビュー済みの場合またはプレビューが設定されていない場合、レイアウト処理された文書データを前記印刷コマンド生成処理手段に出力し、プレビュー済みでなくプレビューが設定されている場合、プレビュー済みフラグを設定するとともに、レイアウト処理された文書データに基づきプレビュー用文書データを作成し、
前記プレビュー制御手段は、印刷指示に基づきプレビュー表示固有の描画命令を削除したプレビュー済みフラグが設定された文書データを前記スプールファイルに出力し、
前記印刷コマンド生成処理手段は、レイアウト処理された文書データをプリンタが解釈可能な印刷コマンドに変換することを特徴とする。
In order to achieve the above object, an information processing apparatus of the present invention provides:
Layout processing means for inputting document data from a spool file;
Preview document creation means for inputting document data from the layout processing means;
Print command generation processing means for inputting document data from the preview document creation means;
Preview control means for controlling the preview based on the document data for preview,
When the previewed flag is set, the layout processing unit outputs the document data input from the spool file to the preview document creating unit without performing layout processing based on the print setting information, and the previewed flag is set. If not, the layout processing of the document data input from the spool file based on the print setting information is performed, and the layout-processed document data is output to the preview document creation means,
The preview document creation means outputs the document data subjected to layout processing to the print command generation processing means when previewed or when no preview is set, and when preview is not set and preview is set, Set the completed flag, create document data for preview based on the document data that has undergone layout processing,
The preview control means outputs document data in which a previewed flag in which a rendering instruction specific to a preview display is deleted based on a print instruction is set to the spool file,
The print command generation processing means converts the layout processed document data into a print command that can be interpreted by a printer.

また、本発明の情報処理装置は、
スプールファイルから文書データを入力するレイアウト処理手段と、
前記レイアウト処理手段から文書データを入力するプレビュー文書作成手段と、
前記プレビュー文書作成手段から文書データを入力する印刷コマンド生成処理手段と、
プレビュー用文書データに基づきプレビューを制御するプレビュー制御手段とを有し、
前記レイアウト処理手段は、プレビュー済みフラグが設定されている場合、スプールファイルから入力された文書データを印刷設定情報に基づきレイアウト処理することなく前記プレビュー文書作成手段に出力し、プレビュー済みフラグが設定されていない場合、印刷設定情報に基づきスプールファイルから入力された文書データのレイアウト処理を行い、レイアウト処理された文書データを前記プレビュー文書作成手段に出力し、
前記プレビュー文書作成手段は、プレビュー済みの場合またはプレビューが設定されていない場合、レイアウト処理された文書データを前記印刷コマンド生成処理手段に出力し、プレビュー済みでなくプレビューが設定されている場合、プレビュー済みフラグを設定するとともに、レイアウト処理された文書データに基づきプレビュー用文書データを作成し、
前記プレビュー制御手段は、印刷指示に基づきプレビュー済みフラグが設定された文書データを前記スプールファイルに出力し、
前記印刷コマンド生成処理手段は、レイアウト処理された文書データのうちプレビュー表示固有の描画命令は印刷コマンドに変換せず、レイアウト処理された文書データのうちプレビュー表示固有の描画命令以外の描画命令をプリンタが解釈可能な印刷コマンドに変換することを特徴とする。
The information processing apparatus of the present invention
Layout processing means for inputting document data from a spool file;
Preview document creation means for inputting document data from the layout processing means;
Print command generation processing means for inputting document data from the preview document creation means;
Preview control means for controlling the preview based on the document data for preview,
When the previewed flag is set, the layout processing unit outputs the document data input from the spool file to the preview document creating unit without performing layout processing based on the print setting information, and the previewed flag is set. If not, the layout processing of the document data input from the spool file based on the print setting information is performed, and the layout-processed document data is output to the preview document creation means,
The preview document creation means outputs the document data subjected to layout processing to the print command generation processing means when previewed or when no preview is set, and when preview is not set and preview is set, Set the completed flag, create document data for preview based on the document data that has undergone layout processing,
The preview control means outputs document data in which a previewed flag is set based on a print instruction to the spool file,
The print command generation processing means does not convert a drawing command specific to the preview display in the layout processed document data into a print command, and prints a drawing command other than the drawing command specific to the preview display in the layout processed document data. Is converted into a print command that can be interpreted.

上記構成により本発明によればプレビューアから印刷開始を指示してもレイアウト処理は1回しか行わない為、コンピュータの負荷が軽減する効果が得られる。また、プレビュー時に付加されたプレビュー固有の情報を印刷させない情報処理装置を提供できる。   With the above configuration, according to the present invention, the layout process is performed only once even when the previewer instructs to start printing, so that the effect of reducing the load on the computer can be obtained. In addition, an information processing apparatus that does not print preview-specific information added at the time of preview can be provided.

以下、図面に示す実施例に基づき本発明を詳細に説明する。尚、本文中のXPSとはXML Paper Specificationの略で、Microsoft社が開発したオープン規格の電子文書フォーマットの一つである。   Hereinafter, the present invention will be described in detail based on embodiments shown in the drawings. The XPS in the text is an abbreviation for XML Paper Specification, and is one of open standard electronic document formats developed by Microsoft Corporation.

<XPS文書の構成>
本文の理解を容易にするため、まずXPSについて簡単に説明する。XPS文書はFixedDocumentSequence(以下FDS)をルートとするツリー構造になっている。FDSは複数のFixedDocument(以下FD)を持ち、FDは複数のFixedPage(以下FP)を持つ。FDSとFDとFPのそれぞれは、XPSパートと呼ばれることがある。FPは文書のページの内容をXML形式で記述しており、実際に表示または印刷される内容を含んでいる。FPのページ内容で使用されるフォントや画像等の資源は複数のFPで共有することができる。また、FDSとFDとFPははそれぞれ印刷設定をPrintTicket(以下PT)で持つことができる。PTはXPS文書を印刷する際の印刷設定をXML形式で記述したものである。ここで各FPを印刷する際に使用する印刷設定は、FDSのPTと、印刷対象FPの親FDのPTと、印刷対象FPのPTをマージしたPTとなる。
<Configuration of XPS document>
In order to facilitate understanding of the text, XPS will be briefly described first. The XPS document has a tree structure with a Fixed Document Sequence (hereinafter referred to as FDS) as a root. The FDS has a plurality of Fixed Documents (hereinafter referred to as FD), and the FD has a plurality of Fixed Pages (hereinafter referred to as FP). Each of FDS, FD, and FP may be referred to as an XPS part. The FP describes the contents of a document page in XML format, and includes contents that are actually displayed or printed. Resources such as fonts and images used in the FP page contents can be shared by a plurality of FPs. Each of the FDS, FD, and FP can have a print setting as a PrintTicket (hereinafter referred to as PT). PT describes the print settings for printing an XPS document in XML format. Here, the print setting used when printing each FP is the PT obtained by merging the PT of the FDS, the PT of the parent FD of the print target FP, and the PT of the print target FP.

図5はXPS文書の論理構造を示したブロック図の一例である。XPS文書501の論理構造はFDS503がルートとなるツリー構造となっている。FDS503は子としてFD511とFD513を有する。FD511は子としてFP521とFP523を有する。FD513は子としてFP525を有する。印刷設定を記述したPTについては、FDS503がPT531を、FD511がPT533を、FP521がPT535を、FD513がPT537をそれぞれ保持している。FP523とFP525はPTを保持していない。また、FP521とFP523がフォントや画像等の資源541を共有しており、FP525はフォントや画像等の資源543を利用している。ここで例えばFP521を印刷する際に使用するPTは、PT531とPT533とPT535をマージしたPTとなる。   FIG. 5 is an example of a block diagram showing the logical structure of an XPS document. The logical structure of the XPS document 501 is a tree structure having the FDS 503 as a root. The FDS 503 includes FD 511 and FD 513 as children. The FD 511 has FP 521 and FP 523 as children. The FD 513 has an FP 525 as a child. As for PTs describing print settings, the FDS 503 holds PT531, the FD511 holds PT533, the FP521 holds PT535, and the FD513 holds PT537. FP 523 and FP 525 do not hold PT. The FP 521 and the FP 523 share a resource 541 such as a font and an image, and the FP 525 uses a resource 543 such as a font and an image. Here, for example, the PT used when printing the FP 521 is a PT obtained by merging PT 531, PT 533, and PT 535.

以上説明したように、XPS文書は論理的にXPSパートという概念を用いると理解が容易になる。ただし、XPS文書自体はバイト列(ストリーム)として取り扱いが可能である為、XPS文書内部のデータを指す場合はXPSデータという言葉を用いることもある。従って本文においてもXPSパートとXPSデータという言葉を用いて実施例を説明する。   As described above, an XPS document can be easily understood if the concept of an XPS part is logically used. However, since the XPS document itself can be handled as a byte string (stream), the term XPS data is sometimes used when referring to the data inside the XPS document. Therefore, the embodiment will be described using the words XPS part and XPS data in the text.

<印刷システムの構成>
図1は本発明の実施の一形態に係る印刷システムの構成を示すブロック図である。プリンタ101は、画像形成を行うインクジェット方式のプリンタであり、後述するデータ処理装置102で生成された印刷コマンドに基づいて記録媒体100に画像の形成を行う。プリンタの種類については特に問わないが、ここではインクジェット方式のカラープリンタを想定している。データ処理装置102は、アプリケーションが印刷ジョブを作成し、プリンタドライバが印刷ジョブのスプールデータから、接続されたプリンタ101の印刷動作を制御する印刷コマンドの生成を行う。本実施形態ではデータ処理装置102としてパーソナルコンピュータを用いている。印刷の設定に関するユーザからの指示や入力を受ける役割も果たす。データ処理装置102は、各種機能ブロック130〜135、140〜143によって構成される。また、データ処理装置102には、データ処理装置102を制御するOSが組み込まれており、このOS上で各種機能ブロックが動作する。通信インタフェース103は、データ処理装置102とプリンタ101を接続する通信インタフェースである。本実施形態ではシリアルインタフェースであるUSBを用いているが、この他に、IEEE1394、Ethernet(登録商標)、IrDA、IEEE802.11、電力線などのシリアルインタフェースや、セントロニクス、SCSIなどのパラレルインタフェースを利用することもできる。通信を実現するものであれば有線/無線を問わずどのようなインタフェースであっても構わない。このように、本実施形態における印刷システムとは、単体の装置ではなく、データ処理装置102と画像形成を行うプリンタ101とが特定の双方向インタフェースで接続された構成をとっている。しかしながら、この例に限られることなく、このようなデータ処理装置とプリンタの機能が一体となった装置一体型の印刷システムであってもよい。尚、プリンタ101及びデータ処理装置102とも本実施形態の特徴を説明する上で特に必要ないと思われる機能については省略する。
<Configuration of printing system>
FIG. 1 is a block diagram showing a configuration of a printing system according to an embodiment of the present invention. The printer 101 is an ink jet printer that forms an image, and forms an image on the recording medium 100 based on a print command generated by a data processing apparatus 102 described later. The type of printer is not particularly limited, but here, an ink jet color printer is assumed. In the data processing apparatus 102, an application creates a print job, and a printer driver generates a print command for controlling a printing operation of the connected printer 101 from spool data of the print job. In this embodiment, a personal computer is used as the data processing apparatus 102. It also plays a role of receiving instructions and inputs from the user regarding print settings. The data processing apparatus 102 includes various functional blocks 130 to 135 and 140 to 143. The data processing apparatus 102 incorporates an OS that controls the data processing apparatus 102, and various functional blocks operate on the OS. The communication interface 103 is a communication interface that connects the data processing apparatus 102 and the printer 101. In this embodiment, a USB which is a serial interface is used. In addition to this, a serial interface such as IEEE1394, Ethernet (registered trademark), IrDA, IEEE802.11, or a power line, or a parallel interface such as Centronics or SCSI is used. You can also. Any interface can be used regardless of wired / wireless as long as communication is realized. As described above, the printing system according to the present embodiment is not a single apparatus, but has a configuration in which the data processing apparatus 102 and the printer 101 that performs image formation are connected through a specific bidirectional interface. However, the present invention is not limited to this example, and an apparatus-integrated printing system in which the functions of the data processing apparatus and the printer are integrated may be used. It should be noted that functions that are not particularly necessary for describing the features of the present embodiment in the printer 101 and the data processing apparatus 102 are omitted.

中央制御部141は、データ処理装置102の各種機能を制御し、CPUの持つ機能がこれに該当する。入力操作部142は、ユーザの意図を印刷設定に反映させるための各種入力機器から構成される。設定情報通知部143は、印刷設定をユーザに通知する。通知方法としては、モニタなどの表示装置を使用する場合や音声による通知などが考えられる。I/F制御部140は、データ処理装置102のインタフェース機能を司る。I/F制御部140はUSBのホスト側のコントローラによって構成され、USBホストとしての機能を有する。USBホストとしての機能の一部はOSやドライバなどソフトウェアによっても構成される。記憶部144はOSやアプリケーションプログラムやプリンタドライバの命令コードを格納したり、ソフトウェアが動作するにあたり一時的にデータを保存・読込みするのに使用される。記憶部144は例えばハードディスクドライブや半導体メモリなどで構成される。プリンタドライバ130は、印刷のための各種設定や印刷データの生成及びプリンタの制御をデータ処理装置102上で行うためのソフトウェアである。中央制御部141によりプリンタドライバのプログラムが実行されて、印刷設定処理部131や、レイアウト処理部とプレビュー文書作成部と印刷コマンド生成処理部を含む印刷コマンド生成部134、データ通信処理部133などの機能が実現される。印刷設定処理部131は、用紙の設定や印刷品位の設定などを含む各種印刷設定を行う。印刷設定処理部131は、ユーザからの指示や入力を受け付け、設定された内容を表示もしくは通知する機能を有する。印刷コマンド生成部134では、まず、レイアウト成処理部においてアプリケーションにより作成された印刷ジョブのページのレイアウト処理を行う。その後、プレビュー文書作成部において印刷設定に応じプレビュー用文書を作成する。そして、印刷コマンド変換処理部においてレイアウト処理後の印刷データを印刷コマンドに変換する。印刷コマンド生成部134で作成された印刷コマンドは、データ通信処理部133を介してI/F制御部140に送られ、プリンタ101へ印刷コマンドが送られる。プレビュー制御部135は、プレビュー文書作成部によって作成されるプレビュー用文書を用いて、プレビュー機能をユーザに提供する。ここでプレビュー機能とはプレビュー用文書を用いて印刷イメージを情報通知部143を介して表示し、ユーザからの指示を入力操作部142を介して取得し、表示する印刷イメージを切り替えたり、印刷を続行したり、印刷をキャンセルしたりする機能のことを指す。   The central control unit 141 controls various functions of the data processing apparatus 102, and the functions of the CPU correspond to this. The input operation unit 142 includes various input devices for reflecting the user's intention in the print settings. The setting information notification unit 143 notifies the user of print settings. As a notification method, a case where a display device such as a monitor is used or a voice notification is considered. The I / F control unit 140 manages the interface function of the data processing apparatus 102. The I / F control unit 140 is configured by a USB host-side controller and has a function as a USB host. Some functions as a USB host are also configured by software such as an OS and a driver. The storage unit 144 stores OS, application programs, and printer driver instruction codes, and is used to temporarily store and read data when the software operates. The storage unit 144 is configured by, for example, a hard disk drive or a semiconductor memory. The printer driver 130 is software for performing various settings for printing, print data generation, and printer control on the data processing apparatus 102. A printer driver program is executed by the central control unit 141, and a print setting processing unit 131, a print command generation unit 134 including a layout processing unit, a preview document generation unit, and a print command generation processing unit, a data communication processing unit 133, and the like. Function is realized. The print setting processing unit 131 performs various print settings including paper settings and print quality settings. The print setting processing unit 131 has a function of receiving an instruction or input from a user and displaying or notifying the set content. The print command generation unit 134 first performs page layout processing for a print job created by an application in the layout processing unit. Thereafter, a preview document is created in the preview document creation unit in accordance with the print settings. The print command conversion processing unit converts the print data after layout processing into a print command. The print command created by the print command generation unit 134 is sent to the I / F control unit 140 via the data communication processing unit 133, and the print command is sent to the printer 101. The preview control unit 135 provides a preview function to the user using the preview document created by the preview document creation unit. Here, the preview function uses a preview document to display a print image via the information notification unit 143, obtains an instruction from the user via the input operation unit 142, switches the print image to be displayed, and performs printing. Refers to the function to continue or cancel printing.

<プリンタドライバの動作>
図2は、本発明におけるプリンタドライバの実施形態を説明するために図1の印刷システムをOSの印刷サポート機能とプリンタドライバを中心に概念的に表したブロック図である。図2において、本発明に関るモジュールは、印刷設定処理部の機能を有するユーザインタフェースモジュール211と、印刷コマンド生成部の機能を有するフィルターパイプライン207である。ここでフィルターパイプライン207は、レイアウトフィルター213と、プレビューフィルター215と、印刷コマンドフィルター217で構成される。なお、レイアウトフィルター213はXPSデータのページをレイアウト処理する機能を有する。プレビューフィルター215はプレビュー機能を提供するためのフィルターである。印刷コマンドフィルター217はXPSデータをプリンタが解釈可能な印刷コマンドに変換する機能を有する。
<Printer driver operation>
FIG. 2 is a block diagram conceptually showing the printing system of FIG. 1 centering on the OS print support function and the printer driver in order to explain the embodiment of the printer driver according to the present invention. In FIG. 2, modules relating to the present invention are a user interface module 211 having a function of a print setting processing unit and a filter pipeline 207 having a function of a print command generation unit. Here, the filter pipeline 207 includes a layout filter 213, a preview filter 215, and a print command filter 217. The layout filter 213 has a function of performing layout processing on a page of XPS data. The preview filter 215 is a filter for providing a preview function. The print command filter 217 has a function of converting XPS data into a print command that can be interpreted by the printer.

ここでフィルターとは、一般的に入力されたデータをもとに、加工、変換、無変換、生成等の工程を介して、何らかのデータを出力する機能を有するプログラムのことを称する。   Here, the filter generally refers to a program having a function of outputting some data through processes such as processing, conversion, no conversion, and generation based on input data.

図2における印刷システムでは、アプリケーション201が作成した文書の各ページの印刷データは、OSの印刷サポート機能203を通じてXPSスプールファイル205に一時的に蓄えられる。そして、これをプリンタドライバのフィルターパイプライン207がプリンタが解釈可能な印刷コマンドに変換してプリンタ231に供給して印刷するよう構成されている。   In the printing system in FIG. 2, the print data of each page of the document created by the application 201 is temporarily stored in the XPS spool file 205 through the OS print support function 203. Then, the printer driver's filter pipeline 207 converts this into a print command interpretable by the printer, and supplies the print command to the printer 231 for printing.

ユーザインタフェースモジュール211は、一般に印刷に使用する用紙サイズや印刷方向、その他の属性を設定する機能を提供する。同時に本発明におけるユーザインタフェースモジュール211は、プリンタによる印刷動作を開始する前に印刷イメージを表示するプレビューを設定する機能を有する。ユーザインタフェースモジュール211は、複数の印刷設定項目の設定値が格納された印刷設定情報をアプリケーション201に返却する。ユーザインタフェースモジュール211が提供する印刷設定ダイアログの一例については図3を用いて後述する。   The user interface module 211 provides a function for setting a paper size, a printing direction, and other attributes generally used for printing. At the same time, the user interface module 211 in the present invention has a function of setting a preview for displaying a print image before starting a printing operation by a printer. The user interface module 211 returns to the application 201 print setting information in which setting values of a plurality of print setting items are stored. An example of the print setting dialog provided by the user interface module 211 will be described later with reference to FIG.

アプリケーション201は作成した文書の印刷にあたり、OSの印刷サポート機能203に対して、印刷開始や印刷終了を通知したり、印刷設定を行うためにユーザインタフェースモジュール211から返却された印刷設定情報を通知したり、文書の各ページの描画開始や描画終了を通知する。OSの印刷サポート機能203は、アプリケーションが描画した内容や印刷設定情報をXPSスプールファイル205に格納する。   When printing the created document, the application 201 notifies the print support function 203 of the OS of the start and end of printing, and notifies the print setting information returned from the user interface module 211 to perform print settings. Or the drawing start or drawing end of each page of the document is notified. The OS print support function 203 stores the contents drawn by the application and the print setting information in the XPS spool file 205.

フィルターパイプライン207は一つ以上のフィルターで構成されており、印刷時にXPSスプールファイルから印刷設定情報とXPSパートとを読込み、プリンタが解釈可能な印刷コマンドに変換してプリンタ231に供給し、印刷を行う機能を有する。各フィルターはスプールされた印刷ジョブをデスプール際にOSの印刷サポート機能から呼び出される。スプールされたXPSデータはフィルターパイプライン207の各フィルターを通過するXPSデータのまま内容が編集され、或いはドライバ独自のデータ形式に変換され、最終的にプリンタが解釈可能な印刷コマンドに変換される。印刷ジョブのXPSデータを全て処理し終えた場合、或いは、印刷ジョブがキャンセルされた場合は、フィルターパイプライン207の各フィルターは動作を終了する。本実施形態におけるフィルターパイプライン207はレイアウト処理部であるレイアウトフィルター213と、プレビュー文書作成部であるプレビューフィルター215と、印刷コマンド変換部である印刷コマンドフィルター217で構成される。   The filter pipeline 207 includes one or more filters. When printing, the print setting information and the XPS part are read from the XPS spool file, converted into a print command interpretable by the printer, and supplied to the printer 231 for printing. It has a function to perform. Each filter is called from the OS print support function when despooling a spooled print job. The spooled XPS data is edited with the XPS data passing through each filter of the filter pipeline 207, or converted into a data format unique to the driver, and finally converted into a print command that can be interpreted by the printer. When all the XPS data of the print job has been processed, or when the print job has been canceled, each filter of the filter pipeline 207 ends its operation. The filter pipeline 207 in this embodiment includes a layout filter 213 that is a layout processing unit, a preview filter 215 that is a preview document creation unit, and a print command filter 217 that is a print command conversion unit.

レイアウトフィルター213は、XPSスプールファイル205に格納されたXPSデータを入力とし、印刷設定情報に基づきページのレイアウト処理を行い、レイアウト済みのXPSデータを出力する機能を有する。ただし、印刷設定情報にレイアウト設定がなされていない場合や、プレビュー済フラグが格納されている場合は、入力のXPSデータをそのまま出力する。本実施例におけるレイアウト処理とは例えば複数のページを一つの用紙面に印刷するN−up印刷や、一つのページを複数の用紙面に印刷するポスター印刷等を含む。   The layout filter 213 has a function of receiving XPS data stored in the XPS spool file 205, performing page layout processing based on print setting information, and outputting laid-out XPS data. However, if the layout setting is not set in the print setting information or the previewed flag is stored, the input XPS data is output as it is. The layout processing in this embodiment includes, for example, N-up printing that prints a plurality of pages on one sheet surface, poster printing that prints one page on a plurality of sheet surfaces, and the like.

プレビューフィルター215は、レイアウトフィルター213の出力を入力とし、印刷設定情報に基づきユーザにプレビュー機能を提供する。ただし、印刷設定情報のプレビュー設定がOFFである場合や、プレビュー済フラグが格納されている場合は、入力のXPSデータをそのまま出力する。印刷設定情報にプレビュー済フラグが格納されていなく、かつ、プレビュー設定がONである場合、プレビューフィルター215はFDSの印刷設定情報であるPTにプレビュー済フラグを格納する。続いてプレビュー制御モジュール219を起動し、プレビュー用XPS文書221を用意する。プレビューフィルター215は、プレビュー用XPS文書221にFDSを格納した後、入力のXPSパートをキャッシュすると共にプレビュー用XPS文書221に格納していく。入力の最後のXPSパートを処理する前に、プレビュー制御モジュール219から印刷続行の通知を受けた場合は、FDSとキャッシュしたXPSパートを出力し、残りのXPSパートを入力から取得し、そのまま出力する。また、プレビューフィルター215は、プレビュー用XPS文書221を完成させるとともに、各フィルターの処理を終了させる。   The preview filter 215 receives the output of the layout filter 213 and provides a preview function to the user based on the print setting information. However, when the preview setting of the print setting information is OFF or when a previewed flag is stored, the input XPS data is output as it is. When the preview setting flag is not stored in the print setting information and the preview setting is ON, the preview filter 215 stores the previewed flag in PT which is the FDS print setting information. Subsequently, the preview control module 219 is activated to prepare a preview XPS document 221. After storing the FDS in the preview XPS document 221, the preview filter 215 caches the input XPS part and stores it in the preview XPS document 221. If the print control notification is received from the preview control module 219 before processing the last input XPS part, the FDS and the cached XPS part are output, and the remaining XPS parts are acquired from the input and output as they are. . The preview filter 215 completes the preview XPS document 221 and ends the processing of each filter.

印刷コマンドフィルター217はプレビューフィルター215の出力を入力とし、印刷設定情報に従い、XPSデータをプリンタが解釈可能な印刷コマンドに変換し出力する機能を有する。印刷コマンドフィルター217が入力のXPSデータを一度イメージデータに変換する場合、一般的にレンダーフィルターと呼ばれる。レンダーフィルターはインクジェットプリンタに代表される廉価なラスタープリンタ用のプリンタドライバにおいて多く見られる。印刷コマンドフィルター217がレンダーフィルターとして動作する場合は、入力のXPSデータを一度イメージデータに変換する。その後、色空間の変換や二値化等の画像処理の過程を経て、ラスタープリンタが解釈可能な印刷コマンドに変換される。ページプリンタに代表される高機能なプリンタにおいて、プリンタが解釈できる印刷コマンドの種類にXPSが含まれるならば、印刷コマンドフィルター217は入力のXPSデータを編集しXPSデータを出力する。印刷コマンドフィルター217にて処理する必要がなければ、入力のXPSデータをそのまま出力するか、印刷コマンドフィルター217はプリンタドライバに含めなくても良いことは言うまでもない。   The print command filter 217 receives the output of the preview filter 215, and has a function of converting XPS data into a print command interpretable by the printer and outputting the print command in accordance with the print setting information. When the print command filter 217 once converts input XPS data into image data, it is generally called a render filter. Render filters are often found in inexpensive raster printer printer drivers such as inkjet printers. When the print command filter 217 operates as a render filter, the input XPS data is once converted into image data. After that, the image data is converted into a print command that can be interpreted by a raster printer through image processing such as color space conversion and binarization. In a high-function printer represented by a page printer, if XPS is included in the types of print commands that can be interpreted by the printer, the print command filter 217 edits input XPS data and outputs XPS data. Needless to say, if the print command filter 217 does not need to process the input XPS data, the print command filter 217 does not have to be included in the printer driver.

出力デバイスであるプリンタ231は、フィルターパイプライン207で生成された印刷コマンドを解釈し、可視画像を印刷用紙に対して形成する機能を持つ。印刷用紙241で図示される印刷結果の例は、レイアウトフィルター213が2−upの処理を行った場合を示している。   The printer 231 serving as an output device has a function of interpreting a print command generated by the filter pipeline 207 and forming a visible image on a print sheet. The example of the printing result illustrated on the printing paper 241 shows a case where the layout filter 213 performs 2-up processing.

ここで2−up印刷とは、XPSスプールファイル205に格納されている2つのページを縮小し、ユーザが見やすいように同一用紙面に配置したページを印刷することである。同様にN個のページを縮小し、同一用紙面に配置すればN−up印刷となる。従ってN−upのレイアウト処理によって作成されたレイアウト済みのページには、XPSスプールファイル205に格納されていた複数のページの内容に関するXML記述を含むことになる。例えばXPSスプールファイル205に格納されているページの内容に関するXML記述のサイズが一定だとすると、2−upのレイアウト処理後のページの内容に関するXML記述のサイズは約2倍となる。同様にN−upのレイアウト処理後のページの内容に関するXML記述のサイズは約N倍となる。従ってXPSスプールファイル205に格納されているページの内容が複雑な場合、ページの内容のXML記述のサイズが大きく成る為、レイアウト処理に要するコストが増加する。また、N−upの配置するページ数(N)が多くなるほどレイアウト処理に要するコストが増加する。   Here, the 2-up printing is to reduce the two pages stored in the XPS spool file 205 and print the pages arranged on the same sheet surface so that the user can easily see them. Similarly, if N pages are reduced and arranged on the same sheet surface, N-up printing is performed. Accordingly, the laid-out page created by the N-up layout process includes XML descriptions regarding the contents of a plurality of pages stored in the XPS spool file 205. For example, if the size of the XML description related to the contents of the page stored in the XPS spool file 205 is constant, the size of the XML description related to the contents of the page after the 2-up layout processing is approximately doubled. Similarly, the size of the XML description relating to the contents of the page after the N-up layout processing is about N times. Therefore, when the contents of the page stored in the XPS spool file 205 are complicated, the size of the XML description of the page contents increases, and the cost required for layout processing increases. Further, as the number of pages (N) arranged in N-up increases, the cost required for layout processing increases.

プレビュー制御モジュール219は、プレビュー用XPS文書221を読込み、ユーザにプレビューを提供する機能を有する。プレビュー制御モジュール219はユーザにプレビュー用のユーザインタフェースを提供し、印刷イメージを表示したり、ユーザの指示に従い表示するページの印刷イメージを切り替えたり、印刷を続行したり、印刷を中断したりする。プレビューフィルター215がプレビュー用XPS文書221にXPSデータを書き込んでいる間に印刷開始がユーザに指示された場合、プレビュー制御モジュール219はプレビューフィルター215に印刷続行を通知し終了する。プレビューフィルター215がプレビュー用XPS文書221にXPSデータを書き込んでいる間に印刷キャンセルがユーザに指示された場合、印刷ジョブのキャンセルを行い終了する。プレビュー用XPS文書221が完成した後に印刷開始がユーザに指示された場合、プレビュー用XPS文書221のデータを用い新規の印刷ジョブを作成し終了する。プレビュー用XPS文書221が完成した後に印刷キャンセルがユーザに指示された場合は終了する。プレビュー制御モジュール219が終了する際にはプレビュー用XPS文書221を削除する。プレビュー制御モジュール219が提供するプレビューウィンドウについては図4を用いて後述する。   The preview control module 219 has a function of reading the preview XPS document 221 and providing a preview to the user. The preview control module 219 provides a user interface for preview to the user, and displays a print image, switches a print image of a page to be displayed according to a user instruction, continues printing, or interrupts printing. If the user gives an instruction to start printing while the preview filter 215 is writing XPS data in the preview XPS document 221, the preview control module 219 notifies the preview filter 215 to continue printing and ends. If print cancel is instructed by the user while the preview filter 215 writes XPS data in the preview XPS document 221, the print job is canceled and the process ends. When the user is instructed to start printing after the preview XPS document 221 is completed, a new print job is created using the data of the preview XPS document 221 and the process ends. If printing cancellation is instructed by the user after the preview XPS document 221 is completed, the process ends. When the preview control module 219 ends, the preview XPS document 221 is deleted. The preview window provided by the preview control module 219 will be described later with reference to FIG.

ここで、図2を用いてプレビュー設定がONの2−up印刷を行う場合について説明する。アプリケーション201はOSの印刷サポート機能203を介しユーザインタフェースモジュール211の印刷設定機能を利用する。印刷設定情報としてプレビュー設定をONに設定し、レイアウト設定を2−upに設定する。アプリケーション201は取得した印刷設定情報を用いて、複数ページからなる文書の印刷を開始する。アプリケーション201の文書の印刷データと印刷設定情報はOSの印刷サポート機能を介してXPSスプールファイル205に格納される。XPSスプールファイル205に文書のページがスプールされ始めると、OSの印刷サポート機能はフィルターパイプライン207を起動する。レイアウトフィルター213は印刷設定情報を参照しレイアウト印刷設定が2−upになっているため、ページのレイアウト処理を行い、レイアウト後のページを出力する。プレビューフィルター215は印刷設定情報にプレビュー済フラグを格納し、印刷設定とXPSデータをプレビュー用XPS文書221に格納し、プレビュー制御モジュール219を起動する。プレビュー制御モジュール219はプレビュー用XPS文書221を用いて印刷イメージを表示し、ユーザに印刷機能を提供する。   Here, the case of performing 2-up printing with the preview setting ON will be described with reference to FIG. The application 201 uses the print setting function of the user interface module 211 via the OS print support function 203. As the print setting information, the preview setting is set to ON, and the layout setting is set to 2-up. The application 201 starts printing a document composed of a plurality of pages using the acquired print setting information. The print data and print setting information of the document of the application 201 are stored in the XPS spool file 205 via the OS print support function. When document pages start to be spooled in the XPS spool file 205, the OS print support function activates the filter pipeline 207. Since the layout filter 213 refers to the print setting information and the layout print setting is 2-up, the layout filter 213 performs page layout processing and outputs the page after layout. The preview filter 215 stores the previewed flag in the print setting information, stores the print setting and XPS data in the preview XPS document 221, and activates the preview control module 219. The preview control module 219 displays a print image using the preview XPS document 221 and provides a print function to the user.

ここでアプリケーション201の文書が2ページで構成されているとすれば、レイアウト設定で2−upが指定されている為、プレビュー用XPS文書221に格納されるページ数は1ページとなる。従ってプレビュー用XPS文書221の作成は終了しているので、ユーザが印刷開始をプレビュー制御モジュール219に指示した場合は、新規の印刷ジョブを作成しプレビュー用XPS文書221の内容をそのまま格納する。新規の印刷ジョブが再び印刷された時は、印刷設定情報にプレビュー済フラグが格納されている為、レイアウトフィルター213とプレビューフィルター215では入力がそのまま出力される。続いて印刷コマンドフィルター217によって、入力のXPSデータがプリンタが解釈可能な印刷コマンドに変換される。プリンタ231は供給された印刷コマンドを解釈し印刷用紙に像を形成し、出力結果241が得られる。   Here, if the document of the application 201 is composed of two pages, since 2-up is specified in the layout setting, the number of pages stored in the preview XPS document 221 is one page. Therefore, since the creation of the preview XPS document 221 has been completed, when the user instructs the preview control module 219 to start printing, a new print job is created and the contents of the preview XPS document 221 are stored as they are. When a new print job is printed again, the preview flag is stored in the print setting information, so that the layout filter 213 and the preview filter 215 output the input as it is. Subsequently, the input XPS data is converted into a print command interpretable by the printer by the print command filter 217. The printer 231 interprets the supplied print command and forms an image on the printing paper, and an output result 241 is obtained.

また、アプリケーション201の文書のページ数が非常に多く、ユーザが印刷開始をプレビュー制御モジュール219に指示した時点で、プレビュー用XPS文書221が作成中であれば、プレビュー制御モジュール219はプレビューフィルター215に印刷続行を通知する。プレビュー用XPS文書221を作成中のプレビューフィルター215は、プレビュー用XPS文書221の作成を中止し、保持しているXPSパートを全て出力し、入力から残りのXPSパートを取得し出力する。続いて印刷コマンドフィルター217により入力は印刷コマンドに変換され、これをプリンタ231が解釈して印刷結果241が得られる。   Further, if the number of pages of the document of the application 201 is very large and the preview XPS document 221 is being created when the user instructs the preview control module 219 to start printing, the preview control module 219 sends a preview filter 215 to the preview filter 215. Notify that printing will continue. The preview filter 215 that is creating the preview XPS document 221 cancels the creation of the preview XPS document 221, outputs all the retained XPS parts, acquires the remaining XPS parts from the input, and outputs them. Subsequently, the print command filter 217 converts the input into a print command, which is interpreted by the printer 231 to obtain a print result 241.

このようにプレビュー時において処理済のレイアウト処理を、印刷続行時には行わないようにすることで、同一処理の重複実行を排除し、効率的な印刷処理が行えるようになる。   Thus, by not performing the layout processing that has been processed at the time of preview when the printing is continued, it is possible to eliminate the repeated execution of the same processing and to perform efficient printing processing.

また、ある印刷ジョブのプレビュー中にプレビュー用XPS文書221の作成が完了した場合は、当該印刷ジョブの印刷処理は一旦終了できるため、印刷キューに存在する後続の印刷ジョブの印刷処理を開始することができる。従って、ある印刷ジョブのプレビュー中に、他の印刷ジョブのプレビューを行うことが可能となり、また、他の印刷ジョブの印刷コマンドを生成しプリンタを駆動することが可能となる。   In addition, when the creation of the preview XPS document 221 is completed during the preview of a certain print job, the print processing of the print job can be temporarily ended, so the print processing of the subsequent print job existing in the print queue is started. Can do. Accordingly, it is possible to preview another print job while previewing a certain print job, and it is possible to generate a print command for another print job and drive the printer.

ここで、本実施例では理解を容易にする為にフィルターパイプライン207は機能ごとにフィルターを分け、三つのフィルターで構成されるようにした。しかし、これらのフィルターの機能を単一のフィルターで実現しても良いことは言うまでもない。   In this embodiment, in order to facilitate understanding, the filter pipeline 207 is divided into filters for each function, and is configured by three filters. However, it goes without saying that these filter functions may be realized by a single filter.

また、本実施例では理解を容易にする為に各フィルターは入力と、印刷コマンド以外の出力をXPSパートで取り扱うように記述した。しかし各フィルターにおける入出力はXPSデータをストリームで扱うような形式にしても良いことは言うまでもない。   Further, in this embodiment, for easy understanding, each filter is described as handling an input and an output other than the print command in the XPS part. However, it goes without saying that the input / output in each filter may be in a format in which XPS data is handled as a stream.

<印刷設定画面>
図3は本実施形態における印刷モードや各種用紙設定を行う際に表示される印刷設定ダイアログの一例を示す図である。図3において、印刷設定ダイアログ301は、表示エリア302〜311、320〜331から構成される。印刷設定では表示する項目が非常に多いため、タブシートを使用して設定項目を内容ごとに分けて見やすい構成にするのが通例である。
<Print setting screen>
FIG. 3 is a diagram showing an example of a print setting dialog displayed when the print mode and various paper settings are performed in the present embodiment. In FIG. 3, the print setting dialog 301 includes display areas 302 to 311 and 320 to 331. Since there are a large number of items to be displayed in the print settings, it is common to use a tab sheet to divide the setting items according to the contents so that they are easy to see.

図3に基本設定タブ302が選択された場合の表示例を示す。基本設定の簡易表示エリア320には、文字情報だけでなく視覚に訴える形で設定された情報を表示する。用紙種類選択部322は、用紙の種類を表示するとともに利用者により選択させることができる。用紙種類選択部322はドロップダウンメニューとなっており普段は選択されている用紙の種類が表示され、そこをクリックすることで選択可能な用紙種類がリスト表示される。選択可能な用紙の種類はプリンタで印刷可能な用紙であり、図示されている普通紙の他にも例えば光沢紙、コート紙、写真専用紙、ハガキ、年賀状葉書等が含まれる。給紙方法選択部323は、プリンタ本体が用紙を給紙する給紙方法を表示し、利用者による給紙方法の選択をさせることができる。利用者は、給紙方法選択部323により、たとえば自動給紙口である給紙トレイや給紙カセット、または印刷用紙を一枚ずつ手動で給紙する「手差し給紙」などを選択できる。印刷品質選択部324は利用者に印刷の品位を設定させるための項目である。色調整部325は利用者に印刷の色を調整させるための項目である。モノクロ印刷設定部326は、印刷文書がカラーであっても印刷結果をグレースケールにするためのチェックボックスである。プレビュー印刷設定部327は、各種印刷設定がどのように印刷文書に反映されるかを、プリンタによる実際の印刷が行われる前に確認するためのチェックボックスである。標準設定部331が押されると、基本設定302の設定が標準(出荷時設定)に戻される。   FIG. 3 shows a display example when the basic setting tab 302 is selected. In the basic setting simple display area 320, not only character information but also information set in a form appealing to the eye is displayed. The paper type selection unit 322 displays the paper type and allows the user to select it. The paper type selection unit 322 is a drop-down menu that normally displays the type of paper that is selected, and displays a list of paper types that can be selected by clicking there. The types of paper that can be selected are papers that can be printed by a printer, and include, for example, glossy paper, coated paper, photo-only paper, postcards, New Year's card postcards, etc. in addition to the plain paper shown in the figure. A paper feed method selection unit 323 displays a paper feed method by which the printer body feeds paper, and allows the user to select a paper feed method. The user can select, for example, a paper feed tray or a paper feed cassette, which is an automatic paper feed port, or “manual paper feed” for manually feeding printing paper one by one by the paper feed method selection unit 323. The print quality selection unit 324 is an item for allowing the user to set the print quality. The color adjustment unit 325 is an item for allowing the user to adjust the printing color. The monochrome print setting unit 326 is a check box for making the print result grayscale even if the print document is in color. The preview print setting unit 327 is a check box for confirming how various print settings are reflected in the print document before actual printing by the printer. When the standard setting unit 331 is pressed, the setting of the basic setting 302 is returned to the standard (shipment setting).

ユーザは各項目を選択した後にOKボタン308を押下することで印刷設定ダイアログ301を閉じ、選択した印刷設定を印刷に反映させることができる。キャンセルボタン309を押下すると印刷設定ダイアログ301が閉じ、選択した設定項目の内容は破棄され印刷に反映されることはない。適用ボタン310は印刷設定ダイアログ301は開いたままで選択した印刷設定を印刷に反映させることができる。ヘルプボタン311は基本設定302の各設定項目に関する説明文を別ウィンドウで表示させることができる。   The user closes the print setting dialog 301 by pressing an OK button 308 after selecting each item, and can reflect the selected print setting in printing. When the cancel button 309 is pressed, the print setting dialog 301 is closed and the content of the selected setting item is discarded and is not reflected in printing. The apply button 310 can reflect the selected print setting on printing while the print setting dialog 301 remains open. A help button 311 can display an explanatory text regarding each setting item of the basic setting 302 in a separate window.

<プレビュー制御モジュールのプレビューウィンドウ>
図4に、本実施の形態におけるプレビュー制御モジュールによって提供される表示画面(プレビューウィンドウ)の一例を示す。印刷プレビューウィンドウ401は、プレビュー画像や印刷ジョブの印刷設定等を表示するための表示エリアと、ユーザがプレビュー画像の表示方法等を変更するための入力手段を兼備している。
<Preview control module preview window>
FIG. 4 shows an example of a display screen (preview window) provided by the preview control module in the present embodiment. The print preview window 401 has both a display area for displaying a preview image and print settings of a print job and an input means for the user to change the display method of the preview image.

メニューバー402は、ユーザは表示切り替え等プレビューアへの命令をメニュー形式選択することができる。ユーザ操作部403〜406が用意される領域はツールバーであり、ユーザはメニューバー402を使用しなくともツールバー403を押下することで容易にプレビューページの切り替え等を行うことができる。ページ切り替えボタン403は4つのボタンで構成されており、先頭ページ、前ページ、次ページ、最終ページへプレビュー表示を切り替えることが可能である。404はプレビュー画像の表示サイズを変更する為のドロップダウンリストで、全体表示や100%、200%表示等を選択することができる。印刷開始ボタン405においては、ユーザがこのボタンを押下することでプレビューアを終了し、プレビューしていたプレビュー用XPS文書を印刷処理可能な状態にすることができる。印刷中止ボタン406においては、ユーザがこのボタンを押下することでプレビューアを終了し、プレビュー用XPS文書が作成中であれば印刷ジョブをキャンセルすることができる。プレビュー表示領域407は、プレビュー用XPSファイルの内容を利用し、印刷用紙と印刷用紙に形成されるであろう可視象を印刷イメージとして表示する。表示領域408はプレビュー機能を実行している印刷ジョブの印刷設定に関る代表的な設定項目の設定値を表示する。本図においては文書の総ページ数は3ページであり、現在プレビュー表示しているページ番号は2ページであり、印刷設定で設定された部数は1部であり、かつ等倍印刷が設定されていた例を示している。   The menu bar 402 allows the user to select a menu format for commands to the previewer such as display switching. The area in which the user operation units 403 to 406 are prepared is a toolbar, and the user can easily switch preview pages by pressing the toolbar 403 without using the menu bar 402. The page switching button 403 includes four buttons, and the preview display can be switched to the first page, the previous page, the next page, and the last page. Reference numeral 404 denotes a drop-down list for changing the display size of the preview image, and an entire display, 100% display, 200% display, or the like can be selected. With the print start button 405, when the user presses this button, the previewer is terminated, and the preview XPS document that has been previewed can be put into a printable state. With the print cancel button 406, the user presses this button to end the previewer, and the print job can be canceled if a preview XPS document is being created. The preview display area 407 uses the contents of the preview XPS file to display a print sheet and a visible image that will be formed on the print sheet as a print image. A display area 408 displays setting values of typical setting items related to print settings of a print job executing the preview function. In this figure, the total number of pages of the document is three pages, the page number currently displayed in the preview is two pages, the number of copies set in the print settings is one, and the same size printing is set. An example is shown.

また、図4に例示する表示画面は、プレビュー設定がONである印刷設定情報を伴う印刷ジョブがスプールされ、OSの印刷サポート機能によりフィルターパイプラインが起動され、プレビューフィルターがプレビュー制御モジュールを起動した時点で表示される。   In the display screen illustrated in FIG. 4, a print job with print setting information whose preview setting is ON is spooled, the filter pipeline is activated by the OS print support function, and the preview filter activates the preview control module. Displayed at the moment.

<印刷キューとプレビュー>
通常、一台のプリンタで同時に印刷可能な文書は一つであることから、OSはプリンタごとに複数の印刷ジョブを管理するための論理的なキューを持つ。これは一般的に印刷キューと呼ばれ、キューの先頭の印刷ジョブの処理状態が「印刷中」となりプリンタドライバの処理対象となる。
<Print queue and preview>
Normally, since one document can be printed simultaneously by one printer, the OS has a logical queue for managing a plurality of print jobs for each printer. This is generally referred to as a print queue, and the processing state of the print job at the head of the queue is “printing” and becomes a processing target of the printer driver.

図7は本実施例における印刷キューと印刷ジョブのプレビューの関係を説明する為の概念図の一例である。図7に示される印刷ジョブのうち、JobAとJobBがプレビュー設定がONとなっている印刷設定情報が格納されている。   FIG. 7 is an example of a conceptual diagram for explaining the relationship between the print queue and the print job preview in this embodiment. In the print job shown in FIG. 7, the print setting information in which the preview setting is ON for Job A and Job B is stored.

図7(1)は印刷キュー701に印刷ジョブが三個格納されている状態を示している。ここで先頭のJobA715の処理状態が「印刷中」となっており、JobB713とJobC711は「待機中」となる。ここでJobA715の印刷設定情報はプレビュー設定ONであるから、プレビュー用XPS文書A725が作成される。時間の経過とともにプレビュー用XPS文書A725が完成すると、印刷キューからJobA715が削除され図7(2)の状態になる。   FIG. 7A shows a state where three print jobs are stored in the print queue 701. Here, the processing state of the first Job A 715 is “printing”, and Job B 713 and Job C 711 are “standby”. Here, since the print setting information of Job A 715 is preview setting ON, a preview XPS document A 725 is created. When the preview XPS document A 725 is completed with the passage of time, Job A 715 is deleted from the print queue, and the state shown in FIG.

図7(2)ではプレビュー用XPS文書A725に基づくプレビューは実行中である。印刷キューの先頭の印刷ジョブにあたるJobB713の印刷状態は「印刷中」となる。JobB713はプレビュー設定ONであるから、プレビュー用XPS文書B723が作成される。この時点で、プレビュー用XPS文書A725に基づくプレビューと、プレビュー用XPS文書B723に基づくプレビューが同時に行われていることになる。これは単一ユーザに対して複数の印刷ジョブに対するプレビュー機能を提供する場合や、あるいは複数のユーザに対して同時にプレビュー機能を提供する場合に有用である。時間の経過と共にプレビュー用XPS文書B723が完成すると、印刷キューからJobB713が削除され図7(3)の状態になる。   In FIG. 7B, the preview based on the preview XPS document A 725 is being executed. The print status of JobB 713 corresponding to the first print job in the print queue is “printing”. Since the preview setting is ON for Job B 713, a preview XPS document B 723 is created. At this time, the preview based on the preview XPS document A 725 and the preview based on the preview XPS document B 723 are simultaneously performed. This is useful when a preview function for a plurality of print jobs is provided for a single user, or when a preview function is provided for a plurality of users simultaneously. When the preview XPS document B 723 is completed with the passage of time, Job B 713 is deleted from the print queue, and the state shown in FIG.

図7(3)ではプレビュー用XPS文書A725に基づくプレビューと、プレビュー用文書B723に基づくプレビューは同時に実行中である。印刷キューの先頭の印刷ジョブにあたるJobC711の印刷状態は「印刷中」となる。JobC711はプレビュー設定OFFであるから、プレビューは実行されず、フィルターパイプラインによってプリンタが解釈可能な印刷コマンドが生成され、プリンタにより印刷用紙に像が形成されてゆく。一般的にプリンタによる印刷処理速度は遅く、アプリケーションが文書の印刷処理を行い印刷データがスプールされる時間の方が短い。ここで、JobC711の内容がプリンタにより印刷されている間に、プレビュー用XPS文書A725に基づくプレビューにおいて、ユーザにより印刷開始が指示されたとする。この場合、プレビュー制御モジュールは新規印刷ジョブをキューに作成し、プレビュー用XPS文書A725の内容をXPSスプールファイル205に格納する。この状態を図(4)に示す。   In FIG. 7C, the preview based on the preview XPS document A 725 and the preview based on the preview document B 723 are being executed simultaneously. The print state of Job C711 corresponding to the first print job in the print queue is “printing”. Since the job C 711 is in the preview setting OFF, the preview is not executed, a print command that can be interpreted by the printer is generated by the filter pipeline, and an image is formed on the printing paper by the printer. In general, the print processing speed of the printer is slow, and the time for the application to print the document and spool the print data is shorter. Here, it is assumed that, while the contents of JobC 711 are being printed by the printer, the user gives an instruction to start printing in the preview based on the preview XPS document A 725. In this case, the preview control module creates a new print job in the queue and stores the contents of the preview XPS document A 725 in the XPS spool file 205. This state is shown in FIG.

図7(4)ではプレビュー用文書B723に基づくプレビューは実行中である。印刷キュー先頭の印刷ジョブに当たるJobC711の印刷状態は「印刷中」で、図7(3)から引き続きプリンタによる印刷処理が行われている。ここでプレビュー用XPS文書A725を印刷続行するために新たに作成された印刷ジョブであるJobA’735の処理状態は「待機中」となる。時間の経過とともにJobC711の印刷処理が終了すると、図7(5)の状態になる。   In FIG. 7 (4), the preview based on the preview document B723 is being executed. The print status of Job C 711 corresponding to the print job at the head of the print queue is “printing”, and the printing process by the printer is continued from FIG. 7 (3). Here, the processing state of Job A '735, which is a print job newly created to continue printing the preview XPS document A 725, is "waiting". When the job C711 print processing ends with the passage of time, the state shown in FIG.

図7(5)ではプレビュー用文書B723に基づくプレビューは実行中である。印刷キューの先頭の印刷ジョブに当たるJobA’735の処理状態は「印刷中」となる。JobA’735は既にプレビューされた印刷ジョブであることは、前述したように印刷設定にプレビュー済フラグが格納されていることで判断される。従ってJobA’735に対してプレビューは実行されず、フィルターパイプラインによってプリンタが解釈可能な印刷コマンドが生成され、プリンタにより印刷用紙に像が形成されてゆく。時間の経過とともにJobA’735の印刷処理が終了すると、印刷キューからJobA’735が削除され図7(6)の状態になる。   In FIG. 7 (5), the preview based on the preview document B723 is being executed. The processing state of Job A ′ 735 corresponding to the first print job in the print queue is “printing”. It is determined that Job A '735 is a previewed print job because the previewed flag is stored in the print setting as described above. Therefore, no preview is executed for Job A '735, a print command that can be interpreted by the printer is generated by the filter pipeline, and an image is formed on the printing paper by the printer. When the print processing of Job A '735 ends with the passage of time, Job A' 735 is deleted from the print queue, and the state shown in FIG.

図7(6)ではプレビュー用文書B723に基づくプレビューは実行中である。印刷キューには印刷ジョブが一つも格納されていない状態となる。   In FIG. 7 (6), the preview based on the preview document B 723 is being executed. There is no print job stored in the print queue.

以上のように、本実施例によれば複数のプレビューを同時に提供したり、プレビュー機能を提供中に印刷キュー中の印刷ジョブの実印刷を行うことができる。   As described above, according to this embodiment, it is possible to provide a plurality of previews at the same time, or to actually print a print job in the print queue while providing the preview function.

ここで、本実施例ではキューという概念から逸脱しないよう、新規に作成した印刷ジョブは印刷キューの最後に格納されるように説明した。しかし、OSの印刷サポート機能によっては、新規の印刷ジョブを印刷キューの途中に格納できる場合もある。すなわち新規印刷ジョブを印刷キューに格納する際に、既存の印刷ジョブの前に格納しても良い。新規印刷ジョブを格納する印刷キュー中の位置が自由な場合、プレビュー制御モジュールは最適な位置を選択して新規印刷ジョブを格納できる。例えば、印刷キューに格納されている印刷ジョブはXPS文書であるから、総ページ数やジョブのサイズを取得することで、各印刷ジョブがプリンタにより印刷される処理時間を推定できる。このことから、新規印刷ジョブを追加する時点で、印刷キューに格納されている印刷ジョブがすべて印刷される時の、推定平均待ち時間を最小にするような位置を選択してもよい。また、新規印刷ジョブを格納する印刷キュー中の位置を、ユーザが選択できるようにユーザインタフェースを提供しても良い。以上のように、本発明の利点を阻害するものではないから、新規印刷ジョブを格納するキュー中の位置は任意であって構わない。   Here, in the present embodiment, the newly created print job is stored at the end of the print queue so as not to depart from the concept of queue. However, depending on the OS print support function, a new print job may be stored in the print queue. That is, when a new print job is stored in the print queue, it may be stored before the existing print job. If the position in the print queue where the new print job is stored is free, the preview control module can select the optimum position and store the new print job. For example, since the print job stored in the print queue is an XPS document, the processing time for each print job to be printed by the printer can be estimated by acquiring the total number of pages and the job size. Therefore, when adding a new print job, a position that minimizes the estimated average waiting time when all the print jobs stored in the print queue are printed may be selected. Further, a user interface may be provided so that the user can select a position in the print queue for storing a new print job. As described above, since the advantage of the present invention is not inhibited, the position in the queue for storing the new print job may be arbitrary.

<PrintTicketとプレビュー済フラグ>
図6を用いてPTに格納するプレビュー済フラグについて説明する。前述したようにPTとはXML形式で記述された印刷設定である。従ってテキストで表現できる為、図6(A)のように視覚的に記述することができる。
<PrintTicket and previewed flag>
The previewed flag stored in the PT will be described with reference to FIG. As described above, PT is a print setting described in the XML format. Therefore, since it can be expressed in text, it can be visually described as shown in FIG.

図6(A)のPTはレイアウト設定として2−upが指定された印刷設定の一例を表している。PTの標準的な記載内容はPrintSchemaと呼ばれるスキーマにより規定されており、N−upに関する設定項目も存在する。なお、PrintSchemaは一般的に公開されている仕様である。PTにはN−up設定としてFDSに影響を及ぼすJobNUpAllDocumentsContiguouslyと、FDに影響を及ぼすDocumentNUpが存在する。これらはPrintSchemaにより規定されており、プリンタドライバはこれら二つの印刷設定を排他的に取り扱う必要があるが、どちらの設定を優先させるかはプリンタドライバにより異なる。ここではどちらの設定が優先されてもいいように、どちらの印刷設定にも2−upが指定されている。   PT in FIG. 6A represents an example of a print setting in which 2-up is specified as a layout setting. The standard description content of PT is defined by a schema called PrintSchema, and there are setting items related to N-up. Note that PrintSchema is a publicly available specification. The PT includes JobNUpAllDocumentsContiguously that affects the FDS as an N-up setting, and DocumentNUp that affects the FD. These are defined by PrintSchema, and it is necessary for the printer driver to handle these two print settings exclusively. However, which setting is given priority depends on the printer driver. Here, 2-up is specified for both print settings so that either setting may be prioritized.

印刷設定には他の設定項目も数多く存在するが、本実施例に関連のあるN−upのみについて説明した。また、設定項目によってはFDSとFDだけではなくFPにも影響を及ぼすものもある。   Although there are many other setting items in the print setting, only the N-up related to the present embodiment has been described. Some setting items affect not only FDS and FD but also FP.

図6(B)は図6(A)のPTに前述したプレビュー済フラグを格納したPTの一例を示している。PTに格納するプレビュー済フラグはPrintSchemaで規定されていない独自の情報であるため、プライベートな名前空間を追加する必要がある。図6(B)ではプライベートな名前空間プレフィックスを“ns0000”としている。格納するプレビュー済フラグはPrintScheamaのフレームワークを利用してPropertyの値として表現している。ここではPropertyのname属性として“ns0000:PreviewFilterProcess”と記述している。また値として“Done”というstring値を記述することで、プレビュー済フラグを表現している。PTに“ns0000:PreviewFilterProcess”が存在しない場合、或いは、“ns0000:PreviewFilterProcess”が存在しその値が“Done”以外であれば、プレビューを行っていないと判断できる。   FIG. 6B shows an example of a PT in which the previewed flag described above is stored in the PT of FIG. Since the previewed flag stored in the PT is unique information not defined by PrintSchema, it is necessary to add a private name space. In FIG. 6B, the private namespace prefix is “ns0000”. The previewed flag to be stored is expressed as a Property value by using the PrintSchema framework. Here, “ns0000: PreviewFilterProcess” is described as the name attribute of Property. In addition, by describing a string value “Done” as a value, a previewed flag is expressed. If “ns0000: PreviewFilterProcess” does not exist in the PT, or if “ns0000: PreviewFilterProcess” exists and the value is other than “Done”, it can be determined that the preview is not performed.

図6においてはプレビュー済フラグを格納するのに、フレームワークのPropertyを用いたが、この他にもFeature/Optionを用いても良いことは言うまでもない。また、プレビュー済フラグを示すプライベートな名前空間を用意し、当該名前空間の有無でプレビュー済フラグを表現してもよい。PTはXMLで記載されているため、PrintSchemaに則っていれば、この他のどのような表現でもプレビュー済フラグを格納しても構わない。   In FIG. 6, the property of the framework is used to store the previewed flag, but it goes without saying that Feature / Option may be used in addition to this. Also, a private name space indicating the previewed flag may be prepared, and the previewed flag may be expressed by the presence or absence of the name space. Since PT is described in XML, the previewed flag may be stored in any other representation as long as it conforms to PrintSchema.

<参照用PrintTicket取得処理>
フィルターパイプラインの各フィルターにおいて、印刷設定情報を取得するには前述したようにXPSのPTをマージする必要がある。XPS文書の各パートはPTを持つことが可能だが、逆に持たないことも可能である。また、たとえXPSパートがPTを持っていたとしても、図6(A)で例示されるPTの様にN−upの情報しか記載されていなく、不完全なPTである可能性がある。従ってFDSのPTを取得する際もユーザのデフォルト印刷設定のPTとのマージ処理が必要である。ここでデフォルト印刷設定のPTには、プリンタドライバで扱える全ての設定項目が格納されている。従ってマージ後のPTも全ての印刷設定項目を含む。
<Reference PrintTicket acquisition process>
To obtain print setting information in each filter of the filter pipeline, it is necessary to merge XPS PTs as described above. Each part of an XPS document can have a PT, but it can also have no PT. Even if the XPS part has a PT, only N-up information is described as in the PT illustrated in FIG. 6A, and there is a possibility that the PT is an incomplete PT. Accordingly, when acquiring the PT of the FDS, a merge process with the PT of the default print setting of the user is necessary. Here, all setting items that can be handled by the printer driver are stored in the default print setting PT. Accordingly, the merged PT also includes all print setting items.

図9はFDSのPTとユーザのデフォルト印刷設定のPTをマージし参照用PTを取得する処理のフローチャートの一例である。図9のフローチャートに係るプログラムは、データ処理装置の記憶部144のハードディスクに記憶されており、記憶部144のRAMに適時読み出されて中央制御部141のCPUにより実行される。   FIG. 9 is an example of a flowchart of processing for acquiring the reference PT by merging the PT of the FDS and the PT of the user default print setting. The program according to the flowchart of FIG. 9 is stored in the hard disk of the storage unit 144 of the data processing device, read out to the RAM of the storage unit 144 as appropriate, and executed by the CPU of the central control unit 141.

まずS201でユーザのデフォルト印刷設定を格納したデフォルトPTを取得する。続いてS203でXPS文書のFDSを取得する。続いてS205でFDSのPTを取得する。S207ではFDSのPTが取得できたかどうかを判定し、取得できていればS211に移り、取得できなければS209に移る。S211では取得したFDSのPTとデフォルトPTをマージしたPTを参照用PTとし終了する。S209ではFDSにPTが存在しなかったため、デフォルトPTを参照用PTとし終了する。   First, in step S201, a default PT storing the user's default print settings is acquired. In step S203, the FDS of the XPS document is acquired. In step S205, the FDS PT is acquired. In S207, it is determined whether or not the FDS PT has been acquired. If it has been acquired, the process proceeds to S211; otherwise, the process proceeds to S209. In step S211, the PT obtained by merging the acquired FDS PT and the default PT is set as a reference PT, and the process ends. In S209, since there is no PT in the FDS, the default PT is set as the reference PT and the process ends.

ここで、全ての印刷設定項目とは、少なくともアプリケーションが設定可能な全ての設定項目のことを指しており、プレビュー済フラグのようなプリンタドライバ内部の設定項目はこれに含まれないものとする。
このようにプリンタドライバが扱える全ての設定項目を含む参照用PTを取得することができる。
Here, all the print setting items indicate at least all the setting items that can be set by the application, and the setting items inside the printer driver such as the previewed flag are not included in this.
In this way, the reference PT including all the setting items that can be handled by the printer driver can be acquired.

<レイアウトフィルター処理>
図8を用いてレイアウトフィルターの処理について説明する。図8はレイアウトフィルターの処理を示すフローチャートの一例である。図8のフローチャートに係るプログラムは、データ処理装置の記憶部144のハードディスクに記憶されており、記憶部144のRAMに適時読み出されて中央制御部141のCPUにより実行される。
<Layout filter processing>
The layout filter process will be described with reference to FIG. FIG. 8 is an example of a flowchart showing the layout filter processing. The program according to the flowchart of FIG. 8 is stored in the hard disk of the storage unit 144 of the data processing device, read out to the RAM of the storage unit 144 as appropriate, and executed by the CPU of the central control unit 141.

まずS101で前述したように参照用PTを取得する。続いてS103で参照用PTにプレビュー済フラグが格納されているかどうかを判断し、格納されていればS121に移り、格納されていなければS105に移る。   First, in step S101, a reference PT is acquired as described above. Subsequently, in S103, it is determined whether the previewed flag is stored in the reference PT. If stored, the process proceeds to S121, and if not stored, the process proceeds to S105.

S105ではFDを取得し、S107でFDからPTを取得する。S109でFDのPTを取得できたか判断し、取得できればS111に移り、取得できなければS113に移る。S111では参照用PTに取得できたFDのPTをマージする。続くS113では参照用PTの印刷設定情報にレイアウト設定がされているか判断し、レイアウト設定がされていればS141に移り、レイアウト設定がされていなければS131に移る。   In S105, an FD is acquired, and in S107, a PT is acquired from the FD. In S109, it is determined whether the PT of the FD has been acquired. If it can be acquired, the process proceeds to S111. If it cannot be acquired, the process proceeds to S113. In S111, the PT of the FD that can be acquired is merged into the reference PT. In the next S113, it is determined whether or not the layout is set in the reference PT print setting information. If the layout is set, the process proceeds to S141. If the layout is not set, the process proceeds to S131.

S131からS135まではレイアウト処理を行わないで入力のXPSデータをプレビューフィルターに出力するのみである。S131では取得済みのFDSをプレビューフィルターに出力し、S133では取得済みのFDをプレビューフィルターに出力し、S135では入力から残りのXPSパートを取得しプレビューフィルターに出力し、終了する。   From S131 to S135, the input XPS data is only output to the preview filter without performing layout processing. In step S131, the acquired FDS is output to the preview filter. In step S133, the acquired FD is output to the preview filter. In step S135, the remaining XPS parts are acquired from the input and output to the preview filter.

S141からS145は入力のXPSデータにレイアウト処理を行いプレビューフィルターに出力する。S141では取得済みのFDSをプレビューフィルターに出力し、S143では取得済みのFDをプレビューフィルターに出力する。S145では入力から残りのXPSパートを順次取得し、FPのレイアウト処理を行ったレイアウト済みのFPを作成してプレビューフィルターに出力する。ここで前述したようにPTに格納されるレイアウト設定はFDSに影響を及ぼすものと、FDに影響を及ぼすものがあるため、必要に応じてFDもプレビューフィルターに出力する。このように新たに作成されたレイアウト済みのFPをプレビューフィルターに送信し、全てのFPをプレビューフィルターに出力した後に終了する。   In steps S141 to S145, the input XPS data is subjected to layout processing and output to the preview filter. In S141, the acquired FDS is output to the preview filter, and in S143, the acquired FD is output to the preview filter. In step S145, the remaining XPS parts are sequentially acquired from the input, and a FP having been subjected to FP layout processing is created and output to the preview filter. As described above, since the layout setting stored in the PT has an effect on the FDS and an effect on the FD, the FD is also output to the preview filter as necessary. The newly created layout FP is transmitted to the preview filter as described above, and all FPs are output to the preview filter.

S121とS123ではプレビュー済みの印刷ジョブは既にレイアウト処理は行われている為、レイアウト処理は行わない。S121では入力されたFDSをプレビューフィルターに出力する。続いてS123では残りのXPSパートを入力から順次取得しプレビューフィルターに出力した後、終了する。これにより出力したXPSデータは次のフィルター(プレビューフィルター)に送信される。   In S121 and S123, the layout process is not performed because the layout process has already been performed for the previewed print job. In S121, the input FDS is output to the preview filter. In step S123, the remaining XPS parts are sequentially acquired from the input, output to the preview filter, and the process ends. As a result, the output XPS data is transmitted to the next filter (preview filter).

このようにPTに格納されたプレビュー済フラグを参照することで、プレビュー後に同一のレイアウト処理を重複して行わないようにすることができる。   By referring to the previewed flag stored in the PT in this way, it is possible to prevent the same layout process from being repeated after the preview.

<プレビューフィルター処理>
図10を用いてプレビューフィルターの処理について説明する。図10はプレビューフィルターの処理を示すフローチャートの一例である。図10のフローチャートに係るプログラムは、データ処理装置の記憶部144のハードディスクに記憶されており、記憶部144のRAMに適時読み出されて中央制御部141のCPUにより実行される。
<Preview filter processing>
The preview filter process will be described with reference to FIG. FIG. 10 is an example of a flowchart showing preview filter processing. The program according to the flowchart of FIG. 10 is stored in the hard disk of the storage unit 144 of the data processing device, read out to the RAM of the storage unit 144 as appropriate, and executed by the CPU of the central control unit 141.

まずS401で前述したように参照用PTを取得する。続いてS403で参照用PTにプレビュー済フラグが格納されているかどうかを判断し、格納されていればS441に移り、格納されていなければS405に移る。   First, as described above in S401, a reference PT is acquired. Subsequently, in S403, it is determined whether the previewed flag is stored in the reference PT. If stored, the process proceeds to S441, and if not stored, the process proceeds to S405.

S405では参照用PTの印刷設定情報のプレビュー設定がONかどうかを判定し、ONでなければS441に移り、ONであればS411に移る。   In S405, it is determined whether or not the preview setting of the reference PT print setting information is ON. If not, the process proceeds to S441, and if it is ON, the process proceeds to S411.

S411からS425まではプレビュー用XPS文書を作成するための処理となる。S411では取得済みのFDSがPTを持たなければ、FDSにPTを付加する。続くS413ではFDSのPTにプレビュー済フラグを格納する。続くS415ではプレビュー制御モジュールを起動する。続くS417ではプレビュー用XPS文書を作成し取得済みのFDSを追加する。なお、プレビュー用XPS文書は、レイアウト処理されたXPS文書にプレビュー済みフラグが付加されたXPS文書である。続くS421では入力から次のXPSパートを取得し、取得したXPSパートをキャッシュした後に、プレビュー用XPS文書に追加する。S423では取得したXPSパートが最終かどうか判断し、最終であればS451に移り、最終でなければS425に移る。取得したXPSパートが最終である場合、XPSデータは一切出力せず、S451でフィルターパイプラインの各フィルターに動作の終了を通知し、印刷キューから印刷ジョブが削除されるように処理する。S425ではプレビュー制御モジュールから印刷続行通知があったかどうか判断し、通知がなければS421に移りプレビュー用XPS文書の作成を継続し、通知があればS431に移る。   Steps S411 to S425 are processes for creating a preview XPS document. In S411, if the acquired FDS does not have a PT, the PT is added to the FDS. In the subsequent S413, the previewed flag is stored in the PT of the FDS. In subsequent S415, the preview control module is activated. In subsequent S417, a preview XPS document is created and the acquired FDS is added. The preview XPS document is an XPS document in which a previewed flag is added to a layout-processed XPS document. In subsequent S421, the next XPS part is acquired from the input, and the acquired XPS part is cached and added to the preview XPS document. In S423, it is determined whether the acquired XPS part is final. If it is final, the process proceeds to S451. If not, the process proceeds to S425. If the acquired XPS part is final, no XPS data is output, and in S451, the end of the operation is notified to each filter of the filter pipeline, and processing is performed so that the print job is deleted from the print queue. In S425, it is determined whether or not there is a print continuation notification from the preview control module. If there is no notification, the process proceeds to S421, and the creation of the preview XPS document is continued.

S431からS435はプレビュー用XPS文書を作成中に、ユーザから印刷開始が指示された場合の処理である。S431では取得済みのFDSを印刷コマンドフィルターに出力し、S433ではキャッシュ済みのXPSパートを順次印刷コマンドフィルターに送信する。続くS435では入力から残りのXPSパートを順次取得し印刷コマンドフィルターに出力し終了する。   Steps S431 to S435 are processing performed when the user gives an instruction to start printing while the preview XPS document is being created. In step S431, the acquired FDS is output to the print command filter. In step S433, the cached XPS parts are sequentially transmitted to the print command filter. In subsequent S435, the remaining XPS parts are sequentially obtained from the input, output to the print command filter, and the process ends.

S441とS443ではプレビュー済みの印刷ジョブは既にプレビュー処理は行われている為、プレビュー処理は行わない。S441では入力されたFDSを印刷コマンドフィルターに出力する。続いてS443では残りのXPSパートを入力から順次取得し印刷コマンドフィルターに出力した後、終了する。これにより出力したXPSデータは次のフィルター(印刷コマンドフィルター)に送信される。   In S441 and S443, since the preview processing has already been performed for the previewed print job, the preview processing is not performed. In step S441, the input FDS is output to the print command filter. In step S443, the remaining XPS parts are sequentially acquired from the input, output to the print command filter, and the process ends. As a result, the output XPS data is transmitted to the next filter (print command filter).

ここではプレビュー用XPS文書を作成中に、入力のXPSパートをキャッシュし、作成中に印刷続行通知があった場合はキャッシュからXPSを印刷コマンドフィルターに出力するように記述したが、キャッシュしなくてもよい。XPSパートをキャッシュしない場合は、作成中のプレビュー用XPS文書からXPSパートを読込み、印刷コマンドフィルターに出力するようにすればよいことは明らかである。   In this example, the XPS part of the input is cached while the preview XPS document is being created, and XPS is output from the cache to the print command filter when there is a print continuation notification during creation. Also good. When the XPS part is not cached, it is obvious that the XPS part may be read from the preview XPS document being created and output to the print command filter.

このようにすることで、プレビュー用XPSファイルにプレビュー済フラグを格納することが可能となる。また、プレビュー用XPSファイルを作成中であっても、印刷開始指示に応じて、印刷コマンドを作成する為にXPSデータを出力することができる。また、プレビュー済みのXPSデータを再度プレビューすることを抑制できる。   By doing so, it is possible to store the previewed flag in the preview XPS file. Further, even when a preview XPS file is being created, XPS data can be output to create a print command in response to a print start instruction. Further, it is possible to suppress previewing again of the XPS data that has been previewed.

<プレビュー制御モジュールの処理>
図11を用いてプレビュー制御モジュールの処理について説明する。図11はプレビュー制御モジュールの処理を示すフローチャートの一例である。
<Processing of preview control module>
Processing of the preview control module will be described with reference to FIG. FIG. 11 is an example of a flowchart showing processing of the preview control module.

まずS351で前述したプレビューウィンドウを表示する。図11のフローチャートに係るプログラムは、データ処理装置の記憶部144のハードディスクに記憶されており、記憶部144のRAMに適時読み出されて中央制御部141のCPUにより実行される。   First, in S351, the preview window described above is displayed. The program according to the flowchart of FIG. 11 is stored in the hard disk of the storage unit 144 of the data processing device, is read out to the RAM of the storage unit 144 as appropriate, and is executed by the CPU of the central control unit 141.

S301からS311までイベント処理ループとなる。S301はイベント処理ループの開始端であり、続くS303でイベントを取得し、続くS305でイベントが印刷開始(印刷指示)かどうか判定する。イベントが印刷開始であればS321に移り、印刷開始でなければS307に移る。S307ではイベントが印刷中止かどうか判定し、印刷中止であればS331に移り、印刷中止でなければS309に移る。S309では印刷開始と印刷中止以外のイベントの処理を行う。例えば図4を用いて前述したようにプレビューウィンドウを介して発生するイベントが表示ページの切り替えであれば、プレビューウィンドウのプレビュー表示領域の内容を再描画する。また、タイマーイベントの処理にあたり、スプールされているページ数の表示を変更することもできる。このようにS309で行う処理はさまざまである。続くS311はイベント処理ループの終端でありS301に戻る。   An event processing loop is performed from S301 to S311. S301 is a start end of the event processing loop. In S303, an event is acquired. In S305, it is determined whether the event is a print start (print instruction). If the event is printing start, the process proceeds to S321, and if printing is not started, the process proceeds to S307. In S307, it is determined whether or not the event is print cancellation. If the print is canceled, the process proceeds to S331. If the print is not canceled, the process proceeds to S309. In step S309, processing for events other than printing start and printing cancellation is performed. For example, as described above with reference to FIG. 4, if the event generated through the preview window is a display page change, the contents of the preview display area of the preview window are redrawn. In addition, when processing a timer event, the display of the number of spooled pages can be changed. As described above, various processes are performed in S309. Subsequent S311 is the end of the event processing loop, and the process returns to S301.

S321からS325は印刷開始処理である。S321でプレビュー用XPS文書がプレビューフィルターにより作成中であるかどうか判定し、作成中であればS325に移り、作成が完了していればS323に移る。S325ではプレビューしている内容の印刷ジョブが印刷キュー内に残っている為、プレビューフィルターに印刷続行を通知した後、S341に移る。S323では、既に印刷ジョブは印刷キューから削除されているために、キューに新たな印刷ジョブを作成し、プレビュー用XPS文書の内容を入力とし、新たな印刷ジョブのXPS文書をスプールファイルに出力した後、S341に移る。   S321 to S325 are printing start processing. In S321, it is determined whether the preview XPS document is being created by the preview filter. If it is being created, the process proceeds to S325, and if the creation is completed, the process proceeds to S323. In S325, since the print job having the previewed content remains in the print queue, the print processing is notified to the preview filter, and then the process proceeds to S341. In S323, since the print job has already been deleted from the print queue, a new print job is created in the queue, the contents of the preview XPS document are input, and the XPS document of the new print job is output to the spool file. Then, the process proceeds to S341.

ここで、プレビュー制御モジュールによる印刷ジョブ作成手順について説明する。まず、OSに印刷ジョブの追加を通知し、OSからXPSスプールファイル205のパスを取得する。次に、XPSスプールファイル205に、印刷ジョブに対応するプレビュー用XPS文書の内容をコピーする。次に、OSに追加した印刷ジョブのスケジューリングを依頼する。   Here, a print job creation procedure by the preview control module will be described. First, the addition of a print job is notified to the OS, and the path of the XPS spool file 205 is acquired from the OS. Next, the contents of the preview XPS document corresponding to the print job are copied to the XPS spool file 205. Next, a request is made to schedule a print job added to the OS.

S331とS333は印刷キャンセル処理である。S331でプレビュー用XPS文書がプレビューフィルターにより作成中であるかどうか判定し、作成中であればS333に移り、作成が完了していればS341に移る。S333ではプレビューしている内容の印刷ジョブが印刷キュー内に残っている為、当該印刷ジョブをキャンセルする。プレビュー用XPS文書の作成が完了していれば、プレビューしている内容の印刷ジョブは印刷キュー内に存在しないため、印刷ジョブのキャンセルは不要である。
S341ではプレビュー用XPS文書を削除し終了する。
S331 and S333 are print cancel processing. In S331, it is determined whether the preview XPS document is being created by the preview filter. If it is being created, the process proceeds to S333, and if the creation is completed, the process proceeds to S341. In step S333, since the print job having the previewed content remains in the print queue, the print job is canceled. If the creation of the XPS document for preview has been completed, the print job having the previewed content does not exist in the print queue, so that the print job need not be canceled.
In step S341, the preview XPS document is deleted and the process ends.

このようにすることで、プレビュー中の印刷ジョブが存在する場合は、ユーザの印刷開始の指示に即座に従い、プリンタによる印刷を開始できる。また、もとの印刷ジョブごとにプレビュー用XPS文書を持つ為、同時に複数のプレビュー機能を提供することができる。   In this way, when there is a print job being previewed, printing by the printer can be started immediately following the user's print start instruction. Since each original print job has a preview XPS document, a plurality of preview functions can be provided simultaneously.

以上説明したように、本実施形態によれば次のような効果が得られる。
(1)プレビューアから印刷開始を指示しても同一のレイアウト処理は一回しか行わない為、コンピュータの負荷が軽減する。
(2)プレビュー用XPS文書の作成が終了していれば、プレビュー中でも印刷キュー中の後続の印刷ジョブを処理できる。
As described above, according to the present embodiment, the following effects can be obtained.
(1) Since the same layout process is performed only once even if the print start is instructed from the previewer, the load on the computer is reduced.
(2) If the creation of the preview XPS document is completed, the subsequent print job in the print queue can be processed even during the preview.

〔第2実施形態〕
第1実施形態では、印刷プレビュー後に実印刷を行うにあたり、印刷プレビュー時に作成したレイアウト処理済みのプレビュー用XPS文書をそのまま利用して実印刷を継続できるように構成した。これによって、実印刷時には、レイアウト処理済みのプレビュー用XPS文書に対して必要な残りの処理だけを行えば良いことになるため、印刷プレビュー時と実印刷時とでレイアウト処理を重複して行うことがなくなる。
[Second Embodiment]
In the first embodiment, when actual printing is performed after print preview, the actual printing can be continued using the layout-processed preview XPS document created during the print preview as it is. As a result, during the actual printing, only the remaining necessary processing needs to be performed on the layout-processed preview XPS document. Therefore, the layout processing is performed repeatedly during the print preview and the actual printing. Disappears.

一方で、印刷プレビューを表示するにあたり、印刷内容の事前確認や印刷ミスの事前防止を目的とした使い勝手向上のために、表示内容を加工してからプレビュー表示するような技術が従来より提供されている。前述したCD−R領域表示機能等もこれに該当し、印刷プレビュー用に生成された印刷イメージに対してCD−R領域の内外を識別するための境界線の追加や濃淡調整等の加工処理を施し、加工後の印刷イメージを表示することによって機能を実現している。XPS文書を扱うプリンタドライバにおいて言えば、CD−R領域表示機能を実現するためには、プレビュー制御モジュールにおいてプレビュー用XPS文書内の各ページの印刷イメージを加工することになる。   On the other hand, in order to improve the usability for the purpose of checking the print contents in advance and preventing print mistakes before displaying the print preview, a technology has been provided that displays the preview after processing the display contents. Yes. The above-described CD-R area display function and the like correspond to this, and processing such as addition of a boundary line and density adjustment for identifying the inside and outside of the CD-R area is performed on the print image generated for print preview. The function is realized by displaying the printed image after processing. In the case of a printer driver that handles XPS documents, in order to realize the CD-R area display function, the preview control module processes the print image of each page in the preview XPS document.

このため、第1実施形態の構成下でCD−R領域表示機能を実現する場合には、加工済みのプレビュー用XPS文書をそのまま利用して実印刷を継続してしまうことになるため、実印刷の結果についてもCD−R領域表示が施されてしまうという課題がある。   For this reason, when the CD-R area display function is realized under the configuration of the first embodiment, actual printing is continued using the processed preview XPS document as it is. There is also a problem that the CD-R region display is performed on the result of the above.

そこで本実施形態では、プレビュー制御モジュールがプレビュー表示を行うにあたりプレビュー用XPS文書内の各ページの印刷イメージを加工した場合には、各ページの印刷イメージを加工前の状態に戻してから実印刷を継続できるように構成する。   Therefore, in this embodiment, when the preview control module processes the print image of each page in the preview XPS document when performing the preview display, the print image of each page is returned to the state before the process and actual printing is performed. Configure to continue.

なお、第1実施形態と共通する部分、例えば図1、図2などについてはその説明を省略する。ただし、図11の処理は第1実施形態に特有であり、本実施形態では図11に代えて図15の処理が実行される。   Note that description of portions common to the first embodiment, for example, FIGS. 1 and 2 is omitted. However, the process of FIG. 11 is unique to the first embodiment, and in this embodiment, the process of FIG. 15 is executed instead of FIG.

具体的には、プレビュー制御モジュール219は、プレビューフィルター215により起動されると、プレビュー用XPS文書221を読込み、プレビュー表示すべきページ(例えば1ページ目)について後述するプレビュー表示処理を行う。またプレビュー制御モジュール219は、ユーザの指示に従い表示するページを切り替える際にも同様にプレビュー表示処理を行う。   Specifically, when the preview control module 219 is activated by the preview filter 215, the preview control module 219 reads the preview XPS document 221 and performs a preview display process to be described later on a page to be previewed (for example, the first page). The preview control module 219 also performs preview display processing when switching pages to be displayed in accordance with user instructions.

さらに、プレビュー制御モジュール219は、プレビュー用XPS文書221が完成した後にユーザから印刷開始の指示を受けた場合には、後述するプレビュー用XPS文書リセット処理を行い、その後にプレビュー用XPS文書221のデータを用いて新規の印刷ジョブを作成し終了する。   Furthermore, when the preview control module 219 receives a print start instruction from the user after the preview XPS document 221 is completed, the preview control module 219 performs a preview XPS document reset process, which will be described later, and then the data of the preview XPS document 221. Create a new print job using, and end.

<プレビュー表示処理>
次に、本実施形態におけるプレビュー制御モジュール219が行うプレビュー表示処理の概要について説明する。
<Preview display processing>
Next, an overview of the preview display process performed by the preview control module 219 in the present embodiment will be described.

先ず、プレビュー制御モジュール219は、プレビュー用XPS文書からプレビュー表示を行うページの印刷設定情報(PT)を取得する。   First, the preview control module 219 acquires print setting information (PT) of a page to be previewed from the preview XPS document.

続いて、プレビュー制御モジュール219は、上記取得したPTを参照してプレビュー表示を行うページの印刷設定がCD−R印刷か否かを判断し、CD−R印刷が設定されていた場合には、CD−R領域表示のために印刷イメージを加工する。具体的には、例えば、CD−Rの内側に該当する部分と外側に該当する部分との境界に線を引くための描画命令やCD−Rの外側に位置する画像の濃度を下げるための描画命令をFPに追加する。   Subsequently, the preview control module 219 determines whether the print setting of the page to be previewed is CD-R printing with reference to the acquired PT, and if CD-R printing has been set, The print image is processed for displaying the CD-R area. Specifically, for example, a drawing command for drawing a line at the boundary between a portion corresponding to the inside of the CD-R and a portion corresponding to the outside, or drawing for reducing the density of an image located outside the CD-R Add instructions to the FP.

続いて、プレビュー制御モジュール219は、上記加工した印刷イメージを印刷プレビューとして表示する。   Subsequently, the preview control module 219 displays the processed print image as a print preview.

<プレビュー用XPS文書リセット処理>
次に、本実施形態におけるプレビュー制御モジュール219が行うプレビュー用XPS文書リセット処理の概要について説明する。
<Preview XPS document reset processing>
Next, an outline of the preview XPS document reset process performed by the preview control module 219 in the present embodiment will be described.

先ず、プレビュー制御モジュール219は、プレビュー用XPS文書から各FPを取得する。   First, the preview control module 219 acquires each FP from the preview XPS document.

続いて、プレビュー制御モジュール219は、CD−R領域表示のために追加された描画命令がFPに存在するか否かを判断し、CD−R領域表示のために追加された描画命令が存在する場合は当該描画命令を削除する。   Subsequently, the preview control module 219 determines whether or not a drawing command added for displaying the CD-R area is present in the FP, and there is a drawing command added for displaying the CD-R area. In this case, the drawing command is deleted.

<CD−R領域表示を含む印刷プレビュー画面の例>
図12は本実施形態におけるプレビュー制御モジュール219によって提供される印刷プレビュー画面のうち、特にCD−R領域表示を施した印刷プレビュー画面1200の一例を示した図である。
<Example of print preview screen including CD-R area display>
FIG. 12 is a diagram showing an example of a print preview screen 1200 on which a CD-R area display is performed, among the print preview screens provided by the preview control module 219 in the present embodiment.

図12において“1201”は、CD−Rの内側に該当する部分と外側に該当する部分との境界を示している。
“1202”は、印刷イメージのうちCD−Rの内側に出力される領域を示している。
“1203”は、印刷イメージの濃度を下げて表示することによって、印刷イメージのうちCD−Rの外側に出力される領域を示している。
In FIG. 12, “1201” indicates a boundary between a portion corresponding to the inside of the CD-R and a portion corresponding to the outside.
“1202” indicates a region of the print image that is output inside the CD-R.
“1203” indicates a region of the print image that is output outside the CD-R by displaying the print image at a reduced density.

<CD−R領域表示を行うFixedPageの例>
次に、図13を用いて本実施形態におけるプレビュー制御モジュール219がCD−R領域表示のために追加する描画命令について説明する。
<Example of FixedPage for displaying CD-R area>
Next, a drawing command added by the preview control module 219 in this embodiment for displaying a CD-R area will be described with reference to FIG.

前述したようにFPとは、1ページの文書内容をXML形式で記述したものである。従ってテキストで表現できるため、図13(A)のように視覚的に記述することができる。   As described above, the FP describes the document content of one page in the XML format. Therefore, since it can be expressed in text, it can be visually described as shown in FIG.

図13(A)は、レイアウトフィルター213によるレイアウト処理を介して、プレビューフィルター215により格納されたプレビュー用XPS文書221に含まれているFPの一例を示している。   FIG. 13A shows an example of the FP included in the preview XPS document 221 stored by the preview filter 215 through the layout processing by the layout filter 213.

図13(B)は、図13(A)に示すFPの印刷イメージに対してCD−R領域表示を行うために描画命令を追加したFPの一例を示している。図13(B)の例では、プレビュー制御モジュール219が追加した上記描画命令を識別できるようにしておくために、プライベート名前空間に属する属性情報を各描画命令に対して付加している。具体的には、FixedPageのルート要素において、プレフィックスが“ns0000”となるプライベートの名前空間を宣言しておき、各描画命令の属性情報として上記名前空間に属する“ns0000:owner”属性を定義し、属性値として“Previewer”を指定している。これにより、当該描画命令の作成者がプレビュー制御モジュール219であることを識別できるようになる。
なお、描画命令を識別するための手法は上記に限定されるものではない。
FIG. 13B shows an example of an FP in which a drawing command is added to display a CD-R area on the FP print image shown in FIG. In the example of FIG. 13B, attribute information belonging to the private name space is added to each drawing command so that the drawing command added by the preview control module 219 can be identified. Specifically, in the root element of the FixedPage, a private namespace whose prefix is “ns0000” is declared, and “ns0000: owner” attribute belonging to the namespace is defined as attribute information of each drawing command. “Previewer” is specified as the attribute value. This makes it possible to identify that the creator of the drawing command is the preview control module 219.
Note that the method for identifying the drawing command is not limited to the above.

<CD−R印刷設定がなされたPrintTicketの例>
図14は、CD−R印刷設定がなされているPTの一例を示す図である。
PTの標準的な記載内容はPrintSchemaと呼ばれるスキーマにより規定されており、「用紙の種類」「給紙方法」「用紙サイズ」に関する設定項目も定義されている。
<Example of PrintTicket with CD-R print settings>
FIG. 14 is a diagram illustrating an example of a PT for which CD-R print settings are made.
The standard description content of PT is defined by a schema called PrintSchema, and setting items related to “paper type”, “paper feeding method”, and “paper size” are also defined.

PrintSchemaでは“name”属性の値が“psf:PageMediaType”となる“psf:Feature”要素が「用紙の種類」として定義されている。   In PrintSchema, a “psf: Feature” element whose “name” attribute value is “psf: PageMediaType” is defined as “paper type”.

図14の例では、上記“psf:Feature”要素の子要素である“psf:Option”要素の“name”属性の値として“ns0000:Disc”を指定することによってCD−Rメディア設定として扱われることを示している。   In the example of FIG. 14, by specifying “ns0000: Disc” as the value of the “name” attribute of the “psf: Option” element that is a child element of the “psf: Feature” element, it is handled as the CD-R media setting. It is shown that.

<プレビュー制御モジュールの処理>
図15は、本実施形態におけるプレビュー制御モジュール219の処理を示すフローチャートの一例である。同図において第1実施形態で示した図11と同様の処理には同一のステップ番号を示し、その説明を省略する。
<Processing of preview control module>
FIG. 15 is an example of a flowchart showing processing of the preview control module 219 in the present embodiment. In the same figure, the same step number is shown for the same process as FIG. 11 shown in 1st Embodiment, and the description is abbreviate | omitted.

ステップS501で、詳細は後述するが、プレビュー制御モジュール219は、プレビュー表示処理により、表示すべきページ(例えば1ページ目)の印刷プレビューを表示する。   In step S501, although details will be described later, the preview control module 219 displays a print preview of the page to be displayed (for example, the first page) by the preview display process.

ステップS502で、プレビュー制御モジュール219は、S303により取得したイベントがプレビュー表示するページの切り替えか否かを判別する。   In step S502, the preview control module 219 determines whether the event acquired in step S303 is switching of a page to be previewed.

この判別の結果、S303により取得したイベントがプレビュー表示するページの切り替えであると判別した場合は、ステップS503へ進む。また、そうでないとプレビュー制御モジュール219が判別した場合にはステップS309へ進む。   As a result of this determination, if it is determined that the event acquired in S303 is switching of the page to be previewed, the process proceeds to step S503. Otherwise, if the preview control module 219 determines that this is not the case, the process proceeds to step S309.

ステップS503に進むと、プレビュー制御モジュール219は、プレビュー表示処理により、S303により取得したイベントでユーザが指定したページの印刷プレビューを表示する。   In step S503, the preview control module 219 displays a print preview of the page specified by the user at the event acquired in step S303 by the preview display process.

ステップS504で、詳細は後述するが、プレビュー制御モジュール219は、プレビュー用XPS文書リセット処理により、プレビュー用XPS文書221を元の状態に戻す。   In step S504, although details will be described later, the preview control module 219 returns the preview XPS document 221 to the original state by the preview XPS document reset processing.

<プレビュー表示処理フローの一例>
図16は、図15に示したステップS501、ならびに、ステップS503のプレビュー表示処理の詳細処理例である。
<Example of preview display processing flow>
FIG. 16 is a detailed processing example of the preview display processing in step S501 and step S503 shown in FIG.

なお、S601〜S607は各ステップを示す。また、各ステップは、データ処理装置102のCPUが外部記憶装置等から制御プログラムをメモリにロードして実行することで実現される。   In addition, S601-S607 shows each step. Each step is realized by the CPU of the data processing apparatus 102 loading a control program from an external storage device or the like to the memory and executing it.

まず、ステップS601で、詳細は後述するが、プレビュー制御モジュール219は、FixedPage処理用PrintTicket取得処理により、プレビュー表示を行うページの印刷設定情報(PT)を取得する。   First, in step S601, although details will be described later, the preview control module 219 acquires print setting information (PT) of a page on which preview display is performed by the FixedPage processing PrintTicket acquisition processing.

次に、ステップS602で、プレビュー制御モジュール219は、ステップS601により取得したPTを参照して用紙の種類の設定内容を取得する。具体的には、“name”属性の値が“psf:PageMediaType”となる“Feature”要素を検索し、その子要素である“psf:Option”要素の内容を取得する。   Next, in step S602, the preview control module 219 refers to the PT acquired in step S601 and acquires the setting content of the paper type. Specifically, a “Feature” element having a “name” attribute value “psf: PageMediaType” is searched, and the contents of the “psf: Option” element that is a child element thereof are acquired.

次に、ステップS603で、プレビュー制御モジュール219は、ステップS602により取得した“psf:Option”要素を参照して、用紙の種類の設定がCD−R設定になっているか否かを判別する。具体的には、“psf:Option”要素の“name”属性の値が“ns0000:Disc”であるか否かを判別する。   Next, in step S603, the preview control module 219 refers to the “psf: Option” element acquired in step S602, and determines whether or not the paper type setting is the CD-R setting. Specifically, it is determined whether or not the value of the “name” attribute of the “psf: Option” element is “ns0000: Disc”.

この判別の結果、用紙の種類の設定がCD−R設定になっていると判別した場合は、ステップS604へ進む。また、そうでないとプレビュー制御モジュール219が判別した場合にはステップS607へ進む。   As a result of the determination, if it is determined that the paper type setting is the CD-R setting, the process proceeds to step S604. On the other hand, if the preview control module 219 determines otherwise, the process proceeds to step S607.

ステップS604に進むと、プレビュー制御モジュール219は、プレビュー表示を行うページのFPを参照し、CD−R強調表示のための描画命令が既にFPに追加されているか否かを判別する。   In step S604, the preview control module 219 refers to the FP of the page on which preview display is performed, and determines whether or not a drawing command for CD-R highlighting has already been added to the FP.

この判別の結果、CD−R領域表示のための描画命令が既にFPに追加されていると判別した場合は、ステップS605へ進む。また、そうでないとプレビュー制御モジュール219が判別した場合にはステップS607へ進む。   As a result of the determination, if it is determined that the drawing command for displaying the CD-R area has already been added to the FP, the process proceeds to step S605. On the other hand, if the preview control module 219 determines otherwise, the process proceeds to step S607.

ステップS605に進むと、プレビュー制御モジュール219は、当該ページのFPにCD−R領域表示のための描画命令(プレビュー表示固有の描画命令)を追加する。   In step S605, the preview control module 219 adds a drawing command for displaying the CD-R area (drawing command unique to the preview display) to the FP of the page.

次に、ステップS606で、プレビュー制御モジュール219は、ステップS605により追加した描画命令に対して、当該描画命令の作成者がプレビュー制御モジュール219であることを識別するためのフラグを追加する。   Next, in step S606, the preview control module 219 adds a flag for identifying that the creator of the drawing command is the preview control module 219 to the drawing command added in step S605.

ステップS607に進むと、プレビュー制御モジュール219は、当該ページのFPを用いてプレビュー表示を行い、本処理を終了する。   In step S607, the preview control module 219 performs a preview display using the FP of the page, and ends this process.

なお、CD−Rのメディアの領域を表示のための描画命令の例で説明したが、グリッド(線)や目盛りを表示するための描画命令にも適用できる。また、文書画像のフチなし印刷時に、拡大された文書画像のうちメディアに印刷される領域を表示するための描画命令にも適用できる。   Note that the example of the drawing command for displaying the area of the CD-R media has been described, but the present invention can also be applied to a drawing command for displaying a grid (line) or a scale. In addition, the present invention can be applied to a drawing command for displaying an area to be printed on a medium in an enlarged document image during borderless printing of the document image.

<プレビュー用XPS文書リセット処理フローの一例>
図17は、図15に示したステップS504のプレビュー用XPS文書リセット処理の詳細処理例である。
<An example of a preview XPS document reset processing flow>
FIG. 17 is a detailed processing example of the preview XPS document reset processing in step S504 shown in FIG.

なお、S801〜S804は各ステップを示す。また、各ステップは、データ処理装置102のCPUが外部記憶装置等から制御プログラムをメモリにロードして実行することで実現される。   In addition, S801-S804 shows each step. Each step is realized by the CPU of the data processing apparatus 102 loading a control program from an external storage device or the like to the memory and executing it.

ステップS801〜ステップS804はプレビュー用XPS文書221に含まれる各ページに対して処理を行うページ処理ループである。   Steps S <b> 801 to S <b> 804 are a page processing loop for processing each page included in the preview XPS document 221.

ステップS801はページ処理ループの開始端であり、続くステップS802〜ステップS803の処理をプレビュー用XPS文書221に含まれる先頭ページのFPから順に行っていく。   Step S801 is the start end of the page processing loop, and the processing in subsequent steps S802 to S803 is sequentially performed from the first page FP included in the preview XPS document 221.

次に、ステップS802で、プレビュー制御モジュール219は、CD−R領域表示のために追加された描画命令が当該ページのFPに存在するか否かを判別する。   Next, in step S802, the preview control module 219 determines whether or not a drawing command added for displaying the CD-R area exists in the FP of the page.

この判別の結果、CD−R領域表示のために追加された描画命令が当該ページのFPに存在すると判別した場合は、ステップS803へ進む。また、そうでないとプレビュー制御モジュール219が判別した場合にはステップS804へ進む。   As a result of the determination, if it is determined that the drawing command added for displaying the CD-R area exists in the FP of the page, the process proceeds to step S803. On the other hand, if the preview control module 219 determines otherwise, the process advances to step S804.

ステップS803に進むと、プレビュー制御モジュール219は、当該ページのFPに存在するCD−R領域表示のための描画命令を削除する。   In step S803, the preview control module 219 deletes the drawing command for displaying the CD-R area existing in the FP of the page.

ステップS804はページ処理ループの終端であり、プレビュー用XPS文書221に含まれる最終ページのFPに対して処理が完了するまでステップS801に戻る処理を繰り返す。一方、最終ページのFPに対して処理が完了している場合には本処理を終了する。   Step S804 is the end of the page processing loop, and the process of returning to step S801 is repeated until the processing is completed for the FP of the last page included in the preview XPS document 221. On the other hand, when the process is completed for the FP of the last page, this process ends.

<FixedPage処理用PrintTicket取得処理フローの一例>
図18は、図16に示したステップS601のFixedPage処理用PrintTicket取得処理の詳細処理例である。
<Example of PrintTicket Acquisition Processing Flow for FixedPage Processing>
FIG. 18 is a detailed processing example of the FixedPage processing PrintTicket acquisition processing in step S601 shown in FIG.

なお、S701〜S713は各ステップを示す。また、各ステップは、データ処理装置102のCPUが外部記憶装置等から制御プログラムをメモリにロードして実行することで実現される。   S701 to S713 indicate each step. Each step is realized by the CPU of the data processing apparatus 102 loading a control program from an external storage device or the like to the memory and executing it.

まず、ステップS701で、プレビュー制御モジュール219は、ユーザのデフォルト印刷設定を格納したデフォルトPTを取得する。なお、本ステップにより取得したデフォルトPTを暫定のFP処理用PTとする。   First, in step S701, the preview control module 219 acquires a default PT that stores a user's default print settings. The default PT acquired in this step is set as a temporary FP processing PT.

次に、ステップS702で、プレビュー制御モジュール219は、プレビュー用XPS文書221からFDSを取得する。   Next, in step S <b> 702, the preview control module 219 acquires the FDS from the preview XPS document 221.

次に、ステップS703で、プレビュー制御モジュール219は、ステップS702により取得したFDSに関連付けられているPTを取得する。   Next, in step S703, the preview control module 219 acquires the PT associated with the FDS acquired in step S702.

次に、ステップS704で、プレビュー制御モジュール219は、ステップS703によりFDSに関連付けられているPTを取得できたか否かを判別する。   Next, in step S704, the preview control module 219 determines whether or not the PT associated with the FDS has been acquired in step S703.

この判別の結果、FDSに関連付けられているPTを取得できたと判別した場合は、ステップS705へ進む。また、そうでないとプレビュー制御モジュール219が判別した場合にはステップS706へ進む。   As a result of the determination, if it is determined that the PT associated with the FDS has been acquired, the process proceeds to step S705. Otherwise, if the preview control module 219 determines that it is not, the process proceeds to step S706.

ステップS705に進むと、プレビュー制御モジュール219は、暫定のFP処理用PTに対して、ステップS703により取得したFDSに関連付けられているPTをマージする。なお、本ステップによりマージされたPTを暫定のFP処理用PTとする。   In step S705, the preview control module 219 merges the PT associated with the FDS acquired in step S703 with the provisional FP processing PT. The PT merged in this step is set as a temporary FP processing PT.

ステップS706に進むと、プレビュー制御モジュール219は、プレビュー用XPS文書221からプレビュー表示すべきページが属しているFDを取得する。   In step S706, the preview control module 219 obtains the FD to which the page to be previewed belongs from the preview XPS document 221.

次に、ステップS707で、プレビュー制御モジュール219は、ステップS706により取得したFDに関連付けられているPTを取得する。   Next, in step S707, the preview control module 219 acquires the PT associated with the FD acquired in step S706.

次に、ステップS708で、プレビュー制御モジュール219は、ステップS707によりFDに関連付けられているPTを取得できたか否かを判別する。   Next, in step S708, the preview control module 219 determines whether or not the PT associated with the FD has been acquired in step S707.

この判別の結果、FDに関連付けられているPTを取得できたと判別した場合は、ステップS709へ進む。また、そうでないとプレビュー制御モジュール219が判別した場合にはステップS710へ進む。   As a result of the determination, if it is determined that the PT associated with the FD has been acquired, the process proceeds to step S709. Otherwise, if the preview control module 219 determines that this is not the case, the process proceeds to step S710.

ステップS709に進むと、プレビュー制御モジュール219は、暫定のFP処理用PTに対して、ステップS707により取得したFDに関連付けられているPTをマージする。なお、本ステップによりマージされたPTを暫定のFP処理用PTとする。   In step S709, the preview control module 219 merges the PT associated with the FD acquired in step S707 with the provisional FP processing PT. The PT merged in this step is set as a temporary FP processing PT.

ステップS710に進むと、プレビュー制御モジュール219は、プレビュー用XPS文書221からプレビュー表示すべきページのFPを取得する。   In step S710, the preview control module 219 acquires the FP of the page to be previewed from the preview XPS document 221.

次に、ステップS711で、プレビュー制御モジュール219は、ステップS710により取得したFPに関連付けられているPTを取得する。   Next, in step S711, the preview control module 219 acquires the PT associated with the FP acquired in step S710.

次に、ステップS712で、プレビュー制御モジュール219は、ステップS711によりFPに関連付けられているPTを取得できたか否かを判別する。   Next, in step S712, the preview control module 219 determines whether or not the PT associated with the FP has been acquired in step S711.

この判別の結果、FPに関連付けられているPTを取得できたと判別した場合は、ステップS713へ進む。また、そうでないとプレビュー制御モジュール219が判別した場合には暫定のFP処理用PTを最終的なFP処理用PTと確定し、本処理を終了する。   As a result of this determination, if it is determined that the PT associated with the FP has been acquired, the process proceeds to step S713. If the preview control module 219 determines otherwise, the provisional FP processing PT is determined as the final FP processing PT, and this processing ends.

ステップS713に進むと、プレビュー制御モジュール219は、暫定のFP処理用PTに対して、ステップS711により取得したFPに関連付けられているPTをマージし、マージされたPTを最終的なFP処理用PTと確定し、本処理を終了する。   In step S713, the preview control module 219 merges the PT associated with the FP acquired in step S711 with the provisional FP processing PT, and the merged PT is the final FP processing PT. The process is terminated.

以上のように本実施形態によれば、プレビュー制御モジュールがプレビュー表示を行うにあたりプレビュー用XPS文書内の各ページの印刷イメージを加工した場合であっても、印刷プレビュー後に、当該プレビュー用XPS文書を用いて実印刷処理を継続できるようになる。   As described above, according to the present embodiment, even when the print image of each page in the preview XPS document is processed when the preview control module performs the preview display, the preview XPS document is displayed after the print preview. The actual printing process can be continued using this.

これにより、印刷プレビュー時と実印刷時とでレイアウト処理を重複して行うことがなくなるといった第1実施形態における効果を得られながらも、従来より提供してきたCD−R領域表示機能を実現することができる。   As a result, the conventional CD-R area display function can be realized while the effect of the first embodiment in which the layout process is not duplicated between the print preview and the actual print can be obtained. Can do.

従って、CD−Rメディアに印刷する場合に、ユーザはCD−R上に印刷される内容を事前に正確に確認できるようになるため、印刷装置にセットする専用トレイを汚してしまうことも防ぐことができるようになり、より使い勝手の良い印刷プレビュー機能を提供することができる。   Therefore, when printing on CD-R media, the user can accurately confirm in advance the contents printed on the CD-R, thereby preventing the dedicated tray set in the printing apparatus from becoming dirty. This makes it possible to provide a more convenient print preview function.

〔第3実施形態〕
第2実施形態では、プレビュー制御モジュールがプレビュー表示を行うにあたりプレビュー用XPS文書内の各ページの印刷イメージを加工した場合には、
各ページの印刷イメージを加工前の状態に戻してから実印刷を継続できるように構成した。これによって、従来より提供してきたCD−R領域表示機能を実現しながらも、印刷プレビュー時と実印刷時とでレイアウト処理を重複して行わないようになる。
[Third Embodiment]
In the second embodiment, when the preview control module processes the print image of each page in the preview XPS document for preview display,
The configuration is such that actual printing can be continued after returning the print image of each page to the state before processing. As a result, while implementing the CD-R area display function that has been provided conventionally, the layout process is not duplicated during print preview and actual printing.

本実施形態では、プレビュー制御モジュールがプレビュー表示を行うにあたりプレビュー用XPS文書内の各ページの印刷イメージを加工した場合に、プレビュー制御モジュールが各ページの印刷イメージを加工前の状態に戻すことなく実印刷を継続できるように構成する。   In this embodiment, when the preview control module processes the print image of each page in the preview XPS document for preview display, the preview control module does not return the print image of each page to the state before processing. Configure to continue printing.

なお、第2実施形態と共通する部分、例えば図1、図2などについてはその説明を省略する。ただし、図15の処理は第2実施形態に特有であり、本実施形態では図15に代えて図19の処理が実行される。また、図17の処理は第2実施形態に特有であり、本実施形態では図17の処理は実行されない。   Note that description of portions common to the second embodiment, for example, FIGS. 1 and 2 is omitted. However, the process of FIG. 15 is specific to the second embodiment, and in this embodiment, the process of FIG. 19 is executed instead of FIG. Moreover, the process of FIG. 17 is peculiar to 2nd Embodiment, and the process of FIG. 17 is not performed in this embodiment.

具体的には、プレビュー制御モジュール219は、プレビュー用XPS文書221が完成した後にユーザから印刷開始の指示を受けた場合には、第2実施形態におけるプレビュー用XPS文書リセット処理を行わずに、プレビュー用XPS文書221のデータを用いて新規の印刷ジョブを作成し終了する。   Specifically, when the preview control module 219 receives a print start instruction from the user after the preview XPS document 221 is completed, the preview control module 219 performs the preview without performing the preview XPS document reset processing in the second embodiment. A new print job is created using the data of the XPS document 221 and the process is terminated.

一方、印刷コマンドフィルター217は、プレビューフィルター215から出力されたXPSデータを入力として受け取ると、後述する印刷コマンドフィルター処理に従い、XPSデータをプリンタが解釈可能な印刷コマンドに変換し出力する。   On the other hand, when the print command filter 217 receives the XPS data output from the preview filter 215 as an input, the print command filter 217 converts the XPS data into a print command interpretable by the printer and outputs the print command according to a print command filter process described later.

<プレビュー制御モジュールの処理>
図19は、本実施形態におけるプレビュー制御モジュール219の処理を示すフローチャートの一例である。同図は第2実施形態で示した図15の処理をのうちステップS504の処理だけを省いたものであるため説明を省略する。
<Processing of preview control module>
FIG. 19 is an example of a flowchart showing processing of the preview control module 219 in the present embodiment. This figure omits only the process of step S504 from the process of FIG. 15 shown in the second embodiment, and a description thereof will be omitted.

<印刷コマンドフィルター処理フローの一例>
図20は、本実施形態における印刷コマンドフィルター217の処理を示すフローチャートの一例である。
<Example of print command filter processing flow>
FIG. 20 is an example of a flowchart showing processing of the print command filter 217 in the present embodiment.

なお、S901〜S911は各ステップを示す。また、各ステップは、データ処理装置102のCPUが外部記憶装置等から制御プログラムをメモリにロードして実行することで実現される。   In addition, S901-S911 show each step. Each step is realized by the CPU of the data processing apparatus 102 loading a control program from an external storage device or the like to the memory and executing it.

ステップS901〜ステップS911はXPSデータに含まれる各ドキュメントに対して処理を行うドキュメント処理ループである。   Steps S901 to S911 are a document processing loop for processing each document included in the XPS data.

ステップS901はドキュメント処理ループの開始端であり、続くステップS902〜ステップS910の処理をXPSデータに含まれる先頭ドキュメントのFDから順に行っていく。   Step S901 is the starting end of the document processing loop, and the subsequent steps S902 to S910 are sequentially performed from the FD of the first document included in the XPS data.

ステップS902〜ステップS910は当該FDに含まれる各ページに対して処理を行うページ処理ループである。   Steps S902 to S910 are a page processing loop for processing each page included in the FD.

ステップS902はページ処理ループの開始端であり、続くステップS903〜ステップS909の処理を当該FDに含まれる先頭ページのFPから順に行っていく。   Step S902 is the start end of the page processing loop, and the processing in subsequent steps S903 to S909 is sequentially performed from the FP of the first page included in the FD.

次に、ステップS903で、印刷コマンドフィルター217は、FixedPage処理用PrintTicket取得処理により、当該ページの印刷設定情報(PT)を取得する。   In step S903, the print command filter 217 acquires the print setting information (PT) of the page by the FixedPage processing PrintTicket acquisition processing.

ステップS904〜ステップS908は当該ページのFPに含まれる各描画命令に対して処理を行う描画命令処理ループである。   Steps S904 to S908 are a drawing command processing loop for processing each drawing command included in the FP of the page.

ステップS904は描画命令処理ループの開始端であり、続くステップS905〜ステップS907の処理をFPに含まれる先頭の描画命令から順に行っていく。   Step S904 is a start end of a drawing command processing loop, and the processing of subsequent steps S905 to S907 is performed in order from the first drawing command included in the FP.

次に、ステップS905で、印刷コマンドフィルター217は、FPに含まれる描画命令を取得する。   In step S905, the print command filter 217 acquires a drawing command included in the FP.

次に、ステップS906で、印刷コマンドフィルター217は、ステップS905により取得した描画命令がプレビュー表示を行うためにプレビュー制御モジュールによって格納された描画命令であるか否かを判別する。具体的には、FixedPageのルート要素において、プレフィックスが“ns0000”となるプライベートの名前空間を宣言されているか否か、ならびに、描画命令の属性情報として上記名前空間に属する“ns0000:owner”属性が定義され、属性値として“Previewer”が指定されているか否かを判別する。   Next, in step S906, the print command filter 217 determines whether the drawing command acquired in step S905 is a drawing command stored by the preview control module in order to perform preview display. Specifically, in the FixedPage root element, whether or not a private name space whose prefix is “ns0000” is declared, and the “ns0000: owner” attribute belonging to the name space is included as attribute information of the rendering command. It is determined whether or not “Previewer” is specified as the attribute value.

この判別の結果、プレビュー制御モジュールによって格納された描画命令であると判別した場合は、ステップS908へ進む。また、そうでない(プレビュー表示固有の描画命令以外の描画命令)と印刷コマンドフィルター217が判別した場合にはステップS907へ進む。   As a result of the determination, if it is determined that the drawing command is stored by the preview control module, the process proceeds to step S908. If the print command filter 217 determines that this is not the case (a drawing command other than the drawing command unique to the preview display), the process advances to step S907.

ステップS907に進むと、印刷コマンドフィルター217は、ステップS905により取得した描画命令をプリンタが解釈可能な印刷コマンドに変換する。   In step S907, the print command filter 217 converts the drawing command acquired in step S905 into a print command that can be interpreted by the printer.

ステップS908は描画命令処理ループの終端であり、当該FPに含まれる最終の描画命令に対して処理が完了するまでステップS904に戻る処理を繰り返す。一方、最終の描画命令に対して処理が完了している場合にはステップS909へ進む。   Step S908 is the end of the drawing command processing loop, and the process of returning to step S904 is repeated until the processing for the final drawing command included in the FP is completed. On the other hand, if the processing for the final drawing command has been completed, the process proceeds to step S909.

ステップS909に進むと、印刷コマンドフィルター217は、ステップS907により変換された印刷コマンドを出力する。   In step S909, the print command filter 217 outputs the print command converted in step S907.

ステップS910はページ処理ループの終端であり、当該FDに含まれる最終ページのFPに対して処理が完了するまでステップS902に戻る処理を繰り返す。一方、最終ページのFPに対して処理が完了している場合にはステップS911へ進む。   Step S910 is the end of the page processing loop, and the process of returning to step S902 is repeated until the processing is completed for the FP of the last page included in the FD. On the other hand, if the processing for the last page FP is completed, the process advances to step S911.

ステップS911はドキュメント処理ループの終端であり、XPSデータに含まれる最終ドキュメントのFDに対して処理が完了するまでステップS901に戻る処理を繰り返す。一方、最終ドキュメントのFDに対して処理が完了している場合には本処理を終了する。   Step S911 is the end of the document processing loop, and the process of returning to step S901 is repeated until the processing is completed for the FD of the final document included in the XPS data. On the other hand, when the process is completed for the FD of the final document, the process ends.

〔第4実施形態〕
第1実施形態では、印刷プレビュー後に実印刷を行うにあたり、印刷プレビュー時に作成したレイアウト処理済みのプレビュー用XPS文書をそのまま利用して実印刷を継続できるように構成した。これによって、実印刷時には、レイアウト処理済みのプレビュー用XPS文書に対して必要な残りの処理だけを行えば良いことになるため、印刷プレビュー時と実印刷時とでレイアウト処理を重複して行うことがなくなる。
[Fourth Embodiment]
In the first embodiment, when actual printing is performed after print preview, the actual printing can be continued using the layout-processed preview XPS document created during the print preview as it is. As a result, during the actual printing, only the remaining necessary processing needs to be performed on the layout-processed preview XPS document. Therefore, the layout processing is performed repeatedly during the print preview and the actual printing. Disappears.

ここで、印刷プレビューの表示中にその場で印刷設定の変更を受け付け、変更した印刷設定に応じて印刷処理を実行する技術が従来より提供されている。従来技術では、印刷プレビュー後の実印刷時に実印刷用の印刷イメージを最初から生成しなおす構成であったため、印刷プレビュー中に変更された印刷設定に応じて印刷処理を行うことができていた。   Here, there has been conventionally provided a technique for accepting a change in print settings on the spot during display of a print preview and executing print processing in accordance with the changed print settings. In the prior art, since a print image for actual printing is generated again from the beginning at the time of actual printing after print preview, printing processing can be performed according to print settings changed during print preview.

一方で、第1実施形態の構成下で印刷プレビューの表示中にその場で印刷設定の変更を受け付ける場合には問題がある。   On the other hand, there is a problem when a change in print settings is received on the spot while the print preview is displayed under the configuration of the first embodiment.

具体的には、第1実施形態では、印刷プレビュー時に作成したレイアウト処理済みのプレビュー用XPS文書をそのまま利用して実印刷を継続するため、印刷プレビュー中に変更された印刷設定の内容次第では、処理済みのレイアウトと変更後の印刷設定との間に矛盾が生じる。たとえば、A4用紙に対して2in1の割付印刷のレイアウト処理を施したプレビュー用XPS文書を印刷プレビューにて表示し、プレビュー表示中に出力用紙の設定をA4からB5に変更するようなケース等が挙げられる。ユーザは当然実印刷結果としてB5用紙のサイズにフィットする2in1の割付印刷を期待しているわけだが、第1実施形態の構成に従ってプレビュー用XPS文書をそのまま利用して実印刷を継続してしまうと、A4用紙のサイズにフィットするような2in1の割付印刷をレイアウトすることになる。このため、A4用紙とはサイズも縦横比も異なるB5用紙には印刷イメージが収まらずに印字欠けを引き起こす、或いは、文書自体は何とかB5用紙内に収まったとしてもレイアウト位置が一辺に偏ってしまう等、所望する印刷結果を得られないことになる。   Specifically, in the first embodiment, actual printing is continued using the layout-processed preview XPS document created at the time of print preview as it is. Depending on the contents of the print settings changed during the print preview, There is a discrepancy between the processed layout and the changed print settings. For example, a preview XPS document obtained by performing layout processing for 2-in-1 layout printing on A4 paper is displayed in print preview, and the output paper setting is changed from A4 to B5 during preview display. It is done. The user naturally expects 2-in-1 layout printing that fits the size of B5 paper as the actual printing result, but if the actual printing is continued using the preview XPS document as it is according to the configuration of the first embodiment. , Layout of 2-in-1 layout printing that fits the size of A4 paper. For this reason, print images do not fit on B5 paper, which is different in size and aspect ratio from A4 paper, causing print defects, or even if the document itself fits within B5 paper, the layout position is biased to one side. For example, a desired print result cannot be obtained.

そこで本実施形態では、第1実施形態の構成下で印刷プレビュー表示中の印刷設定変更機能を提供するにあたり、プレビュー用XPS文書に対して既に施されている印刷処理(たとえばレイアウト処理)に影響を与えない範囲内で印刷設定の変更を受け付けるように構成する。   Therefore, in this embodiment, in providing the print setting change function during print preview display under the configuration of the first embodiment, the print processing (for example, layout processing) already performed on the preview XPS document is affected. It is configured to accept a change in print settings within a range not given.

なお、第1実施形態と共通する部分、例えば図1、図2などについてはその説明を省略する。ただし、図11の処理は第1実施形態に特有であり、本実施形態では図11に代えて図25の処理が実行される。   Note that description of portions common to the first embodiment, for example, FIGS. 1 and 2 is omitted. However, the process of FIG. 11 is unique to the first embodiment, and in this embodiment, the process of FIG. 25 is executed instead of FIG.

具体的には、レイアウトフィルター213は、印刷設定情報に基づきページのレイアウト処理を行った後、後述する処理済みフラグ格納処理を行う。   Specifically, the layout filter 213 performs a page layout process based on the print setting information, and then performs a processed flag storage process to be described later.

一方、プレビュー制御モジュール219は、プレビューフィルター215により起動されると、プレビュー用XPS文書221を読込み、プレビュー表示すべきページ(例えば1ページ目)について後述する設定可能値一覧表示処理を行う。またプレビュー制御モジュール219は、ユーザの指示に従い表示するページを切り替える際にも同様に設定可能値一覧表示処理を行う。   On the other hand, when activated by the preview filter 215, the preview control module 219 reads the preview XPS document 221 and performs a settable value list display process to be described later for the page to be previewed (for example, the first page). The preview control module 219 similarly performs a settable value list display process when switching pages to be displayed in accordance with a user instruction.

さらに、プレビュー制御モジュール219は、ユーザの指示により印刷設定の変更を受けると後述する印刷設定更新処理を行う。   Further, when the preview control module 219 receives a change in print settings in response to a user instruction, the preview control module 219 performs print setting update processing described later.

<処理済みフラグ格納処理>
次に、本実施形態におけるレイアウトフィルター213が行う処理済みフラグ格納処理の詳細について説明する。
<Processed flag storage process>
Next, details of the processed flag storage process performed by the layout filter 213 in the present embodiment will be described.

先ず、レイアウトフィルター213は、参照用PrintTicket取得処理により取得したPTに対して、実際に印刷設定情報に基づいて行ったレイアウト処理について処理済みフラグを格納する。具体的には、たとえば、“name”属性の値が“psf:JobNupAllDocumentsContiguously”となる“psf:Feature”要素を参照して2in1の割付印刷処理を行ったのであれば、当該PTのルート要素において、プレフィックスが“ns0000”となるプライベートの名前空間を宣言する。そして、当該“psf:Feature”要素の属性情報として上記名前空間に属する“ns0000:layoutfilterprocess”属性を定義し、属性値として“done”を指定する。これにより、レイアウトフィルター213が2in1の割付印刷を処理済みであることを識別できるようになる。   First, the layout filter 213 stores a processed flag for the layout processing actually performed based on the print setting information for the PT acquired by the reference PrintTicket acquisition processing. Specifically, for example, if a 2-in-1 layout printing process is performed with reference to a “psf: Feature” element in which the value of the “name” attribute is “psf: JobNupAllDocumentsContiguously”, in the root element of the PT, Declare a private namespace whose prefix is “ns0000”. Then, an “ns0000: layoutfilter process” attribute belonging to the name space is defined as attribute information of the “psf: Feature” element, and “done” is designated as an attribute value. As a result, the layout filter 213 can identify that 2in1 layout printing has been processed.

続いて、レイアウトフィルター213は、処理済みのレイアウト処理を行った際の前提条件となる印刷設定について、上記と同様の処理済みフラグを格納する。具体的には、たとえば、2in1の割付印刷処理を行うにあたり、用紙設定に基づいてレイアウト位置やサイズを決定したのであれば、用紙設定に相当する要素、すなわち、“name”属性の値が“psf:PageMediaSize”となる“psf:Feature”要素について、上記同様の属性情報を付加する。これにより、レイアウトフィルター213が用紙設定に基づいてレイアウト処理を行ったことを識別できるようになる。   Subsequently, the layout filter 213 stores a processed flag similar to the above for the print setting that is a precondition when the processed layout processing is performed. Specifically, for example, if the layout position and size are determined based on the paper setting when performing the 2-in-1 layout printing process, the element corresponding to the paper setting, that is, the value of the “name” attribute is “psf”. The attribute information similar to the above is added to the “psf: Feature” element that becomes “: PageMediaSize”. This makes it possible to identify that the layout filter 213 has performed layout processing based on the paper settings.

<設定可能値一覧表示処理>
次に、本実施形態におけるプレビュー制御モジュール219が行う設定可能値一覧表示処理の概要について説明する。
<Settable value list display processing>
Next, an outline of the settable value list display process performed by the preview control module 219 in the present embodiment will be described.

先ず、プレビュー制御モジュール219は、プレビュー用XPS文書からプレビュー表示を行うページの印刷設定情報(PT)を取得する。   First, the preview control module 219 acquires print setting information (PT) of a page to be previewed from the preview XPS document.

続いて、プレビュー制御モジュール219は、上記取得したPTを参照して設定変更を受け付けるべき印刷設定について、レイアウトフィルター213が当該印刷設定に基づいてレイアウト処理済みを行ったか否かを判断する。ここで、当該印刷設定に基づいてレイアウト処理済みを行っている場合には、当該印刷設定の設定変更を受け付けないようにする。一方、当該印刷設定に基づいてレイアウト処理済みを行ってはいない場合には、上記取得したPTを用いて取得したPrintCapabilities(以下PC)に基づいて設定変更可能な選択肢を決定し、その選択肢の一覧をプレビュー画面に表示する。なお、PrintCapabilitiesとは、PTを用いて印刷設定を行うにあたり、プリンタやプリンタドライバの能力情報、具体的には設定可能な設定値の情報等をXML形式で記述したものである。PrintCapabilitiesは、PTと同様に、PrintSchemaと呼ばれるスキーマにより既定されている。   Subsequently, the preview control module 219 refers to the acquired PT, and determines whether or not the layout filter 213 has performed layout processing based on the print setting for accepting the setting change. Here, when layout processing has been performed based on the print setting, the setting change of the print setting is not accepted. On the other hand, when the layout processing has not been performed based on the print setting, options that can be changed based on the PrintCapabilities (hereinafter referred to as PC) acquired using the acquired PT are determined, and a list of the options is determined. Is displayed on the preview screen. Note that PrintCapabilities describes the capability information of the printer and printer driver, specifically, information on settable setting values in the XML format when performing print settings using the PT. Like the PT, PrintCapabilities is defined by a schema called PrintSchema.

<処理済みフラグ格納処理後のPrintTicketの例>
図21は、本実施形態におけるレイアウトフィルター213が、処理済みフラグ格納処理を終えた後のPTの一例を示す図である。
<Example of PrintTicket after processed flag storage processing>
FIG. 21 is a diagram illustrating an example of a PT after the layout filter 213 according to the present embodiment has finished the processed flag storage process.

図21(A)は、通常印刷の設定がなされているPTの一例を示している。図21(A)の例では、割付印刷の設定がなされていなかったため、レイアウトフィルター213により割付印刷のレイアウト処理が行われない。ゆえに、割付印刷に相当する要素、すなわち、“name”属性の値が“psf:JobNupAllDocumentsContiguously”となる“psf:Feature”要素に対して処理済みフラグが付加されていない。また、同様に用紙設定についても処理済みフラグが付加されていない。   FIG. 21A shows an example of PT for which normal printing is set. In the example of FIG. 21A, since layout printing has not been set, the layout filter 213 does not perform layout processing for layout printing. Therefore, the processed flag is not added to the element corresponding to the layout printing, that is, the “psf: Feature” element in which the value of the “name” attribute is “psf: JobNupAllDocumentsContiguously”. Similarly, the processed flag is not added to the paper setting.

図21(B)は、割付印刷として2in1設定がなされているPTの一例を示している。図21(B)の例では、割付印刷として2in1の設定がなされているため、レイアウトフィルター213により割付印刷のレイアウト処理が行われる。ゆえに、割付印刷に相当する要素、すなわち、“name”属性の値が“psf:JobNupAllDocumentsContiguously”となる“psf:Feature”要素に対して処理済みフラグが付加されている。また、同様に用紙設定についても処理済みフラグが付加されていることから、2in1の割付印刷を処理するに際し、用紙設定に基づいてレイアウトを決定していたであろう事が示されている。   FIG. 21B shows an example of PT for which 2-in-1 setting is performed as layout printing. In the example of FIG. 21B, since layout in 2in1 is set as layout printing, layout processing of layout printing is performed by the layout filter 213. Therefore, the processed flag is added to the element corresponding to the layout printing, that is, the “psf: Feature” element whose “name” attribute value is “psf: JobNupAllDocumentsContiguously”. Similarly, since the processed flag is added to the paper setting, it is indicated that the layout has been determined based on the paper setting when the 2-in-1 layout printing is processed.

<PrintCapabilitiesの例>
図22は、本実施形態におけるプレビュー制御モジュール219が印刷設定の設定変更を受け付けるに際し、設定可能な選択肢を決定する際に取得するPCの一例を示す図である。図22の例では、用紙設定に相当する“name”属性の値が“psf:PageMediaSize”となる“psf:Feature”要素の子要素として複数の“psf:Option”要素が存在している。これによりプリンタ231がサポートする用紙を識別することができる。さらに、“psf:Option”要素の属性情報として、“constrained”属性が定義されている。“constrained”属性は、“psf:Option”要素にて表される用紙が現在選択可能か否かを示している。具体的には、属性値が“psk:None”の場合には、“psf:Option”要素にて表される用紙が現在選択可能であることを示している。一方、属性値が“psk:PrintTicketSettings”の場合には、“psf:Option”要素にて表される用紙が現在選択不可であることを示している。図22の例では、具体的にプリンタ231が「A5」「A4」「B5」「L判」「2L判」の5つの用紙をサポートしていることを示しており、その全ての用紙が現在選択可能であることを示している。
<Example of PrintCapabilities>
FIG. 22 is a diagram illustrating an example of a PC that is acquired when the preview control module 219 according to the present embodiment determines a setting option that can be set when accepting a print setting change. In the example of FIG. 22, there are a plurality of “psf: Option” elements as child elements of the “psf: Feature” element in which the value of the “name” attribute corresponding to the paper setting is “psf: PageMediaSize”. As a result, the paper supported by the printer 231 can be identified. Furthermore, a “constrained” attribute is defined as attribute information of the “psf: Option” element. The “constrained” attribute indicates whether the paper represented by the “psf: Option” element is currently selectable. Specifically, when the attribute value is “psk: None”, it indicates that the sheet represented by the “psf: Option” element is currently selectable. On the other hand, when the attribute value is “psk: PrintTicketSettings”, it indicates that the sheet represented by the “psf: Option” element is currently not selectable. The example of FIG. 22 shows that the printer 231 specifically supports five sheets of “A5”, “A4”, “B5”, “L size”, and “2L size”, and all the sheets are currently present. This indicates that it can be selected.

<印刷プレビュー画面の例>
図23は本実施形態におけるプレビュー制御モジュール219によって提供される印刷プレビュー画面のうち、特に通常印刷の設定がなされていた場合の印刷プレビュー画面2300の一例を示した図である。図23の例では、用紙の種類、給紙方法、及び、出力用紙の設定変更が可能となっている。
<Example of print preview screen>
FIG. 23 is a diagram showing an example of a print preview screen 2300 in the case where the normal print setting has been made, among the print preview screens provided by the preview control module 219 in the present embodiment. In the example of FIG. 23, setting of the paper type, paper feeding method, and output paper can be changed.

図23において“2301”は、印刷プレビュー画面において設定変更可能な用紙設定の一覧を示している。具体的に「A5」「A4」「B5」「L判」「2L判」の5つの用紙が選択可能となっている。   In FIG. 23, “2301” indicates a list of paper settings whose settings can be changed on the print preview screen. Specifically, five sheets of “A5”, “A4”, “B5”, “L size”, and “2L size” can be selected.

図24は本実施形態におけるプレビュー制御モジュール219によって提供される印刷プレビュー画面のうち、特に割付印刷として2in1の設定がなされていた場合の印刷プレビュー画面2400の一例を示した図である。図24の例では、用紙の種類、給紙方法、及び、出力用紙の設定変更が可能となっている。   FIG. 24 is a diagram showing an example of the print preview screen 2400 when 2in1 is set as the allocation printing among the print preview screens provided by the preview control module 219 in the present embodiment. In the example of FIG. 24, the setting of the paper type, paper feeding method, and output paper can be changed.

図24において“2401”は、印刷プレビュー画面において設定変更可能な用紙設定の一覧を示している。具体的には、現在設定されている用紙(本例では「A4」)しか選択できないようになっている。   In FIG. 24, “2401” indicates a list of paper settings whose settings can be changed on the print preview screen. Specifically, only the currently set paper (“A4” in this example) can be selected.

<プレビュー制御モジュールの処理>
図25は、本実施形態におけるプレビュー制御モジュール219の処理を示すフローチャートの一例である。同図において第1実施形態で示した図11と同様の処理には同一のステップ番号を示し、その説明を省略する。
<Processing of preview control module>
FIG. 25 is an example of a flowchart showing processing of the preview control module 219 in the present embodiment. In the same figure, the same step number is shown for the same process as FIG. 11 shown in 1st Embodiment, and the description is abbreviate | omitted.

ステップS1001で、詳細は後述するが、プレビュー制御モジュール219は、設定可能値一覧表示処理により、表示すべきページ(例えば1ページ目)において設定変更可能な印刷設定ならびにその選択肢を印刷プレビュー画面上に表示する。   Although details will be described later in step S <b> 1001, the preview control module 219 displays, on the print preview screen, print settings and options that can be changed on the page to be displayed (for example, the first page) by the settable value list display process. indicate.

次に、ステップS1002で、プレビュー制御モジュール219は、S303により取得したイベントが印刷設定の変更か否かを判別する。   In step S1002, the preview control module 219 determines whether the event acquired in step S303 is a change in print settings.

この判別の結果、S303により取得したイベントが印刷設定の変更であると判別した場合は、ステップS1003へ進む。また、そうでないとプレビュー制御モジュール219が判別した場合にはステップS1004へ進む。   If it is determined as a result of this determination that the event acquired in S303 is a change in print settings, the process advances to step S1003. On the other hand, if the preview control module 219 determines otherwise, the process advances to step S1004.

ステップS1003に進むと、詳細は後述するが、プレビュー制御モジュール219は、印刷設定更新処理により、プレビューXPS文書221に含まれる当該ページのPTを更新する。   In step S1003, although details will be described later, the preview control module 219 updates the PT of the page included in the preview XPS document 221 by print setting update processing.

ステップS1004に進むと、プレビュー制御モジュール219は、S303により取得したイベントがプレビュー表示するページの切り替えか否かを判別する。   In step S1004, the preview control module 219 determines whether or not the event acquired in step S303 is switching of a page to be previewed.

この判別の結果、S303により取得したイベントがプレビュー表示するページの切り替えであると判別した場合は、ステップS1005へ進む。また、そうでないとプレビュー制御モジュール219が判別した場合にはステップS309へ進む。   As a result of the determination, if it is determined that the event acquired in S303 is switching of the page to be previewed, the process proceeds to step S1005. Otherwise, if the preview control module 219 determines that this is not the case, the process proceeds to step S309.

ステップS1005に進むと、プレビュー制御モジュール219は、設定可能値一覧表示処理により、S303により取得したイベントでユーザが指定したページにおいて設定変更可能な印刷設定ならびにその選択肢を印刷プレビュー画面上に表示する。   In step S1005, the preview control module 219 displays, on the print preview screen, print settings and options that can be changed on the page specified by the user in the event acquired in S303 by the settable value list display process.

<設定可能値一覧表示処理フローの一例>
図26は、図25に示したステップS1001、ならびに、ステップS1005の設定可能値一覧表示処理の詳細処理例である。
<Example of settable value list display processing flow>
FIG. 26 is a detailed processing example of the settable value list display processing in step S1001 and step S1005 shown in FIG.

なお、S1101〜S1106は各ステップを示す。また、各ステップは、データ処理装置102のCPUが外部記憶装置等から制御プログラムをメモリにロードして実行することで実現される。   S1101 to S1106 indicate each step. Each step is realized by the CPU of the data processing apparatus 102 loading a control program from an external storage device or the like to the memory and executing it.

まず、ステップS1101で、詳細は後述するが、プレビュー制御モジュール219は、設定可能値一覧取得処理により、プレビュー表示を行うページにおいて設定可能な用紙の種類の一覧を取得する。   First, in step S1101, although the details will be described later, the preview control module 219 acquires a list of paper types that can be set on a page to be displayed by a settable value list acquisition process.

次に、ステップS1102で、プレビュー制御モジュール219は、ステップS1101により取得した用紙の種類の一覧を印刷プレビュー画面に表示する。   In step S1102, the preview control module 219 displays a list of paper types acquired in step S1101 on the print preview screen.

次に、ステップS1103で、プレビュー制御モジュール219は、設定可能値一覧取得処理により、プレビュー表示を行うページにおいて設定可能な給紙方法の一覧を取得する。   In step S <b> 1103, the preview control module 219 acquires a list of paper feed methods that can be set on the page on which preview display is performed by a settable value list acquisition process.

次に、ステップS1104で、プレビュー制御モジュール219は、ステップS1103により取得した給紙方法の一覧を印刷プレビュー画面に表示する。   In step S1104, the preview control module 219 displays a list of paper feeding methods acquired in step S1103 on the print preview screen.

次に、ステップS1105で、プレビュー制御モジュール219は、設定可能値一覧取得処理により、プレビュー表示を行うページにおいて設定可能な出力用紙の一覧を取得する。   Next, in step S1105, the preview control module 219 acquires a list of output sheets that can be set on the page to be previewed by a settable value list acquisition process.

次に、ステップS1106で、プレビュー制御モジュール219は、ステップS1105により取得した出力用紙の一覧を印刷プレビュー画面に表示し、本処理を終了する。   Next, in step S1106, the preview control module 219 displays the list of output sheets acquired in step S1105 on the print preview screen, and ends this process.

<設定可能値一覧取得処理フローの一例>
図27は、図26に示したステップS1101、ステップS1103、ならびに、ステップS1105の設定可能値一覧取得処理の詳細処理例である。
<Example of settable value list acquisition processing flow>
FIG. 27 is a detailed processing example of the settable value list acquisition processing in steps S1101, S1103, and S1105 shown in FIG.

なお、S1201〜S1205は各ステップを示す。また、各ステップは、データ処理装置102のCPUが外部記憶装置等から制御プログラムをメモリにロードして実行することで実現される。   S1201 to S1205 indicate each step. Each step is realized by the CPU of the data processing apparatus 102 loading a control program from an external storage device or the like to the memory and executing it.

まず、ステップS1201で、プレビュー制御モジュール219は、FixedPage処理用PrintTicket取得処理により、プレビュー表示を行うページの印刷設定情報(PT)を取得する。   First, in step S1201, the preview control module 219 acquires print setting information (PT) of a page to be previewed by a FixedPage process PrintTicket acquisition process.

次に、ステップS1202で、プレビュー制御モジュール219は、ステップS1201により取得したPTを参照して設定可能値一覧を取得すべき印刷設定についてレイアウト処理済フラグが付加されているか否かを判別する。具体的には、たとえば用紙の種類の設定可能値一覧を取得したい場合には、PTのルート要素において、プレフィックスが“ns0000”となるプライベートの名前空間を宣言されているか否か、ならびに、“name”属性の値が“psf:PageMediaType”となる“Feature”要素の属性情報として上記名前空間に属する“ns0000:layoutfilterprocess”属性が定義され、属性値として“done”が指定されているか否かを判別する。   In step S1202, the preview control module 219 refers to the PT acquired in step S1201, and determines whether or not a layout processing flag has been added to the print settings for which a list of settable values should be acquired. Specifically, for example, when it is desired to obtain a list of settable values of paper types, whether or not a private name space whose prefix is “ns0000” is declared in the PT root element, and “name” is used. It is determined whether or not “ns0000: layoutfilterprocess” attribute belonging to the name space is defined as attribute information of the “Feature” element whose attribute value is “psf: PageMediaType”, and “done” is specified as the attribute value To do.

この判別の結果、レイアウト処理済フラグが付加されていると判別した場合は、ステップS1205へ進む。また、そうでないとプレビュー制御モジュール219が判別した場合にはステップS1203へ進む。   As a result of the determination, if it is determined that the layout processing completed flag is added, the process proceeds to step S1205. Otherwise, if the preview control module 219 determines that this is not the case, the process advances to step S1203.

ステップS1203に進むと、プレビュー制御モジュール219は、ステップS1201により取得したPTを用いて、現在の印刷設定下におけるPCを取得し、本処理を終了する。   In step S1203, the preview control module 219 acquires the PC under the current print settings using the PT acquired in step S1201, and ends the process.

次に、ステップS1204で、プレビュー制御モジュール219は、ステップS1203により取得したPTを参照して設定可能値一覧を取得する。   In step S1204, the preview control module 219 acquires a settable value list with reference to the PT acquired in step S1203.

ステップ1205に進むと、プレビュー制御モジュール219は、ステップS1201により取得したPTを参照して設定可能値一覧を取得すべき印刷設定の内容を唯一の設定可能値として取得し、本処理を終了する。   In step 1205, the preview control module 219 refers to the PT acquired in step S1201, acquires the contents of the print settings for which the list of settable values should be acquired as the only settable value, and ends this processing.

<印刷設定更新処理フローの一例>
図28は、図25に示したステップS1003の印刷設定更新処理の詳細処理例である。
なお、S1301〜S1305は各ステップを示す。また、各ステップは、データ処理装置102のCPUが外部記憶装置等から制御プログラムをメモリにロードして実行することで実現される。
<Example of print setting update processing flow>
FIG. 28 is a detailed processing example of the print setting update processing in step S1003 shown in FIG.
S1301 to S1305 indicate each step. Each step is realized by the CPU of the data processing apparatus 102 loading a control program from an external storage device or the like to the memory and executing it.

まず、ステップS1301で、プレビュー制御モジュール219は、プレビュー用XPS文書221からプレビュー表示すべきページのFPを取得する。   First, in step S1301, the preview control module 219 acquires the FP of the page to be previewed from the preview XPS document 221.

次に、ステップS1302で、プレビュー制御モジュール219は、ステップS1301により取得したFPに関連付けられているPTを取得する。   Next, in step S1302, the preview control module 219 acquires the PT associated with the FP acquired in step S1301.

次に、ステップS1303で、プレビュー制御モジュール219は、ステップS1302によりFPに関連付けられているPTを取得できたか否かを判別する。   Next, in step S1303, the preview control module 219 determines whether or not the PT associated with the FP has been acquired in step S1302.

この判別の結果、FPに関連付けられているPTを取得できたと判別した場合は、ステップS1305へ進む。また、そうでないとプレビュー制御モジュール219が判別した場合にはステップS1304へ進む。   As a result of the determination, if it is determined that the PT associated with the FP has been acquired, the process proceeds to step S1305. On the other hand, if the preview control module 219 determines otherwise, the process advances to step S1304.

ステップS1304に進むと、プレビュー制御モジュール219は、印刷設定が何もなされていないPTを生成し、ステップS1301により取得したFPに関連付ける。印刷設定が何もなされていないPTとは、具体的には、たとえば、ルート要素だけが存在するPTを指す。   In step S1304, the preview control module 219 generates a PT for which no print setting has been made and associates it with the FP acquired in step S1301. Specifically, the PT for which no print setting has been made refers to, for example, a PT in which only the root element exists.

ステップS1305に進むと、プレビュー制御モジュール219は、ユーザから受け付けた印刷設定の変更内容をプレビュー表示すべきページのFPに関連付けられているPTに反映し、本処理を終了する。   In step S1305, the preview control module 219 reflects the change in print settings received from the user in the PT associated with the FP of the page to be previewed, and ends the process.

本実施形態によれば、第1実施形態の構成下で印刷プレビュー表示中の印刷設定変更機能を提供するにあたり、プレビュー用XPS文書に対して既に施されている印刷処理(例えばレイアウト処理)に影響を与えない範囲内で印刷設定の変更を受け付けることができる。   According to the present embodiment, in providing the print setting change function during print preview display under the configuration of the first embodiment, the print processing (for example, layout processing) already performed on the preview XPS document is affected. Changes in print settings can be accepted within a range that does not give

これにより、印刷プレビュー時と実印刷時とでレイアウト処理を重複して行うことがなくなるといった第1実施形態における効果を得られながらも、従来より提供してきた印刷設定変更機能を実現することができる。従って、印刷プレビュー表示中にアプリケーションで設定した印刷設定の内容を簡単に確認できるようになる。さらに、一定の範囲内ではあるが、印刷設定の間違いに気づいた場合に印刷設定を変更することができるようになり、より使い勝手の良い印刷プレビュー機能を提供することができる。   As a result, it is possible to realize the print setting change function that has been provided so far, while obtaining the effect of the first embodiment that the layout processing is not duplicated during print preview and during actual printing. . Accordingly, it is possible to easily confirm the contents of the print settings set by the application during the print preview display. Furthermore, the print setting can be changed when a mistake in the print setting is noticed within a certain range, and a more convenient print preview function can be provided.

なお、本発明は、必ずしも本実施形態に限定されるものではなく、種々の形態での実施が可能である。   The present invention is not necessarily limited to the present embodiment, and can be implemented in various forms.

〔第5実施形態〕
以下、図29に示すメモリマップを参照して本発明に係る情報処理装置で読み取り可能なデータ処理プログラムの構成について説明する。
[Fifth Embodiment]
The configuration of a data processing program that can be read by the information processing apparatus according to the present invention will be described below with reference to the memory map shown in FIG.

図29は、本発明に係る情報処理装置で読み取り可能な各種データ処理プログラムを格納する記憶媒体のメモリマップを説明する図である。   FIG. 29 is a diagram for explaining a memory map of a storage medium for storing various data processing programs readable by the information processing apparatus according to the present invention.

なお、特に図示しないが、記憶媒体に記憶されるプログラム群を管理する情報、例えばバージョン情報,作成者等も記憶され、かつ、プログラム読み出し側の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〜図11、図15〜図20、及び、図25〜図28に示す機能が外部からインストールされるプログラムによって、ホストコンピュータにより遂行されていてもよい。そして、その場合、CD−ROMやフラッシュメモリやFD等の記憶媒体により、あるいはネットワークを介して外部の記憶媒体から、プログラムを含む情報群を出力装置に供給される場合でも本発明は適用されるものである。   The functions shown in FIGS. 8 to 11, 15 to 20, and FIGS. 25 to 28 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. It goes without saying that the object of the present invention can also be achieved by the computer (or CPU or MPU) of the system or apparatus reading and executing the program code stored in the storage medium.

この場合、記憶媒体から読み出されたプログラムコード自体が本発明の新規な機能を実現することになり、そのプログラムコードを記憶した記憶媒体は本発明を構成することになる。   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 an Internet home page. Then, the computer program itself of the present invention or a compressed file including an automatic installation function can be downloaded from the homepage by downloading it to a recording medium such as a hard disk. 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. Let It is also possible to execute the encrypted program by using the key information and install the program on a computer.

また、コンピュータが読み出したプログラムコードを実行することにより、前述した実施形態の機能が実現されるだけではない。例えばそのプログラムコードの指示に基づき、コンピュータ上で稼働しているOS(オペレーティングシステム)等が実際の処理の一部または全部を行う。そして、その処理によって前述した実施形態の機能が実現される場合も含まれることは言うまでもない。   In addition, the functions of the above-described embodiments are not only realized by executing the program code read by the computer. For example, based on an instruction of the program code, an OS (operating system) running on the computer performs part or all of the actual processing. Needless to say, the process includes the case where the functions of the above-described embodiments are realized.

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

本発明は上記実施形態に限定されるものではなく、本発明の趣旨に基づき種々の変形(各実施形態の有機的な組合せを含む)が可能であり、それらを本発明の範囲から排除するものではない。   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.

本発明の実施形態に係わる印刷システムの一例を示すブロック図1 is a block diagram showing an example of a printing system according to an embodiment of the present invention. 本発明の実施形態に係わるプリンタドライバ一例を示すブロック図1 is a block diagram showing an example of a printer driver according to an embodiment of the present invention. 本発明の実施形態に係わる印刷設定ダイアログの一例を示す図FIG. 6 is a diagram showing an example of a print setting dialog according to the embodiment of the present invention. 本発明の実施形態に係わるプレビューウィンドウの一例を示す図The figure which shows an example of the preview window concerning embodiment of this invention XPSの論理構造の概念図Conceptual diagram of the logical structure of XPS 本発明の実施形態に係わるプレビュー済フラグの格納方法の一例を示す図The figure which shows an example of the storage method of the preview completed flag concerning embodiment of this invention 本発明の実施形態に係わる印刷キュー内の印刷ジョブとプレビューの関係を示す概念図1 is a conceptual diagram showing a relationship between a print job in a print queue and a preview according to an embodiment of the present invention. 本発明の実施形態に係わるレイアウトフィルターの処理を示すフローチャートThe flowchart which shows the process of the layout filter concerning embodiment of this invention 本発明の実施形態に係わる参照用PrintTicketを取得する処理のフローチャートFlowchart of processing for acquiring a reference PrintTicket according to an embodiment of the present invention 本発明の実施形態に係わるプレビューフィルターの処理を示すフローチャート7 is a flowchart showing preview filter processing according to the embodiment of the present invention. 本発明の実施形態に係わるプレビュー制御モジュールの処理を示すフローチャート7 is a flowchart showing processing of a preview control module according to the embodiment of the present invention. 本発明の第2実施形態に係わるCD−R領域表示を含む印刷プレビュー画面の一例を示す図である。It is a figure which shows an example of the print preview screen containing the CD-R area | region display concerning 2nd Embodiment of this invention. 本発明の第2実施形態に係わるCD−R領域表示を行うFixedPageの例を示す図である。It is a figure which shows the example of FixedPage which performs the CD-R area | region display concerning 2nd Embodiment of this invention. 本発明の第2実施形態に係わるCD−R印刷設定がなされたPrintTicketの一例を示す図である。It is a figure which shows an example of PrintTicket in which the CD-R print setting concerning 2nd Embodiment of this invention was made. 本発明の第2実施形態に係わるプレビュー制御モジュールの処理の一例を示すフローチャートである。It is a flowchart which shows an example of a process of the preview control module concerning 2nd Embodiment of this invention. 本発明の第2実施形態に係わるプレビュー表示処理の一例を示すフローチャートである。It is a flowchart which shows an example of the preview display process concerning 2nd Embodiment of this invention. 本発明の第2実施形態に係わるプレビュー用XPS文書リセット処理の一例を示すフローチャートである。It is a flowchart which shows an example of the XPS document reset process for a preview concerning 2nd Embodiment of this invention. 本発明の第2実施形態に係わるFixedPage処理用PrintTicket取得処理の一例を示すフローチャートである。It is a flowchart which shows an example of PrintTicket acquisition process for FixedPage processing concerning 2nd Embodiment of this invention. 本発明の第3実施形態に係わるプレビュー制御モジュールの処理の一例を示すフローチャートである。It is a flowchart which shows an example of the process of the preview control module concerning 3rd Embodiment of this invention. 本発明の第3実施形態に係わる印刷コマンドフィルターの処理の一例を示すフローチャートである。10 is a flowchart illustrating an example of a print command filter process according to the third embodiment of the present invention. 本発明の第4実施形態に係わる処理済みフラグ格納処理後のPrintTicketの一例を示す図である。It is a figure which shows an example of PrintTicket after the processed flag storing process concerning 4th Embodiment of this invention. 本発明の第4実施形態に係わるPrintCapabilitiesの一例を示す図である。It is a figure which shows an example of PrintCapabilities concerning 4th Embodiment of this invention. 本発明の第4実施形態に係わる通常印刷の設定がなされていた場合の印刷プレビュー画面の一例を示す図である。It is a figure which shows an example of the print preview screen when the setting of the normal printing concerning 4th Embodiment of this invention is made. 本発明の第4実施形態に係わる割付印刷として2in1の設定がなされていた場合の印刷プレビュー画面の一例を示す図である。It is a figure which shows an example of the print preview screen when 2in1 setting is made | formed as the allocation printing concerning 4th Embodiment of this invention. 本発明の第4実施形態に係わるプレビュー制御モジュールの処理の一例を示すフローチャートである。It is a flowchart which shows an example of a process of the preview control module concerning 4th Embodiment of this invention. 本発明の第4実施形態に係わる設定可能値一覧表示処理の一例を示すフローチャートである。It is a flowchart which shows an example of the settable value list display process concerning 4th Embodiment of this invention. 本発明の第4実施形態に係わる設定可能値一覧取得処理の一例を示すフローチャートである。It is a flowchart which shows an example of the settable value list acquisition process concerning 4th Embodiment of this invention. 本発明の第4実施形態に係わる印刷設定更新処理の一例を示すフローチャートである。10 is a flowchart illustrating an example of print setting update processing according to a fourth embodiment of the present invention. 本発明に係る情報処理装置で読み取り可能な各種データ処理プログラムを格納する記憶媒体のメモリマップを説明する図である。It is a figure explaining the memory map of the storage medium which stores the various data processing program which can be read by the information processing apparatus which concerns on this invention.

符号の説明Explanation of symbols

130 プリンタドライバ
134 印刷コマンド生成部
211 ユーザインタフェースモジュール
213 レイアウトフィルター
215 プレビューフィルター
217 印刷コマンドフィルター
219 プレビュー制御モジュール
301 印刷設定ダイアログ
327 プレビュー印刷設定部
401 印刷プレビューウィンドウ
405 印刷開始ボタン
406 印刷中止ボタン
1200 印刷プレビュー画面
2300 印刷プレビュー画面
2400 印刷プレビュー画面
130 Printer Driver 134 Print Command Generation Unit 211 User Interface Module 213 Layout Filter 215 Preview Filter 217 Print Command Filter 219 Preview Control Module 301 Print Setting Dialog 327 Preview Print Setting Unit 401 Print Preview Window 405 Print Start Button 406 Print Cancel Button 1200 Print Preview Screen 2300 Print preview screen 2400 Print preview screen

Claims (16)

スプールファイルから文書データを入力するレイアウト処理手段と、
前記レイアウト処理手段から文書データを入力するプレビュー文書作成手段と、
前記プレビュー文書作成手段から文書データを入力する印刷コマンド生成処理手段と、
プレビュー用文書データに基づきプレビューを制御するプレビュー制御手段とを有し、
前記レイアウト処理手段は、プレビュー済みフラグが設定されている場合、スプールファイルから入力された文書データを印刷設定情報に基づきレイアウト処理することなく前記プレビュー文書作成手段に出力し、プレビュー済みフラグが設定されていない場合、印刷設定情報に基づきスプールファイルから入力された文書データのレイアウト処理を行い、レイアウト処理された文書データを前記プレビュー文書作成手段に出力し、
前記プレビュー文書作成手段は、プレビュー済みの場合またはプレビューが設定されていない場合、レイアウト処理された文書データを前記印刷コマンド生成処理手段に出力し、プレビュー済みでなくプレビューが設定されている場合、プレビュー済みフラグを設定するとともに、レイアウト処理された文書データに基づきプレビュー用文書データを作成し、
前記プレビュー制御手段は、印刷指示に基づきプレビュー表示固有の描画命令を削除したプレビュー済みフラグが設定された文書データを前記スプールファイルに出力し、
前記印刷コマンド生成処理手段は、レイアウト処理された文書データをプリンタが解釈可能な印刷コマンドに変換することを特徴とする情報処理装置。
Layout processing means for inputting document data from a spool file;
Preview document creation means for inputting document data from the layout processing means;
Print command generation processing means for inputting document data from the preview document creation means;
Preview control means for controlling the preview based on the document data for preview,
When the previewed flag is set, the layout processing unit outputs the document data input from the spool file to the preview document creating unit without performing layout processing based on the print setting information, and the previewed flag is set. If not, the layout processing of the document data input from the spool file based on the print setting information is performed, and the layout-processed document data is output to the preview document creation means,
The preview document creation means outputs the document data subjected to layout processing to the print command generation processing means when previewed or when no preview is set, and when preview is not set and preview is set, Set the completed flag, create document data for preview based on the document data that has undergone layout processing,
The preview control means outputs document data in which a previewed flag in which a rendering instruction specific to a preview display is deleted based on a print instruction is set to the spool file,
The information processing apparatus, wherein the print command generation processing means converts the document data subjected to layout processing into a print command that can be interpreted by a printer.
スプールファイルから文書データを入力するレイアウト処理手段と、
前記レイアウト処理手段から文書データを入力するプレビュー文書作成手段と、
前記プレビュー文書作成手段から文書データを入力する印刷コマンド生成処理手段と、
プレビュー用文書データに基づきプレビューを制御するプレビュー制御手段とを有し、
前記レイアウト処理手段は、プレビュー済みフラグが設定されている場合、スプールファイルから入力された文書データを印刷設定情報に基づきレイアウト処理することなく前記プレビュー文書作成手段に出力し、プレビュー済みフラグが設定されていない場合、印刷設定情報に基づきスプールファイルから入力された文書データのレイアウト処理を行い、レイアウト処理された文書データを前記プレビュー文書作成手段に出力し、
前記プレビュー文書作成手段は、プレビュー済みの場合またはプレビューが設定されていない場合、レイアウト処理された文書データを前記印刷コマンド生成処理手段に出力し、プレビュー済みでなくプレビューが設定されている場合、プレビュー済みフラグを設定するとともに、レイアウト処理された文書データに基づきプレビュー用文書データを作成し、
前記プレビュー制御手段は、印刷指示に基づきプレビュー済みフラグが設定された文書データを前記スプールファイルに出力し、
前記印刷コマンド生成処理手段は、レイアウト処理された文書データのうちプレビュー表示固有の描画命令は印刷コマンドに変換せず、レイアウト処理された文書データのうちプレビュー表示固有の描画命令以外の描画命令をプリンタが解釈可能な印刷コマンドに変換することを特徴とする情報処理装置。
Layout processing means for inputting document data from a spool file;
Preview document creation means for inputting document data from the layout processing means;
Print command generation processing means for inputting document data from the preview document creation means;
Preview control means for controlling the preview based on the document data for preview,
When the previewed flag is set, the layout processing unit outputs the document data input from the spool file to the preview document creating unit without performing layout processing based on the print setting information, and the previewed flag is set. If not, the layout processing of the document data input from the spool file based on the print setting information is performed, and the layout-processed document data is output to the preview document creation means,
The preview document creation means outputs the document data subjected to layout processing to the print command generation processing means when previewed or when no preview is set, and when preview is not set and preview is set, Set the completed flag, create document data for preview based on the document data that has undergone layout processing,
The preview control means outputs document data in which a previewed flag is set based on a print instruction to the spool file,
The print command generation processing means does not convert a drawing command specific to the preview display in the layout processed document data into a print command, and prints a drawing command other than the drawing command specific to the preview display in the layout processed document data. Is converted into a print command that can be interpreted.
前記プレビュー表示固有の描画命令は、領域を表示するための描画命令を含むことを特徴する請求項1または2記載の情報処理装置。   The information processing apparatus according to claim 1, wherein the drawing command unique to the preview display includes a drawing command for displaying an area. 前記プレビュー制御手段は、プレビュー表示固有の描画命令を付加する付加手段を有することを特徴とする請求項1または2記載の情報処理装置。   The information processing apparatus according to claim 1, wherein the preview control unit includes an adding unit that adds a drawing command unique to the preview display. プレビュー時に設定変更を行う設定変更手段を有し、
前記設定変更手段は、文書データの設定により変更内容が異なることを特徴とする請求項1、または2記載の情報処理装置。
It has setting change means to change the setting at the time of preview,
The information processing apparatus according to claim 1, wherein the setting change unit has different changes depending on document data settings.
スプールファイルから文書データを入力するレイアウト処理手段と、前記レイアウト処理手段から文書データを入力するプレビュー文書作成手段と、前記プレビュー文書作成手段から文書データを入力する印刷コマンド生成処理手段と、
プレビュー用文書データに基づきプレビューを制御するプレビュー制御手段とを有する情報処理装置で実行される情報処理方法であって、
前記レイアウト処理手段は、プレビュー済みフラグが設定されている場合、スプールファイルから入力された文書データを印刷設定情報に基づきレイアウト処理することなく前記プレビュー文書作成手段に出力し、プレビュー済みフラグが設定されていない場合、印刷設定情報に基づきスプールファイルから入力された文書データのレイアウト処理を行い、レイアウト処理された文書データを前記プレビュー文書作成手段に出力し、
前記プレビュー文書作成手段は、プレビュー済みの場合またはプレビューが設定されていない場合、レイアウト処理された文書データを前記印刷コマンド生成処理手段に出力し、プレビュー済みでなくプレビューが設定されている場合、プレビュー済みフラグを設定するとともに、レイアウト処理された文書データに基づきプレビュー用文書データを作成し、
前記プレビュー制御手段は、印刷指示に基づきプレビュー表示固有の描画命令を削除したプレビュー済みフラグが設定された文書データを前記スプールファイルに出力し、
前記印刷コマンド生成処理手段は、レイアウト処理された文書データをプリンタが解釈可能な印刷コマンドに変換することを特徴とする情報処理方法。
Layout processing means for inputting document data from a spool file, preview document creation means for inputting document data from the layout processing means, print command generation processing means for inputting document data from the preview document creation means,
An information processing method executed by an information processing apparatus having preview control means for controlling a preview based on preview document data,
When the previewed flag is set, the layout processing unit outputs the document data input from the spool file to the preview document creating unit without performing layout processing based on the print setting information, and the previewed flag is set. If not, the layout processing of the document data input from the spool file based on the print setting information is performed, and the layout-processed document data is output to the preview document creation means,
The preview document creation means outputs the document data subjected to layout processing to the print command generation processing means when previewed or when no preview is set, and when preview is not set and preview is set, Set the completed flag, create document data for preview based on the document data that has undergone layout processing,
The preview control means outputs document data in which a previewed flag in which a rendering instruction specific to a preview display is deleted based on a print instruction is set to the spool file,
The print command generation processing means converts the layout-processed document data into a print command that can be interpreted by a printer.
スプールファイルから文書データを入力するレイアウト処理手段と、前記レイアウト処理手段から文書データを入力するプレビュー文書作成手段と、前記プレビュー文書作成手段から文書データを入力する印刷コマンド生成処理手段と、プレビュー用文書データに基づきプレビューを制御するプレビュー制御手段とを有する情報処理方法であって、
前記レイアウト処理手段は、プレビュー済みフラグが設定されている場合、スプールファイルから入力された文書データを印刷設定情報に基づきレイアウト処理することなく前記プレビュー文書作成手段に出力し、プレビュー済みフラグが設定されていない場合、印刷設定情報に基づきスプールファイルから入力された文書データのレイアウト処理を行い、レイアウト処理された文書データを前記プレビュー文書作成手段に出力し、
前記プレビュー文書作成手段は、プレビュー済みの場合またはプレビューが設定されていない場合、レイアウト処理された文書データを前記印刷コマンド生成処理手段に出力し、プレビュー済みでなくプレビューが設定されている場合、プレビュー済みフラグを設定するとともに、レイアウト処理された文書データに基づきプレビュー用文書データを作成し、
前記プレビュー制御手段は、印刷指示に基づきプレビュー済みフラグが設定された文書データを前記スプールファイルに出力し、
前記印刷コマンド生成処理手段は、レイアウト処理された文書データのうちプレビュー表示固有の描画命令は印刷コマンドに変換せず、レイアウト処理された文書データのうちプレビュー表示固有の描画命令以外の描画命令をプリンタが解釈可能な印刷コマンドに変換することを特徴とする情報処理方法。
Layout processing means for inputting document data from a spool file, preview document creation means for inputting document data from the layout processing means, print command generation processing means for inputting document data from the preview document creation means, and preview document An information processing method having preview control means for controlling a preview based on data,
When the previewed flag is set, the layout processing unit outputs the document data input from the spool file to the preview document creating unit without performing layout processing based on the print setting information, and the previewed flag is set. If not, the layout processing of the document data input from the spool file based on the print setting information is performed, and the layout-processed document data is output to the preview document creation means,
The preview document creation means outputs the document data subjected to layout processing to the print command generation processing means when previewed or when no preview is set, and when preview is not set and preview is set, Set the completed flag, create document data for preview based on the document data that has undergone layout processing,
The preview control means outputs document data in which a previewed flag is set based on a print instruction to the spool file,
The print command generation processing means does not convert a drawing command specific to the preview display in the layout processed document data into a print command, and prints a drawing command other than the drawing command specific to the preview display in the layout processed document data. Is converted to a print command that can be interpreted.
前記プレビュー表示固有の描画命令は、領域を表示するための描画命令を含むことを特徴する請求項6または7記載の情報処理方法。   The information processing method according to claim 6 or 7, wherein the drawing command unique to the preview display includes a drawing command for displaying an area. 前記プレビュー制御手段は、プレビュー表示固有の描画命令を付加することを特徴とする請求項6または7記載の情報処理方法。   The information processing method according to claim 6 or 7, wherein the preview control means adds a drawing command specific to the preview display. プレビュー時に設定変更を行う設定変更ステップを有し、
前記設定変更ステップは、文書データの設定により変更内容が異なることを特徴とする請求項6、または7記載の情報処理方法。
There is a setting change step to change the setting during preview,
8. The information processing method according to claim 6, wherein the setting change step has different contents depending on the setting of the document data.
スプールファイルから文書データを入力するレイアウト処理ステップと、
前記レイアウト処理ステップから文書データを入力するプレビュー文書作成ステップと、
前記プレビュー文書作成ステップから文書データを入力する印刷コマンド生成処理ステップと、
プレビュー用文書データに基づきプレビューを制御するプレビュー制御ステップとをコンピュータに実行させるプログラムであって、
前記レイアウト処理ステップは、プレビュー済みフラグが設定されている場合、スプールファイルから入力された文書データを印刷設定情報に基づきレイアウト処理することなく前記プレビュー文書作成ステップに出力し、プレビュー済みフラグが設定されていない場合、印刷設定情報に基づきスプールファイルから入力された文書データのレイアウト処理を行い、レイアウト処理された文書データを前記プレビュー文書作成ステップに出力し、
前記プレビュー文書作成ステップは、プレビュー済みの場合またはプレビューが設定されていない場合、レイアウト処理された文書データを前記印刷コマンド生成処理ステップに出力し、プレビュー済みでなくプレビューが設定されている場合、プレビュー済みフラグを設定するとともに、レイアウト処理された文書データに基づきプレビュー用文書データを作成し、
前記プレビュー制御ステップは、印刷指示に基づきプレビュー表示固有の描画命令を削除したプレビュー済みフラグが設定された文書データを前記スプールファイルに出力し、
前記印刷コマンド生成処理ステップは、レイアウト処理された文書データをプリンタが解釈可能な印刷コマンドに変換することを特徴とするプログラム。
A layout processing step for entering document data from a spool file;
A preview document creation step for inputting document data from the layout processing step;
A print command generation processing step for inputting document data from the preview document creation step;
A program for causing a computer to execute a preview control step for controlling preview based on document data for preview,
When the previewed flag is set, the layout processing step outputs the document data input from the spool file to the preview document creation step without performing layout processing based on the print setting information, and the previewed flag is set. If not, the layout processing of the document data input from the spool file based on the print setting information is performed, and the layout processed document data is output to the preview document creation step,
The preview document creation step outputs the layout-processed document data to the print command generation processing step when preview has been completed or no preview has been set, and when preview has not been previewed and preview has been set, Set the completed flag, create document data for preview based on the document data that has undergone layout processing,
The preview control step outputs to the spool file document data in which a previewed flag in which a drawing command specific to a preview display is deleted based on a print instruction is set,
The print command generation processing step converts the layout processed document data into a print command interpretable by a printer.
スプールファイルから文書データを入力するレイアウト処理ステップと、
前記レイアウト処理ステップから文書データを入力するプレビュー文書作成ステップと、
前記プレビュー文書作成ステップから文書データを入力する印刷コマンド生成処理ステップと、
プレビュー用文書データに基づきプレビューを制御するプレビュー制御ステップとをコンピュータに実行させるプログラムであって、
前記レイアウト処理ステップは、プレビュー済みフラグが設定されている場合、スプールファイルから入力された文書データを印刷設定情報に基づきレイアウト処理することなく前記プレビュー文書作成ステップに出力し、プレビュー済みフラグが設定されていない場合、印刷設定情報に基づきスプールファイルから入力された文書データのレイアウト処理を行い、レイアウト処理された文書データを前記プレビュー文書作成ステップに出力し、
前記プレビュー文書作成ステップは、プレビュー済みの場合またはプレビューが設定されていない場合、レイアウト処理された文書データを前記印刷コマンド生成処理ステップに出力し、プレビュー済みでなくプレビューが設定されている場合、プレビュー済みフラグを設定するとともに、レイアウト処理された文書データに基づきプレビュー用文書データを作成し、
前記プレビュー制御ステップは、印刷指示に基づきプレビュー済みフラグが設定された文書データを前記スプールファイルに出力し、
前記印刷コマンド生成処理ステップは、レイアウト処理された文書データのうちプレビュー表示固有の描画命令は印刷コマンドに変換せず、レイアウト処理された文書データのうちプレビュー表示固有の描画命令以外の描画命令をプリンタが解釈可能な印刷コマンドに変換することを特徴とするプログラム。
A layout processing step for entering document data from a spool file;
A preview document creation step for inputting document data from the layout processing step;
A print command generation processing step for inputting document data from the preview document creation step;
A program for causing a computer to execute a preview control step for controlling preview based on document data for preview,
When the previewed flag is set, the layout processing step outputs the document data input from the spool file to the preview document creation step without performing layout processing based on the print setting information, and the previewed flag is set. If not, the layout processing of the document data input from the spool file based on the print setting information is performed, and the layout processed document data is output to the preview document creation step,
The preview document creation step outputs the layout-processed document data to the print command generation processing step when preview has been completed or no preview has been set, and when preview has not been previewed and preview has been set, Set the completed flag, create document data for preview based on the document data that has undergone layout processing,
The preview control step outputs document data in which a previewed flag is set based on a print instruction to the spool file,
The print command generation processing step does not convert a rendering command specific to the preview display in the layout processed document data into a print command, and prints a rendering command other than the rendering command specific to the preview display in the layout processed document data. Is converted into a print command that can be interpreted.
前記プレビュー表示固有の描画命令は、領域を表示するための描画命令を含むことを特徴する請求項11または12記載のプログラム。   13. The program according to claim 11, wherein the drawing command unique to the preview display includes a drawing command for displaying an area. 前記プレビュー制御ステップは、プレビュー表示固有の描画命令を付加する付加ステップを有することを特徴とする請求項11または12記載のプログラム。   13. The program according to claim 11, wherein the preview control step includes an adding step of adding a drawing command specific to the preview display. プレビュー時に設定変更を行う設定変更ステップを有し、
前記設定変更ステップは、文書データの設定により変更内容が異なることを特徴とする請求項11、または12記載のプログラム。
There is a setting change step to change the setting during preview,
13. The program according to claim 11 or 12, wherein the setting change step has different changes depending on document data settings.
請求項11乃至15いずれかに記載のプログラムを記憶した記憶媒体。   A storage medium storing the program according to claim 11.
JP2007019469A 2006-12-20 2007-01-30 Information processing apparatus, information processing method, program, and storage medium Expired - Fee Related JP4857135B2 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
JP2007019469A JP4857135B2 (en) 2007-01-30 2007-01-30 Information processing apparatus, information processing method, program, and storage medium
US11/953,747 US8537408B2 (en) 2006-12-20 2007-12-10 Information processing apparatus, information processing method, program, and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2007019469A JP4857135B2 (en) 2007-01-30 2007-01-30 Information processing apparatus, information processing method, program, and storage medium

Publications (2)

Publication Number Publication Date
JP2008186254A JP2008186254A (en) 2008-08-14
JP4857135B2 true JP4857135B2 (en) 2012-01-18

Family

ID=39729248

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2007019469A Expired - Fee Related JP4857135B2 (en) 2006-12-20 2007-01-30 Information processing apparatus, information processing method, program, and storage medium

Country Status (1)

Country Link
JP (1) JP4857135B2 (en)

Families Citing this family (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101383326B1 (en) * 2008-10-07 2014-04-10 삼성전자주식회사 Method for viewing thumbnail, and image forming apparatus
JP5675047B2 (en) 2008-12-15 2015-02-25 キヤノン株式会社 Document processing apparatus and computer program
JP5729903B2 (en) * 2009-12-17 2015-06-03 キヤノン株式会社 Information processing apparatus, method and program thereof
JP5602424B2 (en) * 2009-12-24 2014-10-08 キヤノン株式会社 Information processing apparatus, information processing method, and program
JP5549363B2 (en) 2010-05-10 2014-07-16 株式会社リコー Information processing apparatus, print control program, recording medium, image forming apparatus, and printing system
JP5678559B2 (en) * 2010-10-06 2015-03-04 セイコーエプソン株式会社 Information processing apparatus and information processing program
JP5974726B2 (en) * 2012-08-13 2016-08-23 コニカミノルタ株式会社 Preview screen display control apparatus and program
JP6372790B2 (en) * 2015-08-31 2018-08-15 京セラドキュメントソリューションズ株式会社 Image forming apparatus and image forming program
JP7172800B2 (en) * 2019-03-28 2022-11-16 ブラザー工業株式会社 Support program, information processing device, and printing method
JP2021033911A (en) * 2019-08-29 2021-03-01 コニカミノルタ株式会社 Information processing apparatus, print control method, and program

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3633256B2 (en) * 1998-02-02 2005-03-30 ブラザー工業株式会社 Print image processing system, print image processing method, and recording medium on which print image processing program is recorded
JP3679660B2 (en) * 1999-11-02 2005-08-03 キヤノン株式会社 Information processing apparatus, information processing method, and storage medium storing computer-readable program
JP2005292964A (en) * 2004-03-31 2005-10-20 Brother Ind Ltd Print data editing apparatus and print data editing program
JP2006039941A (en) * 2004-07-27 2006-02-09 Canon Inc Program, information processor, and preview method

Also Published As

Publication number Publication date
JP2008186254A (en) 2008-08-14

Similar Documents

Publication Publication Date Title
JP4857135B2 (en) Information processing apparatus, information processing method, program, and storage medium
JP5408904B2 (en) Information processing apparatus, preview method, and program
JP5675047B2 (en) Document processing apparatus and computer program
US8537408B2 (en) Information processing apparatus, information processing method, program, and storage medium
US7916332B2 (en) Document processing apparatus and a method for controlling a document processing apparatus
JP5072676B2 (en) Information processing apparatus, information processing method, and printing system
JP3679660B2 (en) Information processing apparatus, information processing method, and storage medium storing computer-readable program
JP4553364B2 (en) Printing system
KR101336379B1 (en) Information processing apparatus, information processing apparatus control method, and storage medium
US20160246557A1 (en) Information processing apparatus, information processing method, and storage medium
JP7528176B2 (en) Information processing device and program
JP2007328639A (en) Printing system, server device, client device and print setting method
JP2023041245A (en) Information processing apparatus, control method of information processing apparatus, and program
JP5070101B2 (en) Information processing apparatus, control method therefor, and printer driver program
JP4810332B2 (en) Information processing apparatus, print setting method, storage medium, program
JP2015118570A (en) Information processing method and sheet size setting method
JP3673684B2 (en) Information processing apparatus, information processing method, and storage medium storing computer-readable program
US20070146760A1 (en) Print System and Programs for Use in Print System
JP4891052B2 (en) Information processing apparatus, preview method, program, and storage medium
JP7119490B2 (en) application program
JP4442875B2 (en) Data processing apparatus, printing control method in the apparatus, and program
JP2002014797A (en) Information processor, print controller and its control method, and storage medium and its control program
JP5677550B2 (en) Information processing apparatus, preview method, and program
JP4313974B2 (en) Print control program, print control method, and information processing apparatus
JP3805263B2 (en) Printing control program, printing control method, printing system, and information processing apparatus

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20091221

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

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20111019

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20111025

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20111031

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20141104

Year of fee payment: 3

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20141104

Year of fee payment: 3

LAPS Cancellation because of no payment of annual fees