JP5459383B2 - Print data generation apparatus, print data generation method, printer driver program, and print data generation system - Google Patents

Print data generation apparatus, print data generation method, printer driver program, and print data generation system Download PDF

Info

Publication number
JP5459383B2
JP5459383B2 JP2012257883A JP2012257883A JP5459383B2 JP 5459383 B2 JP5459383 B2 JP 5459383B2 JP 2012257883 A JP2012257883 A JP 2012257883A JP 2012257883 A JP2012257883 A JP 2012257883A JP 5459383 B2 JP5459383 B2 JP 5459383B2
Authority
JP
Japan
Prior art keywords
page break
character string
command
setting
data generation
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.)
Active
Application number
JP2012257883A
Other languages
Japanese (ja)
Other versions
JP2013050991A (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.)
Ricoh Co Ltd
Original Assignee
Ricoh Co Ltd
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 Ricoh Co Ltd filed Critical Ricoh Co Ltd
Priority to JP2012257883A priority Critical patent/JP5459383B2/en
Publication of JP2013050991A publication Critical patent/JP2013050991A/en
Application granted granted Critical
Publication of JP5459383B2 publication Critical patent/JP5459383B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Description

本発明は、webブラウザ等の、改頁の概念を持たない文書データを印刷するプログラムに適用して好適な技術に関する。
より詳細には、強制的改頁の概念のない文書データに改頁コマンドを挿入する装置、方法、システム、プログラムに関する。
The present invention relates to a technique suitably applied to a program such as a web browser that prints document data having no page break concept.
More specifically, the present invention relates to an apparatus, method, system, and program for inserting a page break command into document data without the concept of forced page break.

従来のクライアント・サーバ型のシステムは、クライアントPCに専用のクライアントアプリケーションをインストールする必要があった。
これに対して、webアプリケーションベースのシステムでは、サーバ側でクライアントアプリケーションの画面をhtmlで生成し、クライアントPCはそれをダウンロードして表示するだけである。従って、クライアントPCには、基本的にはwebブラウザと周辺機器のドライバのみインストールすればよい。このことにより、従来必要であったソフトウェアの配布とそのインストール、そしてバージョンアップ等の必要がなくなる。
これら利点により、最近の企業の業務アプリケーションはwebアプリケーションで実現される事が増えている。その際、ユーザが操作するクライアントPCの操作画面の実体はwebブラウザである事が多い。
また、業務アプリケーションをサービスとして、インターネット経由で提供するASP(Application Service Provider)も普及し始めている。この場合もユーザの操作画面はwebブラウザである事が多い。
The conventional client-server type system has to install a dedicated client application on the client PC.
On the other hand, in the web application based system, the client application screen is generated in html on the server side, and the client PC only downloads and displays it. Therefore, basically only the web browser and peripheral device drivers need be installed on the client PC. This eliminates the need for software distribution, installation, and version upgrade, which have been necessary in the past.
Due to these advantages, business applications of recent enterprises are increasingly realized by web applications. In that case, the entity of the operation screen of the client PC operated by the user is often a web browser.
In addition, ASPs (Application Service Providers) that provide business applications as services via the Internet have begun to spread. Also in this case, the user's operation screen is often a web browser.

通常、業務アプリケーション等におけるデータ参照用の画面では、ユーザが全体を確認しやすいように所定のテーブルについて表形式の一覧表示を行う。
しかし、いざ帳票として印刷する際には、業務で使用する単位毎に、別のページとして印刷した方が使いやすい事が多い。また、発注先等に送付する帳票を作成するには、所定のテーブルの内容を発注先毎に分けて印刷しなければならない。
このような帳票印刷を実現したい場合は、クライアント・サーバ型では、クライアントアプリケーションで表示画面とは関係なく帳票を作成することができる。
ところが、webアプリケーションの場合は、基本的にwebブラウザに表示されている内容そのままでしか印刷できない。改ページは、ブラウザやプリンタドライバによって決められた位置で改ページされるため、そのまま印刷しても、望み通りのページに分けて印刷する事はできない。これは、htmlという言語仕様にページの概念がないことに起因する。
htmlという言語仕様は、文書を構造化することを意図して策定されている。そこには、紙に印刷する際の、ページの概念がない。このため、所定の内容だけ一枚の紙に印刷し、次の内容は新たな紙に印刷する、という、帳票出力には全く向いていない。
なお、印刷システムの一例を特許文献1に開示する。
Normally, on a data reference screen in a business application or the like, a list of tabular formats is displayed for a predetermined table so that the user can easily confirm the whole.
However, when printing as a form, it is often easier to print as a separate page for each unit used in business. Further, in order to create a form to be sent to an ordering party or the like, it is necessary to print the contents of a predetermined table separately for each ordering party.
When it is desired to realize such form printing, the client / server type can create a form regardless of the display screen by the client application.
However, in the case of a web application, printing can be basically made only with the contents displayed on the web browser. Since a page break is performed at a position determined by a browser or a printer driver, even if printing is performed as it is, it cannot be divided into desired pages and printed. This is because there is no concept of a page in the language specification of html.
The language specification html is formulated with the intention of structuring documents. There is no concept of pages when printing on paper. For this reason, only predetermined content is printed on one sheet of paper, and the next content is printed on new paper.
An example of a printing system is disclosed in Patent Document 1.

従来、webブラウザで帳票出力を行わせようとするには、以下の二通りの方法があった。
(1)業務で使用する単位毎に、印刷用webページ(html文書)を表示して、各画面を印刷する。
webブラウザ表示ではページの概念がない。帳票のページを分けたい場合は、別の画面として表示する必要がある。そこで、業務で使用する単位毎に、印刷用ページを表示して、各画面を印刷する。
例えば、複数の業者に向けた帳票出力の場合は、その業者毎に印刷用webページを作成し、表示して、印刷をする。
この方法では、業務単位毎に何度も操作をする必要がある。これはユーザへの負荷が大きい。
上述の場合、帳票送付先の業者が沢山いれば、印刷業務を行う担当者の負荷は非常に大きくなる。
Conventionally, there are the following two methods for causing a web browser to output a form.
(1) A print web page (html document) is displayed for each unit used in business, and each screen is printed.
In the web browser display, there is no concept of a page. If you want to divide a form page, you need to display it as a separate screen. Therefore, a print page is displayed for each unit used in business, and each screen is printed.
For example, in the case of a form output for a plurality of traders, a print web page is created for each trader, displayed, and printed.
In this method, it is necessary to perform the operation many times for each business unit. This is a heavy load on the user.
In the case described above, if there are a large number of business destinations to which the form is sent, the load on the person in charge of the printing work becomes very large.

(2)サーバ側で、帳票出力である印刷用html文書を、一旦ページ概念を持つ別形式の文書に変換する。
webブラウザは当該文書をダウンロードして、ビューア等と呼ばれる専用の閲覧プログラムにて表示及び印刷を行う。一例としては、Adobe(登録商標) Systems社のPDF(Portable Document Format)と、これを表示・印刷するAdobe(登録商標) Readerが挙げられる。
この方法では、クライアントPCにビューアをインストールする必要がある。
また、html文書に比べて、webサーバにおける帳票生成の処理負荷が高い。そのため、帳票印刷が短時間に集中するようなアプリケーションでは、ピーク時の負荷に合わせてサーバの処理能力を増強する必要があり、設備投資に伴うコスト増に直結してしまう。
(2) On the server side, the html document for printing, which is a form output, is once converted into another format document having a page concept.
The web browser downloads the document and displays and prints it with a dedicated browsing program called a viewer or the like. As an example, there is a PDF (Portable Document Format) of Adobe (registered trademark) Systems and an Adobe (registered trademark) Reader that displays and prints the PDF.
In this method, it is necessary to install a viewer on the client PC.
In addition, the processing load of the form generation in the web server is higher than that of the html document. For this reason, in an application in which form printing is concentrated in a short time, it is necessary to increase the processing capacity of the server in accordance with the peak load, which directly leads to an increase in costs associated with capital investment.

本発明はかかる点に鑑みてなされたものであり、極めて効率的に、帳票印刷を実現するための、印刷データ生成装置、印刷データ生成方法、プリンタドライバプログラムおよび印刷データ生成システムを提供することを目的とする。   The present invention has been made in view of the above points, and provides a print data generation device, a print data generation method, a printer driver program, and a print data generation system for realizing form printing extremely efficiently. Objective.

上記課題を解決するための本発明は、文字列を含む文書を描画命令に変換する描画処理部と、所定の文字列と、改頁命令の挿入条件の入力を受け付ける受付部と、前記受付部で受け付けた入力に応じて、前記挿入条件を示す設定値が対応付けられた設定文字列を設定する設定部と、前記描画命令から、前記設定文字列を検出し、検出した前記設定文字列に対応付けられた前記設定値に従って、前記改頁命令を挿入して前記描画命令を出力する改頁命令挿入部と、前記改頁命令挿入部から出力された前記描画命令を画像形成装置にて印刷するための制御命令に変換する変換部と、を具備することを特徴とする。   The present invention for solving the above problems includes a drawing processing unit that converts a document including a character string into a drawing command, a receiving unit that receives an input condition of a predetermined character string and a page break command, and the receiving unit. The setting character string is detected from the setting unit that sets the setting character string that is associated with the setting value indicating the insertion condition in accordance with the input received in the drawing command, and the detected setting character string is included in the detected setting character string. In accordance with the associated setting value, the page break command insertion unit that inserts the page break command and outputs the drawing command, and the drawing command output from the page break command insertion unit is printed by the image forming apparatus And a conversion unit that converts the control command into a control command.

htmlという言語仕様は、文書を構造化することを意図して策定されている。そこには、紙に印刷する際の、ページの概念がない。このため、所定の内容だけ一枚の紙に印刷し、次の内容は新たな紙に印刷する、という、帳票出力には全く向いていない。
そこで、改頁に相当する文書の位置を特定する文字列を定め、印刷処理の前段階のデータから当該文字列を検出し、そこに改頁コマンドを挿入する処理をプリンタドライバ等に追加する。
The language specification html is formulated with the intention of structuring documents. There is no concept of pages when printing on paper. For this reason, only predetermined content is printed on one sheet of paper, and the next content is printed on new paper.
Therefore, a character string specifying the position of the document corresponding to the page break is determined, a process for detecting the character string from the data before the printing process and inserting a page break command there is added to the printer driver or the like.

本発明により、極めて効率的に帳票印刷を実現するための、印刷データ生成装置、印刷データ生成方法、プリンタドライバプログラムおよび印刷データ生成システムを提供できる。   According to the present invention, it is possible to provide a print data generation apparatus, a print data generation method, a printer driver program, and a print data generation system for realizing form printing extremely efficiently.

本発明の一実施の形態による、文書印刷システムの概略図である。1 is a schematic diagram of a document printing system according to an embodiment of the present invention. クライアントPCの内部の機能ブロック図である。It is a functional block diagram inside a client PC. プリンタドライバの内部の機能ブロック図である。2 is a functional block diagram inside a printer driver. FIG. 改頁命令挿入部の動作を示すフローチャートである。It is a flowchart which shows operation | movement of a page break command insertion part. 本実施形態によってなされる帳票出力の流れをイメージにて示す概略図である。It is the schematic which shows the flow of the form output made by this embodiment with an image. 本実施形態によってなされる帳票出力の流れをイメージにて示す概略図である。It is the schematic which shows the flow of the form output made by this embodiment with an image. 帳票出力の別の形態を示す概略図である。It is the schematic which shows another form of form output. プリンタドライバの表示画面の一例である。3 is an example of a display screen of a printer driver.

以下、本発明の実施の形態を、図1〜図8を参照して説明する。
なお、以下の説明において、「コマンド」と「命令」は同義である。
一般的には「描画コマンド」よりも「描画命令」と言われることが多い。
「プリンタ制御命令」と「プリンタ制御コマンド」はどちらも同程度の頻度にて用いられる。
これらはいずれも同じ意味である。
Hereinafter, embodiments of the present invention will be described with reference to FIGS.
In the following description, “command” and “instruction” are synonymous.
Generally, it is often referred to as a “draw command” rather than a “draw command”.
Both “printer control command” and “printer control command” are used at the same frequency.
These all have the same meaning.

図1は、本実施の形態の例である、文書印刷システムの概略図である。
文書印刷システム101は、webベースのクライアント・サーバシステムである。
アプリケーションサーバ102はwebサーバを構成する。
webサーバプログラム103は、TCP/IPネットワーク108を通じて来るクライアントの要求に応じ、html文書を送信したり、cgi(Common Gateway nterface:webサーバがwebブラウザの要求に応じて、プログラムを起動するための仕組み。)を実行したりする。一例としてはApache(http://www.apache.org/)等である。
クライアントはwebブラウザが稼動するTCP/IPネットワーク108の端末であり、主にパソコン(以下「クライアントPC」)よりなる。クライアントPC104は、TCP/IPネットワーク108と接続する機能を有するOSが稼動する。OSは例えば、マイクロソフト社のWindows(登録商標)である。
webブラウザ105は、OSが備えるネットワークプロトコルスタック106と、NIC(Network Interface Card)107と、TCP/IPネットワーク108を通じて、アプリケーションサーバ102からhtml文書109や、cgi110から得られるhtmlデータを受信し、図示しない画面に表示する。
FIG. 1 is a schematic diagram of a document printing system as an example of the present embodiment.
The document printing system 101 is a web-based client / server system.
The application server 102 constitutes a web server.
The web server program 103 is a mechanism for sending an html document in response to a client request coming through the TCP / IP network 108, or for starting a program in response to a request from a web browser by a cgi (Common Gateway interface: web server). )). An example is Apache (http://www.apache.org/).
The client is a terminal of the TCP / IP network 108 on which the web browser operates, and is mainly composed of a personal computer (hereinafter referred to as “client PC”). The client PC 104 runs an OS having a function of connecting to the TCP / IP network 108. The OS is, for example, Windows (registered trademark) of Microsoft Corporation.
The web browser 105 receives the html data 109 and the html data obtained from the cgi 110 from the application server 102 through the network protocol stack 106, the NIC (Network Interface Card) 107, and the TCP / IP network 108 provided in the OS. Not displayed on the screen.

操作者がクライアントPC104のwebブラウザ105を操作して、図示しない印刷指令コマンドを発行すると、webブラウザ105は画面に表示しているhtml文書(html文書109或はcgi110から得られるhtmlデータ等)について、webブラウザ105内部のレンダリング処理部111を用いて、印刷命令とそのためのデータを生成し、描画処理部112に出力する。
描画処理部112はこれを受けて、描画命令を作成し、プリンタドライバ113に送信する。このときの描画命令は、プリンタのメーカーや機種に依存しない、OS内で共通の規格に基づく描画命令である。Windows(登録商標)においては、GDI(Graphics Device Interface)という描画処理機構が該当する。
When the operator operates the web browser 105 of the client PC 104 and issues a print command (not shown), the web browser 105 displays an html document (such as html data obtained from the html document 109 or the cgi 110) displayed on the screen. Using the rendering processing unit 111 inside the web browser 105, a print command and data for it are generated and output to the drawing processing unit 112.
In response to this, the drawing processing unit 112 creates a drawing command and transmits it to the printer driver 113. The drawing command at this time is a drawing command based on a standard common within the OS, independent of the manufacturer and model of the printer. In Windows (registered trademark), a drawing processing mechanism called GDI (Graphics Device Interface) is applicable.

プリンタドライバ113は前述の描画命令を受けて、プリンタ116に依存する印刷データを作成する。プリンタ116は各メーカー毎或は各機種毎に異なる「プリンタ制御言語」を実装しており、プリンタドライバ113は、描画処理部112が生成したプリンタ116に非依存の描画命令を、プリンタ制御言語に準拠した印刷データへ変換する作業を行う。   In response to the drawing command, the printer driver 113 creates print data depending on the printer 116. The printer 116 is mounted with a different “printer control language” for each manufacturer or for each model, and the printer driver 113 outputs a rendering command independent of the printer 116 generated by the rendering processing unit 112 to the printer control language. Work to convert to compliant print data.

印刷データはポートモニタ114を通じて、インターフェース115に接続されているプリンタ116に送信される。
ポートモニタ114はプリンタ116が接続されるインターフェース115とプリンタドライバ113との間を取り持つ機能を有する。プリンタ116が、クライアントPC104に備わっているパラレルポート、USB、或はTCP/IPネットワーク等のいずれかに繋がっている際、ポートモニタ114はプリンタドライバ113が生成した印刷データを適切に目的のプリンタ116が繋がっているインターフェースへ送信する。つまり、インターフェース115はこれらを含め、任意のものが利用可能である。
The print data is transmitted to the printer 116 connected to the interface 115 through the port monitor 114.
The port monitor 114 has a function for handling between the interface 115 to which the printer 116 is connected and the printer driver 113. When the printer 116 is connected to any one of a parallel port, USB, TCP / IP network, etc. provided in the client PC 104, the port monitor 114 appropriately prints the print data generated by the printer driver 113. Send to the interface that is connected. That is, any interface 115 including these can be used.

図2はクライアントPC104の内部の機能ブロック図である。図1のクライアントPC104の内部をより詳細に説明するものである。但し、ネットワークプロトコルスタック106とNIC107については図示を省略している。
図1では図示を省略していたが、プリンタドライバ113は動作の際に、一時スプールファイル202とプリンタスプールファイル203の作成、読み出し及び削除を行う。そして、プリンタスプールファイル203の作成の際には、必要に応じてフォントライブラリ204を読み込む。
FIG. 2 is a functional block diagram inside the client PC 104. The inside of the client PC 104 in FIG. 1 will be described in more detail. However, the network protocol stack 106 and the NIC 107 are not shown.
Although not shown in FIG. 1, the printer driver 113 creates, reads, and deletes the temporary spool file 202 and the printer spool file 203 during operation. When the printer spool file 203 is created, the font library 204 is read as necessary.

図3はプリンタドライバ113の内部の機能ブロック図である。図2のプリンタドライバ113の内部を詳細に説明するものである。
描画処理部112が生成したプリンタ非依存描画命令は、一時スプール変換部302にて一時スプールファイル202に変換される。
描画処理部112が全てのプリンタ非依存描画命令を発行し尽くし、一時スプール変換部302が受信したプリンタ非依存描画命令を一時スプールファイル202に変換し終わったら、一時スプールファイル202のデータは入力バッファ303に、先頭から順次、少しずつ取り込まれる。なお、プリンタドライバによっては、一時スプール変換部302による一時スプールファイル202の作成完了を待たずに、一時スプールファイル202のデータ量がある程度溜まると、入力バッファ303にデータを読み込んで処理を開始するものもある。いわゆる「先読み処理」といわれるものである。
一旦保持された入力バッファ303の内容は、評価用バッファ304にそのまま複写(コピー)される。
評価用バッファ304の内容は、描画コマンド削除フィルタ305によって、描画命令部分が削除され、文字列データのみが残される。
次に、評価用バッファ304の内容は、文字列検索部306によって設定キーワード307と一致する文字列が検索される。
ここで、設定キーワード307はキーワードテーブル308から選択的に読み込まれるものである。
FIG. 3 is a functional block diagram inside the printer driver 113. The inside of the printer driver 113 in FIG. 2 will be described in detail.
The printer-independent drawing command generated by the drawing processing unit 112 is converted into a temporary spool file 202 by the temporary spool conversion unit 302.
When the drawing processing unit 112 has issued all the printer-independent drawing commands and the temporary spool conversion unit 302 has converted the received printer-independent drawing commands into the temporary spool file 202, the data in the temporary spool file 202 is stored in the input buffer. In 303, the data is taken in little by little from the top. Depending on the printer driver, when the data amount of the temporary spool file 202 is accumulated to some extent without waiting for the temporary spool file 202 to be created by the temporary spool conversion unit 302, the data is read into the input buffer 303 and processing is started. There is also. This is so-called “look ahead processing”.
The contents of the input buffer 303 once held are directly copied (copied) to the evaluation buffer 304.
As for the contents of the evaluation buffer 304, the drawing command deletion filter 305 deletes the drawing command part, and only the character string data remains.
Next, the character string search unit 306 searches the evaluation buffer 304 for a character string that matches the set keyword 307.
Here, the setting keyword 307 is selectively read from the keyword table 308.

文字列検索部306で設定キーワード307(検索対象文字列)が見つかると、キーワードテーブル308に保持されている設定値309に従って、改頁コマンド挿入部310を稼動させ、入力バッファ303に保持されている当該設定キーワード部分に対し、改頁コマンドを挿入する。なお、当該設定キーワード部分を改頁コマンドで置換してもよい。
この動作の詳細は図4にて後述する。
こうして改頁コマンドが埋め込まれた一時スプールファイル202のデータは、プリンタ制御言語インタプリタ311に渡され、プリンタ制御コマンド群に変換される。なお、一時スプールファイル202のデータのうちの文字列の部分は、フォントライブラリ204からフォントデータが読み込まれ、ビットマップデータに展開される。
なお、一部フォントでは、テキストの文字コードのままプリンタまで送信され、プリンタに内蔵されたフォントのビットマップに置き換えられて印字されるものもある。
When the setting keyword 307 (search target character string) is found in the character string search unit 306, the page break command insertion unit 310 is operated according to the setting value 309 held in the keyword table 308 and held in the input buffer 303. A page break command is inserted into the setting keyword part. The set keyword part may be replaced with a page break command.
Details of this operation will be described later with reference to FIG.
The data of the temporary spool file 202 in which the page break command is embedded in this way is passed to the printer control language interpreter 311 and converted into a printer control command group. The character string portion of the temporary spool file 202 data is read from the font library 204 and expanded into bitmap data.
Some fonts may be sent to the printer as text code and replaced with a font bitmap built in the printer for printing.

プリンタ制御言語インタプリタ311によって生成されたプリンタ制御コマンド群は、プリンタスプールファイル203に蓄積される。
プリンタ制御言語インタプリタ311は、プリンタスプールファイル203にプリンタ制御コマンド群を出力し終えると、プリンタスプールファイル203のデータを内部の図示しないバッファに、先頭から順次、少しずつ取り込み、ポートモニタ114へ出力する。
The printer control command group generated by the printer control language interpreter 311 is stored in the printer spool file 203.
When the printer control language interpreter 311 finishes outputting the printer control command group to the printer spool file 203, the printer control language interpreter 311 takes the data of the printer spool file 203 into an internal buffer (not shown) little by little from the beginning and outputs it to the port monitor 114. .

ここで、評価用バッファ304及び描画コマンド削除フィルタ305の役目を説明する。所定の文章(文字列)が含まれているhtml文書を基に作成されるプリンタ非依存描画命令の中身は、文字コードと、その文字をどのように紙面に描画するかを指定する描画命令(「制御コード」とも呼ばれる)にて構成される。例えば、図5にて後述する印刷文書中の「生産指示書」という文字列は、描画処理部112によって、
・フォント指定情報、文字の位置指定情報、文字の大きさ指定情報、「生」という文字の文字コード、
・フォント指定情報、文字の位置指定情報、文字の大きさ指定情報、「産」という文字の文字コード、
・フォント指定情報、文字の位置指定情報、文字の大きさ指定情報、「指」という文字の文字コード、
・フォント指定情報、文字の位置指定情報、文字の大きさ指定情報、「示」という文字の文字コード、
・フォント指定情報、文字の位置指定情報、文字の大きさ指定情報、「書」という文字の文字コード、
という具合に変換される。
このままでは、「生産指示書」という文字列との一致を探そうと試みても、フォント指定情報、文字の位置指定情報及び文字の大きさ指定情報が邪魔をして、機械的に文字列一致を判定することが困難である。
そこで、評価用バッファ304を設け、入力バッファ303の中身を評価用バッファ304にコピーした後、文字列検索に邪魔な制御コードを削除して、本来の「生産指示書」という文字列に復元してから、文字列検索部306にて文字列検索処理を行う。
Here, the roles of the evaluation buffer 304 and the drawing command deletion filter 305 will be described. The contents of a printer-independent drawing command created based on an html document containing a predetermined sentence (character string) are a character code and a drawing command (how to draw the character on the paper) Also called “control code”. For example, a character string “production instruction” in a print document described later with reference to FIG.
-Font specification information, character position specification information, character size specification information, character code of the character "raw",
-Font designation information, character position designation information, character size designation information, character code of the character "product",
・ Font designation information, character position designation information, character size designation information, character code of the character “finger”,
-Font specification information, character position specification information, character size specification information, character code of the character "show",
・ Font specification information, character position specification information, character size specification information, character code
It is converted to the condition.
Even if you try to find a match with the character string “Production Instruction”, the font designation information, the character position designation information, and the character size designation information get in the way. Is difficult to determine.
Therefore, after providing the evaluation buffer 304 and copying the contents of the input buffer 303 to the evaluation buffer 304, the control code that hinders the character string search is deleted and restored to the original character string “production instruction”. Then, the character string search unit 306 performs character string search processing.

なお、 改頁命令挿入部312をプログラムとして実装するためのソースコードを書く際には、入力バッファ303が入力されるデータを保持する第1の変数として、評価用バッファ304が第1の変数の中身をコピーされる第2の変数として実装される。   Note that when writing source code for implementing the page break instruction insertion unit 312 as a program, the evaluation buffer 304 is a first variable that holds input data in the input buffer 303. Implemented as a second variable whose contents are copied.

従来のプリンタドライバ113は、描画処理部112から発されるプリンタ非依存描画命令を、一時スプール変換部302にて一時スプールファイル202に変換したら、一時スプールファイル202の内容をそのままプリンタ制御言語インタプリタ311に渡して、プリンタスプールファイル203を生成していた。
本実施形態では、一時スプール変換部302とプリンタ制御言語インタプリタ311の間に、改頁命令挿入部312を新規に設けている。
When the conventional printer driver 113 converts the printer-independent drawing command issued from the drawing processing unit 112 into the temporary spool file 202 by the temporary spool conversion unit 302, the contents of the temporary spool file 202 are directly used as the printer control language interpreter 311. And the printer spool file 203 is generated.
In this embodiment, a page break instruction insertion unit 312 is newly provided between the temporary spool conversion unit 302 and the printer control language interpreter 311.

図4は改頁命令挿入部312の動作を示すフローチャートである。
処理を開始すると(S401)、入力バッファ303に一時スプールファイル202のデータを必要量だけ取り込む(S402)。この「必要量」は、最低限、設定キーワード307のバイト数を越えるデータ量が必要である。
次に、入力バッファ303の内容を評価用バッファ304にコピーする(S403)。次に、文字列検索の便宜のため、評価用バッファ304の内容から描画コマンドを削除する(S404)。
そして、文字列検索を行う。評価用バッファ304に設定キーワード307はあるか否か、を見る(S405)。
FIG. 4 is a flowchart showing the operation of the page break instruction insertion unit 312.
When the process is started (S401), a necessary amount of data of the temporary spool file 202 is taken into the input buffer 303 (S402). This “necessary amount” requires at least a data amount exceeding the number of bytes of the setting keyword 307.
Next, the contents of the input buffer 303 are copied to the evaluation buffer 304 (S403). Next, for the convenience of character string search, the drawing command is deleted from the contents of the evaluation buffer 304 (S404).
Then, a character string search is performed. Whether or not the setting keyword 307 is present in the evaluation buffer 304 is checked (S405).

もし、設定キーワード307(検索対象文字列)が評価用バッファ304の中にあれば、次に設定値309の内容に従って、改頁コマンドを挿入する動作を行う。
先ず、設定値309の内容が設定キーワード307の前に改頁コマンドを挿入する設定になっているか否かを見る(S406)。そうであるなら、入力バッファ303内の設定キーワード307に該当するデータの前の位置に改頁コマンドを挿入する(S407)。
If the setting keyword 307 (search target character string) is in the evaluation buffer 304, an operation for inserting a page break command is performed in accordance with the contents of the setting value 309.
First, it is checked whether or not the content of the setting value 309 is set to insert a page break command before the setting keyword 307 (S406). If so, a page break command is inserted at a position before the data corresponding to the setting keyword 307 in the input buffer 303 (S407).

次に、設定値309の内容が設定キーワード307の前に改頁コマンドを挿入する設定になっていなければ(S406のN)、設定値309の内容が設定キーワード307の後に改頁コマンドを挿入する設定になっているか否かを見る(S408)。そうであるなら、入力バッファ303内の設定キーワード307に該当するデータの後の位置に改頁コマンドを挿入する(S409)。   Next, if the setting value 309 is not set to insert a page break command before the setting keyword 307 (N in S406), the page break command is inserted after the setting keyword 307 is set. It is checked whether or not it is set (S408). If so, a page break command is inserted at a position after the data corresponding to the setting keyword 307 in the input buffer 303 (S409).

更に、設定値309の内容が設定キーワード307の後に改頁コマンドを挿入する設定になっていなければ(S408のN)、それは設定値309の内容が設定キーワード307を削除して改頁コマンドを挿入する設定になっていることを意味する。そこで、入力バッファ303内の設定キーワード307に該当するデータを改頁コマンドで置換する(S410)。   Furthermore, if the setting value 309 is not set to insert a page break command after the setting keyword 307 (N in S408), it deletes the setting keyword 307 and inserts a page break command. It means that it is set to. Therefore, the data corresponding to the setting keyword 307 in the input buffer 303 is replaced with a page break command (S410).

もし、設定キーワード307(検索対象文字列)が評価用バッファ304の中になければ(S405のN)、改頁コマンドの挿入等は行わない。   If the setting keyword 307 (search target character string) is not in the evaluation buffer 304 (N in S405), no page break command is inserted.

そして、上述の動作(S407、S409、S410、S405のN)を行った後、入力バッファ303の内容をプリンタ制御言語インタプリタ311に出力する(S411)。
入力バッファ303にデータを取り込む動作は、一時スプールファイル202のデータの処理を全て終わるまでループ処理を行い(S412のNからS402)、処理すべきデータがなくなれば(S412のY)、終了する(S413)。
Then, after performing the above-described operation (N in S407, S409, S410, and S405), the contents of the input buffer 303 are output to the printer control language interpreter 311 (S411).
The operation of fetching data into the input buffer 303 is performed by performing loop processing until all the data of the temporary spool file 202 is processed (N in S412 to S402), and ends when there is no data to be processed (Y in S412) ( S413).

なお、ステップS407の、入力バッファ303内の設定キーワード307に該当するデータの前の位置に改頁コマンドを挿入する動作は、文書内の最初の設定キーワードには改頁コマンドを挿入しないことが望ましい。無駄に白紙を出力しないためである。   Note that in the operation of inserting a page break command at the position before the data corresponding to the setting keyword 307 in the input buffer 303 in step S407, it is preferable not to insert the page break command into the first setting keyword in the document. . This is because no blank paper is output unnecessarily.

本実施形態は、webブラウザ105の印刷機能を、帳票出力に対応させることができるものである。
htmlという言語仕様は、文書を構造化することを意図して策定されている。そこには、紙に印刷する際の、ページの概念がない。このため、所定の内容だけ一枚の紙に印刷し、次の内容は新たな紙に印刷する、という、帳票出力には全く向いていない。
しかし、本実施形態では、改頁に相当する文書の位置を特定する文字列を定めておけば、プリンタドライバ113内部の改頁命令挿入部312がそこに改頁コマンドを挿入してくれる。
本実施形態は、ASP(Application Service Provider:ビジネス用のアプリケーションソフトをインターネットを通じて顧客にレンタルする事業者。)サービス等、webサーバ上に業務システムを構築した際の、帳票出力において、効果的である。
In the present embodiment, the print function of the web browser 105 can correspond to a form output.
The language specification html is formulated with the intention of structuring documents. There is no concept of pages when printing on paper. For this reason, only predetermined content is printed on one sheet of paper, and the next content is printed on new paper.
However, in this embodiment, if a character string specifying the position of a document corresponding to a page break is determined, the page break command insertion unit 312 in the printer driver 113 inserts a page break command there.
This embodiment is effective in outputting a form when a business system is constructed on a web server such as an ASP (Application Service Provider: a business that rents business application software to a customer via the Internet) service. .

図5(a)及び(b)、図6(c)及び(d)は本実施形態によってなされる帳票出力
の流れをイメージにて示す概略図である。
先ず、クライアントPC104のwebブラウザ105で、アプリケーションサーバ102内の所定のcgi110をアクセスし、受注一覧画面を表示する。これが図5(a)の受注一覧画面501である。
図5(a)の受注一覧画面501には、一覧html文書503の中にテーブル504が表示されている。このテーブル504には、「商品コード」フィールド522と、「商品名」フィールド523と、「数量」フィールド524と、「顧客コード」フィールド525が存在する。
5 (a) and 5 (b), 6 (c) and 6 (d) are schematic diagrams showing the flow of the form output performed by the present embodiment as an image.
First, the web browser 105 of the client PC 104 accesses a predetermined cgi 110 in the application server 102 and displays an order list screen. This is the order list screen 501 in FIG.
In the order list screen 501 of FIG. 5A, a table 504 is displayed in the list html document 503. The table 504 includes a “product code” field 522, a “product name” field 523, a “quantity” field 524, and a “customer code” field 525.

表示されている受注一覧画面501の中にある「印刷用ページ」と記されているリンク502をマウスでクリックすると、cgi110は、「商品コード」フィールド522の値で各レコードを並べ替え(ソート)した後、「商品コード」フィールド522の値毎に分けて表示する、帳票用html文書506を作成する。この文書を表示した画面が図5(b)の印刷用画面505である。
帳票用html文書506は、帳票を想定した記載形態になっている。帳票のタイトルとして、「生産指示書」という目標文字列507が比較的大きなフォントにて表示されている。
When the link 502 labeled “Page for printing” in the displayed order list screen 501 is clicked with the mouse, the cgi 110 sorts the records by the value of the “product code” field 522 (sort). After that, a form html document 506 that is displayed separately for each value of the “product code” field 522 is created. A screen on which this document is displayed is a printing screen 505 in FIG.
The form html document 506 has a description form assuming a form. As a form title, a target character string 507 “production instruction” is displayed in a relatively large font.

予め、プリンタドライバ113の設定で、「生産指示書」という文字列を設定キーワードとして、設定キーワードの前に改頁コマンドを挿入する設定にて、登録しておく。そして、図5(b)の帳票用html文書506に対し、印刷を実行すると、webブラウザ105の画面には表示されないものの、印刷データの内容は、図6(c)に示すように、目標文字列507である文字列「生産指示書」の直前に改頁コマンド612が挿入される。図6(c)中「<改頁>」と記されている部分は、実際には表示できないデータ列である改頁コマンド612を仮に表示しているものである。前述の通り、無駄に白紙を出さないため、最初のキーワードには改頁コマンド612は挿入されていない。
図6(c)の印刷データ、すなわちプリンタスプールファイル203の中身はプリンタ116に送信され、印刷と適切な改頁が行われる。この結果、図6(d)のような出力結果615、616及び617が得られる。
The printer driver 113 is registered in advance with the character string “production instruction” as a setting keyword and the setting for inserting a page break command before the setting keyword. When the form html document 506 shown in FIG. 5B is printed, it is not displayed on the screen of the web browser 105, but the content of the print data is the target character as shown in FIG. A page break command 612 is inserted immediately before the character string “production instruction” in the column 507. In FIG. 6C, the portion marked “<Page break>” temporarily displays a page break command 612, which is a data string that cannot be actually displayed. As described above, the page break command 612 is not inserted in the first keyword so as not to use a blank sheet.
The print data in FIG. 6C, that is, the contents of the printer spool file 203 is transmitted to the printer 116, and printing and appropriate page breaks are performed. As a result, output results 615, 616 and 617 as shown in FIG. 6D are obtained.

すなわち、アプリケーションサーバ102中のcgi110は、クライアントPC104の要求に応じて、所定の位置に強制的改頁コマンド612を挿入する目印となる目標文字列507を一つ以上内包した文書データ(帳票用html文書506)を生成する、文書データ生成部として機能する。
そして、webサーバプログラム103は、TCP/IPネットワーク108を通じて、クライアントPC104に、文書データである帳票用html文書506を送信する。
That is, the cgi 110 in the application server 102 receives document data (document html) including one or more target character strings 507 serving as a mark for inserting a forced page break command 612 at a predetermined position in response to a request from the client PC 104. It functions as a document data generation unit that generates a document 506).
Then, the web server program 103 transmits a document html document 506 that is document data to the client PC 104 through the TCP / IP network 108.

図7は、帳票出力の別の形態を示す概略図である。
図5(b)に示した帳票用html文書506は、各帳票毎に統一されたタイトルが付されていた。
しかし、図7に示す帳票用html文書701は、各帳票毎に統一されたタイトルが付されていない。
そこで、改頁コマンドを挿入したい位置に、特徴的な文字列を挿入する。これが改頁用文字列702である。図7では「<%#$」という、特殊記号を規則的に列挙した文字列である。これを改頁コマンドにて置換すると、図6(d)に示される形態にほぼ等しい帳票出力を得ることができる。
FIG. 7 is a schematic diagram showing another form of form output.
The form html document 506 shown in FIG. 5B is given a uniform title for each form.
However, the form html document 701 shown in FIG. 7 does not have a uniform title for each form.
Therefore, a characteristic character string is inserted at the position where the page break command is to be inserted. This is a page break character string 702. In FIG. 7, it is a character string regularly listing special symbols “<% # $”. If this is replaced with a page break command, a form output substantially equivalent to the form shown in FIG. 6D can be obtained.

図8はプリンタドライバ113の表示画面の一例である。
プリンタドライバ113の設定項目は多岐に渡る。設定画面は、これをタブボタンで切り替えて表示するように構成されている。
「キーワード改ページ」タブボタン802をクリックすると、図8に示す設定画面801が表示される。
「キーワード一覧」欄803は、設定したキーワードが列挙表示される部分である。
「キーワード入力・編集」欄804は、キーワードの入力及び編集を行うための入力欄である。
設定欄805は三択のボタンとチェックボックスを備える。
「追加」ボタン806は、設定キーワード307を新たに追加するためのボタンである。
「編集」ボタン807は、既に「キーワード一覧」欄803にある設定キーワード307を編集後、新たに編集した内容にて上書きするためのボタンである。
「削除」ボタン808は、「キーワード一覧」欄803にある設定キーワード307のうち、選択したものを削除するためのボタンである。
FIG. 8 shows an example of the display screen of the printer driver 113.
The setting items of the printer driver 113 are various. The setting screen is configured so as to be switched and displayed with a tab button.
When a “keyword page break” tab button 802 is clicked, a setting screen 801 shown in FIG. 8 is displayed.
The “keyword list” column 803 is a portion where the set keywords are listed and displayed.
A “keyword input / edit” column 804 is an input column for inputting and editing a keyword.
A setting field 805 includes three choice buttons and a check box.
An “add” button 806 is a button for newly adding a setting keyword 307.
The “edit” button 807 is a button for overwriting with the newly edited content after editing the setting keyword 307 already in the “keyword list” field 803.
A “delete” button 808 is a button for deleting a selected one of the setting keywords 307 in the “keyword list” field 803.

「キーワード一覧」欄803中に列挙されるキーワードは、例えば周知の正規表現(regular expression:文字列のパターンを表現する表記法)が利用可能である。図8においては、「^」は行頭を、「$」は行末を表現する、メタキャラクタ(通常の文字とは異なる機能的意味を持つ文字)である。「\」はメタキャラクタの機能を打ち消す。
図8中、「^生産指示書$」と記されている文字列は、行頭から「生産指示書」と書かれ、その直後に改行が付されている条件を示す。
同様に、図8中、「^<%#\$$」と記されている文字列は、行頭から「<%#$」と書かれ、その直後に改行が付されている条件を示す。
これら設定キーワード307毎に、設定欄805にて条件が設定される。
As the keywords listed in the “keyword list” column 803, for example, a well-known regular expression (regular expression: a notation for expressing a character string pattern) can be used. In FIG. 8, “^” is a metacharacter (character having a functional meaning different from that of a normal character) that represents the beginning of a line and “$” represents the end of the line. "\" Cancels the metacharacter function.
In FIG. 8, a character string written as “^ production instruction $” indicates a condition in which “production instruction” is written from the beginning of the line and a line feed is added immediately after that.
Similarly, in FIG. 8, a character string written as “^ <% # \ $$” indicates a condition that “<% # $” is written from the beginning of the line and a line feed is added immediately after that.
Conditions are set in the setting field 805 for each of these setting keywords 307.

「キーワード一覧」欄803に列挙記載されている設定キーワード307は、設定欄805にて指定された設定値と共に、キーワードテーブル308に格納される。
つまり、キーワードテーブル308は、最低限、キーワードフィールドと設定値フィールドが存在するレコードの集合体である。
前述の図5のステップS405では、設定キーワード307が複数設定されている場合は、それら設定キーワード毎に文字列検索処理が行われる。
The setting keywords 307 listed in the “keyword list” field 803 are stored in the keyword table 308 together with the setting values specified in the setting field 805.
That is, the keyword table 308 is a set of records in which at least a keyword field and a setting value field exist.
In step S405 of FIG. 5 described above, when a plurality of setting keywords 307 are set, a character string search process is performed for each of the setting keywords.

本実施形態には、以下のような応用例が考えられる。
(1)アプリケーションサーバ102(webサーバ)が出力するデータの形態は、htmlに限られない。XMLでもよいし、プレーンテキストでもよい。webブラウザ105が所定のプラグインソフトウェアに代用されることなく、webブラウザ105自身の機能として印刷を実行する際、強制的な改頁制御を行わないデータ形式であればなんでもよい。
The following application examples can be considered in the present embodiment.
(1) The form of data output by the application server 102 (web server) is not limited to html. XML or plain text may be used. Any data format may be used as long as the web browser 105 is not replaced with predetermined plug-in software and does not perform forced page break control when printing is performed as a function of the web browser 105 itself.

(2)印刷を実行するソフトウェアは、webブラウザに限らない。
例えば、Windows(登録商標)に標準添付される「メモ帳」というテキストエディタには、テキストエディタであるが故に改頁機能がない。しかし、本実施形態のプリンタドライバを使用すれば、プレーンテキストに対して極めて容易に改頁機能を追加することができる。そして、その際に用いる改頁用キーワードの設定もユーザの完全な自由裁量で決定できるので、極めて便利である。
(2) Software for executing printing is not limited to a web browser.
For example, a text editor called “Notepad” that comes standard with Windows (registered trademark) does not have a page break function because it is a text editor. However, if the printer driver of this embodiment is used, a page break function can be added to plain text very easily. Since the page break keyword used at that time can also be determined at the user's complete discretion, it is very convenient.

(3)改頁命令挿入部312による改頁コマンド挿入処理は、webブラウザやテキストエディタ等のアプリケーションソフトウェア毎にオン・オフ制御するように構成するとよい。
例えば、ワープロソフトにはそれ自体に改頁機能が備わっているので、本実施形態による改頁コマンド挿入処理は却って邪魔になる。このような場合、プリンタドライバ113は、アプリケーションソフトウェアの種別或は名前を識別して、改頁コマンド挿入処理のオン・オフを制御するように構成すると、便利である。また、改頁コマンド挿入処理を行うアプリケーションソフトウェアをプリンタドライバ113に設定できるように構成すると、なおよい。
(3) The page break command insertion processing by the page break instruction insertion unit 312 may be configured to be turned on / off for each application software such as a web browser or a text editor.
For example, since the word processor software itself has a page break function, the page break command insertion processing according to the present embodiment is an obstacle. In such a case, it is convenient if the printer driver 113 is configured to identify the type or name of the application software and control on / off of the page break command insertion process. Further, it is more preferable that application software for performing a page break command insertion process can be set in the printer driver 113.

(4)特にwebブラウザ105においては、改頁命令挿入部312による改頁コマンド挿入処理及び設定キーワード307を、html文書のURI(Uniform Resource Identifier)毎に指定可能なように構成することができる。
プリンタドライバ113は、キーワードテーブル308にURIフィールドを設ける。
ドメインを指定した処理を行わせる都合上、URIフィールドに正規表現を利用可能にするとなおよい。また、一つのキーワードについて複数のURIを指定可能にすることが望ましい。
つまり、図1を例にとれば、改頁命令挿入部312の動作を、アプリケーションサーバ102のURIに限定して処理させることとなる。
プリンタドライバ113は、webブラウザ105から印刷対象のhtml文書のURIを取得すると、キーワードテーブル308内のURIフィールドを見て、該当する設定キーワード307を抽出する。
設定キーワード307を対象とする改頁コマンド挿入・置換処理をURIで限定することで、プリンタドライバ113が不用意に任意のhtml文書(webリソース)に改頁コマンド挿入処理を起動させないようにすることができる。そして、これと共に、前述の図5のステップS405において、設定キーワード307が複数設定されている場合は、必要最低限の設定キーワードに限って文字列検索処理を行うこととなり、効率のよい処理が行われる。
(4) In particular, the web browser 105 can be configured so that the page break command insertion processing by the page break command insertion unit 312 and the setting keyword 307 can be specified for each URI (Uniform Resource Identifier) of the html document.
The printer driver 113 provides a URI field in the keyword table 308.
For the convenience of performing processing specifying a domain, it is more preferable to use a regular expression in the URI field. It is also desirable to be able to specify a plurality of URIs for one keyword.
That is, taking FIG. 1 as an example, the operation of the page break instruction insertion unit 312 is limited to the URI of the application server 102.
When the printer driver 113 acquires the URI of the html document to be printed from the web browser 105, the printer driver 113 looks at the URI field in the keyword table 308 and extracts the corresponding setting keyword 307.
By limiting the page break command insertion / replacement process for the setting keyword 307 with the URI, the printer driver 113 is prevented from inadvertently starting the page break command insertion process for an arbitrary html document (web resource). Can do. At the same time, when a plurality of setting keywords 307 are set in step S405 of FIG. 5 described above, the character string search processing is performed only for the minimum necessary setting keywords, and efficient processing is performed. Is called.

(5)プリンタドライバ113は、印刷データを生成する代わりに、複数のファイルに変換して出力することもできる。html文書中にメールアドレスを埋め込み、改頁の代わりに複数のファイルに変換し、SMTP(Simple Mail Transfer Protocol)サーバプログラムに、メールアドレスと共に引き渡す。   (5) Instead of generating print data, the printer driver 113 can also convert a plurality of files and output them. An email address is embedded in an html document, converted into a plurality of files instead of a page break, and delivered to a SMTP (Simple Mail Transfer Protocol) server program together with the email address.

(6)描画コマンド削除フィルタ305は、文字の位置指定情報だけ残して、文字列検索部306では文字列の位置の指定を伴う検索を実行させることができる。   (6) The drawing command deletion filter 305 can leave only the character position designation information, and the character string search unit 306 can execute a search with designation of the position of the character string.

(7)ポートモニタ114に、改頁命令挿入部312を持たせることができる。この場合、入力されるデータはビットマップデータと、一部テキストデータが混在するデータになるので、設定キーワード307に代えて、所定量のビットマップデータ等のデータパターンを指定することとなる。   (7) The page monitor 114 can be provided with the page break instruction insertion unit 312. In this case, since the input data is data in which bitmap data and some text data are mixed, a data pattern such as a predetermined amount of bitmap data is designated instead of the setting keyword 307.

(8)html文書のコメントを用いて、改頁制御を行わせることもできる。
html規格において、「<!-- 」で始まり「 -->」で終わるタグはコメントを意味し
、これらタグに囲まれた文字列はwebブラウザ105には表示されない。
このコメントに、図7の改頁用文字列702と同様の、特徴的な文字列を記載する。
webブラウザ105には、追加機能を提供するプラグインソフトウェアを導入する。
当該プラグインソフトウェアは、コメント中の特定文字列を検出し、改頁命令に変換し
て、描画処理部112に出力する。
この場合、プリンタドライバ113には改頁命令挿入部312が不要になる代わりに、
当該プラグインソフトウェアが改頁命令挿入部としてwebブラウザ105に含まれるこ
ととなる。したがって、コメントでなくとも、図5、図6及び図7に示したような、前述
の実施形態と同様の改頁処理を行うことができる。
(8) Page break control can also be performed using comments in html documents.
In the html standard, a tag that starts with “<!-” and ends with “->” means a comment, and a character string surrounded by these tags is not displayed on the web browser 105.
A characteristic character string similar to the page break character string 702 in FIG. 7 is described in this comment.
Plug-in software that provides an additional function is introduced into the web browser 105.
The plug-in software detects a specific character string in the comment, converts it into a page break command, and outputs it to the drawing processing unit 112.
In this case, the page break command insertion unit 312 is not required for the printer driver 113.
The plug-in software is included in the web browser 105 as a page break instruction insertion unit. Therefore, even if it is not a comment, a page break process similar to that of the above-described embodiment as shown in FIGS. 5, 6, and 7 can be performed.

(9)プリンタドライバ113は、改頁処理と共に用紙の種類と印刷方向等を指定することもできる。   (9) The printer driver 113 can also specify the paper type, printing direction, and the like together with the page break process.

本実施形態においては、文書印刷システムを開示した。
従来、html文書を帳票印刷するには、pdfファイル等に変換する等、アプリケーションサーバ及びクライアントPCの負担が大きかった。本実施形態では、キーワードを設定して、そのキーワードに改頁コマンドを挿入する処理を追加した。このため、pdf等への変換処理を不要にし、極めて簡便に、且つ汎用性の高い処理にて、改頁の概念のないhtml文書のような文書データに、適切な改頁処理を施すことができる。
本実施形態により、帳票出力を伴う業務アプリケーションシステムを、従来と比べて効率的に、且つ迅速に実現できる。
また、本実施形態により、テキストエディタ等の強制的改頁の機能を持たないアプリケーションプログラムに対し、当該アプリケーションプログラム自体の改変を一切することなく、容易に強制的改頁機能を追加することができる。
In the present embodiment, a document printing system has been disclosed.
Conventionally, in order to print an html document in a form, the burden on the application server and the client PC has been large, such as conversion to a pdf file. In this embodiment, a process for setting a keyword and inserting a page break command into the keyword is added. For this reason, conversion processing to pdf or the like is not necessary, and appropriate page break processing can be performed on document data such as an html document having no concept of page breaks with extremely simple and highly versatile processing. it can.
According to the present embodiment, a business application system with form output can be realized more efficiently and quickly than in the past.
In addition, according to the present embodiment, a forced page break function can be easily added to an application program such as a text editor that does not have a forced page break function without modifying the application program itself. .

以上、本発明の実施形態例について説明したが、本発明は上記実施形態例に限定されるものではなく、特許請求の範囲に記載した本発明の要旨を逸脱しない限りにおいて、他の変形例、応用例を含むことは言うまでもない。   The embodiment of the present invention has been described above. However, the present invention is not limited to the above-described embodiment, and other modifications may be made without departing from the gist of the present invention described in the claims. It goes without saying that application examples are included.

101…文書印刷システム、102…アプリケーションサーバ、103…webサーバプログラム、104…クライアントPC、105…webブラウザ、106…ネットワークプロトコルスタック、107…NIC、108…TCP/IPネットワーク、109…html文書、110…cgi、111…レンダリング処理部、112…描画処理部、113…プリンタドライバ、114…ポートモニタ、115…インターフェース、116…プリンタ、202…一時スプールファイル、203…プリンタスプールファイル、204…フォントライブラリ、302…一時スプール変換部、303…入力バッファ、304…評価用バッファ、305…描画コマンド削除フィルタ、306…文字列検索部、307…設定キーワード、308…キーワードテーブル、309…設定値、310…改頁コマンド挿入部、311…プリンタ制御言語インタプリタ、312…改頁命令挿入部、501…受注一覧画面、502…リンク、503…一覧html文書、504…テーブル、505…印刷用画面、506、701…帳票用html文書、507…目標文字列、522…「商品コード」フィールド、523…「商品名」フィールド、524…「数量」フィールド、525…「顧客コード」フィールド、612…改頁コマンド、615、616、617…出力結果、702…改頁用文字列、801…設定画面、802…「キーワード改ページ」タブボタン、803…「キーワード一覧」欄、804…「キーワード入力・編集」欄、805…設定欄、806…「追加」ボタン、807…「編集」ボタン、808…「削除」ボタン DESCRIPTION OF SYMBOLS 101 ... Document printing system, 102 ... Application server, 103 ... Web server program, 104 ... Client PC, 105 ... Web browser, 106 ... Network protocol stack, 107 ... NIC, 108 ... TCP / IP network, 109 ... html document, 110 ... cgi, 111 ... rendering processing unit, 112 ... drawing processing unit, 113 ... printer driver, 114 ... port monitor, 115 ... interface, 116 ... printer, 202 ... temporary spool file, 203 ... printer spool file, 204 ... font library, 302 ... Temporary spool conversion unit, 303 ... Input buffer, 304 ... Evaluation buffer, 305 ... Drawing command deletion filter, 306 ... Character string search unit, 307 ... Setting keyword, 308 ... Key 309 ... setting value, 310 ... page break command insertion unit, 311 ... printer control language interpreter, 312 ... page break command insertion unit, 501 ... order receiving list screen, 502 ... link, 503 ... list html document, 504 ... table, 505 ... Print screen, 506, 701 ... Form html document, 507 ... Target character string, 522 ... "Product code" field, 523 ... "Product name" field, 524 ... "Quantity" field, 525 ... "Customer code" Field, 612 ... Page break command, 615, 616, 617 ... Output result, 702 ... Text break for page break, 801 ... Setting screen, 802 ... "Keyword page break" tab button, 803 ... "Keyword list" column, 804 ... “Keyword input / edit” field, 805... Setting field, 806... “Add” button, 807. Tan, 808 ... "Delete" button

特開2004−54366号公報JP 2004-54366 A

Claims (21)

文字列を含む文書を描画命令に変換する描画処理部と、
所定の文字列と、改頁命令の挿入条件の入力を受け付ける受付部と、
前記受付部で受け付けた入力に応じて、前記挿入条件を示す設定値が対応付けられた設定文字列を設定する設定部と、
前記描画命令から、前記設定文字列を検出し、検出した前記設定文字列に対応付けられた前記設定値に従って、前記改頁命令を挿入して前記描画命令を出力する改頁命令挿入部と、
前記改頁命令挿入部から出力された前記描画命令を画像形成装置にて印刷するための制御命令に変換する変換部と、を具備することを特徴とする、印刷データ生成装置。
A drawing processing unit for converting a document including a character string into a drawing command;
A reception unit that receives input of a predetermined character string and insertion conditions for a page break instruction;
A setting unit configured to set a setting character string associated with a setting value indicating the insertion condition in accordance with an input received by the receiving unit;
A page break command insertion unit that detects the set character string from the drawing command, inserts the page break command according to the setting value associated with the detected set character string, and outputs the drawing command;
A print data generation apparatus comprising: a conversion unit that converts the drawing command output from the page break command insertion unit into a control command for printing by an image forming apparatus.
前記改頁命令挿入部は、検出した前記設定文字列に対応付けられた前記設定値の内容が、前記設定文字列に前記改頁命令を付加することを示す場合は、前記設定文字列に前記改頁命令を付加して前記描画命令を出力することを特徴とする、請求項1記載の印刷データ生成装置。   When the content of the setting value associated with the detected setting character string indicates that the page break instruction is added to the setting character string, the page break instruction insertion unit adds the page break instruction to the setting character string. The print data generation apparatus according to claim 1, wherein a page break command is added to output the drawing command. 前記改頁命令挿入部は、検出した前記設定文字列に対応付けられた前記設定値の内容が、前記設定文字列を前記改頁命令に置換することを示す場合は、前記設定文字列を前記改頁命令に置換して前記描画命令を出力することを特徴とする、請求項1記載の印刷データ生成装置。   When the content of the setting value associated with the detected setting character string indicates that the setting character string is to be replaced with the page break instruction, the page break instruction insertion unit replaces the setting character string with the page break instruction. The print data generation apparatus according to claim 1, wherein the drawing command is output in place of a page break command. 更に、前記改頁命令挿入部は、前記描画命令に含まれる前記設定文字列の配置情報も検出することを特徴とする、請求項1記載の印刷データ生成装置。   The print data generation apparatus according to claim 1, wherein the page break command insertion unit also detects arrangement information of the set character string included in the drawing command. 更に、前記改頁命令挿入部は、前記文書の場所を識別する場所識別情報と前記設定文字列の組み合わせを検出することを特徴とする、請求項1記載の印刷データ生成装置。   The print data generation apparatus according to claim 1, wherein the page break instruction insertion unit detects a combination of location identification information for identifying a location of the document and the set character string. 文字列を含む文書を描画命令に変換する描画処理ステップと、
所定の文字列と、改頁命令の挿入条件の入力を受け付ける受付ステップと、
前記受付ステップで受け付けた入力に応じて、前記挿入条件を示す設定値が対応付けられた設定文字列を設定する設定ステップと、
前記描画命令から、前記設定文字列を検出し、検出した前記設定文字列に対応付けられた前記設定値に従って、前記改頁命令を挿入して前記描画命令を出力する改頁命令挿入ステップと、
前記改頁命令挿入ステップにより出力された前記描画命令を画像形成装置にて印刷するための制御命令に変換する変換ステップと、を含むことを特徴とする、印刷データ生成方法。
A drawing processing step for converting a document including a character string into a drawing command;
A reception step for receiving a predetermined character string and an input condition for inserting a page break instruction;
A setting step for setting a setting character string associated with a setting value indicating the insertion condition according to the input received in the receiving step;
A page break command insertion step of detecting the set character string from the drawing command and inserting the page break command and outputting the drawing command according to the setting value associated with the detected set character string;
And a conversion step of converting the drawing command output by the page break command insertion step into a control command for printing by an image forming apparatus.
前記改頁命令挿入ステップは、検出した前記設定文字列に対応付けられた前記設定値の内容が、前記設定文字列に前記改頁命令を付加することを示す場合は、前記設定文字列に前記改頁命令を付加して前記描画命令を出力することを特徴とする、請求項6記載の印刷データ生成方法。   In the page break instruction insertion step, when the setting value associated with the detected setting character string indicates that the page break instruction is added to the setting character string, the page break instruction insertion step The print data generation method according to claim 6, wherein a page break command is added to output the drawing command. 前記改頁命令挿入ステップは、検出した前記設定文字列に対応付けられた前記設定値の内容が、前記設定文字列を前記改頁命令に置換することを示す場合は、前記設定文字列を前記改頁命令に置換して前記描画命令を出力することを特徴とする、請求項6記載の印刷データ生成方法。   When the content of the setting value associated with the detected setting character string indicates that the setting character string is to be replaced with the page break instruction, the page break instruction insertion step replaces the setting character string with the page break instruction. The print data generation method according to claim 6, wherein the drawing command is output in place of a page break command. 更に、前記改頁命令挿入ステップは、前記描画命令に含まれる前記設定文字列の配置情報も検出することを特徴とする、請求項6記載の印刷データ生成方法。   The print data generation method according to claim 6, wherein the page break command insertion step further detects arrangement information of the set character string included in the drawing command. 更に、前記改頁命令挿入ステップは、前記文書の場所を識別する場所識別情報と前記設定文字列の組み合わせを検出することを特徴とする、請求項6記載の印刷データ生成方法。   The print data generation method according to claim 6, wherein the page break command insertion step detects a combination of location identification information for identifying a location of the document and the set character string. コンピュータを、
文字列を含む文書を描画命令に変換する描画処理部と、
所定の文字列と、改頁命令の挿入条件の入力を受け付ける受付部と、
前記受付部で受け付けた入力に応じて、前記挿入条件を示す設定値が対応付けられた設定文字列を設定する設定部と、
前記描画命令から、前記設定文字列を検出し、検出した前記設定文字列に対応付けられた前記設定値に従って、前記改頁命令を挿入して前記描画命令を出力する改頁命令挿入部と、
前記改頁命令挿入部から出力された前記描画命令を画像形成装置にて印刷するための制御命令に変換する変換部として機能させるためのプリンタドライバプログラム。
Computer
A drawing processing unit for converting a document including a character string into a drawing command;
A reception unit that receives input of a predetermined character string and insertion conditions for a page break instruction;
A setting unit configured to set a setting character string associated with a setting value indicating the insertion condition in accordance with an input received by the receiving unit;
A page break command insertion unit that detects the set character string from the drawing command, inserts the page break command according to the setting value associated with the detected set character string, and outputs the drawing command;
A printer driver program for functioning as a conversion unit that converts the drawing command output from the page break command insertion unit into a control command for printing by an image forming apparatus.
前記改頁命令挿入部は、検出した前記設定文字列に対応付けられた前記設定値の内容が、前記設定文字列に前記改頁命令を付加することを示す場合は、前記設定文字列に前記改頁命令を付加して前記描画命令を出力することを特徴とする、請求項11記載のプリンタドライバプログラム。   When the content of the setting value associated with the detected setting character string indicates that the page break instruction is added to the setting character string, the page break instruction insertion unit adds the page break instruction to the setting character string. 12. The printer driver program according to claim 11, wherein a page break command is added to output the drawing command. 前記改頁命令挿入部は、検出した前記設定文字列に対応付けられた前記設定値の内容が、前記設定文字列を前記改頁命令に置換することを示す場合は、前記設定文字列を前記改頁命令に置換して前記描画命令を出力することを特徴とする、請求項11記載のプリンタドライバプログラム。   When the content of the setting value associated with the detected setting character string indicates that the setting character string is to be replaced with the page break instruction, the page break instruction insertion unit replaces the setting character string with the page break instruction. 12. The printer driver program according to claim 11, wherein the printer driver program outputs the drawing command in place of a page break command. 更に、前記改頁命令挿入部は、前記描画命令に含まれる前記設定文字列の配置情報も検出することを特徴とする、請求項11記載のプリンタドライバプログラム。   12. The printer driver program according to claim 11, wherein the page break command insertion unit also detects arrangement information of the set character string included in the drawing command. 更に、前記改頁命令挿入部は、前記文書の場所を識別する場所識別情報と前記設定文字列の組み合わせを検出することを特徴とする、請求項11記載のプリンタドライバプログラム。   12. The printer driver program according to claim 11, wherein the page break command insertion unit detects a combination of location identification information for identifying a location of the document and the set character string. クライアントと文書データ生成サーバよりなる印刷データ生成システムであり、
前記クライアントは、
文字列を含む文書を描画命令に変換する描画処理部と、
所定の文字列と、改頁命令の挿入条件の入力を受け付ける受付部と、
前記受付部で受け付けた入力に応じて、前記挿入条件を示す設定値が対応付けられた設定文字列を設定する設定部と、
前記描画命令から、前記設定文字列を検出し、検出した前記設定文字列に対応付けられた前記設定値に従って、前記改頁命令を挿入して前記描画命令を出力する改頁命令挿入部と、
前記改頁命令挿入部から出力された前記描画命令を画像形成装置にて印刷するための制御命令に変換する変換部と、を備え、
前記文書データ生成サーバは、
前記クライアントの要求に応じて、所定の位置に強制的改頁コマンドを挿入する目印となる目標文字列を一つ以上内包した文書データを生成する文書データ生成部と、
前記文書データを前記クライアントへ送信する通信部と
を備えることを特徴とする、印刷データ生成システム。
A print data generation system consisting of a client and a document data generation server,
The client
A drawing processing unit for converting a document including a character string into a drawing command;
A reception unit that receives input of a predetermined character string and insertion conditions for a page break instruction;
A setting unit configured to set a setting character string associated with a setting value indicating the insertion condition in accordance with an input received by the receiving unit;
A page break command insertion unit that detects the set character string from the drawing command, inserts the page break command according to the setting value associated with the detected set character string, and outputs the drawing command;
A conversion unit that converts the drawing command output from the page break command insertion unit into a control command for printing in an image forming apparatus;
The document data generation server
A document data generation unit that generates document data including one or more target character strings serving as marks for inserting a forced page break command at a predetermined position in response to a request from the client;
A print data generation system comprising: a communication unit that transmits the document data to the client.
前記改頁命令挿入部は、検出した前記設定文字列に対応付けられた前記設定値の内容が、前記設定文字列に前記改頁命令を付加することを示す場合は、前記設定文字列に前記改頁命令を付加して前記描画命令を出力することを特徴とする、請求項16記載の印刷データ生成システム。   When the content of the setting value associated with the detected setting character string indicates that the page break instruction is added to the setting character string, the page break instruction insertion unit adds the page break instruction to the setting character string. 17. The print data generation system according to claim 16, wherein a page break command is added to output the drawing command. 前記改頁命令挿入部は、検出した前記設定文字列に対応付けられた前記設定値の内容が、前記設定文字列を前記改頁命令に置換することを示す場合は、前記設定文字列を前記改頁命令に置換して前記描画命令を出力することを特徴とする、請求項16記載の印刷データ生成システム。   When the content of the setting value associated with the detected setting character string indicates that the setting character string is to be replaced with the page break instruction, the page break instruction insertion unit replaces the setting character string with the page break instruction. The print data generation system according to claim 16, wherein the drawing command is output in place of a page break command. 更に、前記改頁命令挿入部は、前記描画命令に含まれる前記設定文字列の配置情報も検出することを特徴とする、請求項16記載の印刷データ生成システム。   The print data generation system according to claim 16, wherein the page break instruction insertion unit also detects arrangement information of the set character string included in the drawing instruction. 更に、前記改頁命令挿入部は、前記文書の場所を識別する場所識別情報と前記設定文字列の組み合わせを検出することを特徴とする、請求項16記載の印刷データ生成システム。   17. The print data generation system according to claim 16, wherein the page break command insertion unit detects a combination of location identification information for identifying the location of the document and the set character string. 前記文書データ生成部は、フィールドを二つ以上備えるテーブルの、一つ以上のフィールドの値にて前記テーブルのレコードを並べ替えた後、前記並べ替えたフィールドの値毎に前記目標文字列を付して前記文書データを生成することを特徴とする、請求項16記載の印刷データ生成システム。   The document data generation unit sorts the records of the table by the values of one or more fields of a table having two or more fields, and then adds the target character string for each value of the sorted fields. The print data generation system according to claim 16, wherein the document data is generated.
JP2012257883A 2012-11-26 2012-11-26 Print data generation apparatus, print data generation method, printer driver program, and print data generation system Active JP5459383B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2012257883A JP5459383B2 (en) 2012-11-26 2012-11-26 Print data generation apparatus, print data generation method, printer driver program, and print data generation system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2012257883A JP5459383B2 (en) 2012-11-26 2012-11-26 Print data generation apparatus, print data generation method, printer driver program, and print data generation system

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
JP2011205352A Division JP5263359B2 (en) 2011-09-20 2011-09-20 Print data generation apparatus, print data generation method, printer driver program, and print data generation system

Publications (2)

Publication Number Publication Date
JP2013050991A JP2013050991A (en) 2013-03-14
JP5459383B2 true JP5459383B2 (en) 2014-04-02

Family

ID=48012920

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2012257883A Active JP5459383B2 (en) 2012-11-26 2012-11-26 Print data generation apparatus, print data generation method, printer driver program, and print data generation system

Country Status (1)

Country Link
JP (1) JP5459383B2 (en)

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6328678A (en) * 1986-07-22 1988-02-06 Nec Corp Printer page feed control system
JPH0239978A (en) * 1988-07-29 1990-02-08 Nec Corp Printer
JPH08181847A (en) * 1994-12-21 1996-07-12 Canon Inc Information processor and information processing method
JP2000035865A (en) * 1998-07-17 2000-02-02 Canon Inc Printing controller, data processing method of the same and storage medium storing program which computer can read
JP2002316453A (en) * 2001-04-19 2002-10-29 Fuji Xerox Co Ltd Method for processing printing and apparatus for processing information
JP3778136B2 (en) * 2002-06-13 2006-05-24 ブラザー工業株式会社 Printing control apparatus, printing apparatus, and program
JP2004287853A (en) * 2003-03-20 2004-10-14 Toshiba Solutions Corp Form editing device, form editing program and form editing method
JP2005085082A (en) * 2003-09-10 2005-03-31 Matsushita Electric Ind Co Ltd Page change device and method

Also Published As

Publication number Publication date
JP2013050991A (en) 2013-03-14

Similar Documents

Publication Publication Date Title
KR100576030B1 (en) A printing system
US7917850B2 (en) Document managing system and method thereof
US8045198B2 (en) System and method for processing a change history of a PDF file
US7403297B2 (en) Printing system that manages font resources using system independent resource references
JP5304282B2 (en) Printing information conversion apparatus, printing apparatus, printing system, and program
JP6575074B2 (en) Information processing apparatus, information processing method, and program
US7800775B2 (en) Device and method for image processing, as well as device and method for file preparation
US20070263240A1 (en) Image-Forming Apparatus, Image-Forming Control Method, Image-Forming Control Program Storage Medium, Image-Forming Control Data Signal, And Image-Forming Control Apparatus
US8699076B2 (en) Image forming apparatus, server, image forming system, and storage medium, outputting superimposed text strings in a variable form page
JP2015225481A (en) Program for efficiently editing print setting information
JP5446852B2 (en) Print processing apparatus, print processing program, and print processing method
JP6370156B2 (en) Information processing apparatus and control method thereof
JP4861841B2 (en) Print data generation apparatus, print data generation method, printer driver program, document data generation server, document data generation method, document data generation program, and print data generation system
WO2017029987A1 (en) Print data management system, information processing device, and program and method for acquiring print data
JP5459383B2 (en) Print data generation apparatus, print data generation method, printer driver program, and print data generation system
JP5263359B2 (en) Print data generation apparatus, print data generation method, printer driver program, and print data generation system
US8190563B2 (en) Document management apparatus, document management method, and computer-readable encoding medium recorded with a computer program
JP4203287B2 (en) Information processing apparatus, information processing method, and information processing system
US20100188674A1 (en) Added image processing system, image processing apparatus, and added image getting-in method
JP3399461B2 (en) Printing system
US10216991B2 (en) Automatically editing print job based on state of the document to be printed
JP6349991B2 (en) Form data output device, form data output method, form data output system
JP2006252203A (en) Server system

Legal Events

Date Code Title Description
A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20131118

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20131230

R151 Written notification of patent or utility model registration

Ref document number: 5459383

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R151