JPH0384680A - Document preparing device - Google Patents

Document preparing device

Info

Publication number
JPH0384680A
JPH0384680A JP1222551A JP22255189A JPH0384680A JP H0384680 A JPH0384680 A JP H0384680A JP 1222551 A JP1222551 A JP 1222551A JP 22255189 A JP22255189 A JP 22255189A JP H0384680 A JPH0384680 A JP H0384680A
Authority
JP
Japan
Prior art keywords
coordinate
transformation
image
images
value
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.)
Granted
Application number
JP1222551A
Other languages
Japanese (ja)
Other versions
JP2887807B2 (en
Inventor
Tsutomu Watanabe
勉 渡辺
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.)
Fujifilm Business Innovation Corp
Original Assignee
Fuji Xerox Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Fuji Xerox Co Ltd filed Critical Fuji Xerox Co Ltd
Priority to JP1222551A priority Critical patent/JP2887807B2/en
Publication of JPH0384680A publication Critical patent/JPH0384680A/en
Application granted granted Critical
Publication of JP2887807B2 publication Critical patent/JP2887807B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Controls And Circuits For Display Device (AREA)
  • Processing Or Creating Images (AREA)
  • Image Processing (AREA)
  • Document Processing Apparatus (AREA)

Abstract

PURPOSE:To prevent the generation of a boundary line between adjacent images when these images are inverted by applying the coordinate transformation to the right-left coordinate value and the upper-lower coordinate value of an image area based on the different expressions of transformation. CONSTITUTION:A coordinate transformation means 8 applies the coordinate transformation to the coordinate values of the right, left, upper and lower sides forming an image area with use of different expressions of transformation respectively. When an area to be inverted is specified by the means 8, a CPU 7 calls a program out of a memory device 6 to invert an image and computes the data on the corresponding image area to invert the image. As a result, a boundary line is never produced between the adjacent images when these images are inverted.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 この発明は、デイスプレィ画面上に文字又は図形を表示
する機能を具えた文書作成装置に関する。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a document creation device having a function of displaying characters or figures on a display screen.

〔従来の技術〕[Conventional technology]

従来より、印刷される文字又は図形等のイメージが画面
上に表示され、使用者がこれらのイメージを見ながら文
書を作成することができる文書作成装置が知られている
。この種の文書作成装置においては、文書作成を行う際
、画面上に表示された文字や図形の表示倍率を変えるこ
とが操作上有効な場合がある。例えば、画面上に用紙イ
メージが全て表示しきれないときに縮小して表示したり
、詳細な図形を描くために拡大して表示する場合などで
ある。この場合、文字の大きさや紙の大きさなどに関す
るデータは装置内に保持されるが、データの単位として
は、その表示機器の単位や、表示するフォントに用いら
れている単位が使用されている。しかし、一般に、表示
機器の画面のドツト密度はプリンタ等の印刷機器に比べ
て粗いので、文書に対する処理によっては、表示機器上
で対応できない場合がある。例えば、行ピッチや文字間
隔等の細かい調整は、画面上で対応させることが難しく
、印刷物として出力すると見栄えが悪くなる場合があっ
たるそこで、データの単位を表示機器や印刷機器に依存
しない単位で持つようにした文書作成装置が考えられて
いる。
2. Description of the Related Art Conventionally, document creation devices have been known in which images of characters or figures to be printed are displayed on a screen, and a user can create a document while viewing these images. In this type of document creation device, when creating a document, it may be operationally effective to change the display magnification of characters and figures displayed on the screen. For example, when the paper image cannot be completely displayed on the screen, it may be displayed in a reduced size, or it may be enlarged and displayed in order to draw a detailed figure. In this case, data regarding font size, paper size, etc. is held within the device, but the data units are the units of the display device or the units used for the displayed font. . However, in general, the dot density of the screen of a display device is coarser than that of a printing device such as a printer, and therefore, depending on the processing performed on the document, the display device may not be able to handle the dot density. For example, fine adjustments such as line pitch and character spacing are difficult to make on the screen, and may look bad when printed out. Therefore, the unit of data is changed to a unit that does not depend on the display device or printing device. A document creation device that is equipped with a computer is being considered.

このような文書作成装置においては、あらかしめ装置内
部の最少単位(以下、内部単位という)と、表示機器の
最少単位(以下、外部単位という)を設定しておき、後
述するような変換式によって、内部単位から外部単位へ
変換する処理を行っている。
In such a document creation device, the minimum unit inside the arranging device (hereinafter referred to as internal unit) and the minimum unit of the display device (hereinafter referred to as external unit) are set and converted using the conversion formula described later. , is performing the process of converting from internal units to external units.

例えば、装置内部の最少単位を1/100ミリ、表示機
器の最少単位を1/10とした場合、内部単位を外部単
位に変換する式は、 外部単位−内部単位/10 ・・・式(1)(少数点以
下は四捨五入) となる。したがって、内部単位で100mmの長さを外
部単位に変換すると、100/10−10cmとなる。
For example, if the minimum unit inside the device is 1/100 mm and the minimum unit of the display device is 1/10, the formula for converting the internal unit to the external unit is: External unit - Internal unit / 10 ... Formula (1 ) (rounded to the nearest whole number). Therefore, when converting a length of 100 mm in internal units to external units, it becomes 100/10-10 cm.

〔発明が解決しようとする課題〕[Problem to be solved by the invention]

しかしながら、縮小して表示された画面上の文字や図形
に対して、更に反転処理を行った場合、次のような不都
合を生じることがあった。
However, when further inversion processing is performed on characters and figures displayed in a reduced size on a screen, the following problems may occur.

第3図は、画面上に表示されるイメージの座標系を示す
説明図である。ここでは、幅が100内部車位の文字A
を横に2つ並べた例について説明する。第3図において
、1文字目の文字AのX座標値は、左側が1001右側
が199であり、2文字目の文字AのX座標値は、左側
が200、右側が299である。このとき、1文字目を
反転するために上述の式(1)を使って座標変換を行う
と、X座標値は左側が10、右側が20となる。
FIG. 3 is an explanatory diagram showing the coordinate system of the image displayed on the screen. Here, the character A with a width of 100 internal positions
An example in which two are arranged horizontally will be explained. In FIG. 3, the X coordinate values of the first character A are 1000 on the left and 199 on the right, and the X coordinate values of the second character A are 200 on the left and 299 on the right. At this time, when coordinate transformation is performed using the above equation (1) in order to invert the first character, the X coordinate value becomes 10 on the left side and 20 on the right side.

同様に、2文字目のX座標値は左側が20、右側が30
となる。文字Aの反転は、X軸、y軸の各座標値によっ
て囲まれた領域について行われるため、2つの文字が順
に反転されると、X座標値の20の部分が重複して指定
され、この部分だけが2度反転されることになる。した
がって、20の部分だけが結果的に反転されないことに
なり、文字間に境界線が生じてしまうという問題点があ
った。この例では、少数点以下の数値を四捨五入してい
るが、少数点以下を切捨てても、あるいは切上げても同
様の結果となる。例えば、1文字目の文字Aの右側の座
標値が200で、2文字目の文字Aの左側の座標値が2
01であるときは、少数点以下の数値を切捨てても、同
じ値(20)となってしまう。なお、上/下側のy軸方
向の座標については説明を簡単にするため省略するが、
文字が縦に配列されているときは、同様に文字間に境界
線が生じることになる。
Similarly, the X coordinate value of the second character is 20 on the left and 30 on the right.
becomes. Since the reversal of the character A is performed on the area surrounded by each coordinate value of the Only the portion will be flipped twice. Therefore, only the part 20 is not inverted as a result, and there is a problem in that a boundary line is created between characters. In this example, the numbers below the decimal point are rounded off, but the same result will be obtained even if the numbers below the decimal point are rounded down or rounded up. For example, the coordinate value on the right side of the first character A is 200, and the coordinate value on the left side of the second character A is 200.
If it is 01, even if the decimal point is rounded down, the same value (20) will be obtained. Note that the coordinates in the upper/lower y-axis direction are omitted to simplify the explanation, but
Similarly, when characters are arranged vertically, there will be borders between the characters.

この発明は、反転処理を行った際に、隣り合うイメージ
間に境界線を生じることのない文書作成装置を提供する
ことを目的とする。
SUMMARY OF THE INVENTION An object of the present invention is to provide a document creation device that does not create boundaries between adjacent images when performing reversal processing.

〔課題を解決するための手段〕[Means to solve the problem]

上述した課題を解決するため、この発明に係わる文書作
成装置では、左右又は上下に隣り合って表示された文字
や図形等のイメージについて反転処理を行う場合に、各
イメージ領域の右側と左側、並びに上側と下側の座標値
について、それぞれ異なる変換式を適用し、各変換式に
基づいて座標の変換を行う座標変換手段を設けて・いる
In order to solve the above-mentioned problems, in the document creation device according to the present invention, when performing reversal processing on images such as characters and figures displayed side by side horizontally or vertically, the right side and left side of each image area, as well as the A coordinate conversion means is provided which applies different conversion formulas to the upper and lower coordinate values and converts the coordinates based on each conversion formula.

〔作用〕[Effect]

隣り合せに配置されたイメージの填界部においては、そ
れぞれ異なる変換式が適用されるが、具体的には、イメ
ージのいづれか一方の側の座標値については従来通りの
変換式を適用し、他方の側の座標値については、異なる
変換式を適用する。
Different transformation formulas are applied to the filling areas of images placed next to each other, but specifically, the conventional transformation formula is applied to the coordinate values on one side of the image, and the transformation formula is applied on the other side. For the coordinate values on the side, a different conversion formula is applied.

例えば、第3図において、文字Aの左側の座標値の変換
式を従来通りの式(1)とし、右側の座標値の変換式を
、 外部単位−((内部単位+1)/10)−1(少数点以
下は四捨五入) とすれば、文字Aの右側の内部座標は、((内部単位+
1)/10)によって、2文字目の文字Aの左側に隣接
しうる一番近い値に変換され、その後、−1の操作によ
って、右側に隣接しうる一番近い値に変換される。
For example, in Figure 3, the conversion formula for the left side coordinate value of character A is the conventional formula (1), and the conversion formula for the right side coordinate value is: External unit - ((Internal unit + 1) / 10) - 1 (Round off to the nearest whole number.) Then, the internal coordinates on the right side of character A are ((internal unit +
1)/10), the second character A is converted to the closest value that can be adjacent to the left side, and then, by the operation of -1, it is converted to the closest value that can be adjacent to the right side.

上述した変換式で変換された値は、少数点以下の数字を
四捨五入しても、また、切捨てても切上げても、隣り合
う座標値において、同じ数値になることがない。これは
、イメージの上側と下側の変換式についても同様である
The value converted using the above-mentioned conversion formula will never become the same numerical value in adjacent coordinate values even if the numbers below the decimal point are rounded off or rounded down or rounded up. The same applies to the conversion equations for the upper and lower sides of the image.

したがって、1つのイメージ領域を構成するX座標軸上
の左/右例の座標値と、y座標軸上の上/下側の座標値
を、それぞれ異なる変換式で変換し、変換された座標値
に基づいて画像の反転を行うことにより、同じ部分での
2度の反転を防止することができる。
Therefore, the left/right coordinate values on the X coordinate axis and the upper/lower coordinate values on the y coordinate axis, which constitute one image area, are transformed using different conversion formulas, and based on the transformed coordinate values, By inverting the image, it is possible to prevent the same part from being inverted twice.

〔実施例〕〔Example〕

以下、この発明に係わる文書作成装置の一実施例につい
て説明する。
An embodiment of the document creation device according to the present invention will be described below.

第1図は、この発明に係わる文書作成装置の基本的な構
成を示すブロック図である。この文書作成装置は、画面
上に文字や図形等を表示するためのCRTIと、CRT
Iでの表示を制御するCRT制御部2と、コマンドや文
字列、数値などの入力を行うキーボード装置3と、CR
TI上に表示された表示領域等をカーソルにより選択す
るための、例えばマウス等のボインティング装置4と、
平仮名漢字変換用辞書群が格納されたディスク装置5と
、メモリ装置6と、CPU (中央処理装置)7とから
構成されている。
FIG. 1 is a block diagram showing the basic configuration of a document creation device according to the present invention. This document creation device consists of a CRTI for displaying characters, figures, etc. on the screen, and a CRT.
A CRT control unit 2 that controls the display on the I, a keyboard device 3 that inputs commands, character strings, numerical values, etc.
a pointing device 4, such as a mouse, for selecting a display area etc. displayed on the TI with a cursor;
It is composed of a disk device 5 in which a group of dictionaries for hiragana-kanji conversion are stored, a memory device 6, and a CPU (central processing unit) 7.

メモリ装置6の図示せぬメモリ領域には、この文書作成
装置の基本的な動作を管理するオペレティングプログラ
ムや、各種のアプリケーションプログラム等のプログラ
ム郡と、キーボード装置3やボインティング装置4から
人力された文字や数値等のデータが格納されている。
A memory area (not shown) of the memory device 6 stores programs such as an operating program that manages the basic operations of this document creation device and various application programs, as well as human input from the keyboard device 3 and pointing device 4. Data such as characters and numbers are stored.

CPU7は、装置全体の制御を行うと共に、各種データ
に対する演算処理を行う回路であり、キーボード装置3
やボインティング装置4からの指示に接続するプログラ
ムをメモリ装置6から読み込んで、人力されたデータに
対する演算処理を実行する。また、CPU7には、隣り
合うイメージを反転処理する際に、各イメージの右側と
左側、並びに上側と下側の座標値について、それぞれ異
なる変換式を適用し、各変換式に基づいて座標の変換を
行う座標変換手段8が含まれている。
The CPU 7 is a circuit that controls the entire device and performs arithmetic processing on various data.
A program connected to instructions from the pointing device 4 is read from the memory device 6, and arithmetic processing is executed on the manually entered data. In addition, when inverting adjacent images, the CPU 7 applies different conversion formulas to the right and left sides, as well as the upper and lower coordinate values of each image, and converts the coordinates based on each conversion formula. It includes coordinate conversion means 8 for performing the following.

次に、座標変換手段8で適用される座標値の変換式につ
いて説明する。前述した第3図において、文字Aの左側
の座標値の変換式を従来通りとした場合、右側の座標値
の変換式は、 外部単位−Round ((内部単位+1)/10)−
1・・・式(2) (少数点以下は四捨五入) となる。なお、Round()は、少数点以下の数値を
四捨五入する関数を表している。
Next, the coordinate value conversion formula applied by the coordinate conversion means 8 will be explained. In the above-mentioned Figure 3, if the conversion formula for the left coordinate value of letter A is the same as before, the conversion formula for the right coordinate value is: External unit - Round ((internal unit + 1) / 10) -
1...Equation (2) (round off to the nearest whole number). Note that Round( ) represents a function that rounds off a numerical value below the decimal point.

また、文字Aの右側の座標値の変換式を従来通りとした
場合、左側の座標値の変換式は、外部単位−Round
((内部単位−1)/10)+1・・・式(3) (少数点以下は四捨五入) となる。
Also, if the conversion formula for the right-hand coordinate value of letter A is the same as before, the conversion formula for the left-hand coordinate value is external unit - Round
((Internal unit - 1)/10) + 1...Formula (3) (round off to the nearest whole number).

式(2)を第3図を用いて説明すると、まず、1文字目
の文字Aの右側の内部座標を、((内部単位+1)/1
0)とすることによって、2文字目の文字Aの左側に隣
接しつる一番近い値に変換し、その後、その値を−1と
することによって、右側に隣接しうる一番近い値に変換
している。これによれば、少数点以下の数字を四捨五入
しても、また、切捨てても切上げても、変換された値が
同し値となることがないので、同じ部分が2度反転され
ることがない。これは式(3)の場合でも同様である。
To explain equation (2) using Figure 3, first, the internal coordinates on the right side of the first character A are ((internal unit + 1)/1
0) to convert it to the closest value adjacent to the left side of the second character A, and then convert it to the closest value adjacent to the right side by setting that value to -1. are doing. According to this, even if the number below the decimal point is rounded off, rounded down or rounded up, the converted value will not be the same value, so the same part will not be inverted twice. do not have. This also applies to equation (3).

また、y軸上の上側と下側の座標値についても、同様の
式を適用して値の変換を行うことにより、同じ部分での
2度の反転を防止することができる。
Further, by applying the same formula to converting the values of the upper and lower coordinate values on the y-axis, it is possible to prevent the values from being inverted twice at the same portion.

上述した座標変換手段8では、1つのイメージ領域を構
成する左側、右側、上側、下側の4種類の座標値につい
て、それぞれ異なる変換式を適用して座標の変換を行う
。そして、座標変換手段8によって反転する領域が特定
されると、CPU7は、イメージを反転するためのプロ
グラムをメモリ装置6から呼び出し、該当するイメージ
領域のデータを演算して画像を反転させる。
The coordinate conversion means 8 described above performs coordinate conversion by applying different conversion formulas to four types of coordinate values, ie, left side, right side, upper side, and lower side, which constitute one image area. When the area to be inverted is specified by the coordinate conversion means 8, the CPU 7 calls a program for inverting the image from the memory device 6, calculates the data of the corresponding image area, and inverts the image.

次に、反転しようとするイメージ領域の座標値を変換す
る場合の座標変換手段8の処理手順を、第2図のフロー
チャートを用いて説明する。
Next, the processing procedure of the coordinate conversion means 8 when converting the coordinate values of the image area to be reversed will be explained using the flowchart shown in FIG.

まず、座標変換手段8は、与えられた座標が横座標(X
軸座標)かどうかを判断しくステップ101)、座標が
横座標であるときは、左側の座標かどうかを判断する(
ステップ1o2)。ここで、左側の座標であるときは左
側座標を変換しくステップ103)、左側の座標でない
ときは右側座標を変換する(ステップ104)。
First, the coordinate conversion means 8 converts the given coordinates into the abscissa (X
If the coordinate is an abscissa coordinate, it is determined whether it is a left coordinate (step 101).
Step 1o2). Here, if the coordinates are on the left side, the left side coordinates are converted (step 103), and if the coordinates are not on the left side, the right side coordinates are converted (step 104).

また、ステップ101において、与えられた座標が横座
標でないときは縦座標(y?#座標)と↑り断し、さら
にその座標が上側の座標かどうかを判断する(ステップ
105)。ここで、上側の座標であるときは上側座標を
変換しくステップ106;、上側の座標でないときは下
側座標を変換する(ステップ107)。座標変換手段8
は、座標変換処理が終了するごとに、座標変換の処理が
4回行なわれたかどうかを判断しくステップ108)、
反転しようとするイメージ領域を構成する4つの座標の
変換が終了するまで、ステップ101からの処理を繰り
返す。
Further, in step 101, if the given coordinate is not the abscissa coordinate, it is cut off from the ordinate (y?# coordinate), and it is further determined whether the given coordinate is the upper coordinate (step 105). Here, if the coordinates are on the upper side, the upper coordinates are converted (step 106); if the coordinates are not on the upper side, the lower coordinates are converted (step 107). Coordinate conversion means 8
In step 108), each time the coordinate transformation process is completed, it is determined whether the coordinate transformation process has been performed four times.
The process from step 101 is repeated until the transformation of the four coordinates constituting the image area to be reversed is completed.

〔発明の効果〕〔Effect of the invention〕

以上、説明したように、この発明に係わる文書作成装置
においては、イメージ領域の右側と左側、並びに上側と
下側の座標値について、それぞれ異なる変換式を適用し
、各変換式に基づいて座標の変換を行うようにしたため
、変換された値の少数点以下の数字を四捨五入しても、
あるいは切捨てても切上げても、隣り合うイメージ間の
隣り合う座標が同じ値となることがなく、同じ部分が2
度反転されることがない。したがって、隣り合うイメー
ジの反転処理を行っても、その間に境界線を生じること
のない文書作成装置を提供することができる。
As explained above, in the document creation device according to the present invention, different conversion formulas are applied to the coordinate values of the right and left sides and the upper and lower sides of the image area, and the coordinates are calculated based on each conversion formula. Since the conversion is performed, even if the numbers below the decimal point of the converted value are rounded off,
Or, even if you round down or round up, adjacent coordinates between adjacent images will never have the same value, and the same part will be 2
It is never reversed. Therefore, it is possible to provide a document creation device that does not create a boundary line between adjacent images even when the images are inverted.

【図面の簡単な説明】[Brief explanation of drawings]

第1図はこの発明に係わる文書作成装置の基本的な構成
を示すブロック図、第2図は反転しようとするイメージ
領域の座標値を変換する場合の座標変換手段の処理手順
を示すフローチャート、第3図は画面上に表示されるイ
メージの座標系を示す説明図である。 1・・・CRT、2・・・CRT制御装置、3・・・キ
ーボド装置、4・・・ボインティング装置、5・・・デ
ィスク装置、6・・・メモリ装置、7・・・CPU (
中央処理装置)、8・・・座標変換手段。 第 図 弔2図 第 図
FIG. 1 is a block diagram showing the basic configuration of a document creation device according to the present invention, FIG. FIG. 3 is an explanatory diagram showing the coordinate system of the image displayed on the screen. DESCRIPTION OF SYMBOLS 1... CRT, 2... CRT control device, 3... Keyboard device, 4... Pointing device, 5... Disk device, 6... Memory device, 7... CPU (
central processing unit), 8...coordinate conversion means. Diagram 2 Diagram

Claims (1)

【特許請求の範囲】 画面上に表示されたイメージを反転して表示する機能を
具えた文書作成装置において、 隣り合うイメージを反転処理する際に、各イメージ領域
の右側と左側、並びに上側と下側の座標値について、そ
れぞれ異なる変換式を適用し、各変換式に基づいて座標
の変換を行う座標変換手段を設けたことを特徴とする文
書作成装置。
[Claims] In a document creation device that has a function of reversing and displaying images displayed on a screen, when reversing adjacent images, the right side and left side, the upper side and the lower side of each image area are A document creation device comprising a coordinate conversion means for applying different conversion formulas to respective side coordinate values and converting the coordinates based on each conversion formula.
JP1222551A 1989-08-29 1989-08-29 Document creation device Expired - Lifetime JP2887807B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1222551A JP2887807B2 (en) 1989-08-29 1989-08-29 Document creation device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1222551A JP2887807B2 (en) 1989-08-29 1989-08-29 Document creation device

Publications (2)

Publication Number Publication Date
JPH0384680A true JPH0384680A (en) 1991-04-10
JP2887807B2 JP2887807B2 (en) 1999-05-10

Family

ID=16784221

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1222551A Expired - Lifetime JP2887807B2 (en) 1989-08-29 1989-08-29 Document creation device

Country Status (1)

Country Link
JP (1) JP2887807B2 (en)

Also Published As

Publication number Publication date
JP2887807B2 (en) 1999-05-10

Similar Documents

Publication Publication Date Title
JPH02232690A (en) Data converting device
JPH0384680A (en) Document preparing device
JPH07129149A (en) Character drawing device
JPH03282589A (en) Document preparing device
JP2811684B2 (en) Character data processing device
JPS5933578A (en) Display system of manually written diagram information
JP2881924B2 (en) Data storage device
JPH0451284A (en) Pattern expanding and converting device
JP2664718B2 (en) Image output device
JP3057963B2 (en) Data converter
JPH06110442A (en) Character / graphics processing apparatus and method for processing deformation of character or graphic
JPH0333896A (en) Font plotting device
JP2738189B2 (en) Coordinate conversion method and coordinate conversion device
JPH06337869A (en) Document creation apparatus and print control method
JPH04215121A (en) Display data creation device
JPH081554B2 (en) Character processor
JPH02309459A (en) Data converter
JPH02254491A (en) Data converter
JPH05309873A (en) Making device of contracted letter pattern
JPH02160287A (en) Cursor display circuit
JPH02158363A (en) Character generator
JPH05216456A (en) Character output device
JPH04162092A (en) Outline font character generation method
JPH01161394A (en) Method of making hard copy of multi-window picture
JPH06337868A (en) Document generation device and printing control method