JP2005092426A - Printer and printer job generation program - Google Patents
Printer and printer job generation program Download PDFInfo
- Publication number
- JP2005092426A JP2005092426A JP2003323163A JP2003323163A JP2005092426A JP 2005092426 A JP2005092426 A JP 2005092426A JP 2003323163 A JP2003323163 A JP 2003323163A JP 2003323163 A JP2003323163 A JP 2003323163A JP 2005092426 A JP2005092426 A JP 2005092426A
- Authority
- JP
- Japan
- Prior art keywords
- layout
- printer
- unit
- xsl
- document data
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Images
Abstract
Description
この発明はプリンタおよびプリンタジョブ生成プログラムに関し、特に、高品位にレイアウトされた印刷を行なうことのできるプリンタおよびプリンタジョブ生成プログラムに関する。 The present invention relates to a printer and a printer job generation program, and more particularly, to a printer and a printer job generation program capable of performing high-quality layout printing.
インターネットなどのネットワークの普及に伴い、共通のデータフォーマットとしてのXML(Extensible Markup Language)の利用が拡大している。XMLは特定の表示媒体に依存しない汎用的なデータ形式であり、XML形式で表現されたデータは、各種の表示媒体での利用が可能であるという利点がある。 With the spread of networks such as the Internet, the use of XML (Extensible Markup Language) as a common data format is expanding. XML is a general-purpose data format that does not depend on a specific display medium, and data expressed in the XML format has an advantage that it can be used on various display media.
XML形式の文書(以下、XML文書と省略して記載する)を用紙などにプリントする方法としては、まず、フォントの種類や文字の大きさ、色、行間の幅、および修飾など、XML文書の見栄えに関する情報をまとめた、XML文書の雛形であるXSLT(Extensible Stylesheet Transformations)などを用いて、XML文書をXSL−FO(Extensible Stylesheet Language Formatting Objects)形式のタグを含む形式のデータの文書(以下、XSL−FO文書と省略して記載する)に変換する。その後、XSL−FO文書を、XSL−FO形式のデータからプリンタ向けのページ記述データに自動変換するXSL−FOプロセッサに入力する。XSL−FO文書は該プロセッサでプリンタ向けのページ記述データに自動変換されて、プリンタに転送され、該プリンタで印刷可能となる。 As a method of printing an XML document (hereinafter abbreviated as an XML document) on a sheet or the like, first, the type of font, character size, color, line width, modification, etc. Using XSLT (Extensible Stylesheet Transformations), which is an XML document template that summarizes information related to appearance, the XML document is a data document in a format that includes tags in the XSL-FO (Extensible Stylesheet Language Formatting Objects) format (hereinafter, (Abbreviated as XSL-FO document). Thereafter, the XSL-FO document is input to an XSL-FO processor that automatically converts data in the XSL-FO format into page description data for a printer. The XSL-FO document is automatically converted into page description data for a printer by the processor, transferred to the printer, and can be printed by the printer.
図7を用いて、XSL−FOプロセッサを利用してXML文書を用紙にプリントする従来の処理の流れを説明する。 A conventional processing flow for printing an XML document on paper using an XSL-FO processor will be described with reference to FIG.
図7を参照して、始めに、XSLTプロセッサ1001は、上に説明された文書の雛形であるスタイルシートを参照して、入力されたXML文書をXSL−FO文書に変換する。変換されたXSL−FO文書は、XSL−FOプロセッサ1002において印刷用ページ記述データに変換されて、プリンタドライバ1003に入力される。
Referring to FIG. 7, first, the XSLT
プリンタドライバ1003は、XSL−FOプロセッサ1002から入力された印刷用ページ記述データをプリンタ1004に固有のデータに変換し、プリンタ1004に対して出力する。ここで、プリンタドライバ1003に対して用紙サイズ、給紙段、両面印刷、ステープルなどの指定を行なうことで、プリンタ1004の動作モードを変更することが可能である。
The
また、特許文献1には、XML形式のデータなどのML(Markup Language)ソースのファイルから、ディスプレイに表示するための表示データを生成し、該表示データからプリンタで印刷するためのプリントデータを生成することで、良好な印字結果を得ることができるデータ処理システムが開示されている。
しかしながら、図7に示されるXSL−FOプロセッサを利用してXML文書を用紙にプリントする従来の処理では、プリンタドライバ1003、およびプリンタ1004において動作モードを変更した場合、ページへのレイアウトが適切ではない場合があった。
However, in the conventional process of printing an XML document on paper using the XSL-FO processor shown in FIG. 7, when the operation mode is changed in the
たとえば、プリンタ1004にレイアウト時に想定したサイズと同じサイズの用紙が装備されていない場合、不適切な余白が発生したり、画像が欠けたりする場合がある。
For example, if the
また、プリンタ1004が独自の内蔵フォントを備え、その内蔵フォントを用いて印刷を行なった場合、内蔵フォントの該フォントが占めるスペースの大きさを定義した情報などのフォント情報であるメトリクスは、レイアウト時に想定されたフォントのメトリクスとは異なるために、改行や、文字間の余白などが不適切となる場合がある。
In addition, when the
また、プリンタ1004において縮小変倍処理を行なった場合、印刷された文字が非常に小さくなり、文字が読めなくなる場合があるという問題がある。
In addition, when the reduction scaling process is performed in the
また、プリンタ1004において拡大変倍処理を行なった場合、印刷された文字が不必要に大きくなる場合があるという問題もある。
In addition, when the enlargement / reduction processing is performed in the
また、特許文献1に開示されているデータ処理システムでは、ディスプレイで表示するための表示データを経由してプリントデータを生成するので、データ処理システムにおける処理はXML文書の特徴であるデバイス非依存性を十分に生かせておらず、プリンタに適したレイアウトを行なう点で制限があるという問題があった。
In addition, since the data processing system disclosed in
本発明はこれらの問題に鑑みてなされたものであって、プリンタの能力や状態に適したレイアウト処理を行なって、見やすく、価値の高い印刷を行なうことのできるプリンタおよびプリンタジョブ生成プログラムを提供することを目的とする。 The present invention has been made in view of these problems, and provides a printer and a printer job generation program capable of performing easy-to-see and high-value printing by performing layout processing suitable for the capabilities and conditions of the printer. For the purpose.
上記目的を達成するために、本発明のある局面に従うと、プリンタは、印刷対象であるXML(Extensible Markup Language)形式の文書データを取得する文書データ取得手段と、プリンタエンジンの属性情報を取得する属性情報取得手段と、属性情報に基づいて、文書データのレイアウトを決定するレイアウト決定手段と、レイアウトに基づいて、文書データの内容を個別のページに割付け、レイアウトを行なうレイアウト手段と、レイアウトされた文書データからプリンタジョブを生成するプリンタジョブ生成手段と、プリンタジョブをプリンタエンジンで印刷させるよう制御するプリンタ制御手段とを備える。 In order to achieve the above object, according to an aspect of the present invention, the printer acquires document data acquisition means for acquiring XML (Extensible Markup Language) format document data to be printed, and printer engine attribute information. An attribute information acquisition unit; a layout determination unit that determines a layout of document data based on the attribute information; a layout unit that allocates the contents of document data to individual pages and performs layout based on the layout; A printer job generating unit configured to generate a printer job from the document data; and a printer control unit configured to control the printer job to be printed by the printer engine.
また、プリンタは、XML形式の文書データをXSL−FO(Extensible Stylesheet Language Formatting Objects)形式の文書データに変換するXSL−FO変換手段と、XSL−FO形式の文書データを解析するXSL−FO解析手段とをさらに備え、レイアウト決定手段は、属性情報と、解析結果とに基づいてレイアウトを決定することが好ましい。 The printer also includes an XSL-FO conversion unit that converts document data in XML format into document data in an XSL-FO (Extensible Stylesheet Language Formatting Objects) format, and an XSL-FO analysis unit that analyzes document data in the XSL-FO format. It is preferable that the layout determination unit determines the layout based on the attribute information and the analysis result.
また、プリンタは、決定されたレイアウトに応じて、プリンタエンジンで用いられる固有のフォントのフォント情報を取得するプリンタ内蔵フォント取得手段をさらに備え、レイアウト手段は、取得されたフォント情報を用いて文書データのレイアウトを行なうことが好ましい。 The printer further includes a built-in printer font acquisition unit that acquires font information of a unique font used in the printer engine according to the determined layout, and the layout unit uses the acquired font information to generate document data. It is preferable to perform the layout.
また、属性情報取得手段は、印刷枚数の制限である属性情報を取得し、プリンタジョブ生成手段は、印刷枚数の制限を満たすように生成したプリンタジョブを分割することが好ましい。 Preferably, the attribute information acquisition unit acquires attribute information that is a limitation on the number of printed sheets, and the printer job generation unit divides the generated printer job so as to satisfy the limitation on the number of printed sheets.
本発明の他の局面に従うと、プリンタジョブ生成プログラムは、プリンタジョブを生成する処理をコンピュータに実行させるプログラムであって、印刷対象であるXML形式の文書データを取得する文書データ取得ステップと、プリンタエンジンの属性情報を取得する属性情報取得ステップと、属性情報に基づいて、文書データのレイアウトを決定するレイアウト決定ステップと、レイアウトに基づいて、文書データの内容を個別のページに割付け、レイアウトを行なうレイアウトステップと、レイアウトされた文書データからプリンタジョブを生成するプリンタジョブ生成ステップとを実行させる。 According to another aspect of the present invention, a printer job generation program is a program for causing a computer to execute processing for generating a printer job, a document data acquisition step for acquiring XML format document data to be printed, and a printer An attribute information acquisition step for acquiring engine attribute information, a layout determination step for determining the layout of the document data based on the attribute information, and the contents of the document data are allocated to individual pages based on the layout and the layout is performed. A layout step and a printer job generation step for generating a printer job from the laid out document data are executed.
また、プリンタジョブ生成プログラムは、XML形式の文書データをXSL−FO形式の文書データに変換するXSL−FO変換ステップと、XSL−FO形式の文書データを解析するXSL−FO解析ステップとをさらに実行させ、レイアウト決定ステップは、属性情報と、解析結果とに基づいてレイアウトを決定することが好ましい。 The printer job generation program further executes an XSL-FO conversion step for converting XML format document data into XSL-FO format document data, and an XSL-FO analysis step for analyzing XSL-FO format document data. The layout determination step preferably determines the layout based on the attribute information and the analysis result.
また、プリンタジョブ生成プログラムは、決定されたレイアウトに応じて、プリンタエンジンで用いられる固有のフォントのフォント情報を取得するプリンタ内蔵フォント取得ステップをさらに実行させ、レイアウトステップは、取得されたフォント情報を用いて文書データのレイアウトを行なうことが好ましい。 The printer job generation program further executes a printer built-in font acquisition step for acquiring font information of a specific font used in the printer engine according to the determined layout, and the layout step uses the acquired font information. It is preferable to use it for layout of document data.
また、属性情報取得ステップは、印刷枚数の制限である属性情報を取得し、プリンタジョブ生成ステップは、印刷枚数の制限を満たすように生成したプリンタジョブを分割することが好ましい。 Preferably, the attribute information acquisition step acquires attribute information that is a limitation on the number of printed sheets, and the printer job generation step divides the generated printer job so as to satisfy the limitation on the number of printed sheets.
以下に、図面を参照しつつ、本発明の実施の形態について説明する。以下の説明では、同一の部品および構成要素には同一の符号を付してある。それらの名称および機能も同じである。したがってそれらについての詳細な説明は繰返さない。 Embodiments of the present invention will be described below with reference to the drawings. In the following description, the same parts and components are denoted by the same reference numerals. Their names and functions are also the same. Therefore, detailed description thereof will not be repeated.
図1は、本実施の形態にかかるプリンタ100の構成の具体例を示す図である。本実施の形態にかかるプリンタ100は、ネットワークに接続されたプリントシステムにおいて用いられるプリンタであって、ネットワークを介して外部のサーバと接続されている。
FIG. 1 is a diagram illustrating a specific example of the configuration of the
図1を参照して、本実施の形態にかかるプリンタ100の構成は、XML(Extensible Markup Language)プリント制御部1とプリンタ部2とに大分される。
Referring to FIG. 1, the configuration of a
XMLプリント制御部1は、外部のサーバからXML文書を取得し、プリンタジョブを生成する。また、プリンタ部2からプリンタエンジンの仕様や状態などのプリンタエンジンの属性情報を取得する。そして、XMLプリント制御部1は、生成したプリンタジョブをプリンタ部2に対して出力する。プリンタ部2は、XMLプリント制御部1から入力されたプリンタジョブを、該プリンタジョブの情報にしたがって用紙上に画像を形成し、出力トレイ上に排紙する。なお、以下の実施の形態においては、XMLプリント制御部1が外部のサーバからXML文書を取得するものとするが、プリンタ100に備えられる記憶装置に記憶されているXML文書を読出して用いる場合も同様である。
The XML
XMLプリント制御部1は、ネットワークを介して外部のサーバと接続される入力I/F(インタフェース)11と、XSL−FO(Extensible Stylesheet Language Formatting Objects)変換部12と、スタイルシート管理部13と、XSL−FO解析部14と、レイアウト部15と、プリンタジョブ生成部16と、印刷モード入力部17と、フォトメトリクスデータ記憶部18と、プリンタ内蔵フォントダウンロード部19とを含んで構成される。
The XML
また、プリンタ部2は、プリンタ制御部20と、プリンタエンジン部21と、操作パネルなどから構成される操作部22とを含んで構成される。
The
プリンタ部2に含まれる操作部22は、ユーザから、印刷に関するパネル操作を受付けて、操作パネル設定情報を入力I/F11と印刷モード入力部17とに対して出力する。具体的には、印刷に関するパネル操作は、取得するXML文書へのアクセス情報であるURL(Uniform Resource Locators)の指定や印刷モードに関する指定などを行なう操作である。
The
入力I/F11は、操作部10から入力された操作パネル設定情報に含まれるアクセス情報に基づいて、ネットワークを介して該当するサーバにアクセスし、該当するXML文書を取得する。そして、取得したXML文書を、XSL−FO変換部12に対して出力する。
Based on the access information included in the operation panel setting information input from the operation unit 10, the input I /
スタイルシート管理部13は、W3C(R)勧告のXML文書の雛形であるXSLT(Extensible Stylesheet Transformations)にしたがったスタイルシート(XSLTスタイルシートというものとする)を記憶する。
The style
XSL−FO変換部12は、入力I/F11から入力されたXML文書のヘッダ部の記述を参照して用いるXSLTスタイルシートを決定し、スタイルシート管理部13に記憶されているXSLTスタイルシートから該当するXSLTスタイルシートを抽出する。XSL−FO変換部12は、入力I/F11から入力されたXML文書を、抽出したXSLTスタイルシートを用いてXSL−FO形式のデータであるXSL−FO文書に変換し、XSL−FO解析部14に対して出力する。
The XSL-
なお、入力I/F11から入力されたXML文書がすでにXSL−FO文書である場合には、XSL−FO変換部12は、入力I/F11から入力されたXML文書をそのままXSL−FO解析部14に対して出力する。
When the XML document input from the input I /
また、XML文書がXSL−FO形式のタグである印刷用タグを含むXSL−FO文書であるか否かの判定方法は、本発明において限定されず、従来より用いられている種々の方法を採用することができる。 In addition, the determination method of whether or not the XML document is an XSL-FO document including a printing tag that is an XSL-FO format tag is not limited in the present invention, and various methods conventionally used are adopted. can do.
XSL−FO解析部14は、XSL−FO変換部12から入力された、テキストデータであるXSL−FO文書の構造を解析し、XSL−FO文書と、XSL−FO文書のツリー構造の解析結果とを、レイアウト部15と印刷モード入力部17とに対して出力する。XSL−FO文書のツリー構造については、後に具体例を挙げて説明する。
The XSL-FO analysis unit 14 analyzes the structure of the XSL-FO document that is text data input from the XSL-
プリンタ内蔵フォントダウンロード部19は、プリンタ部2から、プリンタ部2が内蔵するフォントについての、各文字の構成要素であるグリフの幅、高さなどのフォント情報を取得し、フォントメトリクスデータ記憶部18に対して出力する。フォントメトリクスデータ記憶部18は、プリンタ内蔵フォントダウンロード部19から入力されたフォント情報を記憶する。
The printer built-in
レイアウト部15は、XSL−FO解析部14から入力された解析結果に基づいて、XSL−FO文書に含まれる文書の内容を個別のページに割付け、レイアウトを行なう。その際、レイアウト部15は、フォトメトリクスデータ記憶部18を参照して、必要なフォント情報を取得する。そして、レイアウト部15は、レイアウト結果を印刷モード入力部17に対して出力し、印刷モード入力部17に対して印刷モードを要求する。
The
印刷モード入力部17は、レイアウト部15からの要求に応じて、プリンタ制御部20からプリンタエンジン部21の仕様および状態などの属性情報を取得する。そして、印刷モード入力部17は、プリンタ制御部20から取得したプリンタ部2に関する情報、レイアウト部15から入力されたレイアウト結果、XSL−FO解析部14から入力された解析結果に含まれる印刷モードに関する情報、および/または操作部22から入力された操作パネル設定情報に含まれる印刷モードに関する情報に基づいて、該XML文書を印刷する際の印刷モードの詳細を決定し、決定した印刷モードの情報のうち、レイアウト処理に用いられる情報をレイアウト部15に応答する。また、決定した印刷モードの情報のうち、プリンタ部2の制御に用いられる情報を、プリンタジョブ言語(PJL:Printer Job Language)で表わされたジョブ記述データ(以下、PJLデータという)に変換し、後に説明するプリンタジョブ生成部16から出力されるプリンタジョブに含ませてプリンタ制御部20に対して出力する。
In response to a request from the
具体的には、レイアウト部15から用紙サイズ情報が要求された場合、印刷モード入力部17は、XSL−FO解析部14から入力された解析結果より印刷モードに関する情報、または操作部22から入力された操作パネル設定情報からユーザの希望する給紙トレイ(より具体的にはカセット、手差しトレイなど)や用紙サイズの情報を取得する。
Specifically, when paper size information is requested from the
ユーザから給紙トレイが指定された場合は、レイアウト部15は、さらに、指定された給紙トレイ内にセットされた用紙の用紙サイズ情報を、プリンタ制御部20から取得する。指定された給紙トレイが存在しないか、指定された給紙トレイ内に用紙がセットされていない場合、レイアウト部15は、代替の給紙トレイを自動選択した後、その給紙トレイ内にセットされた用紙の用紙サイズ情報を、プリンタ制御部20から取得する。代替の給紙トレイを自動選択する方法としては、給紙トレイ内にセットされた用紙サイズが、XSL−FO解析部14から入力された解析結果に含まれる用紙サイズに一致する給紙トレイの中で、給紙に必要な時間が最小の給紙トレイを選択する方法が好ましい。
When the paper feed tray is designated by the user, the
また、ユーザから用紙サイズが指定された場合は、レイアウト部15は、さらに、プリンタ制御部20から利用可能なすべての給紙トレイの情報を取得し、その中から指定された用紙サイズと一致するサイズの用紙が内部にセットされている給紙トレイを自動選択して、その給紙トレイ内にセットされた用紙の用紙サイズ情報を取得する。指定された用紙サイズと一致するサイズの用紙が内部にセットされている給紙トレイが存在しない場合、レイアウト部15は、給紙トレイ内にセットされた用紙サイズが指定された用紙サイズに最も近い給紙トレイを選択し、その給紙トレイ内にセットされた用紙の用紙サイズ情報を、プリンタ制御部20から取得する。
Further, when the paper size is designated by the user, the
印刷モード入力部17において取得された用紙サイズ情報などの、印刷モードの情報のうちのレイアウト処理に用いられる情報は、レイアウト部15に応答され、レイアウト部15は、印刷モード入力部17から取得した印刷モードの情報を用いて、XSL−FO文書に対して、該XSL−FO文書をページにレイアウトする処理であるレイアウト処理を行なう。なお、レイアウト部15におけるレイアウト処理については、後に詳細に説明する。そして、レイアウト部15は、レイアウト処理結果をプリンタジョブ生成部16に対して出力する。
The information used for the layout process in the print mode information such as the paper size information acquired in the print
また、印刷モード入力部17において選択された給紙トレイの情報などの、印刷モードの情報のうちのプリンタ部2の制御に用いられる情報は、PJLデータに変換され、プリンタジョブ生成部16から出力されるプリンタジョブに含まれてプリンタ制御部20に対して出力される。
Also, information used for control of the
プリンタジョブ生成部16は、レイアウト部15から入力されたレイアウト処理結果を、対応するプリンタ部2が解釈可能なページ記述言語(PDL:Page Description Language)で表わされたデータ(以下、PDLデータという)と、PJLデータとに変換する。そして、プリンタジョブ生成部16は、変換したデータを含むプリンタジョブを、プリンタ部2のプリンタ制御部20に転送する。
The printer job generation unit 16 converts the layout processing result input from the
プリンタ制御部20は、入力されたプリントジョブに含まれるPJLデータにしたがってプリンタエンジン部21を制御する。プリンタエンジン部21は、プリンタ制御部20に制御されることで、プリントジョブに含まれるPDLデータにしたがって用紙上に画像を形成し、トレイ上に排紙する。
The
さらに、上述のXSL−FO変換部12は、変換して、XSL−FO解析部14に対して出力するXSL−FO文書に、印刷モードの指定情報を含めてもよい。具体的には、XSL−FO変換部12は、XML文書をXSL−FO形式のデータに変換する際に、印刷モードを指定する情報を含むXSLTスタイルシートを用いることで、XML文書を、印刷モードが拡張的に付加されたXSL−FO文書に変換してXSL−FO解析部14に対して出力することができる。具体的に、図2に、印刷モードが拡張的に付加されたXSL−FO文書の構成の具体例を示す。
Further, the XSL-
図2に示されるXSL−FO文書は、<root>と</root>とで挟まれる要素(ROOT要素)を最上位の要素とし、<ページシーケンス>と</ページシーケンス>とで挟まれる要素(ページシーケンス要素)、<レイアウトセット>と</レイアウトセット>とで挟まれる要素(レイアウトセット要素)、および<印刷モードセット>と</印刷モードセット>とで挟まれる要素(印刷モードセット要素)をその下位の要素とするツリー構造である。 The XSL-FO document shown in FIG. 2 has an element (ROOT element) sandwiched between <root> and </ root> as the highest element, and an element sandwiched between <page sequence> and </ page sequence>. (Page sequence element), an element sandwiched between <layout set> and </ layout set> (layout set element), and an element sandwiched between <print mode set> and </ print mode set> (print mode set element) ) Is a subordinate element.
ページシーケンス要素はXML文書の内容を含む要素であり、1つ以上の<flow>と</flow>とで挟まれる要素(FLOW要素)を含んで構成される。さらに、各FLOW要素は、文書の表示、各章、および補足の文書データを含む。また、各FLOW要素は、属性であるレイアウトIDを含み、レイアウトIDによって、後述するレイアウトセット要素に含まれるページマスタ要素が指定される。FLOW要素内のデータは、各々、レイアウトIDによって指定されるページマスタ要素の内容が示すページレイアウトにしたがって、印刷データに変換される。 The page sequence element is an element including the content of the XML document, and is configured to include an element (FLOW element) sandwiched between one or more <flow> and </ flow>. In addition, each FLOW element includes a document display, chapters, and supplemental document data. Each FLOW element includes a layout ID as an attribute, and a page master element included in a layout set element described later is specified by the layout ID. The data in the FLOW element is converted into print data according to the page layout indicated by the contents of the page master element specified by the layout ID.
レイアウトセット要素は、1つ以上の<ページマスタ>と</ページマスタ>とで挟まれる要素(ページマスタ要素)を含んで構成される。ページマスタ要素は、印刷ページ上への内容のレイアウト方法を指定する要素である。具体的には、ページの縦横サイズ、余白、段組指定、および縦書き/横書きなどを指定する要素である。ページマスタ要素は、属性であるページマスタIDを含み、ページマスタIDによって、後述する印刷モードセット要素に含まれる印刷モード要素が指定される。FLOW要素内のデータは、各々、レイアウトIDによって指定されるページマスタ要素の、ページマスタIDによって指定される印刷モード要素の内容が示す印刷モードにしたがって、印刷される。 The layout set element includes an element (page master element) sandwiched between one or more <page master> and </ page master>. The page master element is an element that specifies a layout method of contents on a print page. Specifically, it is an element for designating the vertical / horizontal size of the page, margins, column setting, vertical writing / horizontal writing, and the like. The page master element includes a page master ID as an attribute, and a print mode element included in a print mode set element described later is designated by the page master ID. The data in the FLOW element is printed according to the print mode indicated by the contents of the print mode element specified by the page master ID of the page master element specified by the layout ID.
印刷モードセット要素は、1つ以上の<印刷モード>と</印刷モード>とで挟まれる要素(印刷モード要素)を含んで構成される。印刷モード要素は、印刷モードのパラメータを指定する要素である。具体的には、印刷部数、給紙トレイ、排紙(出力)トレイ、およびレイアウトなどを指定する各パラメータを含む要素である。 The print mode set element includes one or more elements (print mode elements) sandwiched between <print mode> and </ print mode>. The print mode element is an element that specifies a print mode parameter. Specifically, it is an element including parameters for designating the number of copies, a paper feed tray, a paper discharge (output) tray, a layout, and the like.
XSL−FO変換部12が、XML文書を、図2に示されるような印刷モードが拡張的に付加されたXSL−FO文書に変換することで、該XSL−FO文書はXSL−FO解析部14においてそのツリー構造が解析された後、レイアウト部15において、ページシーケンス要素とレイアウトセット要素とを用いてレイアウト処理が実行され、そのレイアウト処理結果がプリンタジョブ生成部16に渡されてPDLデータに変換される。また、印刷モード入力部17において、印刷モードセット要素がPJLデータに変換される。
The XSL-
図3は、本実施の形態にかかるプリンタ100のXMLプリント制御部1における処理を示すフローチャートである。図3のフローチャートに示される処理は、XMLプリント制御部1を構成するCPU(Central Processing Unit)(不図示)が、メモリ(不図示)に記憶されるプログラムを読出し、図1に示される各部を制御することで実現される。
FIG. 3 is a flowchart showing processing in the XML
図3を参照して、始めに、入力I/F11が所定の外部サーバにアクセスしてXML文書を取得することで、XML文書が入力I/F11を介してプリンタ100に入力される(S101)。
Referring to FIG. 3, first, the input I /
次に、ステップS101で入力されたXML文書のヘッダ部の記述が参照されて、XSL−FO形式に変換するときに用いられるスタイルシートが決定され(S103)、スタイルシート管理部13より取得される。そして、ステップS103で決定されたスタイルシートが適応されて、ステップS101で入力されたXML文書がXSL−FO形式のデータに変換されて、XSL−FO文書が生成される(S105)。ここで生成されるXSL−FO文書の構造の具体例が、図2に示される。
Next, the description of the header part of the XML document input in step S101 is referred to determine a style sheet to be used when converting to the XSL-FO format (S103), and is acquired from the style
次に、レイアウト部15において、ステップS105で生成されたXSL−FO文書の内容が参照されて、レイアウト処理を行なうために必要な、プリンタエンジン部21の仕様および状態など属性情報が収集され、印刷モード入力部17に対して印刷モードが要求される(S107)。ここでは、XSL−FO文書の内容のうち、具体的には、図2に示されたページシーケンス要素およびレイアウトセット要素が参照される。
Next, the
ステップS107での要求に応じて、印刷モード入力部17では、XSL−FO文書の内容、XSL−FO文書のうちの印刷モードに関する部分(印刷モードセット要素)、およびプリンタ2から取得される情報が参照されて、印刷モードが決定される(S109)。
In response to the request in step S107, the print
ステップS109で決定された印刷モードの情報のうち、レイアウト処理に用いられる情報はレイアウト部15に返送される(S111)。レイアウト部15では、ステップS111で返送された情報と、必要に応じて、操作部22でのパネル操作で指定された印刷モードに関する情報とに基づいて、レイアウト処理に必要な情報が決定され、フォントメトリクスデータ記憶部18に記憶される該当するフォントメトリクスデータが参照されて、ステップS105で生成されたXSL−FO文書に対するレイアウト処理が実行される(S113)。なお、ステップS113でのレイアウト処理については、後にサブルーチンを挙げて説明する。
Of the printing mode information determined in step S109, information used for layout processing is returned to the layout unit 15 (S111). In the
そして、ステップS113でのレイアウト処理の結果と、ステップS109で決定された印刷モードの情報のうちのプリンタ部2の制御に用いられる情報とは、PDLデータおよびPJLデータに変換されて、プリンタ部2に出力される(S115)。
Then, the result of the layout process in step S113 and the information used for controlling the
以上が、本実施の形態にかかるプリンタ100のXMLプリント制御部1における処理である。そして、ステップS115でプリンタ部2に出力されたPDLデータおよびPJLデータを含むプリンタジョブは、プリンタ部2において印刷される。
The above is the processing in the XML
さらに、上述のステップS113において、レイアウト部15で実行される、印刷モード入力部17で決定された印刷モード情報を利用したレイアウト処理について、具体的に説明する。
Furthermore, the layout process using the print mode information determined by the print
レイアウト部15は、レイアウト処理において、XSL−FO文書に含まれるページマスタ要素の情報にしたがってページを生成する。そして、生成したページに、XSL−FO文書に含まれるFLOW要素の内容を順に割当てる。
In the layout process, the
具体的には、レイアウト部15は、FLOW要素の内容である各文字に対応した、各文字の構成要素であるグリフを決定し、決定したグリフを、ライティング方向に配列して行を構成する。また、グリフ間に、適当なスペースを挿入する。FLOW要素の内容である各文字からなる文書が、英文のように文字列(ワード)単位を含む場合、文字列間に該当するグリフ間に挿入されるスペースは、文字列にあるグリフ間に挿入されるスペースよりも幅広く設定される。
Specifically, the
また、レイアウト部15は、構成された行が所定の行幅を超える場合は、改行処理を行なって、新しい行を構成する。新しい行は、前の行との行間が一定になるように設定される。また、次の行がページ高さを超える位置に構成される場合は、レイアウト部15は、新たなページを生成し、生成された新たなページの先頭行に、次の文字に対応したグリフを割当てる。また、該ページに段組が指定されている場合には、次の段の先頭行にそのグリフを割当てる。
The
なお、このようにして構成されるレイアウトの具体例を図4に示す。図4においては、2段組が指定されたページのレイアウトの具体例が示される。 A specific example of the layout configured in this way is shown in FIG. FIG. 4 shows a specific example of the layout of a page in which a two-column set is designated.
ところで、XSL−FO文書においてはページサイズを正確に指定することが可能であるが、ページサイズを指定する記述を省略することや、ページサイズを「自動」に設定することが可能である。そこで、次に、ページサイズを指定する記述が省略されていたり、ページサイズが「自動」に設定されていたりする場合のステップS113のレイアウト処理を、図5に示すサブルーチンと、具体例とを用いて説明する。ステップS113のレイアウト処理は、主にレイアウト部15における処理である。
By the way, in the XSL-FO document, it is possible to specify the page size correctly, but it is possible to omit the description for specifying the page size or to set the page size to “automatic”. Therefore, the layout processing in step S113 when the description for specifying the page size is omitted or the page size is set to “automatic” is performed using the subroutine shown in FIG. 5 and a specific example. I will explain. The layout processing in step S113 is mainly processing in the
図5を参照して、始めに、ステップS109で決定された印刷モードの情報のうちのレイアウト処理に用いられる情報が参照されて、XSL−FO文書においてページサイズが指定されているか否かが判定される(S201)。 Referring to FIG. 5, first, information used for layout processing in the print mode information determined in step S109 is referred to, and it is determined whether or not the page size is specified in the XSL-FO document. (S201).
ステップS201の判定の結果、XSL−FO文書においてページサイズを指定する記述が省略されているときや、ページサイズが「自動」に設定されているときなどの、ページサイズが指定されていない場合(S201でYES)、プリンタ部2の給紙トレイ内にセットされている用紙の用紙サイズが、ページサイズに設定される(S203)。なお、印刷を行なう用紙の用紙サイズは、印刷モード入力部17において決定される。
As a result of the determination in step S201, when the description specifying the page size is omitted in the XSL-FO document or when the page size is set to “automatic”, the page size is not specified ( In S201, the paper size of the paper set in the paper feed tray of the
一方、ステップS201の判定の結果、XSL−FO文書においてページサイズが指定されている場合(S201でNO)、ステップS203の処理をスキップし、処理をステップS205へ移行する。 On the other hand, if the page size is specified in the XSL-FO document as a result of the determination in step S201 (NO in S201), the process in step S203 is skipped, and the process proceeds to step S205.
次に、レイアウト部15は、ページサイズの幅が所定のサイズよりも大きい場合には段組を行なう。そして、その1行に配置される文字数が規定の文字数よりも多いか否かが判定される(S205)。ここでの規定の文字数は、ページサイズや文字サイズなどに応じて規定される文字数であって、予め図示されない記憶部に、ページサイズや文字サイズなどと対応付けられて格納されているしきい値である。
Next, the
ステップS205の判定の結果、1行に配置される文字数が規定の文字数よりも多い場合(S205でYES)、1行に配置される文字数が規定の文字数よりも小さくなるまで段組数を増やす(S207)。この、段組数の決定方法としては、たとえば、行幅/フォントサイズで得られる1行に配置される文字数が、規定の文字数以下になるまで段組数を増やす方法が挙げられる。このようにして段組数を増やすことで、1ページあたりの文字数を増やした結果1行あたりの文字数が多くなり、ユーザが読み難いレイアウトになってしまうことを防ぐ効果がある。 As a result of the determination in step S205, when the number of characters arranged in one line is larger than the prescribed number of characters (YES in S205), the number of columns is increased until the number of characters arranged in one line becomes smaller than the prescribed number of characters ( S207). As a method of determining the number of columns, for example, there is a method of increasing the number of columns until the number of characters arranged in one line obtained by the line width / font size is equal to or less than a predetermined number of characters. By increasing the number of columns in this way, the number of characters per page is increased, resulting in an increase in the number of characters per line and an effect of preventing a layout that is difficult for the user to read.
なお、ページサイズの幅に応じて段組数を増やすステップS207での処理に替えて、ページサイズの幅に応じてフォントサイズを変更する処理を行なってもよい。この場合、ページサイズに応じて文字が大きくなり、読みやすくなるという効果がある。 Note that instead of the process in step S207 in which the number of columns is increased according to the page size width, a process of changing the font size according to the page size width may be performed. In this case, there is an effect that the characters become larger according to the page size and are easier to read.
一方、ステップS205の判定の結果、1行に配置される文字数が規定の文字数以内である場合(S205でNO)、ステップS207の処理をスキップし、処理をステップS209へ移行する。 On the other hand, as a result of the determination in step S205, if the number of characters arranged in one line is within the prescribed number of characters (NO in S205), the process of step S207 is skipped, and the process proceeds to step S209.
また、レイアウト処理を行なう際に使用するフォントサイズを、操作部22でのパネル操作で指定することも考えられる。そこで、次に、操作部10から入力された操作パネル設定情報に、フォントに関する指定が含まれるか否かが判定される(S209)。
It is also conceivable that the font size used when performing the layout process is specified by a panel operation on the
ステップS209の判定の結果、操作部10から入力された操作パネル設定情報にフォントに関する指定が含まれる場合(S209でYES)、たとえば、操作部22から「大きい文字サイズ」ボタンが押されたことが操作パネル設定情報として印刷モード入力部17に入力されると、レイアウト部15は、該指定に応じてフォントサイズを調整し(S211)、たとえば、指定されたフォントの1.5倍のフォントサイズでレイアウト処理を行なうことなどが考えられる。この場合、プリンタ部2の操作部22でパネル操作操作を行なっているユーザが、文字サイズを変更できるという利便性が得られる。
As a result of the determination in step S209, when the operation panel setting information input from the operation unit 10 includes designation regarding fonts (YES in S209), for example, the “large character size” button has been pressed from the
一方、ステップS209の判定の結果、操作部10から入力された操作パネル設定情報にフォントに関する指定が含まれない場合(S209でNO)、ステップS211の処理をスキップし、処理をステップS213へ移行する。 On the other hand, as a result of the determination in step S209, if the operation panel setting information input from the operation unit 10 does not include designation regarding the font (NO in S209), the process of step S211 is skipped and the process proceeds to step S213. .
次に、操作部10から入力された操作パネル設定情報に、プリントオプションとして、拡大や縮小を行なって印刷する指定が含まれるか否かが判定される(S213)。 Next, it is determined whether or not the operation panel setting information input from the operation unit 10 includes designation for printing by performing enlargement or reduction as a print option (S213).
ステップS213の判定の結果、操作部10から入力された操作パネル設定情報に拡大や縮小を行なって印刷する指定が含まれる場合(S213でYES)、レイアウト部15は、その指定に応じてフォントサイズを調整する(S215)。
As a result of the determination in step S213, if the operation panel setting information input from the operation unit 10 includes designation for printing by performing enlargement or reduction (YES in S213), the
たとえば、操作部22でのパネル操作で、印刷モードとして縮小印刷が指定された場合、レイアウトされたページのイメージを単に縮小すると小さいサイズのフォントが見え難くなるという問題がある。このため、ステップS213で印刷モードとして縮小印刷が指定されたことが判定されると、ステップS215において、レイアウト部15は、一定のサイズ以下のフォントを、所定サイズに固定するフォントサイズの調整を行なう。このフォントサイズを固定する所定サイズは、縮小率に応じて決定されるサイズであって、縮小効果が大きいほど大きなサイズであることが好ましい。
For example, when reduced printing is designated as a print mode by a panel operation on the
一方、ステップS213の判定の結果、操作部10から入力された操作パネル設定情報に拡大や縮小を行なって印刷する指定が含まれない場合(S213でNO)、ステップS215の処理をスキップし、処理をステップS217へ移行する。 On the other hand, as a result of the determination in step S213, if the operation panel setting information input from the operation unit 10 does not include an instruction to perform enlargement or reduction and print (NO in S213), the process of step S215 is skipped, and the process The process proceeds to step S217.
プリンタ部2は専用の内蔵フォントを備える場合があり、この内蔵フォントを使用することで印刷速度を高速化できるなどのメリットがある。そこで、レイアウト部15は、操作部10から入力された操作パネル設定情報に、プリンタ部2が内蔵するフォントを使用して印刷する指定が含まれるか否かを判定する(S217)。
The
これらの内蔵フォントは、独自のメトリクスを備える。そのため、ステップS217の判定の結果、操作部10から入力された操作パネル設定情報にプリンタ部2が内蔵するフォントを使用して印刷する指定が含まれる場合(S217でYES)、このメトリクスをプリンタ部2からプリンタ内蔵フォントダウンロード部19でダウンロードして取得し、フォントメトリクスデータ記憶部18に格納する(S219)。このようにすることで、レイアウト部15では、プリンタ部2の内蔵フォントに応じた適切なレイアウト処理を行なうことできる。
These built-in fonts have their own metrics. Therefore, if the result of determination in step S217 is that the operation panel setting information input from the operation unit 10 includes designation for printing using a font built in the printer unit 2 (YES in S217), this metric is used as the printer unit. 2 is downloaded and acquired by the printer built-in
一方、ステップS217の判定の結果、操作部10から入力された操作パネル設定情報にプリンタ部2が内蔵するフォントを使用して印刷する指定が含まれない場合(S217でNO)、ステップS219の処理をスキップする。 On the other hand, as a result of the determination in step S217, if the operation panel setting information input from the operation unit 10 does not include designation for printing using the font built in the printer unit 2 (NO in S217), the process in step S219 To skip.
以上でステップS113のレイアウト処理を終了し、処理を図3に示されるメインルーチンに戻す。 Thus, the layout process in step S113 is completed, and the process returns to the main routine shown in FIG.
さらに、上述の処理に加えて、レイアウト処理において以下の処理を行なうこともできる。 Further, in addition to the above-described processing, the following processing can be performed in the layout processing.
すなわち、印刷モードには、1枚の用紙に複数のページを印刷することが可能な両面印刷、2in1、および4in1などのモードがある。通常、XML文書は、章、節などの複数の大きなまとまりを持つ。このような大きなまとまりとまとまりとの間に適切な白ページ(ブランクページ)を挿入することで、まとまりの最初を各用紙の表の面の最初のページとして割当てることが可能になる。そこで、レイアウト部15は、ステップS109で決定された印刷モードの情報のうちのレイアウト処理に用いられる情報を参照して、1枚の用紙に複数のページを印刷する印刷モードが指定されているか否かを判定する。
That is, the print mode includes modes such as double-sided printing, 2in1, and 4in1 that can print a plurality of pages on one sheet. Usually, an XML document has a plurality of large groups such as chapters and sections. By inserting an appropriate white page (blank page) between such large batches and batches, it is possible to assign the start of the batch as the first page of the front side of each sheet. Therefore, the
その判定の結果、1枚の用紙に複数のページを印刷する印刷モードが指定されている場合、レイアウト部15は、プリンタジョブ生成部16に対して、XSL−FO文書のFLOW要素とFLOW要素との間に改ページのコマンドを挿入してプリンタ部2へ送信するように、指示する。または、プリンタジョブ生成部16に改ページのコマンドを送信させる替わりに、レイアウト部15は、適当な数の白ページを生成してもよい。
As a result of the determination, when the print mode for printing a plurality of pages on one sheet is designated, the
具体的に、FLOW要素を含むXSL−FO文書のレイアウト例を図6に示す。図6に示されるXSL−FO文書は、第1のFLOW要素〜第3のFLOW要素の3つのFLOW要素を含んで構成され、その印刷モードは2in1である。 Specifically, an example layout of an XSL-FO document including a FLOW element is shown in FIG. The XSL-FO document shown in FIG. 6 is configured to include three FLOW elements of a first FLOW element to a third FLOW element, and the print mode is 2in1.
図6を参照して、レイアウト部15がレイアウト処理を行なって、第1のFLOW要素から第1〜第3ページを生成し、第2のFLOW要素から第1ページを生成し、第2のFLOW要素から第1ページを生成するとすると、レイアウト部15は、さらに、第1のFLOW要素から生成された第1〜第3ページを、1枚目の用紙の表の面から裏の面にかけて配置した後、改ページ、または白ページを挿入して、第2のFLOW要素から生成された第1ページを、2枚目の用紙の表の面に配置する。同様に、その後、改ページ、または白ページを挿入して、第3のFLOW要素から生成された第1ページを、3枚目の用紙の表の面に配置する。このようにすることで、FLOW要素の先頭を常に用紙の表の面の先頭に印刷することができる。
Referring to FIG. 6,
さらに、ユーザは、FLOW要素に章、節などの有意義な大きな単位の内容を割当てることで、それらの内容を用紙の表の面の第1ページに印刷させることが可能になり、文書単位を反映した見易いページ構成の印刷物を得ることができる。 Furthermore, the user can assign the contents of significant units such as chapters and sections to the FLOW element, so that the contents can be printed on the first page of the front side of the sheet, and the document unit is reflected. It is possible to obtain a printed material having an easy-to-view page structure.
また、印刷された用紙が排紙されるトレイを、操作部22でのパネル操作で指定することも考えられる。プリンタ部2のトレイには、ステイプル機能が付加されたトレイなど、出力枚数に上限があるトレイもある。そこで、レイアウト部15は、操作部10から入力された操作パネル設定情報において、出力先としてそのような出力枚数に上限があるトレイが指定されているか否かを判定する。
It is also conceivable to designate a tray on which printed paper is discharged by a panel operation on the
その判定の結果、操作部10から入力された操作パネル設定情報に、出力先として出力枚数に上限があるトレイが指定されている場合、レイアウト部15は、印刷モード入力部17を介してプリンタ制御部20から該トレイの出力枚数の上限を取得し、プリンタジョブ生成部16に対して、上限枚数以下になるようプリントジョブを分割するように、指示する。このように、1つのプリントジョブを分割して複数のプリントジョブにできることで、出力先に指定されたトレイの出力枚数の上限を超える大きなXML文書であっても、印刷可能になる。
As a result of the determination, when a tray having an upper limit on the number of output sheets is designated as an output destination in the operation panel setting information input from the operation unit 10, the
本実施の形態にかかるプリンタ100で以上のような処理が実行されることで、ネットワーク上のサーバなどからXML文書を取得し、スタイルシートに設定された印刷モードや、プリンタ部2から操作入力された設定や、プリンタエンジン部21の仕様や状態などの属性情報を利用したレイアウト処理が実現できる。この結果、高品位にレイアウトされたXML文書の、用紙への印刷が可能になるという利点がある。
When the
さらに、上述のプリンタ100のXMLプリント制御部1において行なわれるレイアウト方法を、プログラムとして提供することもできる。このようなプログラムは、コンピュータに付属するフレキシブルディスク、CD−ROM(Compact Disc-Read Only Memory)、ROM(Read Only Memory)、RAM(Random Access Memory)およびメモリカードなどのコンピュータ読取り可能な記録媒体にて記録させて、プログラム製品として提供することもできる。あるいは、コンピュータに内蔵するハードディスクなどの記録媒体にて記録させて、プログラムを提供することもできる。また、ネットワークを介したダウンロードによって、プログラムを提供することもできる。
Furthermore, the layout method performed in the XML
提供されるプログラム製品は、ハードディスクなどのプログラム格納部にインストールされて実行される。なお、プログラム製品は、プログラム自体と、プログラムが記録された記録媒体とを含む。 The provided program product is installed in a program storage unit such as a hard disk and executed. The program product includes the program itself and a recording medium on which the program is recorded.
今回開示された実施の形態はすべての点で例示であって制限的なものではないと考えられるべきである。本発明の範囲は上記した説明ではなくて特許請求の範囲によって示され、特許請求の範囲と均等の意味および範囲内でのすべての変更が含まれることが意図される。 The embodiment disclosed this time should be considered as illustrative in all points and not restrictive. The scope of the present invention is defined by the terms of the claims, rather than the description above, and is intended to include any modifications within the scope and meaning equivalent to the terms of the claims.
1 XMLプリント制御部、2 プリンタ部、11 入力I/F、12 XSL−FO変換部、13 スタイルシート管理部、14 XSL−FO解析部、15 レイアウト部、16 プリンタジョブ生成部、17 印刷モード入力部、18 フォトメトリクスデータ記憶部、19 プリンタ内蔵フォントダウンロード部、20 プリンタ制御部、21 プリンタエンジン部、22 操作部、100,1004 プリンタ、1001 XSLTプロセッサ、1002 XSL−FOプロセッサ、1003 プリンタドライバ。 1 XML print control unit, 2 printer unit, 11 input I / F, 12 XSL-FO conversion unit, 13 style sheet management unit, 14 XSL-FO analysis unit, 15 layout unit, 16 printer job generation unit, 17 print mode input Unit, 18 photometric data storage unit, 19 printer built-in font download unit, 20 printer control unit, 21 printer engine unit, 22 operation unit, 100, 1004 printer, 1001 XSLT processor, 1002 XSL-FO processor, 1003 printer driver.
Claims (8)
プリンタエンジンの属性情報を取得する属性情報取得手段と、
前記属性情報に基づいて、前記文書データのレイアウトを決定するレイアウト決定手段と、
前記レイアウトに基づいて、前記文書データの内容を個別のページに割付け、レイアウトを行なうレイアウト手段と、
前記レイアウトされた文書データからプリンタジョブを生成するプリンタジョブ生成手段と、
前記プリンタジョブを前記プリンタエンジンで印刷させるよう制御するプリンタ制御手段とを備える、プリンタ。 Document data acquisition means for acquiring XML (Extensible Markup Language) format document data to be printed;
Attribute information acquisition means for acquiring printer engine attribute information;
Layout determining means for determining a layout of the document data based on the attribute information;
Layout means for allocating the content of the document data to individual pages based on the layout and performing layout;
Printer job generation means for generating a printer job from the laid out document data;
And a printer control unit that controls the printer engine to print the printer job.
前記XSL−FO形式の文書データを解析するXSL−FO解析手段とをさらに備え、
前記レイアウト決定手段は、前記属性情報と、前記解析結果とに基づいて前記レイアウトを決定する、請求項1に記載のプリンタ。 XSL-FO conversion means for converting the XML format document data into XSL-FO (Extensible Stylesheet Language Formatting Objects) format document data;
XSL-FO analysis means for analyzing the document data in the XSL-FO format,
The printer according to claim 1, wherein the layout determination unit determines the layout based on the attribute information and the analysis result.
前記レイアウト手段は、前記取得されたフォント情報を用いて前記文書データのレイアウトを行なう、請求項1に記載のプリンタ。 According to the determined layout, the printer engine further includes a built-in font acquisition unit that acquires font information of a unique font used in the printer engine,
The printer according to claim 1, wherein the layout unit performs layout of the document data using the acquired font information.
前記プリンタジョブ生成手段は、前記印刷枚数の制限を満たすように前記生成したプリンタジョブを分割する、請求項1に記載のプリンタ。 The attribute information acquisition means acquires attribute information that is a limitation on the number of printed sheets,
The printer according to claim 1, wherein the printer job generation unit divides the generated printer job so as to satisfy the restriction on the number of printed sheets.
印刷対象であるXML(Extensible Markup Language)形式の文書データを取得する文書データ取得ステップと、
プリンタエンジンの属性情報を取得する属性情報取得ステップと、
前記属性情報に基づいて、前記文書データのレイアウトを決定するレイアウト決定ステップと、
前記レイアウトに基づいて、前記文書データの内容を個別のページに割付け、レイアウトを行なうレイアウトステップと、
前記レイアウトされた文書データからプリンタジョブを生成するプリンタジョブ生成ステップとを実行させる、プリンタジョブ生成プログラム。 A program for causing a computer to execute processing for generating a printer job,
A document data acquisition step for acquiring XML (Extensible Markup Language) document data to be printed;
An attribute information acquisition step for acquiring printer engine attribute information;
A layout determining step for determining a layout of the document data based on the attribute information;
A layout step of allocating the content of the document data to individual pages based on the layout and performing layout;
A printer job generation program for executing a printer job generation step of generating a printer job from the laid out document data.
前記XSL−FO形式の文書データを解析するXSL−FO解析ステップとをさらに実行させ、
前記レイアウト決定ステップは、前記属性情報と、前記解析結果とに基づいて前記レイアウトを決定する、請求項5に記載のプリンタジョブ生成プログラム。 An XSL-FO conversion step of converting the XML format document data into XSL-FO (Extensible Stylesheet Language Formatting Objects) format document data;
An XSL-FO analysis step for analyzing the document data in the XSL-FO format,
The printer job generation program according to claim 5, wherein the layout determination step determines the layout based on the attribute information and the analysis result.
前記レイアウトステップは、前記取得されたフォント情報を用いて前記文書データのレイアウトを行なう、請求項5に記載のプリンタジョブ生成プログラム。 In accordance with the determined layout, a printer built-in font acquisition step for acquiring font information of a unique font used in the printer engine is further executed.
6. The printer job generation program according to claim 5, wherein in the layout step, the document data is laid out using the acquired font information.
前記プリンタジョブ生成ステップは、前記印刷枚数の制限を満たすように前記生成したプリンタジョブを分割する、請求項5に記載のプリンタジョブ生成プログラム。 The attribute information acquisition step acquires attribute information that is a limitation on the number of printed sheets,
6. The printer job generation program according to claim 5, wherein the printer job generation step divides the generated printer job so as to satisfy the restriction on the number of printed sheets.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2003323163A JP2005092426A (en) | 2003-09-16 | 2003-09-16 | Printer and printer job generation program |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2003323163A JP2005092426A (en) | 2003-09-16 | 2003-09-16 | Printer and printer job generation program |
Publications (1)
Publication Number | Publication Date |
---|---|
JP2005092426A true JP2005092426A (en) | 2005-04-07 |
Family
ID=34454315
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2003323163A Pending JP2005092426A (en) | 2003-09-16 | 2003-09-16 | Printer and printer job generation program |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP2005092426A (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2007058837A (en) * | 2005-07-14 | 2007-03-08 | Seiko Epson Corp | Printing support apparatus, printer selection apparatus, printing support program, printer selection program, and storage medium; and method for selecting printer, method of supporting printing, and method for generating printer decision tree |
JP2008217104A (en) * | 2007-02-28 | 2008-09-18 | Konica Minolta Business Technologies Inc | Push-type pull printing system, pull printing method, and image forming apparatus |
JP2008234119A (en) * | 2007-03-19 | 2008-10-02 | Seiko Epson Corp | Print controller capable of coping with xml document format |
US10733355B2 (en) | 2015-11-30 | 2020-08-04 | Canon Kabushiki Kaisha | Information processing system that stores metrics information with edited form information, and related control method information processing apparatus, and storage medium |
-
2003
- 2003-09-16 JP JP2003323163A patent/JP2005092426A/en active Pending
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2007058837A (en) * | 2005-07-14 | 2007-03-08 | Seiko Epson Corp | Printing support apparatus, printer selection apparatus, printing support program, printer selection program, and storage medium; and method for selecting printer, method of supporting printing, and method for generating printer decision tree |
JP2008217104A (en) * | 2007-02-28 | 2008-09-18 | Konica Minolta Business Technologies Inc | Push-type pull printing system, pull printing method, and image forming apparatus |
JP2008234119A (en) * | 2007-03-19 | 2008-10-02 | Seiko Epson Corp | Print controller capable of coping with xml document format |
US10733355B2 (en) | 2015-11-30 | 2020-08-04 | Canon Kabushiki Kaisha | Information processing system that stores metrics information with edited form information, and related control method information processing apparatus, and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
KR100725195B1 (en) | Information processing apparatus and method, and recording medium for recording print control program | |
US8149432B2 (en) | Information processing apparatus, method, and recording medium storing program for modifying print instructions | |
US7944581B2 (en) | Imposition systems, methods and drivers for printer products | |
JP2010140445A (en) | Document processor and document processing method | |
JP2003091380A (en) | Document processing system, information processor, and setting method, program and recording medium for the same | |
JP2003296312A (en) | Information processing apparatus and method | |
JP2009230413A (en) | Information processor, information processing method and printing system | |
JP2007310877A (en) | Automatic job submitter for submitting print job to printer | |
JP4314238B2 (en) | Information processing apparatus, method, and computer program | |
KR20070099485A (en) | Information processing apparatus and method | |
JP4442616B2 (en) | Document editing apparatus, program, and storage medium | |
US8856637B2 (en) | Applying borders to each page in N-up printing | |
JP2005092426A (en) | Printer and printer job generation program | |
JP3979067B2 (en) | Printing instruction device | |
JP2008009598A (en) | Print controller, print control program, and print control method | |
JP2005165466A (en) | Print controller, print control method and computer program | |
JP2002254774A (en) | Printing control method, printing information generation device, printing control device, printing control system, and medium to provide control program | |
JP2008165305A (en) | Print support system, print support program, and print support method | |
JPH06162008A (en) | Page description language processor | |
JP2005182694A (en) | Layout printing system | |
JP2002192814A (en) | Imaging apparatus with printing attribute-printing function and method for printing printing attribute | |
JP2005032098A (en) | Method, program, and device for preparing slip | |
JP2013054527A (en) | Information processing apparatus, information processing method, and program | |
JP4288936B2 (en) | Printing system and printing program | |
JP2006155207A (en) | Image processor and image processing program |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A711 | Notification of change in applicant |
Free format text: JAPANESE INTERMEDIATE CODE: A712 Effective date: 20050614 |