[go: up one dir, main page]

JP2011248421A - Data creation method and data creation system - Google Patents

Data creation method and data creation system Download PDF

Info

Publication number
JP2011248421A
JP2011248421A JP2010117949A JP2010117949A JP2011248421A JP 2011248421 A JP2011248421 A JP 2011248421A JP 2010117949 A JP2010117949 A JP 2010117949A JP 2010117949 A JP2010117949 A JP 2010117949A JP 2011248421 A JP2011248421 A JP 2011248421A
Authority
JP
Japan
Prior art keywords
information
embedded
data
area
print
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
Application number
JP2010117949A
Other languages
Japanese (ja)
Inventor
Yukio Matsuda
行雄 松田
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.)
Sharp Corp
Original Assignee
Sharp Corp
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 Sharp Corp filed Critical Sharp Corp
Priority to JP2010117949A priority Critical patent/JP2011248421A/en
Publication of JP2011248421A publication Critical patent/JP2011248421A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Editing Of Facsimile Originals (AREA)

Abstract

【課題】1つの文書ファイルにつきテンプレート文書ファイルに複数種類の情報を埋め込んで且つ複数の情報のセットに基づき複数の文書ファイルを作成する場合、全ての文書ファイルについて埋め込みによる情報の印刷領域の重なりが生じないことが確実に事前確認できるようにする。
【解決手段】この方法は、作成される文書ファイルについて共通の印刷プレビュー表示又はテスト印刷を行う操作を受け付けた際に、データ読み取り部14が複数セットについて種類毎に情報を読み出す。そして、1つのプレビュー表示又はテスト印刷用の画像データを作成する。この画像データは、種類毎に、読み出された情報を印刷する際に必要な印刷領域の和集合を算出しその和集合を示す情報をテンプレート文書ファイルの対応埋込領域に埋め込んだ状態を示すデータとする。
【選択図】図1
When embedding a plurality of types of information in a template document file for each document file and creating a plurality of document files based on a set of a plurality of information, there is an overlap of print areas of information due to embedding for all the document files. Ensure that it does not occur in advance.
In this method, when a common print preview display or test print operation is received for a document file to be created, a data reading unit reads information for each type of a plurality of sets. Then, one preview display or test print image data is created. This image data shows a state in which a union of print areas necessary for printing the read information is calculated for each type, and information indicating the union is embedded in the corresponding embedding area of the template document file. Data.
[Selection] Figure 1

Description

本発明は、テンプレート文書ファイルに情報を埋め込んで作成する文書ファイルについて、印刷プレビュー表示やテスト印刷を行うための画像データを作成するデータ作成方法及びデータ作成システムに関する。   The present invention relates to a data creation method and a data creation system for creating image data for print preview display and test printing for a document file created by embedding information in a template document file.

従来から、テンプレート文書ファイルにおける例えば名前、住所欄などの埋め込み項目の領域に、データベース等に保存された複数の顧客の名前や住所、製品価格など埋め込んだ文書ファイルを生成、印刷出力する技術が知られている。例えば、バリアブル印刷やある種の帳票印刷、データ差し込み印刷などがそれに該当する。   Conventionally, there is a technique for generating and printing out a document file in which multiple customer names, addresses, product prices, etc. stored in a database or the like are embedded in an embedded item area such as a name and address field in a template document file. It has been. For example, variable printing, some form printing, data insertion printing, and the like are applicable.

バリアブル印刷では、データベース中の文字列をテンプレート上で指定される位置に埋め込む。この場合、データベースの文字列がテンプレートで指定される左右枠を超えると改行されるので、氏名と住所が上下に位置していた場合など、氏名の文字列が長すぎて住所の文字がその下の本文にはみ出すといったケースが生じる虞があった。   In variable printing, a character string in a database is embedded at a position specified on a template. In this case, if the database character string exceeds the left and right borders specified in the template, the line breaks. For example, if the name and address are located above and below, the name string is too long and the address characters are below it. There was a possibility that a case of protruding into the body of this could occur.

図17は、従来のバリアブル印刷の実行例を示す図である。文書ファイルが氏名の埋込領域と住所の埋込領域の下に本文があるような文書のファイルであり、且つ氏名の埋込領域と住所の埋込領域との合計が3行以下であれば本文に重ならないが、4行以上であれば重なるレイアウトになっているものとする。この場合、図17(A)で示す印刷結果100のように、氏名の埋込領域100aと住所の埋込領域100bの合計の行数が2行であれば本文の印刷領域100cと重ならない。また、図17(B)で示す印刷結果101のように、氏名の埋込領域101aと住所の埋込領域101bの合計の行数が3行であれば本文の印刷領域101cと重ならない。しかし、図17(C)で示す印刷結果102のように、氏名の埋込領域102aと住所の埋込領域102bの合計の行数が4行であれば本文の印刷領域102cに住所の印刷領域がはみ出して、本文と住所とが重なって印刷されてしまう。   FIG. 17 is a diagram illustrating an execution example of conventional variable printing. If the document file is a document file with a body text under the name embedding area and address embedding area, and the total of the name embedding area and address embedding area is 3 lines or less Although it does not overlap the text, it is assumed that the layout is overlapping if there are more than 4 lines. In this case, as in the print result 100 shown in FIG. 17A, if the total number of lines of the name embedding area 100a and the address embedding area 100b is two lines, it does not overlap with the text printing area 100c. Further, as in the print result 101 shown in FIG. 17B, if the total number of lines of the name embedding area 101a and the address embedding area 101b is three, it does not overlap with the text printing area 101c. However, as in the print result 102 shown in FIG. 17C, if the total number of lines of the name embedding area 102a and the address embedding area 102b is 4, the address printing area is added to the body printing area 102c. Overflows and the text and address overlap and are printed.

ここで重要なのは、単に氏名が一番長くなるような文書ファイルのみを抽出しても問題があるか否かを判別できないし、住所が一番長くなるような文書ファイルのみを抽出しても問題があるか否かを判別できないことである。例えば氏名が2行になっても、住所が1行であれば想定した3行の枠内に納まっており問題にならない。逆に住所が2行でも氏名が1行なら問題にならない。図17の例で言うと、図17(B)での氏名の文字列長さは図17(C)での氏名の文字列より長いが、本文との重なりが問題になるのは図17(C)の例である。   What is important here is that it is not possible to determine whether there is a problem even if only the document file with the longest name is extracted, or it is not possible to extract only the document file with the longest address. It is impossible to determine whether or not there is. For example, even if the name is two lines, if the address is one line, it is within the assumed three-line frame, so there is no problem. On the other hand, even if the address is 2 lines, if the name is 1 line, there is no problem. In the example of FIG. 17, the character string length of the name in FIG. 17 (B) is longer than the character string of the name in FIG. 17 (C). This is an example of C).

従って、このような印刷においては、全部の文書ファイルが正しく印刷されるかどうかを確認するために、生成された文書ファイル全てを画面上でプレビュー表示して確認する作業が必要であった。
このような課題を解決するための技術として、特許文献1には、可読性に問題のある箇所を判定するシステムが開示されている。
Accordingly, in such printing, in order to confirm whether or not all document files are printed correctly, it is necessary to perform a work of previewing and confirming all generated document files on the screen.
As a technique for solving such a problem, Patent Document 1 discloses a system for determining a portion having a problem in readability.

特開2008−27276号公報JP 2008-27276 A

上述のように、バリアブル印刷などの際に正しく印刷されるか否かを確認するためのプレビュー表示又はテスト印刷を行う場合、生成された全ページ分のプレビュー表示又はテスト印刷を行って、正しく印刷されるかどうかを確認する必要がある。   As described above, when preview display or test print is performed to check whether printing is performed correctly during variable printing, etc., preview display or test print for all generated pages is performed and printing is performed correctly. It is necessary to confirm whether it is done.

しかしながら、プレビュー表示及びその確認作業は、部数の多い場合には大変に時間のかかる作業であり、作業者の負担が大きく、時間がかる上にミスも多い作業となる。また、テスト印刷及びその確認作業も、部数の多い場合には費用、時間、作業者負担、環境配慮など多くの面において、現実的ではなかった。結果として、十分な確認作業が行われないまま印刷が行われ、文字の切れや重なり、判読不能などの事態が発生することもしばしばであった。
また、特許文献1に記載の技術のような可読性に問題のある箇所を判定するようなシステムは、現実には判定精度を高く実装することが容易ではなく、信頼性が低い上に、信頼性を向上しようとすれば、処理時間が長くなるといった問題もあった。
However, the preview display and its confirmation work are very time-consuming work when the number of copies is large, which is a burden on the operator, takes time, and causes many mistakes. Also, the test printing and its confirmation work are not practical in many aspects such as cost, time, burden on workers, and environmental consideration when there are many copies. As a result, printing is often performed without sufficient confirmation work, and there are often cases in which characters are cut or overlapped or unreadable.
In addition, a system that determines a portion having a problem in readability, such as the technique described in Patent Document 1, is not easy to implement with high determination accuracy in reality, and has low reliability and reliability. There was also a problem that the processing time would be longer if the improvement was made.

本発明は、上述のような実状に鑑みてなされたものであり、その目的は、1つの文書ファイルにつきテンプレート文書ファイルに複数種類の情報を埋め込んで、且つ複数の情報のセットに基づき複数の文書ファイルを作成する場合、全ての文書ファイルについて埋め込みによる情報の印刷領域の重なりが生じないことが確実に事前確認できるような、プレビュー表示又はテスト印刷を行うことが可能なデータ作成方法及びデータ作成システムを提供することにある。   The present invention has been made in view of the above-described situation, and an object of the present invention is to embed a plurality of types of information in a template document file for each document file, and a plurality of documents based on a set of a plurality of information. Data creation method and data creation system capable of performing preview display or test printing so that it can be confirmed in advance that there is no overlap of print areas of information due to embedding when all files are created Is to provide.

上記課題を解決するために、本発明の第1の技術手段は、埋め込まれる情報によって印刷サイズが変わる埋込領域を1つ以上有するテンプレート文書ファイルから複数の文書ファイルを作成し、印刷を行う文書作成システムにおいて、作成する文書ファイルについての、印刷前のプレビュー表示又はテスト印刷のための画像データを作成するデータ作成方法であって、前記文書作成システムは、1つの文書ファイルにつき、各埋込領域のそれぞれに対応づけられた種類の情報を各埋込領域に埋め込んで作成を行い、且つ各種類の情報でなるセットを複数セット分に対応させることで前記複数の文書ファイルを作成し、前記データ作成方法は、操作部が、作成される文書ファイルについて共通の、印刷前のプレビュー表示又はテスト印刷を行う操作を受け付ける受付ステップと、該受付ステップで前記操作を受け付けた際に、データ読み取り部が、前記複数セットについて種類毎に情報を読み出す読出ステップと、プレビュー表示制御部又は印刷処理部が、1つのプレビュー表示用又はテスト印刷用の画像データを作成する作成ステップと、を有し、前記作成ステップで作成する前記画像データは、前記種類毎に、前記読出ステップで読み出された情報を印刷する際に必要な印刷領域の和集合を算出して該和集合を示す情報を前記テンプレート文書ファイルの対応する埋込領域に埋め込んだ状態を示すデータであることを特徴としたものである。   In order to solve the above-described problem, the first technical means of the present invention creates a plurality of document files from a template document file having one or more embedding areas whose print sizes vary depending on the information to be embedded, and prints the document In a creation system, there is provided a data creation method for creating image data for a preview display before printing or test printing for a document file to be created, the document creation system including each embedded area for each document file The plurality of document files are created by embedding each type of information associated with each of the embedding areas and creating a set of each type of information corresponding to a plurality of sets. In the creation method, the operation unit performs a preview display before printing or test printing common to the created document files. An accepting step for accepting an operation, a reading step for reading out information for each type of the plurality of sets when the operation is accepted in the accepting step, and a preview display control unit or a print processing unit. Creating image data for preview display or test printing, and the image data created in the creating step is printed when the information read in the reading step is printed for each type. It is characterized in that it is data indicating a state in which the union of necessary print areas is calculated and information indicating the union is embedded in the corresponding embedding area of the template document file.

第2の技術手段は、第1の技術手段において、前記埋込領域に埋め込まれる情報は、少なくとも1種類で、フォント情報を含まないか又は等幅フォントが指定されたテキスト情報を含み、該フォント情報を含まないか又は等幅フォントが指定されたテキスト情報について、前記作成ステップは、前記種類毎に、前記読出ステップで読み出されたテキスト情報から印刷する際に最も長い印刷領域が必要なテキスト情報を抽出する抽出ステップを有し、前記作成ステップで作成する前記画像データは、前記種類毎に、前記抽出ステップで抽出された最も長い印刷領域を前記和集合として算出して、前記和集合を示す情報として該最も長い印刷領域が必要なテキスト情報を、対応する埋込領域に埋め込んだ状態を示すデータであることを特徴としたものである。   According to a second technical means, in the first technical means, the information to be embedded in the embedding area is at least one type, and includes text information that does not include font information or that specifies a monospaced font. For text information that does not contain information or for which a monospaced font is designated, the creation step requires the longest print area to be printed from the text information read in the reading step for each type. An extraction step for extracting information, and the image data created in the creation step calculates, for each type, the longest print area extracted in the extraction step as the union, It is data indicating that the text information that requires the longest print area is embedded in the corresponding embedded area as information to indicate Than is.

第3の技術手段は、第2の技術手段において、前記フォント情報を含まないか又は等幅フォントが指定されたテキスト情報について、前記作成ステップで作成する前記画像データは、前記種類毎に、前記和集合を示す情報として、前記最も長い印刷領域が必要なテキスト情報に対応した長さの所定文字列又は所定図形の画像、若しくは前記最も長い印刷領域が必要なテキスト情報に対応した長さより長い所定文字列又は所定図形の画像を、対応する埋込領域に埋め込んだ状態を示すデータであることを特徴としたものである。   In the second technical means, the image data created in the creating step for the text information that does not include the font information or in which a monospaced font is designated in the second technical means, As information indicating the union, a predetermined character string or image of a length corresponding to the text information that requires the longest print area, or a predetermined length longer than the length corresponding to the text information that requires the longest print area The present invention is characterized in that it is data indicating a state in which a character string or an image of a predetermined graphic is embedded in a corresponding embedded area.

第4の技術手段は、第2又は第3の技術手段において、前記フォント情報を含まないか又は等幅フォントが指定されたテキスト情報について、前記抽出ステップは、前記最も長い印刷領域を、前記テキスト情報の文字列のバイト数に基づいて、若しくは前記テキスト情報の文字列における、埋込領域への埋込時の各文字の横幅と間隔の合計長さに基づいて、抽出することを特徴としたものである。   According to a fourth technical means, in the second or third technical means, for the text information that does not include the font information or for which a monospaced font is designated, the extraction step sets the longest print area to the text Extracting based on the number of bytes of the character string of the information or based on the total length of the width and interval of each character at the time of embedding in the embedding area in the character string of the text information Is.

第5の技術手段は、第1〜第4のいずれか1の技術手段において、前記埋込領域に埋め込まれる情報は、少なくとも1種類で数値情報を含み、該数値情報について、前記作成ステップは、前記種類毎に、前記読出ステップで読み出された数値情報を対応する埋込領域で規定される数値表現の文字列に変換して印刷する際に最も長い印刷領域が必要な数値情報を抽出する抽出ステップを有し、前記作成ステップで作成する前記画像データは、前記種類毎に、前記抽出ステップで抽出された最も長い印刷領域を前記和集合として算出して、前記和集合を示す情報として前記数値情報を前記数値表現の文字列に変換した情報を、対応する埋込領域に埋め込んだ状態を示すデータであることを特徴としたものである。   According to a fifth technical means, in any one of the first to fourth technical means, the information to be embedded in the embedded region includes at least one kind of numerical information, and for the numerical information, the creating step includes: For each type, the numerical information read in the reading step is converted into a character string of numerical expression defined in the corresponding embedding area, and numerical information that requires the longest print area is extracted. The image data created in the creating step includes an extracting step, and for each type, the longest print area extracted in the extracting step is calculated as the union, and the information indicating the union is used as the union The information is obtained by embedding information obtained by converting numerical information into a character string represented by the numerical value in a corresponding embedded area.

第6の技術手段は、第5の技術手段において、前記数値情報について、前記抽出ステップは、前記最も長い印刷領域を、前記数値情報を前記数値表現の文字列に変換した情報の文字列のバイト数に基づいて、若しくは前記変換した情報の文字列における、埋込領域への埋込時の各文字の横幅と間隔の合計長さに基づいて、抽出することを特徴としたものである。   According to a sixth technical means, in the fifth technical means, for the numerical information, the extracting step includes: a character string byte of information obtained by converting the longest print area into the character string representing the numerical information. The extraction is performed based on the number, or based on the total length of the horizontal width and spacing of each character at the time of embedding in the embedding area in the character string of the converted information.

第7の技術手段は、第1〜第6のいずれか1の技術手段において、前記埋込領域に埋め込まれる情報は、少なくとも1種類で、フォント情報が付いた文字情報を含み、該フォント情報が付いた文字情報について、前記作成ステップで作成する前記画像データは、前記種類毎に、前記和集合が示す情報として前記和集合を占有する所定画像又は該和集合を含む領域を占有する所定画像を、対応する埋込領域に埋め込んだ状態を示すデータであることを特徴としたものである。   In a seventh technical means, in any one of the first to sixth technical means, the information embedded in the embedding area includes at least one type of character information with font information, and the font information is For the attached character information, the image data created in the creating step includes, for each type, a predetermined image that occupies the union or an area that includes the union as information indicated by the union. , Data indicating a state of being embedded in a corresponding embedded region.

第8の技術手段は、第1〜第7のいずれか1の技術手段において、前記埋込領域に埋め込まれる情報は、少なくとも1種類で画像情報を含み、該画像情報について、前記作成ステップで作成する前記画像データは、前記種類毎に、前記和集合が示す情報として前記和集合を占有する所定画像又は該和集合を含む領域を占有する所定画像を、対応する埋込領域に埋め込んだ状態を示すデータであることを特徴としたものである。   According to an eighth technical means, in any one of the first to seventh technical means, the information embedded in the embedded region includes at least one type of image information, and the image information is created in the creation step The image data is a state in which, for each type, a predetermined image that occupies the union or a predetermined image that occupies an area including the union is embedded in the corresponding embedding area as information indicated by the union. It is the data which shows.

第9の技術手段は、第1〜第8のいずれか1の技術手段において、さらに、前記操作部が、前記複数セットの全てについて印刷前のプレビュー表示又はテスト印刷を行う全処理操作を受け付ける全処理受付ステップと、該全処理受付ステップで前記全処理操作を受け付けた際に、前記データ読み取り部が、前記複数セットの情報を読み出す全セット読出ステップと、前記プレビュー表示制御部又は前記印刷処理部が、前記複数セットのそれぞれについてのプレビュー表示用又はテスト印刷用の画像データ群を作成する全セット作成ステップと、を有し、前記全セット作成ステップで作成する前記画像データ群は、前記全セット読出ステップで読み出された情報、又は前記全セット読出ステップで読み出された情報を印刷する際に必要な印刷領域に対応した所定画像を、前記テンプレート文書ファイルの対応する埋込領域に埋め込んだ状態を示すデータ群であることを特徴としたものである。   The ninth technical means is the first technical means according to any one of the first to eighth technical means, wherein the operation unit further accepts all processing operations for performing preview display before printing or test printing for all of the plurality of sets. A process accepting step, and when the all process operation is accepted in the all process accepting step, the data reading unit reads the plurality of sets of information, and the preview display control unit or the print processing unit. All set creation steps for creating a preview display or test print image data group for each of the plurality of sets, and the image data group created in the all set creation step includes the all set A printing area necessary for printing the information read in the reading step or the information read in the all set reading step. It is obtained characterized by a predetermined image corresponding a data group indicating a corresponding state embedded in the embedded region of the template document file to.

第10の技術手段は、第9の技術手段において、さらに、前記操作部が、前記受付ステップ、前記読出ステップ、及び前記作成ステップで前記画像データを作成させる第1処理モードと、前記全処理受付ステップ、前記全セット読出ステップ、及び全セット作成ステップで前記画像データ群を作成させる第2処理モードとを切り替える切替操作を受け付ける切替ステップを有することを特徴としたものである。   A tenth technical means is the ninth technical means, further comprising: a first processing mode in which the operation unit creates the image data in the accepting step, the reading step, and the creating step; And a switching step of accepting a switching operation for switching between the second processing mode in which the image data group is created in the step, the all set reading step, and the all set creation step.

第11の技術手段は、埋め込まれる情報によって印刷サイズが変わる埋込領域を1つ以上有するテンプレート文書ファイルから複数の文書ファイルを作成し、印刷を行う文書作成システムにおける、データ作成システムであって、前記文書作成システムは、1つの文書ファイルにつき、各埋込領域のそれぞれに対応づけられた種類の情報を各埋込領域に埋め込んで作成を行い、且つ各種類の情報でなるセットを複数セット分に対応させることで前記複数の文書ファイルを作成し、前記データ作成システムは、作成される文書ファイルについて共通の、印刷前のプレビュー表示又はテスト印刷を行う操作を受け付ける操作部と、該操作部で前記操作を受け付けた際に、前記複数セットについて種類毎に情報を読み出すデータ読み取り部と、1つのプレビュー表示用又はテスト印刷用の画像データを作成するプレビュー表示制御部又は印刷処理部と、を有し、前記プレビュー表示制御部又は印刷処理部で作成する前記画像データは、前記種類毎に、前記データ読み取り部で読み出された情報を印刷する際に必要な印刷領域の和集合を算出して該和集合を示す情報を前記テンプレート文書ファイルの対応する埋込領域に埋め込んだ状態を示すデータであることを特徴としたものである。   The eleventh technical means is a data creation system in a document creation system that creates a plurality of document files from a template document file having one or more embedding areas whose print size varies depending on information to be embedded, and performs printing. The document creation system creates a document file by embedding information of a type associated with each embedding area in each embedding area, and sets a set of each type of information for a plurality of sets. The plurality of document files are created in correspondence with each other, and the data creation system includes an operation unit that accepts an operation for performing a preview display before printing or a test print common to the created document files, and the operation unit A data reading unit that reads out information for each type of the plurality of sets when receiving the operation; A preview display control unit or a print processing unit that creates image data for preview display or test printing, and the image data created by the preview display control unit or the print processing unit is Data indicating a state in which a union of print areas necessary for printing information read by the data reading unit is calculated and information indicating the union is embedded in a corresponding embedding area of the template document file It is characterized by being.

本発明によれば、1つの文書ファイルにつきテンプレート文書ファイルに複数種類の情報を埋め込んで、且つ複数の情報のセットに基づき複数の文書ファイルを作成する場合に、全ての文書ファイルについて埋め込みによる情報の印刷領域の重なりが生じないことが確実に事前確認できるような、プレビュー表示又はテスト印刷を行うことができる。   According to the present invention, when a plurality of types of information are embedded in a template document file for each document file and a plurality of document files are created based on a set of a plurality of information, Preview display or test printing can be performed so that it can be confirmed in advance that there is no overlap of print areas.

本発明に係るデータ作成方法を実行するための文書作成システムの一構成例を示すブロック図である。It is a block diagram which shows one structural example of the document creation system for performing the data creation method which concerns on this invention. 図1の文書作成システムにおいて予め記憶された若しくは作成されたテンプレート文書ファイルの一例を示す図である。It is a figure which shows an example of the template document file memorize | stored previously or produced in the document production system of FIG. 図2のテンプレート文書ファイルから図1の文書作成システムで作成された文書ファイルの例を示す図である。FIG. 3 is a diagram illustrating an example of a document file created by the document creation system of FIG. 1 from the template document file of FIG. 2. 図2のテンプレート文書ファイルから図1の文書作成システムで作成された文書ファイルの他の例を示す図である。3 is a diagram showing another example of a document file created by the document creation system of FIG. 1 from the template document file of FIG. 図2のテンプレート文書ファイルから図1の文書作成システムで作成された、プレビュー表示用又はテスト印刷用の画像データの例を示す図である。FIG. 3 is a diagram showing an example of image data for preview display or test printing created by the document creation system of FIG. 1 from the template document file of FIG. 図2のテンプレート文書ファイルから図1の文書作成システムで作成された、プレビュー表示用又はテスト印刷用の画像データの他の例を示す図である。FIG. 4 is a diagram showing another example of image data for preview display or test printing created by the document creation system of FIG. 1 from the template document file of FIG. 図1の文書作成システムにおけるプレビュー表示処理の一例を説明するためのフロー図である。It is a flowchart for demonstrating an example of the preview display process in the document preparation system of FIG. 図7に続くフロー図である。It is a flowchart following FIG. 本発明に係るデータ作成方法を実行するための文書作成システムの他の構成例を示すブロック図である。It is a block diagram which shows the other structural example of the document creation system for performing the data creation method which concerns on this invention. 図9の文書作成システムにおいて予め記憶された若しくは作成されたテンプレート文書ファイルの一例を示す図である。FIG. 10 is a diagram illustrating an example of a template document file stored or created in advance in the document creation system of FIG. 9. 図10のテンプレート文書ファイルに埋め込む対象となる画像情報の対応表の一例を示す図である。It is a figure which shows an example of the correspondence table of the image information used as the object embedded in the template document file of FIG. 図11の対応表における画像情報の例を示す図である。It is a figure which shows the example of the image information in the correspondence table of FIG. 図10のテンプレート文書ファイルから図9の文書作成システムで作成された文書ファイルの例を示す図である。FIG. 10 is a diagram illustrating an example of a document file created by the document creation system of FIG. 9 from the template document file of FIG. 10. 図10のテンプレート文書ファイルから図9の文書作成システムで作成された文書ファイルの他の例を示す図である。FIG. 10 is a diagram showing another example of a document file created by the document creation system of FIG. 9 from the template document file of FIG. 図10のテンプレート文書ファイルに図9の文書作成システムで埋め込まれる画像情報の一例を示す図である。FIG. 11 is a diagram showing an example of image information embedded in the template document file of FIG. 10 by the document creation system of FIG. 9. 図10のテンプレート文書ファイルから図9の文書作成システムで図15の画像情報が埋め込まれて作成された、プレビュー表示用又はテスト印刷用の画像データの例を示す図である。FIG. 16 is a diagram showing an example of image data for preview display or test printing created by embedding the image information of FIG. 15 by the document creation system of FIG. 9 from the template document file of FIG. 従来のバリアブル印刷の実行例を示す図である。It is a figure which shows the example of execution of the conventional variable printing.

本発明に係るデータ作成方法は、埋め込まれる情報によって印刷サイズが変わる埋込領域(可変印刷箇所)を1つ以上有するテンプレート文書ファイルから複数の文書ファイル(ドキュメントファイル)を作成し、印刷を行う文書作成システムにおいて、作成する文書ファイルについての、印刷前のプレビュー表示又はテスト印刷(試し刷り)のための画像データを作成する方法である。ここで、上記文書作成システムは、1つの文書ファイルにつき、テンプレート文書ファイルにおける各埋込領域のそれぞれに対応づけられた種類の情報を、各埋込領域に埋め込んで作成を行い、且つ各種類の情報でなるセットを複数セット分に対応させることで複数の文書ファイルを作成するシステムである。つまり、この文書作成システムは、情報(可変情報)を埋め込むことのできる埋込領域を一つ以上持つテンプレート文書ファイルについて、そのテンプレート文書ファイルの埋込領域のそれぞれに情報が種類毎に対応づけられており、複数のセット(1セットが各種類の情報で構成される)を埋込領域に埋め込んで複数の文書ファイルを生成することができるシステムである。セット数がn個の場合には文書ファイルもn個作成できる。   A data creation method according to the present invention creates a plurality of document files (document files) from a template document file having one or more embedding areas (variable print locations) whose print size varies depending on information to be embedded, and prints the document This is a method for creating image data for preview display or test printing (trial printing) before printing for a document file to be created in a creation system. Here, the document creation system performs creation by embedding each type of information corresponding to each embedding area in the template document file for each document file, and for each type of document file. This system creates a plurality of document files by associating a set of information with a plurality of sets. In other words, this document creation system, for a template document file having one or more embedding areas in which information (variable information) can be embedded, is associated with each embedding area of the template document file for each type. The system is capable of generating a plurality of document files by embedding a plurality of sets (one set is composed of various types of information) in an embedding area. When the number of sets is n, n document files can be created.

図1は、本発明に係るデータ作成方法を実行するための文書作成システムの一構成例を示すブロック図で、図2は、図1の文書作成システムにおいて予め記憶された若しくは作成されたテンプレート文書ファイルの一例を示す図である。また、図3は、図2のテンプレート文書ファイルから図1の文書作成システムで作成された文書ファイルの例を示す図であり、図4は他の例を示す図である。   FIG. 1 is a block diagram showing a configuration example of a document creation system for executing the data creation method according to the present invention. FIG. 2 is a template document stored or created in advance in the document creation system of FIG. It is a figure which shows an example of a file. 3 is a diagram showing an example of a document file created by the document creation system of FIG. 1 from the template document file of FIG. 2, and FIG. 4 is a diagram showing another example.

図1で例示する文書作成システムは、パーソナルコンピュータ(PC)1にデータベースサーバ2と印刷装置3とが接続されてなり、本発明に係るデータ作成方法は主にPC1内の記憶装置に格納したプログラム及びそのプログラムを実行するためのCPU、RAM等のハードウェアで実行される。つまり、以下に説明する本発明に係るデータ作成機能はプログラムとしてPC1等の汎用コンピュータに実装することができる。   The document creation system illustrated in FIG. 1 includes a personal computer (PC) 1 connected to a database server 2 and a printing device 3, and the data creation method according to the present invention is mainly a program stored in a storage device in the PC 1. And hardware such as a CPU and RAM for executing the program. That is, the data creation function according to the present invention described below can be implemented as a program on a general-purpose computer such as the PC 1.

PC1には、PC1上で動作する、印刷を行うことのできるアプリケーション(以下、印刷アプリケーションと呼ぶ)10と、印刷を行うためのプリンタドライバ16とがインストールされている。印刷アプリケーション10は、テンプレート読み込み部11、プレビュー表示制御部12、印刷処理部13、データ読み取り部14、及びバリアブル(可変)データ作成部15を備える。また、データベースサーバ2には、全ての種類について1つずつの情報を集めたものを(つまり1種類につき1情報で且つ全種類の情報を)1セットとして、複数のセットがバリアブルデータテーブル(バリアブルデータベース)20として記憶されている。また、印刷装置3としては、印刷機能のみの装置であっても、他の機能(例えばFAX等)も有する複合機であってもよい。   The PC 1 is installed with an application (hereinafter referred to as “print application”) 10 that runs on the PC 1 and that can perform printing, and a printer driver 16 that performs printing. The print application 10 includes a template reading unit 11, a preview display control unit 12, a print processing unit 13, a data reading unit 14, and a variable (variable) data creation unit 15. In addition, the database server 2 includes a set of information collected for each type (that is, one information for each type and all types of information) as one set, and a plurality of sets of variable data tables (variable data Database) 20. In addition, the printing apparatus 3 may be an apparatus having only a printing function or a multifunction machine having other functions (for example, FAX).

ここで、バリアブルデータテーブル20としては、氏名の情報、住所の情報、ポイントの情報の合計3種類の情報を格納した顧客データベースを例に挙げて説明するが、本発明では、埋め込む情報の種類は問わず、また4種類以上の情報についても同様に適用できる。また、バリアブルデータテーブル20は、SQLサーバなどのデータベースサーバであっても、単なるテキストファイルなど、データベース形式でなくてもよい。但し、上記複数のセットはデータベース形式で記憶されていることが情報読み出しの点や管理の点で好ましい。また、バリアブルデータテーブル20は同じPC1上にあっても構わないが、説明のために仮にPC1からアクセス可能なデータベースサーバ2とする。また、データベースサーバ2が複合機としての印刷装置3に組み込まれたシステム構成や、PC1内にデータベースサーバ2が具備される構成など、本発明で適用される文書作成システムは様々な構成例が適用できる。なお、ここではバリアブル印刷が可能な構成例についてのみ説明するが、少なくとも1箇所の可変の埋込領域を含んでいれば、ある種の帳票印刷やデータ差し込み印刷なども処理は基本的に同じである。   Here, the variable data table 20 will be described by taking as an example a customer database storing a total of three types of information including name information, address information, and point information. In the present invention, the type of information to be embedded is Regardless, it can be similarly applied to four or more types of information. The variable data table 20 may be a database server such as an SQL server, or may not be in a database format such as a simple text file. However, the plurality of sets are preferably stored in a database format from the viewpoint of information reading and management. The variable data table 20 may be on the same PC 1, but for the sake of explanation, it is assumed that the database server 2 is accessible from the PC 1. In addition, various configuration examples are applied to the document creation system applied in the present invention, such as a system configuration in which the database server 2 is incorporated in the printing apparatus 3 as a multifunction peripheral, or a configuration in which the database server 2 is provided in the PC 1. it can. Here, only a configuration example capable of variable printing will be described. However, if at least one variable embedding area is included, the processing is basically the same for certain types of form printing and data insertion printing. is there.

PC1における印刷アプリケーション10での処理について説明する。印刷アプリケーション10は、実装したテンプレート読み込み部11を用いて印刷アプリケーション10上にテンプレート文書ファイルを読み込む。なお、テンプレート文書ファイルは、文書作成システムで作成されたファイルであっても、外部で作成されこの文書作成システム内に格納されたファイルであっても、テンプレート読み込み部11で読み込み可能であればよい。さらにPC1は、そのモニタ上に、読み込んだテンプレート文書ファイルを表示することが好ましい。上記文書作成システムについて説明したように、このテンプレート文書ファイルは少なくとも一箇所の文字列や画像を埋め込むことのできる部分(埋込領域)を持ち、また、データベースやデータファイルなどから一連の情報を次々に読み取ってテンプレート文書ファイルに埋め込むことによって、複数の文書ファイルを生成し、印刷することができる。   Processing in the print application 10 in the PC 1 will be described. The print application 10 reads a template document file on the print application 10 using the mounted template reading unit 11. Note that the template document file may be a file created by the document creation system or a file created externally and stored in the document creation system as long as it can be read by the template reading unit 11. . Further, the PC 1 preferably displays the read template document file on the monitor. As described above for the document creation system, this template document file has at least one portion (embedded area) in which a character string or image can be embedded, and a series of information from a database or data file, etc. A plurality of document files can be generated and printed by being read and embedded in the template document file.

本例におけるテンプレート文書ファイルは、上述のように氏名(顧客名)と住所、ポイントを埋め込むための埋込領域を3箇所持つものとする。埋込領域は、バリアブル印刷を行う箇所であり、「可変情報欄」とも呼べる。テンプレート文書ファイルとして、図2に示すテンプレート文書ファイル50を例に挙げる。テンプレート文書ファイル50には、名前の埋込領域50a、住所の埋込領域50b、ポイントの埋込領域50cを有する他、埋込領域50aの左に「名前」の文字、埋込領域50aの右に「様」の文字、埋込領域50bの左に「住所」の文字が、埋込領域cの左に「現在のポイント」の文字、埋込領域cの右に「ポイント」の文字がそれぞれ記述され、また、埋込領域50bと埋込領域50cとの間に案内の定型文章が記述されている。   The template document file in this example has three embedding areas for embedding a name (customer name), an address, and points as described above. The embedding area is a place where variable printing is performed, and can be called a “variable information column”. An example of the template document file is a template document file 50 shown in FIG. The template document file 50 includes a name embedding area 50a, an address embedding area 50b, and a point embedding area 50c, and a character "name" on the left side of the embedding area 50a and a right side of the embedding area 50a. "Sama", "address" character to the left of the embedded region 50b, "current point" character to the left of the embedded region c, and "point" character to the right of the embedded region c In addition, a standard text for guidance is described between the embedded region 50b and the embedded region 50c.

上述の文書作成システムでは、ユーザが、テンプレート文書ファイル50の指定を行うと共に、各埋込領域にデータを入れるために印刷アプリケーション10に対して使用するバリアブルデータテーブル20を指示することで、複数の文書ファイルの作成・印刷や、本発明に係るプレビュー表示又はテスト印刷が可能な状態になる。   In the document creation system described above, the user designates the template document file 50 and instructs the print application 10 to use the variable data table 20 to enter data in each embedding area. The document file can be created and printed, and preview display or test printing according to the present invention can be performed.

まず、テンプレート文書ファイル50から複数の文書ファイルを作成・印刷する処理について説明する。印刷アプリケーション10上(又はプリンタドライバ16上)のUIで、全文書ファイルの作成(又は作成及び印刷)の実行を選択すると、バリアブルデータ作成部15が、テンプレート読み込み部11で読み込まれたテンプレート文書ファイル50と、データ読み取り部14で読み取ったバリアブルデータテーブル20内の情報のセットとに基づき、全ての文書ファイルを作成し、印刷も実行する場合には印刷処理部13がこの全ての文書ファイルをプリンタドライバ16に渡して、印刷指示する。プリンタドライバ16に印刷対象の文書ファイルを印刷データに変換して、印刷装置3に渡して印刷指示し、印刷装置3が印刷を実行する。   First, processing for creating and printing a plurality of document files from the template document file 50 will be described. When execution of creation (or creation and printing) of all document files is selected on the UI of the print application 10 (or the printer driver 16), the variable data creation unit 15 reads the template document file read by the template reading unit 11. 50 and the set of information in the variable data table 20 read by the data reading unit 14, when all document files are created and printed, the print processing unit 13 prints all the document files to the printer. Passed to the driver 16 to instruct printing. The document file to be printed is converted into print data to the printer driver 16 and is transferred to the printing apparatus 3 to instruct printing, and the printing apparatus 3 executes printing.

バリアブルデータテーブル20に次の2件の住所録A,Bが記述されていた場合を挙げて、印刷処理の具体例について説明する。各住所録には、名前、宛先、及びポイントの情報が含まれるものとする。そして、住所録Aとしては、名前「特許太郎」、住所「大阪府大阪市阿倍野○○」、ポイント「100000」が記述され、住所録Bとしては、名前「印刷三四郎」、住所「東京都港区○×△」、ポイント「1500」が記述されている。   A specific example of the printing process will be described by giving a case where the following two address books A and B are described in the variable data table 20. Each address book includes name, destination, and point information. The address book A describes the name “Taro Tokkyo”, the address “Abeno Osaka, Osaka”, and the point “100000”, and the address book B includes the name “Print Sanshiro” and the address “Tokyo Port”. “Ku ○ × Δ” and point “1500” are described.

この場合、埋込領域50aに名前、埋込領域50bに住所、埋込領域50cにポイント(区切り文字「,」を使用)を入れて、住所録Aに対して図3に示す印刷イメージ51のような文書ファイルを、住所録Bに対して図4に示す印刷イメージ52のような文書ファイルを作成して印刷することになる。つまり、この例では合計2つの文書ファイルを作成、印刷することになる。なお、印刷イメージ51においては、埋込領域50a,50b,50cにそれぞれ、「特許太郎」の文字列51a、「大阪府大阪市阿倍野○○」の文字列51b、ポイント「100,000」の文字列51cが印刷されることになる。同様に、印刷イメージ52においては、埋込領域50a,50b,50cにそれぞれ、「印刷三四郎」の文字列52a、「東京都港区○×△」の文字列52b、ポイント「1,500」の文字列52cが印刷されることになる。   In this case, a name is entered in the embedding area 50a, an address is placed in the embedding area 50b, and a point (using a delimiter “,”) is entered in the embedding area 50c, so that the print image 51 shown in FIG. A document file like the print image 52 shown in FIG. That is, in this example, a total of two document files are created and printed. In the print image 51, the character string 51a of “Patent Taro”, the character string 51b of “Abeno Osaka City Osaka ○”, and the character of the point “100,000” are embedded in the embedded regions 50a, 50b, and 50c, respectively. Column 51c will be printed. Similarly, in the print image 52, a character string 52a of “printed Sanshiro”, a character string 52b of “Minato-ku ○ × Δ” of Tokyo, and a point “1,500” are embedded in the embedded regions 50a, 50b, and 50c, respectively. The character string 52c is printed.

次に、図5を併せて参照しながら、本発明に係るプレビュー表示又はテスト印刷の一例について説明する。図5は、図2のテンプレート文書ファイルから図1の文書作成システムで作成された、プレビュー表示用又はテスト印刷用の画像データの例を示す図である。本発明では、印刷アプリケーション10(又はプリンタドライバ16)上のユーザインターフェース(UI)で、印刷前に印刷確認用サンプルのプレビュー表示又はテスト印刷を行うことが可能となっている。なお、特に詳述しないが、プリンタドライバ16上のUIで印刷前にプレビュー表示又はテスト印刷を行うことが可能に構成されている場合も、プリンタドライバ16上のUIは印刷アプリケーション10から読み出される。   Next, an example of preview display or test printing according to the present invention will be described with reference to FIG. FIG. 5 is a diagram showing an example of image data for preview display or test printing created by the document creation system of FIG. 1 from the template document file of FIG. In the present invention, it is possible to perform a preview display of a print confirmation sample or a test print before printing using a user interface (UI) on the print application 10 (or the printer driver 16). Although not specifically described in detail, the UI on the printer driver 16 is read from the print application 10 even when the UI on the printer driver 16 is configured to perform preview display or test printing before printing.

プレビュー表示の制御はプレビュー表示制御部12がPC1におけるモニタに対して行い、テスト印刷の制御は印刷処理部13がプリンタドライバ16に対して行う。プレビュー表示制御自体やテスト用の印刷制御自体は既知の技術を用いればよいが、本発明は、バリアブルデータ作成部15がこれらの制御の対象となる文書ファイルを作成するための、埋込領域に埋め込む情報の選択の方法に主たる特徴がある。   The preview display control unit 12 controls the preview display on the monitor in the PC 1, and the print processing unit 13 controls the printer driver 16 on the test print. A known technique may be used for the preview display control itself and the test print control itself. However, in the present invention, the variable data creation unit 15 creates a document file to be subjected to these controls in an embedded area. There is a main feature in the method of selecting information to be embedded.

つまり、本発明は、プレビュー表示又はテスト印刷時に埋込対象として選択する情報に、主たる特徴がある。本発明では、少なくとも問題の起こる可能性の高い情報が選択されるような処理にする。そのため、本発明に係るデータ作成方法は、次に説明する受付ステップ、読出ステップ、及び作成ステップを有する。   That is, the present invention has a main feature in the information to be selected as an embedding target at the time of preview display or test printing. In the present invention, at least the information that is likely to cause a problem is selected. Therefore, the data creation method according to the present invention includes a reception step, a reading step, and a creation step described below.

まず、受付ステップは、操作部が、作成される文書ファイルについて共通の、印刷前のプレビュー表示又はテスト印刷を行う操作を受け付けるステップである。ここで、操作部とは図1の例ではPC1の操作部であり、より具体的にはマウスやキーボードなどの入力装置を指す。読出ステップは、受付ステップで上記操作を受け付けた際に、データ読み取り部14が、上記複数セットについて種類毎に情報を読み出すステップである。   First, the accepting step is a step in which the operation unit accepts an operation for performing a preview display before printing or test printing, which is common to the created document file. Here, the operation unit is the operation unit of the PC 1 in the example of FIG. 1, and more specifically, an input device such as a mouse or a keyboard. In the reading step, when the operation is received in the receiving step, the data reading unit 14 reads information for each type of the plurality of sets.

作成ステップは、バリアブルデータ作成部15が、種類毎に、読出ステップで読み出された情報を印刷する際に必要な印刷領域(印刷に必要なサイズの領域)の和集合を算出してその和集合を示す情報をテンプレート文書ファイルの対応する埋込領域に埋め込み、1つのプレビュー表示用又はテスト印刷用の文書ファイルを作成する。和集合の算出はまず必要な印刷領域の算出を行って、和集合をとればよい。このように、作成ステップによって各埋込領域には、対応する種類毎の和集合が埋め込まれる。以下、作成ステップにおけるバリアブルデータ作成部15が実行するこの埋込処理のステップを「埋込ステップ」と呼び、分けて説明する。ここで、印刷する際に必要な印刷領域とは、読出ステップで読み出した情報を、対応する埋込領域(基本的に、フォント情報も含めて書式が決まっている)で印刷する際に必要な領域を指す。また、フォント情報には、フォントの種類、フォントのサイズ、フォントの色などを示す情報や、文字幅と文字間隔を示す情報(等幅フォントなのかプロポーショナルフォントなのかを示す情報も含む)が含まれる。書式には、フォント情報の他に、アンダーライン等の文字飾りなどが含まれる。そして、作成ステップは、プレビュー表示制御部12又は印刷処理部13が、埋込ステップによる埋込で作成されたプレビュー表示用又はテスト印刷用の文書ファイルについて、1つのプレビュー表示又はテスト印刷のための画像データを作成する。   In the creation step, the variable data creation unit 15 calculates, for each type, a union of print areas (areas of a size necessary for printing) necessary for printing the information read in the read step and calculates the sum. Information indicating the set is embedded in the corresponding embedding area of the template document file, and one document file for preview display or test printing is created. The union can be calculated by first calculating the necessary print area and taking the union. In this way, the union for each corresponding type is embedded in each embedded region by the creation step. Hereinafter, this embedding processing step executed by the variable data creating unit 15 in the creating step is referred to as an “embedding step” and will be described separately. Here, the print area necessary for printing is the information necessary for printing the information read in the reading step in the corresponding embedded area (basically, the format including font information is determined). Refers to an area. In addition, the font information includes information indicating the font type, font size, font color, etc., and information indicating the character width and character spacing (including information indicating whether it is a monospaced font or a proportional font). It is. The format includes character decorations such as underline in addition to font information. In the creation step, the preview display control unit 12 or the print processing unit 13 performs one preview display or test print for the preview display or test print document file created by embedding in the embedding step. Create image data.

なお、ここでの説明及び以降の説明では、埋込ステップについて説明したように、バリアブルデータ作成部15が1つのプレビュー表示用又はテスト印刷用の文書ファイルの作成してから、その画像データを作成することを前提としている。但し、この例に限らず、文書ファイルの作成を経ずに直接、プレビュー表示制御部12又は印刷処理部13が同様の1つのプレビュー表示用又はテスト印刷用の画像データを作成するようにしてもよい。   In the explanation here and the following explanation, as described in the embedding step, the variable data creation unit 15 creates one preview display or test print document file, and then creates the image data. It is assumed that However, the present invention is not limited to this example, and the preview display control unit 12 or the print processing unit 13 may directly generate the same image data for preview display or test printing without creating a document file. Good.

まず、埋込領域に埋め込まれる情報が、少なくとも1種類で、且つフォント情報を含まないテキスト情報か又は等幅フォントが指定されたテキスト情報を含む場合について説明する。等幅フォントが指定されたテキスト情報には、フォントの種類、サイズ、色の情報などが含まれていてもよい。フォント情報を含まないか又は等幅フォントが指定されたテキスト情報について、埋込ステップは、種類毎に、読出ステップで読み出されたテキスト情報から印刷する際に最も長い印刷領域が必要なテキスト情報を抽出する抽出ステップを有し、種類毎に、抽出ステップで抽出された最も長い印刷領域を和集合として算出して、和集合を示す情報として上記最も長い印刷領域が必要なテキスト情報を、対応する埋込領域に埋め込む。つまり、各埋込領域への埋め込みは、抽出されたそれぞれの最も長い印刷領域を示す情報(埋め込み用データ)を対応の埋込領域に埋め込むことを意味する。   First, a case will be described in which the information embedded in the embedding area includes at least one type of text information that does not include font information or text information that specifies a monospaced font. The text information in which the monospaced font is designated may include font type, size, color information, and the like. For text information that does not contain font information or for which a monospaced font is specified, the embedding step requires text information that requires the longest print area for printing from the text information read in the reading step for each type. For each type, the longest print area extracted in the extraction step is calculated as a union, and the text information that requires the longest print area is used as information indicating the union. Embed in the embedded area. That is, embedding in each embedding area means embedding information (embedding data) indicating each extracted longest print area in the corresponding embedding area.

印刷時に図3の印刷イメージ51と図4で示す印刷イメージ52のようになる情報が存在する場合、情報51aと情報52aとのうち最も印刷領域が長い方のテキスト情報(この例では、情報52a)と、情報51bと情報52bとのうち最も印刷領域が長い方のテキスト情報(この例では、情報51b)と、情報51cと情報52cとのうち最も印刷領域が長い方のテキスト情報(この例では、情報51c)とが、抽出ステップで抽出され、それぞれテンプレート文書ファイルの埋込領域50a、埋込領域50b、埋込領域50cに埋め込まれることになる。   When there is information such as the print image 51 in FIG. 3 and the print image 52 shown in FIG. 4 at the time of printing, the text information having the longest print area of the information 51a and the information 52a (in this example, the information 52a ), Information 51b and information 52b having the longest print area (in this example, information 51b), and information 51c and information 52c having the longest print area (in this example) Then, the information 51c) is extracted in the extraction step, and is embedded in the embedded region 50a, embedded region 50b, and embedded region 50c of the template document file, respectively.

そしてこの例では、作成ステップにより、図5で示す画像データ53が作成される。画像データ53では、情報52a、情報51b、情報51cがそれぞれ埋込領域53a、埋込領域53b、埋込領域53cに対応する位置に埋め込まれていることが分かる。このような画像データ53がプレビュー表示又はテスト印刷されることになる。   In this example, the image data 53 shown in FIG. 5 is created by the creation step. In the image data 53, it can be seen that information 52a, information 51b, and information 51c are embedded at positions corresponding to the embedded region 53a, embedded region 53b, and embedded region 53c, respectively. Such image data 53 is preview-displayed or test-printed.

このように、本発明におけるプレビュー表示・テスト印刷では、上述の例で言うところの最も長い名前、最も長い住所、及び最も長いポイントを組み合わせたものをプレビューイメージ用の情報として用いている。画像データ53では、最も長い名前と最も長い住所の組み合わせを用いているため、文字が印刷範囲を超える場合や、文字が重なってしまう場合をチェックするのに役立つ。このように、名前、宛先など情報の種類毎に最も長いデータを組み合わせた場合のみのプレビュー表示又はテスト印刷を行うことで、全部の文書ファイルを確認せずとも文字の切れ、重なりが起こるかどうかを確認することができる。   As described above, in the preview display / test printing according to the present invention, the combination of the longest name, the longest address, and the longest point as described in the above example is used as information for the preview image. Since the image data 53 uses the combination of the longest name and the longest address, it is useful for checking when the characters exceed the print range or when the characters overlap. In this way, whether previews or test prints are performed only when the longest data is combined for each type of information such as name, destination, etc., whether characters are cut or overlapped without checking all the document files Can be confirmed.

画像データ53において、名前と住所の対応関係は失われているが、画像データ53はあくまでもプレビュー表示・テスト印刷用であり、このままの文書ファイルを最終的な印刷結果として用いるということではないため、問題ない。従って、ユーザはプレビューやテスト印刷後、埋込領域のフォント等の書式を変更したり、埋込領域以外のデータを編集し、再度、プレビューやテスト印刷して、全てのセットの情報で問題なく印刷できることを確かめてから実際の印刷を実行することができる。   In the image data 53, the correspondence between the name and the address is lost, but the image data 53 is only for preview display / test printing and does not mean that the document file as it is is used as the final print result. no problem. Therefore, after preview or test printing, the user can change the font format of the embedding area, edit data outside the embedding area, preview and test print again, and use all sets of information without any problems. After confirming that printing is possible, actual printing can be executed.

また、ここではフォント情報を含まないか又は等幅フォントが指定された例を挙げているため、単純に文字数が多いものを長い文字列(つまり長い印刷領域を必要とする文字列)とし、単なる文字数だけで長さを比較しているが、基本的に埋込領域の書式での埋め込まれるため、テキスト情報の文字列における、埋込領域への埋込時の各文字の横幅と間隔の合計長さを比較するようにしても比較結果は同じである。つまり、抽出ステップは、文字列のバイト数に基づいて最も長い印刷領域となるテキスト情報を抽出する代わりに、各文字の横幅と間隔の合計による文字列の長さに基づいて、最も長い印刷領域となるテキスト情報を抽出する(テキスト情報の長さを比較する)ようにしてもよい。   In addition, since an example in which font information is not included or a monospaced font is specified is given here, a character string with a large number of characters is simply a long character string (that is, a character string that requires a long print area), and is simply Although the lengths are compared only by the number of characters, basically, since it is embedded in the format of the embedded area, the total width and spacing of each character when embedding in the embedded area in the text information character string Even if the lengths are compared, the comparison result is the same. In other words, instead of extracting the text information that becomes the longest print area based on the number of bytes of the character string, the extraction step uses the longest print area based on the length of the character string by the sum of the width and interval of each character. May be extracted (the lengths of the text information are compared).

ここで、ポイントの情報についての図示に基づき、埋込領域に埋め込まれる情報が少なくとも1種類で数値情報を含む場合について説明する。情報の埋め込みは、区切り記号などの情報を付加して埋め込んでもよい。そのためには、上述した各例において、区切り記号など、埋込領域に予め設定されたフォント情報等の書式を反映して埋め込んで画像データを作成してもよいし、若しくは区切り記号などの場合には区切り記号も加えたときに最も長い印刷領域を必要とするポイント情報が抽出されるようにして埋め込みを行ってもよい。   Here, a case where the information embedded in the embedding area includes at least one type of numerical information will be described based on the illustration of the point information. The information may be embedded by adding information such as a delimiter. For this purpose, in each of the above-described examples, image data may be created by embedding a format such as a font information preset in an embedding area, such as a delimiter, or in the case of a delimiter May be embedded so that point information that requires the longest print area is extracted when a delimiter is added.

後者の処理のように、埋込領域に埋め込まれる情報は数値情報を含むようにしてもよい。つまり、本発明は、数値情報が埋め込まれる場合にも対応させることが好ましい。そして、数値情報について、埋込ステップは、種類毎に、読出ステップで読み出された数値情報を対応する埋込領域で規定される数値表現の文字列(区切り、単位、符号等を表す記号を含めた文字列)に変換して印刷する際に最も長い印刷領域が必要な数値情報を抽出する抽出ステップを有し、種類毎に、抽出ステップで抽出された最も長い印刷領域を「和集合」として算出して、「和集合を示す情報」として上記数値情報を上記数値表現の文字列に変換した情報を、対応する埋込領域に埋め込むことが好ましい。例えば、数値情報が16進数で保存された情報であった場合に、10進数に変換して印刷する場合や数値に区切り記号等を追加する場合などに対応することができる。
また、フォント情報を含まないか又は等幅フォントが指定されたテキスト情報について説明した通り、数値情報についても、上記抽出ステップは、最も長い印刷領域を、上記数値情報を上記数値表現の文字列に変換した情報の文字列のバイト数に基づいて、若しくは上記変換した情報の文字列における、埋込領域への埋込時の各文字の横幅と間隔の合計長さに基づいて、抽出するようにしてもよい。
As in the latter process, the information embedded in the embedded region may include numerical information. In other words, the present invention is preferably adapted to the case where numerical information is embedded. Then, for the numerical information, the embedding step includes, for each type, a numerical character string (delimiter, unit, code, etc.) that represents the numerical information read in the reading step and is defined in the corresponding embedding area. The extraction step for extracting numerical information that requires the longest print area when printing is performed, and for each type, the longest print area extracted in the extraction step is “union” It is preferable that information obtained by converting the numerical information into “numeric character string” as “information indicating a union” is embedded in a corresponding embedded region. For example, when the numerical information is information stored in hexadecimal, it is possible to cope with conversion to decimal and printing, or adding a delimiter to the numerical value.
In addition, as described for text information that does not include font information or for which a monospaced font is specified, also for numerical information, the extraction step converts the longest print area into the character string of the numerical expression. Extraction is based on the number of bytes of the character string of the converted information or based on the total length of the width and interval of each character when embedding in the embedding area in the character string of the converted information. May be.

次に、図6を併せて参照しながら他の作成方法で作成した画像データの例を説明する。図6は、図2のテンプレート文書ファイルから図1の文書作成システムで作成された、プレビュー表示用又はテスト印刷用の画像データの他の例を示す図である。   Next, an example of image data created by another creation method will be described with reference to FIG. 6 is a diagram showing another example of image data for preview display or test printing created from the template document file of FIG. 2 by the document creation system of FIG.

図5を参照して説明した例では、最も長い印刷領域を必要とする文字列をそのまま用いることを前提に説明した。この処理で生成された画像データ53は、どの情報で問題が起こるかを知る上で参考とはなるが、文字の形状などにより、文字の重なりなどの問題を発見できない可能性がある。そのような場合に備えて、文字を矩形で置き換えてしまうことも考えられる。   The example described with reference to FIG. 5 has been described on the assumption that the character string that requires the longest print area is used as it is. The image data 53 generated by this processing can be used as a reference for knowing which information causes a problem, but there is a possibility that a problem such as overlapping of characters cannot be found depending on the shape of the character. In preparation for such a case, it may be possible to replace the character with a rectangle.

つまり、埋込ステップは、埋込領域に埋め込まれる情報がフォント情報を含まないか又は等幅フォントが指定されたテキスト情報である場合、種類毎に、「和集合を示す情報」として、最も長い印刷領域が必要なテキスト情報に対応した長さの所定文字列又は所定図形の画像を、対応する埋込領域に埋め込むことが好ましい。なお、所定図形の高さは文字列と同じに決まっているものとする。埋め込む情報は、代わりに、最も長い印刷領域が必要なテキスト情報に対応した長さより長い所定文字列又は所定図形の画像としてもよい。いずれにしても、最も長い印刷領域が必要なテキスト情報の代替画像を、対応する埋込領域に埋め込むことになる。ここで、テキスト情報とは、数値をテキストで表現した情報として埋め込む場合についても含むものとする。なお、「フォント情報を含まないか又は等幅フォントが指定されたテキスト情報」ではない情報が埋め込まれる他の埋込領域については、この処理を適用しなければ済み、同様のことは数値情報や後述するフォント情報が付いたテキスト情報や画像情報についても言える。   That is, in the embedding step, when the information to be embedded in the embedding area does not include font information or is text information in which a monospaced font is designated, the longest is “information indicating the union” for each type. It is preferable to embed an image of a predetermined character string or a predetermined figure having a length corresponding to text information that requires a print area in the corresponding embedded area. It is assumed that the height of the predetermined figure is the same as that of the character string. Instead, the information to be embedded may be an image of a predetermined character string or a predetermined figure longer than the length corresponding to the text information that requires the longest print area. In any case, an alternative image of text information that requires the longest print area is embedded in the corresponding embedded area. Here, the text information includes a case where a numerical value is embedded as information expressed in text. Note that this processing does not have to be applied to other embedding areas in which information that is not “text information that does not include font information or a monospaced font is specified” is embedded. The same can be said for text information and image information with font information to be described later.

例えば、画像データ53における埋込領域53a,53b,53cで示す文字列の代わりにそれぞれ別の図形(ここでは全角文字は最大フォント幅に合わせた矩形、半角文字は半角アルファベットのI)で置き換え、結果として図6で示す埋込領域54a,54b,54cで示すような画像を含む画像データ54を作成することができる。このように、画像データ53に使用したのと同じ情報セットが用いられると、名前は最大5文字、住所は最大11文字、ポイントは半角7文字で示される画像データ54が作成される。   For example, instead of the character strings shown in the embedding areas 53a, 53b, and 53c in the image data 53, each is replaced with another figure (here, full-width characters are rectangles matching the maximum font width, and half-width characters are half-width alphabet I). As a result, it is possible to create image data 54 including an image as shown by the embedded regions 54a, 54b and 54c shown in FIG. As described above, when the same information set as that used for the image data 53 is used, image data 54 is created in which the name is 5 characters at maximum, the address is 11 characters at maximum, and the point is 7 characters.

ここでは、矩形は全て等幅であるが、抽出されたテキスト情報等のフォント情報(埋込領域にフォント情報が設定されている場合にはそのフォント情報)としてプロポーショナルフォントを用いている場合には、文字幅に応じた幅としてもよい。その他、矩形に見やすいように色を付けたり、半透明にしたり、枠線で囲ったり、何らかのマーキングをしたりなどしてもよい。また、文字間についても、空白のままにしておいてもよいし、全体が一つの連続した図形となるように間を埋めて表示してもよい。このように、元となるテキスト情報を矩形文字で置き換えることにより、元々テキスト情報で空白だった部分についても文字が重ならないことを確認することができる。また、この代替画像を用いる例でも、抽出ステップは、最も長い印刷領域を、テキスト情報の文字列のバイト数に基づいて抽出してもよいし、テキスト情報の文字列における、埋込領域への埋込時の各文字の横幅と間隔の合計長さに基づいて抽出してもよい。   Here, the rectangles are all monospaced, but if proportional fonts are used as font information such as extracted text information (or font information if font information is set in the embedding area) A width corresponding to the character width may be used. In addition, the rectangle may be colored so that it is easy to see, made translucent, surrounded by a frame line, or some kind of marking. Also, the space between characters may be left blank, or may be displayed with the space filled so that the whole becomes one continuous figure. In this way, by replacing the original text information with rectangular characters, it is possible to confirm that the characters do not overlap even in portions that were originally blank in the text information. In the example using this alternative image, the extraction step may extract the longest print area based on the number of bytes of the text string of the text information, You may extract based on the total length of the horizontal width and space | interval of each character at the time of embedding.

次に、図7及び図8を参照しながら、本発明に係るプレビュー表示処理の一例についてその流れを説明する。なお、ここで説明する「プレビュー表示」の代わりに「テスト印刷の印刷装置3への指示及び印刷装置3でのテスト印刷」を実行すれば、テスト印刷は実行できるため、テスト印刷については特に説明しない。図7は、図1の文書作成システムにおけるプレビュー表示処理の一例を説明するためのフロー図で、図8は、図7に続くフロー図である。   Next, the flow of an example of the preview display process according to the present invention will be described with reference to FIGS. Note that test printing can be executed by executing “instruction to test printing apparatus 3 and test printing in printing apparatus 3” instead of “preview display” described here, and therefore test printing is particularly described. do not do. FIG. 7 is a flowchart for explaining an example of preview display processing in the document creation system of FIG. 1, and FIG. 8 is a flowchart following FIG.

まず、印刷アプリケーションがテンプレート文書ファイルを読み込み(ステップS1)、埋込領域に埋め込むためのデータベースのテーブルを指定する(ステップS2)。印刷アプリケーションが、印刷するユーザ操作を操作部で受け付けたか否かを判定し(ステップS3)、受け付けられていない場合には、プレビュー表示する操作が受け付けられたか否かを判定する(ステップS4)。ステップS4でNOの場合にはステップS3へ戻り、ステップS4でYESの場合には印刷サンプルのみプレビューするように指示があったか否かを判定する(ステップS5)。   First, the printing application reads a template document file (step S1), and specifies a database table to be embedded in the embedding area (step S2). The print application determines whether or not a user operation for printing is accepted by the operation unit (step S3). If not accepted, it is determined whether or not an operation for displaying a preview is accepted (step S4). If “NO” in the step S4, the process returns to the step S3, and if “YES” in the step S4, it is determined whether or not there is an instruction to preview only the print sample (step S5).

ステップS5でNOの場合、並びにステップS3でYESの場合、指定されたテーブルのデータ(各種類の情報でなるセットを複数)を読み取り(ステップS6)、読み取ったデータをテンプレート文書ファイルに埋め込んで印刷用の文書ファイルを作成し(ステップS7)、作成した文書ファイルの印刷又はプレビュー表示を実行する(ステップS8)。なお、プレビュー表示を実行する場合にはデフォルトでプレビュー表示を行うことが規定されている場合、若しくはステップS3でプレビュー表示を印刷前に行うことが操作された場合に限る。ステップS8の処理後、読み出すデータが終わりか否かを判定し(ステップS9)、終わりである場合、処理を終了するかステップS3へ戻り、終わりでない場合、ステップS6へ戻る。このようにして順次、文書ファイルの作成、プレビュー表示又は印刷が実行され、最終的に全ての文書ファイルについての処理が完了する。なお、全ての文書ファイルについて作成してからプレビュー表示又は印刷を行うようにしてもよいし、この場合にも文書ファイルの作成を経ずに直接、プレビュー表示用又はテスト印刷用の画像データを作成してプレビュー表示又はテスト印刷の実行を行ってもよい。   If NO in step S5 and YES in step S3, the specified table data (a plurality of sets of information of each type) is read (step S6), and the read data is embedded in the template document file and printed. A document file is created (step S7), and printing or preview display of the created document file is executed (step S8). Note that the preview display is executed only when it is specified that the preview display is performed by default, or when the preview display is operated before printing in step S3. After the process of step S8, it is determined whether or not the data to be read is over (step S9). If it is over, the process ends or the process returns to step S3, and if it is not over, the process returns to step S6. In this way, document file creation, preview display, or printing is sequentially executed, and processing for all document files is finally completed. Note that preview display or printing may be performed after all document files have been created. In this case, image data for preview display or test printing is created directly without creating a document file. Then, preview display or test printing may be executed.

一方、ステップS5でYESの場合、指定されたテーブルのデータを読み取り(図8のステップS11)、読み取ったデータはこれまでで一番長い印刷領域が必要な文字列か否かを判定する(ステップS12)。ステップS12では項目(つまり情報の種類)毎にこの判定を行う。ステップS12でYESの場合、一番長い印刷領域が必要な文字列を項目毎にメモリに記憶し(ステップS13)、データの終わりか否かを判定する(ステップS14)。ステップS12でNOの場合にはステップS13を経ずにステップS14へ進む。ステップS14でNOの場合にはステップS11へ戻る。なお、ステップS13ではステップS12でYESとなる度に、対象の項目についての文字列が書き換えられることになる。ステップS14でYESの場合には、記憶しておいた項目毎に、一番長い印刷領域を必要とするデータをテンプレート文書ファイルの各埋込領域に埋め込み、プレビューデータを生成する(ステップS15)。ステップS15では、プレビュー用の文書データを生成しそれをプレビュー画像のデータ(プレビューデータ)に変換する。ステップS15の後、プレビュー表示を実行して(ステップS16)、処理を終了するか、若しくは図7のステップS3へ戻る。   On the other hand, if YES in step S5, the data in the specified table is read (step S11 in FIG. 8), and it is determined whether the read data is a character string that requires the longest print area so far (step S11). S12). In step S12, this determination is performed for each item (that is, the type of information). If YES in step S12, the character string that requires the longest print area is stored in the memory for each item (step S13), and it is determined whether or not it is the end of data (step S14). If NO in step S12, the process proceeds to step S14 without passing through step S13. If NO in step S14, the process returns to step S11. In step S13, each time the answer is YES in step S12, the character string for the target item is rewritten. If YES in step S14, for each stored item, data that requires the longest print area is embedded in each embedded area of the template document file to generate preview data (step S15). In step S15, document data for preview is generated and converted into preview image data (preview data). After step S15, a preview display is executed (step S16), and the process is terminated, or the process returns to step S3 in FIG.

次に、埋込領域に埋め込まれる情報が、少なくとも1種類で、フォント情報(等幅フォントでもよい)が付いた文字情報を含む場合について、また埋込領域に埋め込まれる情報が少なくとも1種類で画像情報を含む場合について説明する。なお、画像情報は少なくとも画像サイズという書式が含まれるため、基本的に書式付き文字情報も画像情報も同じように取り扱うことができる。なお、埋込領域以外のデータも全て画像情報であってもよい。つまり、本発明で取り扱う文書ファイルは、全て画像のみが貼り付けられるなどにより組み込まれるファイルであってもよい。   Next, when the information to be embedded in the embedding area includes at least one type of character information with font information (which may be a monospaced font), and at least one type of information to be embedded in the embedding area. A case where information is included will be described. Since the image information includes at least the format of the image size, the text information with format and the image information can be handled in the same manner. Note that all data other than the embedded region may be image information. That is, the document file handled in the present invention may be a file that is incorporated by pasting only an image.

フォント情報付きの文字情報については、埋込ステップは、種類毎に、和集合が示す情報として和集合を占有する所定画像(又はその和集合を含む領域を占有する所定画像、つまり所定の代替画像)を、対応する埋込領域に埋め込めばよい。その和集合を含む領域とはその和集合が示す領域より広い領域である。また、画像情報についても同様に、埋込ステップは、種類毎に、和集合が示す情報として和集合を占有する所定画像(又はその和集合を含む領域を占有する所定画像、つまり所定の代替画像)を、対応する埋込領域に埋め込む。   For character information with font information, the embedding step performs, for each type, a predetermined image that occupies the union as information indicated by the union (or a predetermined image that occupies an area including the union, that is, a predetermined alternative image) ) May be embedded in the corresponding embedded region. The region including the union is a region wider than the region indicated by the union. Similarly, for the image information, the embedding step includes, for each type, a predetermined image that occupies the union as information indicated by the union (or a predetermined image that occupies an area including the union, that is, a predetermined alternative image). ) Is embedded in the corresponding embedded region.

また、フォント情報を含まないか又は等幅フォントが指定されたテキスト情報について説明したのと同様にフォント情報付きのテキスト情報についても、単純に文字数が多いものを長い文字列(つまり長い印刷領域を必要とする文字列)とし、単なる文字数だけで長さを比較してもよいし、テキスト情報の文字列における、埋込領域への埋込時の各文字の横幅と間隔の合計長さを比較しても構わない。なお、読み出す情報の書式を反映させるのであれば埋込領域の書式より優先させることになるため、基本的に埋込領域の書式は気にせず比較すればよい。つまり、抽出ステップは、文字列のバイト数に基づいて最も長い印刷領域となるテキスト情報を抽出する代わりに、各文字の横幅と間隔の合計による文字列の長さに基づいて、最も長い印刷領域となるテキスト情報を抽出する(テキスト情報の長さを比較する)ようにしてもよい。これにより、書式付きの文字情報毎に文字の横幅と文字間隔が異なる場合、文字数だけを考慮しても横幅と間隔によっては所定の幅に収まる場合と収まらない場合があるが、各文字の幅と間隔を合計した長さが最も長い文字列を選定することで、このような場合にも対応することができる。   In addition, as described for text information that does not include font information or for which a monospaced font is specified, text information with font information is simply a long character string (that is, a long print area is not displayed). You can compare the length with just the number of characters, or compare the total length of the width and spacing of each character when embedding in the embedding area in the text information character string. It doesn't matter. If the format of the information to be read is reflected, it takes precedence over the format of the embedded region. Therefore, the format of the embedded region may be basically compared without concern. In other words, instead of extracting the text information that becomes the longest print area based on the number of bytes of the character string, the extraction step uses the longest print area based on the length of the character string by the sum of the width and interval of each character. May be extracted (the lengths of the text information are compared). As a result, when the character width and character spacing differ for each type of character information with formatting, the width of each character may or may not fit within the specified width depending on the width and spacing even if only the number of characters is considered. By selecting the character string having the longest total length, it is possible to cope with such a case.

次に、図9〜図16を参照しながら、画像情報やフォント情報付きテキスト情報を埋め込む場合について具体的に説明する。図9は、本発明に係るデータ作成方法を実行するための文書作成システムの他の構成例を示すブロック図で、図10は、図9の文書作成システムにおいて予め記憶された若しくは作成されたテンプレート文書ファイルの一例を示す図である。また、図11は、図10のテンプレート文書ファイルに埋め込む対象となる画像情報の対応表の一例を示す図で、図12は、図11の対応表における画像情報の例を示す図である。図13は、図10のテンプレート文書ファイルから図9の文書作成システムで作成された文書ファイルの例を示す図であり、図14は他の例を示す図である。   Next, the case of embedding image information and text information with font information will be specifically described with reference to FIGS. FIG. 9 is a block diagram showing another configuration example of the document creation system for executing the data creation method according to the present invention, and FIG. 10 is a template stored or created in advance in the document creation system of FIG. It is a figure which shows an example of a document file. 11 is a diagram showing an example of a correspondence table of image information to be embedded in the template document file of FIG. 10, and FIG. 12 is a diagram showing an example of image information in the correspondence table of FIG. FIG. 13 is a diagram showing an example of a document file created by the document creation system of FIG. 9 from the template document file of FIG. 10, and FIG. 14 is a diagram showing another example.

図9で例示する文書作成システムは、図1で例示した文書作成システムにおいて、さらにPC1に記憶装置4が接続されたシステムである。そして、図9で例示する印刷アプリケーション10は、図1で例示した印刷アプリケーション10におけるデータ読み取り部14の代わりにデータベース読み取り部17を備えている。なお、データベース読み取り部17の機能は、データ読み取り部14の機能に追加して、記憶装置4からのデータを読み取ることが可能になっている。その他、図1で説明したものと同様の箇所については説明を省略する。   The document creation system illustrated in FIG. 9 is a system in which the storage device 4 is further connected to the PC 1 in the document creation system illustrated in FIG. The print application 10 illustrated in FIG. 9 includes a database reading unit 17 instead of the data reading unit 14 in the print application 10 illustrated in FIG. Note that the function of the database reading unit 17 can be added to the function of the data reading unit 14 to read data from the storage device 4. Description of other parts similar to those described in FIG. 1 is omitted.

図9におけるバリアブルデータテーブル20としては、氏名の情報、住所の情報、資格の情報の合計3種類の情報を格納した顧客データベースである例を挙げて説明するが、後述するように、資格の情報については記憶装置4に関連する情報が記憶されている。
図10に例示するテンプレート文書ファイル60は、氏名、住所、資格、及び認定文をそれぞれ埋め込むための埋込領域60a〜60dを持つ。つまり、このテンプレート文書ファイル60は、4箇所の埋込領域を持つものとする。また、テンプレート文書ファイル60には、一番上の中央の領域に「○×認定証」の文字、名前の埋込領域50aの左に「名前」の文字、埋込領域50bの左に「住所」の文字がそれぞれ記述されている。
The variable data table 20 in FIG. 9 will be described with reference to an example of a customer database that stores a total of three types of information: name information, address information, and qualification information. Information relating to the storage device 4 is stored.
The template document file 60 illustrated in FIG. 10 has embedding areas 60a to 60d for embedding a name, an address, a qualification, and a certification sentence. That is, the template document file 60 has four embedded areas. Further, the template document file 60 includes a character “Ox certificate” in the center area at the top, a character “name” on the left of the name embedding area 50a, and an “address” on the left of the embedding area 50b. "Is described.

バリアブルデータテーブル20に次の2件の資格取得者の情報を含む資格取得者リストが記述されていた場合を挙げて、印刷処理について説明する。この資格者リストはテンプレート文書ファイル60から利用できるようになっており、上述のように各資格取得者につき、名前、住所、及び資格の情報が記述されている。この資格取得者リストには、名前が「特許太郎」のセットと名前が「印刷三四郎」のセットとで合計2つのセットが含まれる。名前が「特許太郎」のセットについては、住所が「大阪府大阪市阿倍野○○」、資格が「1級」であることが記述されており、名前が「印刷三四郎」のセットについては、住所が「東京都港区○×△」、資格が「2級」であることが記述されている。   The printing process will be described by giving a case where a qualification acquirer list including information of the following two qualification acquirers is described in the variable data table 20. This qualified person list can be used from the template document file 60, and the name, address, and qualified information are described for each qualified person as described above. This qualification acquirer list includes a total of two sets, a set whose name is “Patent Taro” and a set whose name is “Print Sanshiro”. For the set with the name “Patentaro”, it is described that the address is “Abeno Osaka, Osaka City” and the qualification is “1st class”, and for the set with the name “Print Sanshiro”, the address Is “Minato-ku, Tokyo, Tokyo, Japan,” and “Qualification is“ Level 2 ”.

また、記憶装置4には、資格の階級に対応付けられた、画像ファイル・文章ファイル(以下、画像・文章ファイルと呼ぶ)42が格納されている。記憶装置4はPC1の内部の記憶装置であってもよい。さらに、記憶装置4には、画像・文章ファイル42とバリアブルデータテーブル20における資格の情報とを関連付けるための対応表(画像・文章ファイル対応表)41が格納されている。画像・文章ファイル対応表41には、図11に示す対応表70のように、資格の情報毎に、埋め込まれる画像ファイルと文章ファイルとが関連付けられている。また、画像ファイルにはClass1.jpegとClass2.jpegとがあるが、図12の画像情報80aと画像情報80bとで図示したようにそれらの画像の大きさが異なっているものとする。この例では、横方向の長さがClass1.jpegの方が長い(細長い)印刷領域となり、縦方向の長さがClass2.jpegの方が長い印刷領域となる。   Further, the storage device 4 stores an image file / text file (hereinafter referred to as an image / text file) 42 associated with a qualification class. The storage device 4 may be a storage device inside the PC 1. Further, the storage device 4 stores a correspondence table (image / text file correspondence table) 41 for associating the image / text file 42 with the qualification information in the variable data table 20. In the image / text file correspondence table 41, as in the correspondence table 70 shown in FIG. 11, an embedded image file and text file are associated for each qualification information. In addition, Class 1. jpeg and Class2. It is assumed that the sizes of the images are different as shown in the image information 80a and the image information 80b in FIG. In this example, the horizontal length is Class1. jpeg is a longer (elongated) print area, and the length in the vertical direction is Class2. jpeg is a longer print area.

このような文書作成システムにおいて、印刷指示がなされると、データベース読み取り部17が、資格取得者リストから、名前、住所、資格の情報を読み出す。そして、バリアブルデータ作成部15により、名前と住所の情報はそれぞれ埋込領域60aと埋込領域60bに入力されて埋め込まれる。資格の情報については、資格が1級か2級かによって画像ファイル及び文書ファイルが図11の対応表70から選択され、選択された画像ファイル及び文章ファイルを読み出し、それぞれ埋込領域60c及び埋込領域60dに埋め込む。そして、このような埋込により作成された文書ファイルが印刷されることになる。   In such a document creation system, when a printing instruction is given, the database reading unit 17 reads information on the name, address, and qualification from the qualification acquirer list. Then, the variable data creation unit 15 inputs and embeds name and address information in the embedded region 60a and the embedded region 60b, respectively. As for the qualification information, an image file and a document file are selected from the correspondence table 70 of FIG. 11 depending on whether the qualification is the first grade or the second grade, and the selected image file and text file are read, respectively, It is embedded in the area 60d. Then, the document file created by such embedding is printed.

この場合、名前が「特許太郎」の資格取得者について図13に示す印刷イメージ61のような文書ファイルを、前が「印刷三四郎」の資格取得者について図14に示す印刷イメージ62のような文書ファイルを、それぞれ作成・印刷することになる。つまり、合計2つの文書ファイルを作成し、印刷することになる。なお、印刷イメージ61においては、埋込領域60a,60b,60c,60dにそれぞれ、「特許太郎」の文字列61a、「大阪府大阪市阿倍野○○」の文字列61b、画像情報80a(Class1.jpeg)が示す画像61c、文書ファイル(Class1.doc)が示す文章61d(書式付き文章)が印刷されることになる。なお、.docはマイクロソフト株式会社のワードの文書の拡張子であるが、ここで適用できる文書ファイルはワードの文書に限らず、単にテキストファイル(拡張子がtxt)など他の文書であってもよい。拡張子がtxtのファイルでも少なくとも「改行」という書式が付いていることがある。同様に、印刷イメージ62においては、埋込領域60a,60b,60c,60dにそれぞれ、「印刷三四郎」の文字列62a、「東京都港区○×△」の文字列62b、画像情報80b(Class2.jpeg)が示す画像62c、文書ファイル(Class2.doc)が示す文章62dが印刷されることになる。   In this case, a document file such as the print image 61 shown in FIG. 13 is obtained for the qualification holder whose name is “Taro Tokkyo”, and a document such as the print image 62 shown in FIG. Each file will be created and printed. That is, a total of two document files are created and printed. In the print image 61, a character string 61a of “Patent Taro”, a character string 61b of “Abeno Osaka City Osaka ○○”, and image information 80a (Class 1...) Are embedded in the embedded regions 60a, 60b, 60c, and 60d, respectively. jpeg) and the text 61d (formatted text) indicated by the document file (Class1.doc) are printed. In addition,. doc is an extension of a word document of Microsoft Corporation, but a document file that can be applied here is not limited to a word document, and may be another document such as a text file (extension is txt). Even a file with the extension “txt” may have at least a “new line” format. Similarly, in the print image 62, a character string 62a of “printed Sanshiro”, a character string 62b of “Minato-ku ○ × Δ” of Tokyo, and image information 80b (Class 2) are embedded in the embedded regions 60a, 60b, 60c, and 60d, respectively. .Jpeg) and an image 62c indicated by the document file (Class2.doc) are printed.

次に、このような印刷を行う前の確認作業について、つまり本発明に係るプレビュー表示又はテスト印刷の他の例について、図15及び図16を併せて参照しながら説明する。図15は、図10のテンプレート文書ファイルに図9の文書作成システムで埋め込まれる画像情報の一例を示す図で、図16は、図10のテンプレート文書ファイルから図9の文書作成システムで図15の画像情報が埋め込まれて作成された、プレビュー表示用又はテスト印刷用の画像データの例を示す図である。   Next, a confirmation operation before such printing, that is, another example of preview display or test printing according to the present invention will be described with reference to FIGS. 15 and 16 together. 15 is a diagram showing an example of image information embedded in the template document file of FIG. 10 by the document creation system of FIG. 9, and FIG. 16 is a diagram of the template creation file of FIG. It is a figure which shows the example of the image data for a preview display or test printing produced by embedding image information.

印刷確認用サンプルのプレビュー表示又はテスト印刷がユーザ操作により選択されると、印刷アプリケーション10は、図5で説明したような問題の起こりやすい情報だけでなく、印刷領域の和集合を用いてプレビュー表示又はテスト印刷を実行する。ここで、プレビュー表示用画像の作成において必要であれば、印刷アプリケーション10は、プリンタドライバ16から用紙サイズに応じた印刷可能エリアの大きさなど、プリンタの能力情報を取得する。テンプレート文書ファイル60の埋込領域60a,60bについてはより長い印刷領域が必要な文字列のデータが選択されて埋め込まれる。   When the preview display of the print confirmation sample or the test print is selected by the user operation, the print application 10 displays the preview using the union of the print areas as well as the problem-prone information as illustrated in FIG. Or, test printing is executed. Here, if necessary in creating the preview display image, the print application 10 acquires printer capability information such as the size of the printable area corresponding to the paper size from the printer driver 16. In the embedding areas 60a and 60b of the template document file 60, character string data requiring a longer printing area is selected and embedded.

埋込領域60cについては、Class1.jpegの印刷領域とClass2.jpegの印刷領域との和集合の領域(印刷領域)が埋め込まれる。この和集合の印刷領域は、例えば図15の画像情報80cで示すような形状の領域となる。これは和集合の場合、どの情報を使用してプレビュー表示又はテスト印刷するかを判断しなければならず、且つ見栄えが悪くなるためであり、このような代替画像を用意しておくことが見栄えが良くなる。無論、処理が多くなることを無視すれば、代わりに、各セットについて全ての画像情報を重ねるような和集合を埋め込んでもよい。   For the buried region 60c, Class1. jpeg print area and Class2. The union area (print area) with the print area of jpeg is embedded. The print area of the union is an area having a shape as shown by image information 80c in FIG. This is because, in the case of a union set, it is necessary to determine which information is used for preview display or test printing, and the appearance is deteriorated. Will be better. Of course, if the increase in processing is ignored, a union that overlaps all image information for each set may be embedded instead.

埋込領域60dについては、フォント情報付きのテキスト情報であるClass1.docとClass2.docとについて、Class1.docとClass2.docとの印刷領域の和集合(和集合の印刷領域)が埋め込まれる。ここでは、図6でも上述したように、各文字列について矩形の画像で埋め込んでいる。これは和集合の場合、どの情報を使用してプレビュー表示又はテスト印刷するかを判断しなければならず、且つ見栄えが悪くなるためであり、このような代替画像を用意しておくことが見栄えが良くなる。無論、処理が多くなることを無視すれば、代わりに、各セットについて全てのテキスト情報(フォント情報付き)を重ねるような和集合を埋め込んでもよい。   For the embedding area 60d, Class 1. doc and Class2. doc, Class1. doc and Class2. The union of print areas with doc (the print area of union) is embedded. Here, as described above with reference to FIG. 6, each character string is embedded with a rectangular image. This is because, in the case of a union set, it is necessary to determine which information is used for preview display or test printing, and the appearance is deteriorated. Will be better. Of course, if ignoring the increase in processing, a union that overlaps all text information (with font information) for each set may be embedded instead.

このような結果として、プレビュー表示又はテスト印刷結果は図16に例示する画像データ63のようになる。画像データ63では、情報62a、情報61b、情報61c+情報62c、情報61d+62dがそれぞれ埋込領域63a、埋込領域63b、埋込領域63c、埋込領域63dに対応する位置に埋め込まれていることが分かる。このような画像データ63がプレビュー表示又はテスト印刷されることになる。また、jpeg画像を配置する領域は、テンプレート上に画像中心座標(x,y)が設定されているので、Class1.jpegの中心座標(x1,y1)、Class2.jpeg中心座標(x2,y2)をそれぞれテンプレートの中心座標(x,y)と一致させる処理を行うことで、図16のような画像データ63(プレビュー表示用又はテスト印刷用の画像のデータ)を得ることができる。   As a result, the preview display or test print result becomes the image data 63 illustrated in FIG. In the image data 63, information 62a, information 61b, information 61c + information 62c, and information 61d + 62d are embedded at positions corresponding to the embedded region 63a, embedded region 63b, embedded region 63c, and embedded region 63d, respectively. I understand. Such image data 63 is preview-displayed or test-printed. In addition, since the image center coordinates (x, y) are set on the template in the area where the jpeg image is arranged, Class1. jpeg center coordinates (x1, y1), Class2. The image data 63 (image data for preview display or test printing) as shown in FIG. 16 is obtained by performing processing for matching the jpeg center coordinates (x2, y2) with the center coordinates (x, y) of the template. Obtainable.

また、本発明は、図7のステップS3〜S9で例示したように、全ての文書ファイルについてのプレビュー表示又はテスト印刷を行う処理が可能なように構成してもよい。つまり、本発明では、印刷アプリケーション10上(又はプリンタドライバ16上)のUIで、全文書ファイルのプレビュー表示又はテスト印刷(若しくは、レイアウトプレビュー表示又はレイアウト印刷)の実行を選択すると、印刷アプリケーション10は従来通り、生成される全文書ファイルのプレビュー表示又はテスト印刷を実行するように構成されていることが好ましい。   Further, as exemplified in steps S3 to S9 in FIG. 7, the present invention may be configured so that processing for preview display or test printing for all document files is possible. In other words, according to the present invention, when execution of preview display or test printing (or layout preview display or layout printing) of all document files is selected with the UI on the printing application 10 (or the printer driver 16), the printing application 10 As is conventional, it is preferable to perform preview display or test printing of all generated document files.

このように、本発明に係るデータ作成方法は、上述した各例に係るデータ作成方法において、さらに、次に説明する全処理受付ステップ、全セット読出ステップ、及び全セット作成ステップを有することが好ましい。全処理受付ステップは、操作部が、複数セットの全て(作成される文書ファイル全て)について印刷前のプレビュー表示又はテスト印刷を行う全処理操作を受け付けるステップである。全セット読出ステップは、全処理受付ステップで全処理操作を受け付けた際に、データ読み取り部14(又はデータベース読み取り部17)が、上記複数セット(全てのセット)の情報を読み出すステップである。全セット作成ステップは、プレビュー表示制御部12又は印刷処理部13が、上記複数セットのそれぞれについてのプレビュー表示用又はテスト印刷用の画像データ群を作成するステップである。ここで、作成する画像データ群は、全セット読出ステップで読み出された情報、又は全セット読出ステップで読み出された情報を印刷する際に必要な印刷領域に対応した所定画像を、テンプレート文書ファイルの対応する埋込領域に埋め込んだ状態を示すデータ群である。つまり、各セットについて、プレビュー表示用又はテスト印刷用の画像データが作成される。   Thus, it is preferable that the data creation method according to the present invention further includes an all-process receiving step, an all-set reading step, and an all-set creating step described below in the data creation method according to each example described above. . The all process accepting step is a step in which the operation unit accepts all process operations for performing preview display before test or test printing for all of a plurality of sets (all created document files). The all set reading step is a step in which the data reading unit 14 (or the database reading unit 17) reads the information of the plurality of sets (all sets) when all processing operations are received in the all processing receiving step. The all set creation step is a step in which the preview display control unit 12 or the print processing unit 13 creates a preview display or test print image data group for each of the plurality of sets. Here, the image data group to be created is a template document that includes a predetermined image corresponding to a print area necessary for printing the information read in the all set reading step or the information read in the all set reading step. It is a data group indicating the state of being embedded in the corresponding embedded area of the file. That is, image data for preview display or test printing is created for each set.

無論、全ての文書ファイルだけではなく一部の文書ファイルもプレビュー表示又はテスト印刷の対象とするように構成することができる。つまり、全処理受付ステップ、全セット読出ステップ、及び全セット作成ステップの代わりに、次に説明する選択受付ステップ、選択読出ステップ、選択埋込ステップ、及び選択作成ステップを有するように構成してもよい。なお、特に詳述しないが、印刷前に、プリンタドライバ16上のUIで全ての文書ファイルに対するプレビュー表示又はテスト印刷を行うことが可能に構成されている場合も、プリンタドライバ16上のUIは印刷アプリケーション10から読み出される。   Of course, not only all the document files but also a part of the document files can be configured to be a target of preview display or test printing. In other words, instead of the all process receiving step, the all set reading step, and the all set creating step, a selection receiving step, a selection reading step, a selection embedding step, and a selection creating step, which will be described below, may be provided. Good. Although not specifically described in detail, the UI on the printer driver 16 is also printed even if the UI on the printer driver 16 is configured so that preview display or test printing can be performed on all document files before printing. Read from the application 10.

選択受付ステップは、操作部が、複数の情報のセットの中から1又は複数のセットを選択する選択操作を受け付けるステップである。選択読出ステップは、選択受付ステップで選択操作を受け付けた際に、データ読み取り部14(又はデータベース読み取り部17)が、複数セットの中から上記1又は複数のセットの情報を読み出すステップである。選択埋込ステップは、バリアブルデータ作成部15が、選択操作で選択されたセットのそれぞれについて、選択読出ステップで読み出された情報(又は選択読出ステップで読み出された情報を印刷する際に必要な印刷領域に対応した所定画像、つまり読み出した情報の代替画像)を、テンプレート文書ファイルの対応する各埋込領域に埋め込んでプレビュー表示用又はテスト印刷用の文書ファイルを作成する選択埋込ステップである。選択作成ステップは、プレビュー表示制御部12又は印刷処理部13が、選択埋込ステップによる埋込で作成されたプレビュー表示用又はテスト印刷用の文書ファイルについて、プレビュー表示又はテスト印刷のための画像データを作成するステップである。ここでも、各セットについて、まず埋込処理を行ってプレビュー表示用又はテスト印刷用の文書ファイルを作成してから画像データを作成する例を挙げているが、代わりに、文書ファイルの作成を経ずにプレビュー表示制御部12又は印刷処理部13が直接、同様の画像データを作成してもよい。   The selection receiving step is a step in which the operation unit receives a selection operation for selecting one or a plurality of sets from a plurality of sets of information. The selection reading step is a step in which the data reading unit 14 (or the database reading unit 17) reads the information of the one or more sets from the plurality of sets when the selection operation is received in the selection receiving step. The selective embedding step is necessary when the variable data creating unit 15 prints the information read in the selective reading step (or the information read in the selective reading step) for each of the sets selected by the selection operation. A predetermined embedding step for embedding a predetermined image corresponding to a print area, that is, an alternative image of the read information) in each corresponding embedding area of the template document file to create a document file for preview display or test printing. is there. In the selection creation step, the preview display control unit 12 or the print processing unit 13 uses the image data for preview display or test printing for the preview display or test print document file created by embedding in the selection embedding step. It is a step to create. In this example as well, an example is given in which image data is created after embedding processing is first performed for each set and a document file for preview display or test printing is created. Instead, a document file is created. Instead, the preview display control unit 12 or the print processing unit 13 may directly create similar image data.

ここで、上述したように全ての文書ファイルのプレビュー表示又はテスト印刷を行う処理が容易に可能なように、選択受付ステップでは、「全てのセット」を容易な操作(例えば1つのボタン)で選択できるようにしておくことが好ましい。これにより、ユーザは、容易に全てのセットのプレビュー又は試し刷りを行うことができる。   Here, as described above, in the selection accepting step, “all sets” is selected by an easy operation (for example, one button) so that preview processing or test printing of all document files can be easily performed. It is preferable to be able to do so. As a result, the user can easily preview or test print all sets.

また、この構成では、特に図7のステップS5の判定及びその判定後の処理について説明したように、本発明のプレビュー表示又はテスト印刷との選択も可能としておけばよい。つまり、上述した全処理受付ステップ、全セット読出ステップ、及び全セット作成ステップ(若しくは選択受付ステップ、選択読出ステップ、選択埋込ステップ、及び選択作成ステップ)で画像データ群を作成させる処理(以下、便宜上、第2処理と呼ぶ)を含む方法では、この第2処理を実行するモードと、上述した受付ステップ、読出ステップ、及び作成ステップで画像データを作成させるモード(第1処理モードと呼ぶ)とを切り替える切替操作を、操作部が受け付ける切替ステップを有することが好ましい。これにより、場合によってこの2種類のプレビュー表示やテスト印刷の画像データ作成方法を容易に切り替えることや、管理者が事前に設定するなどすることができる。例えば切替ステップにより、第1処理モードに関する上記受付ステップと第2処理モードに関する上記全処理受付ステップ(若しくは上記選択受付ステップ)との間で受付可能なボタンが切り替わるようにしておけばよい。   Further, in this configuration, as described in particular with respect to the determination in step S5 in FIG. 7 and the processing after the determination, it is only necessary to be able to select preview display or test printing according to the present invention. That is, the process (hereinafter, referred to as “image data group creation”) in the above-described all process accepting step, all set reading step, and all set creating step (or selection accepting step, selective reading step, selective embedding step, and selective creating step). In the method including the second process for convenience, a mode in which the second process is executed and a mode in which image data is created in the reception step, the reading step, and the creation step described above (referred to as a first process mode). It is preferable to have a switching step in which the operation unit accepts a switching operation for switching between. As a result, the two types of preview display and test print image data creation methods can be easily switched in some cases, or the administrator can set in advance. For example, the button that can be accepted may be switched between the accepting step relating to the first processing mode and the all accepting step relating to the second processing mode (or the selection accepting step) by the switching step.

以上説明したように、本発明に係るデータ作成方法では、生成される文書ファイルのうち、最も問題の発生し易い、すなわち最も多くの印刷領域を必要とするデータを用いてプレビュー表示又はテスト印刷を行う。例えば、ダイレクトメールにデータベース上の顧客の名前と住所を次々に埋め込んで印刷を行う場合に、最も長い名前と、最も長い住所とを組み合わせたデータを用いてプレビュー表示を行う。但し、この場合、長さだけを基に名前と住所を選んでいるため、名前と住所の対応関係は失われる。文字が印刷領域からはみ出して切れてしまったり、他の文字や画像と重なってしまう問題はよく見られるが、プレビュー表示又はテスト印刷の時に、最も長い印刷領域を要する文字列を用いておけば、この組み合わせで文字の切れや重なりが発生しなければ、問題は発生しない可能性が高い。   As described above, in the data creation method according to the present invention, preview display or test printing is performed using data that is most likely to cause a problem among generated document files, that is, that requires the most printing area. Do. For example, when printing by embedding customer names and addresses on the database one after another in direct mail, preview display is performed using data combining the longest name and the longest address. However, in this case, since the name and address are selected based only on the length, the correspondence between the name and address is lost. There are many problems that characters are cut off from the print area or overlapped with other characters and images, but if you use a character string that requires the longest print area at the time of preview display or test print, If there are no cuts or overlaps of characters in this combination, there is a high possibility that no problem will occur.

また、本発明は上述したように様々な応用例も採用できる。例えば、文字の形状や空白文字による影響を排除できるよう、必要に応じて、文字の代わりに文字サイズと合わせた大きさの矩形などを用いてもよい。また、プロポーショナルフォントなど文字幅が一定でないフォントや画像ファイルを埋め込む必要がある場合でも、印刷に必要な領域のサイズを求めることは可能であり、最も大きな印刷領域を必要とする組み合わせ、若しくは印刷領域の和集合を取って、他の部分と重なったり、切れたりする可能性のある印刷領域を例えば矩形を使って表現してプレビュー表示又はテスト印刷することによって、ユーザは文字の切れ、重なり、その他判読上の問題が発生することを知ることができる。本発明における方法を適切に用いれば、全部をプレビュー表示しなくとも、通常は1部、複数のテンプレートを組み合わせるなどの特殊なケースでも印刷する文書ファイル全体よりは少ない部数のみプレビュー表示又はテスト印刷をすればよいことになる。また、部数が十分少なければ、テスト印刷を行うことも可能となる。そのため、ユーザは1部、若しくは少ない部数のプレビュー表示をチェックすればよいため、ユーザの負担が減少する。   In addition, as described above, the present invention can employ various application examples. For example, a rectangle having a size combined with the character size may be used instead of the character, if necessary, so as to eliminate the influence of the character shape and the blank character. Even if it is necessary to embed a font or image file that does not have a fixed character width, such as proportional fonts, it is possible to determine the size of the area required for printing, and the combination or print area that requires the largest print area. By taking a union of, and expressing the print area that may overlap or cut off with other parts using, for example, a rectangle, preview or test print, the user can cut off characters, overlap, etc. You can know that there are problems with reading. If the method according to the present invention is used appropriately, preview display or test printing is performed only for a smaller number of copies than the entire document file to be printed, even in a special case such as combining one template or a plurality of templates, even if not displaying all previews. You can do it. Further, if the number of copies is sufficiently small, it is possible to perform test printing. For this reason, the user only has to check the preview display of one copy or a small number of copies, which reduces the burden on the user.

以上、本発明に係るデータ作成方法について説明したが、このデータ作成方法を文書作成システムで実行するように説明したように、本発明は、文書作成システムにおけるデータ作成システムとしての形態も採用できる。再度、図1を参照しながら簡単に説明する。本発明に係るデータ作成システムは、作成される文書ファイルについて共通の、印刷前のプレビュー表示又はテスト印刷を行う操作を受け付ける操作部と、操作部でその操作を受け付けた際に、上記複数セットについて種類毎に情報を読み出すデータ読み取り部14と、1つのプレビュー表示用又はテスト印刷用の画像データを作成するプレビュー表示制御部12又は印刷処理部13と、を有する。プレビュー表示制御部12又は印刷処理部13で作成する画像データは、種類毎に、データ読み取り部14で読み出された情報を印刷する際に必要な印刷領域の和集合を算出してその和集合を示す情報をテンプレート文書ファイルの対応する埋込領域に埋め込んだ状態を示すデータである。その他の応用例については、データ作成方法として説明した通りであり、その説明を省略する。   The data creation method according to the present invention has been described above. As described above, this data creation method is executed by the document creation system, but the present invention can also adopt a form as a data creation system in the document creation system. Again, a brief description will be given with reference to FIG. The data creation system according to the present invention includes a common operation unit that accepts an operation for performing a preview display before printing or a test print for a document file to be created, and the plurality of sets when the operation unit accepts the operation. A data reading unit 14 that reads information for each type, and a preview display control unit 12 or a print processing unit 13 that creates one image data for preview display or test printing are provided. For the image data created by the preview display control unit 12 or the print processing unit 13, for each type, a union of print areas necessary for printing information read by the data reading unit 14 is calculated and the union is calculated. Is data indicating a state in which information indicating is embedded in a corresponding embedding area of the template document file. Other application examples are the same as those described as the data creation method, and a description thereof will be omitted.

1…PC、2…データベースサーバ、3…印刷装置、4…記憶装置、10…印刷アプリケーション、11…テンプレート読み込み部、12…プレビュー表示制御部、13…印刷処理部、14…データ読み取り部、15…バリアブルデータ作成部、16…プリンタドライバ、17…データベース読み取り部、20…バリアブルデータテーブル。 DESCRIPTION OF SYMBOLS 1 ... PC, 2 ... Database server, 3 ... Printing apparatus, 4 ... Memory | storage device, 10 ... Print application, 11 ... Template reading part, 12 ... Preview display control part, 13 ... Print processing part, 14 ... Data reading part, 15 ... variable data creation unit, 16 ... printer driver, 17 ... database reading unit, 20 ... variable data table.

Claims (11)

埋め込まれる情報によって印刷サイズが変わる埋込領域を1つ以上有するテンプレート文書ファイルから複数の文書ファイルを作成し、印刷を行う文書作成システムにおいて、作成する文書ファイルについての、印刷前のプレビュー表示又はテスト印刷のための画像データを作成するデータ作成方法であって、
前記文書作成システムは、1つの文書ファイルにつき、各埋込領域のそれぞれに対応づけられた種類の情報を各埋込領域に埋め込んで作成を行い、且つ各種類の情報でなるセットを複数セット分に対応させることで前記複数の文書ファイルを作成し、
前記データ作成方法は、
操作部が、作成される文書ファイルについて共通の、印刷前のプレビュー表示又はテスト印刷を行う操作を受け付ける受付ステップと、
該受付ステップで前記操作を受け付けた際に、データ読み取り部が、前記複数セットについて種類毎に情報を読み出す読出ステップと、
プレビュー表示制御部又は印刷処理部が、1つのプレビュー表示用又はテスト印刷用の画像データを作成する作成ステップと、
を有し、
前記作成ステップで作成する前記画像データは、前記種類毎に、前記読出ステップで読み出された情報を印刷する際に必要な印刷領域の和集合を算出して該和集合を示す情報を前記テンプレート文書ファイルの対応する埋込領域に埋め込んだ状態を示すデータであることを特徴とするデータ作成方法。
In a document creation system that creates and prints multiple document files from a template document file that has one or more embedding areas whose print size changes depending on the information to be embedded, a preview display or test before printing of the created document file A data creation method for creating image data for printing,
The document creation system creates a document file by embedding information of a type associated with each embedding area in each embedding area, and sets a set of each type of information for a plurality of sets. To create a plurality of document files,
The data creation method is:
An accepting step for accepting an operation for performing a preview display before printing or a test print, which is common to the created document files;
When receiving the operation in the receiving step, the data reading unit reads information for each type of the plurality of sets;
A creation step in which the preview display control unit or the print processing unit creates image data for one preview display or test printing;
Have
The image data created in the creating step calculates, for each type, a union of print areas necessary for printing the information read out in the reading step, and displays information indicating the union as the template. A data creation method characterized by being data indicating a state of being embedded in a corresponding embedded area of a document file.
請求項1に記載のデータ作成方法において、
前記埋込領域に埋め込まれる情報は、少なくとも1種類で、フォント情報を含まないか又は等幅フォントが指定されたテキスト情報を含み、
該フォント情報を含まないか又は等幅フォントが指定されたテキスト情報について、前記作成ステップは、前記種類毎に、前記読出ステップで読み出されたテキスト情報から印刷する際に最も長い印刷領域が必要なテキスト情報を抽出する抽出ステップを有し、前記作成ステップで作成する前記画像データは、前記種類毎に、前記抽出ステップで抽出された最も長い印刷領域を前記和集合として算出して、前記和集合を示す情報として該最も長い印刷領域が必要なテキスト情報を、対応する埋込領域に埋め込んだ状態を示すデータであることを特徴とするデータ作成方法。
The data creation method according to claim 1,
The information embedded in the embedding area is at least one type and does not include font information or includes text information in which a monospaced font is designated,
For text information that does not include the font information or for which a monospaced font is designated, the creation step requires the longest print area for printing from the text information read in the reading step for each type. The image data created in the creating step calculates, for each type, the longest print area extracted in the extracting step as the union set, and A data creation method characterized in that text information that requires the longest print area as information indicating a set is data indicating a state in which the text information is embedded in a corresponding embedded area.
請求項2に記載のデータ作成方法において、前記フォント情報を含まないか又は等幅フォントが指定されたテキスト情報について、前記作成ステップで作成する前記画像データは、前記種類毎に、前記和集合を示す情報として、前記最も長い印刷領域が必要なテキスト情報に対応した長さの所定文字列又は所定図形の画像、若しくは前記最も長い印刷領域が必要なテキスト情報に対応した長さより長い所定文字列又は所定図形の画像を、対応する埋込領域に埋め込んだ状態を示すデータであることを特徴とするデータ作成方法。   3. The data creation method according to claim 2, wherein the image data created in the creation step for the text information not including the font information or designating a monospaced font includes the union for each type. As the information to be shown, a predetermined character string or an image of a predetermined figure corresponding to the text information that requires the longest print area, or a predetermined character string longer than the length corresponding to the text information that requires the longest print area, or A data creation method characterized by being data indicating a state in which an image of a predetermined figure is embedded in a corresponding embedded region. 請求項2又は3に記載のデータ作成方法において、前記フォント情報を含まないか又は等幅フォントが指定されたテキスト情報について、前記抽出ステップは、前記最も長い印刷領域を、前記テキスト情報の文字列のバイト数に基づいて、若しくは前記テキスト情報の文字列における、埋込領域への埋込時の各文字の横幅と間隔の合計長さに基づいて、抽出することを特徴とするデータ作成方法。   4. The data creation method according to claim 2, wherein for the text information that does not include the font information or for which a monospaced font is designated, the extraction step uses the longest print area as a character string of the text information. The data generation method is characterized in that extraction is performed based on the number of bytes of the character information or based on the total length of the width and spacing of each character at the time of embedding in the embedding area in the character string of the text information. 請求項1〜4のいずれか1項に記載のデータ作成方法において、
前記埋込領域に埋め込まれる情報は、少なくとも1種類で数値情報を含み、
該数値情報について、前記作成ステップは、前記種類毎に、前記読出ステップで読み出された数値情報を対応する埋込領域で規定される数値表現の文字列に変換して印刷する際に最も長い印刷領域が必要な数値情報を抽出する抽出ステップを有し、前記作成ステップで作成する前記画像データは、前記種類毎に、前記抽出ステップで抽出された最も長い印刷領域を前記和集合として算出して、前記和集合を示す情報として前記数値情報を前記数値表現の文字列に変換した情報を、対応する埋込領域に埋め込んだ状態を示すデータであることを特徴とするデータ作成方法。
In the data creation method of any one of Claims 1-4,
Information embedded in the embedded region includes at least one kind of numerical information,
For the numerical information, the creation step is the longest when the numerical information read in the reading step is converted into a character string of numerical expression defined in the corresponding embedding area and printed for each type. An extraction step for extracting numerical information that requires a print area, and the image data created in the creation step calculates, for each type, the longest print area extracted in the extraction step as the union. The data creation method is characterized in that it is data indicating a state in which information obtained by converting the numerical information as information indicating the union into a character string of the numerical expression is embedded in a corresponding embedded area.
請求項5に記載のデータ作成方法において、前記数値情報について、前記抽出ステップは、前記最も長い印刷領域を、前記数値情報を前記数値表現の文字列に変換した情報の文字列のバイト数に基づいて、若しくは前記変換した情報の文字列における、埋込領域への埋込時の各文字の横幅と間隔の合計長さに基づいて、抽出することを特徴とするデータ作成方法。   6. The data creation method according to claim 5, wherein, for the numerical information, the extracting step is based on the number of bytes of a character string of information obtained by converting the numerical information into a character string of the numerical expression. Or, based on the total length of the width and spacing of each character at the time of embedding in the embedding area in the character string of the converted information. 請求項1〜6のいずれか1項に記載のデータ作成方法において、
前記埋込領域に埋め込まれる情報は、少なくとも1種類で、フォント情報が付いた文字情報を含み、
該フォント情報が付いた文字情報について、前記作成ステップで作成する前記画像データは、前記種類毎に、前記和集合が示す情報として前記和集合を占有する所定画像又は該和集合を含む領域を占有する所定画像を、対応する埋込領域に埋め込んだ状態を示すデータであることを特徴とするデータ作成方法。
In the data creation method of any one of Claims 1-6,
The information embedded in the embedded region includes at least one type of character information with font information,
For the character information with the font information, the image data created in the creating step occupies a predetermined image that occupies the union or an area including the union as information indicated by the union for each type. A data creation method characterized by being data indicating a state in which a predetermined image to be embedded is embedded in a corresponding embedded region.
請求項1〜7のいずれか1項に記載のデータ作成方法において、
前記埋込領域に埋め込まれる情報は、少なくとも1種類で画像情報を含み、
該画像情報について、前記作成ステップで作成する前記画像データは、前記種類毎に、前記和集合が示す情報として前記和集合を占有する所定画像又は該和集合を含む領域を占有する所定画像を、対応する埋込領域に埋め込んだ状態を示すデータであることを特徴とするデータ作成方法。
In the data preparation method of any one of Claims 1-7,
The information embedded in the embedded region includes at least one type of image information,
For the image information, the image data created in the creating step is, for each type, a predetermined image that occupies the union or an area that includes the union as information indicated by the union, A data creation method, which is data indicating a state of being embedded in a corresponding embedded region.
請求項1〜8のいずれか1項に記載のデータ作成方法において、さらに、
前記操作部が、前記複数セットの全てについて印刷前のプレビュー表示又はテスト印刷を行う全処理操作を受け付ける全処理受付ステップと、
該全処理受付ステップで前記全処理操作を受け付けた際に、前記データ読み取り部が、前記複数セットの情報を読み出す全セット読出ステップと、
前記プレビュー表示制御部又は前記印刷処理部が、前記複数セットのそれぞれについてのプレビュー表示用又はテスト印刷用の画像データ群を作成する全セット作成ステップと、
を有し、
前記全セット作成ステップで作成する前記画像データ群は、前記全セット読出ステップで読み出された情報、又は前記全セット読出ステップで読み出された情報を印刷する際に必要な印刷領域に対応した所定画像を、前記テンプレート文書ファイルの対応する埋込領域に埋め込んだ状態を示すデータ群であることを特徴とするデータ作成方法。
In the data creation method according to any one of claims 1 to 8,
An all process accepting step for accepting all process operations for preview display before test or test printing for all of the plurality of sets;
When the all process operation is accepted in the all process accepting step, the data reading unit reads all the sets of information, and an all set reading step;
The preview display control unit or the print processing unit creates all sets for creating a preview display or test print image data group for each of the plurality of sets;
Have
The image data group created in the all set creation step corresponds to a print area necessary for printing the information read in the all set read step or the information read in the all set read step. A data creation method characterized by being a data group indicating a state in which a predetermined image is embedded in a corresponding embedding area of the template document file.
請求項9に記載のデータ作成方法において、さらに、
前記操作部が、前記受付ステップ、前記読出ステップ、及び前記作成ステップで前記画像データを作成させる第1処理モードと、前記全処理受付ステップ、前記全セット読出ステップ、及び全セット作成ステップで前記画像データ群を作成させる第2処理モードとを切り替える切替操作を受け付ける切替ステップを有することを特徴とするデータ作成方法。
The data creation method according to claim 9, further comprising:
A first processing mode in which the operation unit creates the image data in the receiving step, the reading step, and the creating step; and the image in the all process accepting step, the all set reading step, and the all set creating step. A data creation method comprising a switching step of accepting a switching operation for switching between a second processing mode for creating a data group.
埋め込まれる情報によって印刷サイズが変わる埋込領域を1つ以上有するテンプレート文書ファイルから複数の文書ファイルを作成し、印刷を行う文書作成システムにおける、データ作成システムであって、
前記文書作成システムは、1つの文書ファイルにつき、各埋込領域のそれぞれに対応づけられた種類の情報を各埋込領域に埋め込んで作成を行い、且つ各種類の情報でなるセットを複数セット分に対応させることで前記複数の文書ファイルを作成し、
前記データ作成システムは、
作成される文書ファイルについて共通の、印刷前のプレビュー表示又はテスト印刷を行う操作を受け付ける操作部と、
該操作部で前記操作を受け付けた際に、前記複数セットについて種類毎に情報を読み出すデータ読み取り部と、
1つのプレビュー表示用又はテスト印刷用の画像データを作成するプレビュー表示制御部又は印刷処理部と、
を有し、
前記プレビュー表示制御部又は印刷処理部で作成する前記画像データは、前記種類毎に、前記データ読み取り部で読み出された情報を印刷する際に必要な印刷領域の和集合を算出して該和集合を示す情報を前記テンプレート文書ファイルの対応する埋込領域に埋め込んだ状態を示すデータであることを特徴とするデータ作成システム。
A data creation system in a document creation system for creating and printing a plurality of document files from a template document file having one or more embedding areas whose print size changes depending on the embedded information,
The document creation system creates a document file by embedding information of a type associated with each embedding area in each embedding area, and sets a set of each type of information for a plurality of sets. To create a plurality of document files,
The data creation system includes:
An operation unit that accepts an operation for performing a preview display before printing or a test print, which is common to the created document files;
A data reading unit that reads information for each type of the plurality of sets when the operation unit accepts the operation;
A preview display control unit or a print processing unit that creates image data for one preview display or test printing;
Have
The image data created by the preview display control unit or the print processing unit calculates, for each type, a union of print areas necessary for printing information read by the data reading unit, and calculates the sum. A data creation system, characterized in that it is data indicating a state in which information indicating a set is embedded in a corresponding embedded area of the template document file.
JP2010117949A 2010-05-24 2010-05-24 Data creation method and data creation system Pending JP2011248421A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2010117949A JP2011248421A (en) 2010-05-24 2010-05-24 Data creation method and data creation system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2010117949A JP2011248421A (en) 2010-05-24 2010-05-24 Data creation method and data creation system

Publications (1)

Publication Number Publication Date
JP2011248421A true JP2011248421A (en) 2011-12-08

Family

ID=45413645

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2010117949A Pending JP2011248421A (en) 2010-05-24 2010-05-24 Data creation method and data creation system

Country Status (1)

Country Link
JP (1) JP2011248421A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2014050175A1 (en) * 2012-09-28 2014-04-03 大日本スクリーン製造株式会社 Print data processing device, print data processing method and print data processing program
JP2014119884A (en) * 2012-12-14 2014-06-30 Canon Inc Information processing apparatus, information processing method, and program

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005122727A (en) * 2003-10-15 2005-05-12 Canon Inc Selective preview and proofing of documents or layouts containing variable data
JP2006244276A (en) * 2005-03-04 2006-09-14 Canon Inc Layout control apparatus, layout control method, and layout control program
JP2008310525A (en) * 2007-06-13 2008-12-25 Canon Inc Information processing apparatus, information processing method, and information processing program

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005122727A (en) * 2003-10-15 2005-05-12 Canon Inc Selective preview and proofing of documents or layouts containing variable data
JP2006244276A (en) * 2005-03-04 2006-09-14 Canon Inc Layout control apparatus, layout control method, and layout control program
JP2008310525A (en) * 2007-06-13 2008-12-25 Canon Inc Information processing apparatus, information processing method, and information processing program

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2014050175A1 (en) * 2012-09-28 2014-04-03 大日本スクリーン製造株式会社 Print data processing device, print data processing method and print data processing program
JP2014071623A (en) * 2012-09-28 2014-04-21 Dainippon Screen Mfg Co Ltd Print data processing device, print data processing method and print data processing program
JP2014119884A (en) * 2012-12-14 2014-06-30 Canon Inc Information processing apparatus, information processing method, and program

Similar Documents

Publication Publication Date Title
US7363580B2 (en) Intermediate address table for converting position information to an address of a link structure correlated information file on a hypertext document
JP5187057B2 (en) Layout printing system, layout document browsing method, and program
AU2001238026A1 (en) Imaging documents having static content and variable data
JP2011248421A (en) Data creation method and data creation system
JP5645481B2 (en) Apparatus, method, and program
JP2003132078A (en) Database construction apparatus, database construction method, database construction program, recording medium
JP7346760B1 (en) Information processing device, data linkage method, and data linkage program
JP2005184261A (en) Color correction device
JPH0346020A (en) Document processing system
JP4147763B2 (en) Database construction apparatus, database construction method, database construction program, recording medium
JP5063207B2 (en) Color conversion processing apparatus, method, recording medium, and program
JP5600960B2 (en) Host computer, print data generation method and program
JP4192457B2 (en) Database construction apparatus, database construction method, database construction program, recording medium
JP2009101662A (en) Print processing device
JP2008251023A (en) Database construction apparatus, database construction method, database construction program, recording medium
JP3754655B2 (en) Automatic program specification generation system
JP2005141463A (en) Method of inputting data, data input support information input device, and data input device
JP6206835B2 (en) Electronic book data creation method and markup language data creation method
JP2006085584A (en) Image forming method and image forming apparatus
JPH0764981A (en) Document processor
JP2008257739A (en) Database construction apparatus, database construction method, database construction program, recording medium
JPH04130973A (en) Data registering system for electronic filing
JP2009223748A (en) Information processor and program
JPH10324039A (en) Method for changing print format interactively, and printer emulator
JP2007087189A (en) Translation device and program

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20130401

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20140115

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20140121

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20140701