JP2010228167A - Image forming apparatus and program - Google Patents

Image forming apparatus and program Download PDF

Info

Publication number
JP2010228167A
JP2010228167A JP2009076012A JP2009076012A JP2010228167A JP 2010228167 A JP2010228167 A JP 2010228167A JP 2009076012 A JP2009076012 A JP 2009076012A JP 2009076012 A JP2009076012 A JP 2009076012A JP 2010228167 A JP2010228167 A JP 2010228167A
Authority
JP
Japan
Prior art keywords
image
print data
drawn
data processing
specific area
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
JP2009076012A
Other languages
Japanese (ja)
Inventor
Takao Kawashima
孝夫 川島
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 JP2009076012A priority Critical patent/JP2010228167A/en
Publication of JP2010228167A publication Critical patent/JP2010228167A/en
Pending legal-status Critical Current

Links

Images

Abstract

<P>PROBLEM TO BE SOLVED: To provide an image forming apparatus, automatically correcting the direction of image in each sheet of paper when printing print data. <P>SOLUTION: The image forming apparatus is equipped with: a data receiving section 21 for acquiring print data described in a plotter control language; a data processing section 22 for performing data processing to change the direction of the whole image by the print data so that the image to be drawn in a specific area of the image by the print data is drawn toward a specific direction; and an image forming section 10 for forming the image on a medium, based on the print data processed by the data processing section 22. <P>COPYRIGHT: (C)2011,JPO&INPIT

Description

本発明は、画像形成装置およびプログラムに関する。   The present invention relates to an image forming apparatus and a program.

主要なプリンタ制御言語の一つにHP−GL(米国ヒューレット・パッカード社の登録商標)がある。このHP−GLは、本来、大判のロール紙を使用するプロッタ用の言語である。そのため、HP−GLを用いた印刷データは、用紙サイズについての情報を持たない場合が多い。したがって、通常の画像形成装置でHP−GLをエミュレーションする場合、用紙に合わせて画像の位置の補正やサイズの変更を行ったり、用紙の向き(縦横)を合わせるために画像を回転させたりすることが行われている。   One of the main printer control languages is HP-GL (registered trademark of Hewlett-Packard Company, USA). This HP-GL is originally a language for a plotter that uses large roll paper. For this reason, print data using HP-GL often has no information about the paper size. Therefore, when HP-GL is emulated in a normal image forming apparatus, the position of the image is corrected or the size is changed according to the paper, or the image is rotated to adjust the orientation (vertical / horizontal) of the paper. Has been done.

特許文献1に記載された技術は、スキャナで読み取った画像を所定の角度ずつ回転させて、回転されていない画像および回転させた画像それぞれに含まれる文字・図形を識別し、画像識別率が最も高い画像を選択し、印刷するものである。これにより、原稿の方向を誤ってセットしても、正しい方向に印刷された画像を得られる。   The technique described in Patent Document 1 rotates an image read by a scanner by a predetermined angle to identify characters that are not rotated and characters / graphics included in the rotated image, and has the highest image identification rate. A high image is selected and printed. Thus, even if the orientation of the original is set incorrectly, an image printed in the correct direction can be obtained.

特開2003−8867号公報JP 2003-8867 A

本発明は、印刷データを印刷する場合に、各用紙における画像の向きを自動的に修正することができる画像形成装置を提供することを目的とする。   An object of the present invention is to provide an image forming apparatus capable of automatically correcting the orientation of an image on each sheet when printing print data.

請求項1に記載の発明は、プロッタ用の制御言語で記述された印刷データから印刷対象の画像を生成する生成部と、前記印刷データに基づいて、前記印刷対象の画像における特定の領域に描画される画像の描画方向を判断し、当該描画方向に応じて、前記印刷データによる画像全体の向きを変更して前記生成部による画像の生成が行われるようにデータ処理を行うデータ処理部と、前記生成部により生成された画像を媒体上に形成する画像形成部と、を備えることを特徴とする、画像形成装置である。
請求項2に記載の発明は、前記データ処理部は、前記特定の領域に描画される画像全体において、描画が開始された位置と描画が終了した位置とに基づいて、当該特定の領域における画像の描画方向を判断することを特徴とする、請求項1に記載の画像形成装置である。
請求項3に記載の発明は、前記特定の領域に描画される画像は、文字列を表す画像であり、前記データ処理部は、前記特定の領域に描画される画像の描画方向が、前記生成部により生成される画像において、前記文字列が正立した状態で左から右へ向かう方向となるように、前記印刷データによる画像全体の向きを変更するデータ処理を行うことを特徴とする、請求項1または請求項2に記載の画像形成装置である。
請求項4に記載の発明は、前記データ処理部は、前記印刷データによる画像において、少なくとも左上の一定範囲を占める領域および右下の一定範囲を占める領域を前記特定の領域とし、当該特定の領域に描画される画像の描画方向を判断することを特徴とする、請求項1乃至請求項3のいずれかに記載の画像形成装置である。
請求項5に記載の発明は、前記プロッタ用の制御言語は、HP−GLであることを特徴とする、請求項1乃至請求項4のいずれかに記載の画像形成装置である。
請求項6に記載の発明は、プロッタ用の制御言語で記述された印刷データを取得する取得手段と、前記印刷データによる画像において、特定の領域に描画される画像が特定の方向へ向かって描画されるように、当該印刷データによる画像全体の向きを変更するデータ処理を行うデータ処理手段と、前記データ処理手段によりデータ処理された印刷データに基づいて画像を媒体上に形成する画像形成手段と、を備えることを特徴とする、画像形成装置である。
請求項7に記載の発明は、前記特定の領域に描画される画像は、文字列を表す画像であり、前記データ処理手段は、前記特定の領域に描画される画像の描画方向が、前記文字列が正立した状態で左から右へ向かう方向となるように、前記印刷データによる画像全体の向きを変更するデータ処理を行うことを特徴とする、請求項6に記載の画像形成装置である。
請求項8に記載の発明は、画像形成装置を制御する制御装置に、プロッタ用の制御言語で記述された印刷データを取得し、当該印刷データに基づいて、印刷対象の画像における特定の領域に描画される画像の描画方向を判断する処理と、判断された前記描画方向が予め定められた特定の方向となるように、前記印刷データによる画像全体の向きを変更する処理と、前記画像全体の向きを変更された前記印刷データに基づいて印刷対象の画像を生成する処理と、を実行させることを特徴とする、プログラムである。
請求項9に記載の発明は、前記特定の領域に描画される画像全体において、描画が開始された位置と描画が終了した位置とに基づいて、当該特定の領域における画像の描画方向を判断することを特徴とする、請求項8に記載のプログラムである。
According to the first aspect of the present invention, a generation unit that generates an image to be printed from print data described in a control language for a plotter, and drawing in a specific area in the image to be printed based on the print data A data processing unit that determines a drawing direction of the image to be performed, and performs data processing so that an image is generated by the generation unit by changing a direction of the entire image by the print data according to the drawing direction; An image forming apparatus comprising: an image forming unit that forms an image generated by the generating unit on a medium.
According to a second aspect of the present invention, the data processing unit is configured to generate an image in the specific area based on a position where drawing is started and a position where drawing is completed in the entire image drawn in the specific area. The image forming apparatus according to claim 1, wherein the image forming direction is determined.
According to a third aspect of the present invention, the image drawn in the specific area is an image representing a character string, and the data processing unit has the drawing direction of the image drawn in the specific area as the generation direction. In the image generated by the printing unit, data processing is performed to change a direction of the entire image based on the print data so that the character string is in a direction from left to right in an upright state. An image forming apparatus according to claim 1 or 2.
According to a fourth aspect of the present invention, the data processing unit sets at least a region occupying a certain upper left region and a region occupying a certain lower right region in the image based on the print data as the specific region, and the specific region. The image forming apparatus according to claim 1, wherein a drawing direction of an image to be drawn is determined.
The invention according to claim 5 is the image forming apparatus according to claim 1, wherein the control language for the plotter is HP-GL.
According to a sixth aspect of the present invention, an acquisition means for acquiring print data described in a control language for a plotter, and an image drawn in a specific area is drawn in a specific direction in the image based on the print data A data processing unit that performs data processing for changing the orientation of the entire image based on the print data, and an image forming unit that forms an image on a medium based on the print data subjected to data processing by the data processing unit, And an image forming apparatus.
According to a seventh aspect of the present invention, the image drawn in the specific area is an image representing a character string, and the data processing means is configured such that a drawing direction of the image drawn in the specific area is the character The image forming apparatus according to claim 6, wherein data processing is performed to change a direction of the entire image based on the print data so that the line is in a direction from left to right in an upright state. .
According to an eighth aspect of the present invention, print data described in a control language for a plotter is acquired by a control device that controls the image forming apparatus, and a specific area in an image to be printed is obtained based on the print data. A process of determining a drawing direction of an image to be drawn, a process of changing the orientation of the entire image based on the print data so that the determined drawing direction is a predetermined specific direction, And a process of generating an image to be printed based on the print data whose orientation has been changed.
The invention according to claim 9 determines the drawing direction of the image in the specific area based on the position where the drawing is started and the position where the drawing is completed in the entire image drawn in the specific area. The program according to claim 8, wherein:

請求項1の発明によれば、特定の領域に描画される画像の描画方向を基準として、画像の向きを修正することができる。
請求項2の発明によれば、本発明の構成を適用しない場合と比べて、特定の領域における画像の描画方向を正確に判断することができる。
請求項3の発明によれば、特定の領域に描画される文字列の画像を用いて、画像の向きを修正することができる。
請求項4の発明によれば、様式が特定された図面として作成された画像に関して、画像の向きを修正することができる。
請求項5の発明によれば、標準的なプロッタ用の制御言語であるHP−GLで記述された画像に関して、画像の向きを修正することができる。
請求項6の発明によれば、特定の領域に描画される画像の描画方向を基準として、画像の向きを修正することができる。
請求項7の発明によれば、特定の領域に描画される文字列の画像を用いて、画像の向きを修正することができる。
請求項8の発明によれば、このプログラムを用いた画像形成装置において、特定の領域に描画される画像の描画方向を基準として、画像の向きを修正することができる。
請求項9の発明によれば、本発明の構成を適用しない場合と比べて、特定の領域における画像の描画方向を正確に判断することができる。
According to the first aspect of the present invention, the orientation of the image can be corrected based on the drawing direction of the image drawn in the specific area.
According to the second aspect of the present invention, it is possible to accurately determine the drawing direction of an image in a specific region as compared with the case where the configuration of the present invention is not applied.
According to the invention of claim 3, the orientation of the image can be corrected using the image of the character string drawn in the specific area.
According to the fourth aspect of the present invention, the orientation of the image can be corrected with respect to the image created as a drawing in which the style is specified.
According to the invention of claim 5, the orientation of the image can be corrected with respect to the image described in HP-GL which is a standard control language for plotters.
According to the invention of claim 6, the orientation of the image can be corrected with reference to the drawing direction of the image drawn in the specific area.
According to the seventh aspect of the present invention, the orientation of the image can be corrected using the character string image drawn in the specific area.
According to the invention of claim 8, in the image forming apparatus using this program, the orientation of the image can be corrected with reference to the drawing direction of the image drawn in the specific area.
According to the ninth aspect of the present invention, it is possible to accurately determine the drawing direction of an image in a specific region as compared with the case where the configuration of the present invention is not applied.

本実施形態の画像形成装置の構成を示す図である。1 is a diagram illustrating a configuration of an image forming apparatus according to an exemplary embodiment. 本実施形態の制御部の機能構成を示す図である。It is a figure which shows the function structure of the control part of this embodiment. CAD図面の構成例を示す図である。It is a figure which shows the structural example of a CAD drawing. HP−GLで記述された印刷データの一例を示す図である。It is a figure which shows an example of the print data described by HP-GL. 図4の印刷データに基づいて描画される画像を示す図である。FIG. 5 is a diagram illustrating an image drawn based on the print data of FIG. 4. HP−GLで記述された印刷データの他の例を示す図である。It is a figure which shows the other example of the print data described by HP-GL. 図6の印刷データに基づいて描画される画像を示す図である。It is a figure which shows the image drawn based on the print data of FIG. 本実施形態の制御部の処理手順を示すフローチャートである。It is a flowchart which shows the process sequence of the control part of this embodiment.

以下、添付図面を参照して、本発明の実施形態について詳細に説明する。
<システム構成>
図1は、本実施形態の画像形成装置の構成を示す図である。
図1に示す画像形成装置100は、各色の画像データに対応して画像形成を行う画像形成部10と、画像形成装置100全体の動作を制御する制御部20とを備える。制御部20は、パーソナル・コンピュータ、画像読取装置、FAXモデム等の外部装置200に接続されており、外部装置200から入力される印刷対象の画像に対して画像処理を行って、画像形成部10に送る。
Hereinafter, embodiments of the present invention will be described in detail with reference to the accompanying drawings.
<System configuration>
FIG. 1 is a diagram illustrating a configuration of an image forming apparatus according to the present embodiment.
An image forming apparatus 100 illustrated in FIG. 1 includes an image forming unit 10 that forms an image corresponding to image data of each color, and a control unit 20 that controls the operation of the entire image forming apparatus 100. The control unit 20 is connected to an external device 200 such as a personal computer, an image reading device, a FAX modem, etc., and performs image processing on an image to be printed input from the external device 200, so that the image forming unit 10. Send to.

画像形成部10は、イエロー(Y)、マゼンタ(M)、シアン(C)、ブラック(K)の各色に対応させて、4つの画像形成ユニット11(各色別に11Y、11M、11C、11K)を備える。また、画像形成部10は、各画像形成ユニット11の各感光体ドラム12にて画像形成された各色のトナー像を多重転写させる対象である用紙(印刷媒体)を搬送する搬送ベルト16、搬送ベルト16を駆動する駆動ロール17、感光体ドラム12のトナー像を用紙に転写させるための転写ロール18、転写後の用紙上の未定着トナー像を加熱・加圧して定着する定着器19を備える。なお、本実施形態では、印刷方式については限定しない。すなわち、図1に示す電子写真方式の他、インクジェット方式、サーマル方式等、種々の方式の印刷手段により本実施形態の画像形成部10を構成し得る。   The image forming unit 10 includes four image forming units 11 (11Y, 11M, 11C, and 11K for each color) corresponding to each color of yellow (Y), magenta (M), cyan (C), and black (K). Prepare. In addition, the image forming unit 10 includes a transport belt 16 that transports a sheet (print medium) that is a target of multiple transfer of toner images of each color formed on each photosensitive drum 12 of each image forming unit 11, and a transport belt. A driving roll 17 for driving 16, a transfer roll 18 for transferring the toner image on the photosensitive drum 12 to the paper, and a fixing device 19 for fixing the unfixed toner image on the paper after the transfer by heating and pressing. In the present embodiment, the printing method is not limited. That is, in addition to the electrophotographic method shown in FIG. 1, the image forming unit 10 of the present embodiment can be configured by various types of printing means such as an inkjet method and a thermal method.

制御部20は、CPU、CPUが実行するプログラムを格納したROM、作業用メモリであるRAM等で実現される。この制御部20は、予めインストールされたプログラムおよび各種設定に基づき、画像形成部10の動作制御等、各種の動作制御を行う。また、制御部20は、外部装置200から印刷ジョブを受け付け、印刷対象の画像を生成し、画像のサイズや配置の変更、補正等、各種の画像処理を行う。   The control unit 20 is realized by a CPU, a ROM that stores a program executed by the CPU, a RAM that is a working memory, and the like. The control unit 20 performs various operation controls such as an operation control of the image forming unit 10 based on a preinstalled program and various settings. In addition, the control unit 20 receives a print job from the external apparatus 200, generates an image to be printed, and performs various image processing such as changing and correcting the size and arrangement of the image.

<制御部20の機能構成>
図2は、制御部20の機能構成を示す図である。
図2に示すように、制御部20は、データ受信部21と、データ処理部22と、イメージ生成部23と、画像形成制御部24を備える。これらの機能は、制御部20のCPUが、ROMに格納されたプログラムを実行することにより実現される機能であり、ソフトウェアとハードウェア資源とが協働して実現される手段である。
<Functional configuration of control unit 20>
FIG. 2 is a diagram illustrating a functional configuration of the control unit 20.
As illustrated in FIG. 2, the control unit 20 includes a data reception unit 21, a data processing unit 22, an image generation unit 23, and an image formation control unit 24. These functions are functions realized by the CPU of the control unit 20 executing a program stored in the ROM, and are means realized by cooperation of software and hardware resources.

データ受信部21は、外部装置200から印刷ジョブを受信する。印刷ジョブには、印刷のための個別設定等が記載された実行コマンド(印刷命令)および印刷画像のデータ(印刷データ)が含まれる。すなわち、データ受信部21は、印刷命令および印刷データを含む印刷ジョブの取得手段である。本実施形態において、印刷ジョブに含まれる印刷データは、HP−GLで記述されているものとする。データ受信部21は、受け付けた実行コマンドおよび印刷画像のデータをデータ処理部22へ送る。   The data receiving unit 21 receives a print job from the external device 200. The print job includes an execution command (print command) in which individual settings for printing and the like are described, and print image data (print data). That is, the data receiving unit 21 is a print job acquisition unit including a print command and print data. In the present embodiment, it is assumed that print data included in a print job is described in HP-GL. The data receiving unit 21 sends the received execution command and print image data to the data processing unit 22.

データ処理部22は、データ受信部21から受け取った印刷命令および印刷データに対して、各種の設定に基づき、データ処理を行う。すなわち、用紙サイズの情報を持たないHP−GLで記述された印刷ジョブに対応するため、印刷媒体である用紙に合わせて、画像の位置やサイズの変更等の処理を行う。さらに、本実施形態では、各画像の向きを判断し、修正する。本実施形態による画像の向きの判断方法の詳細については後述する。   The data processing unit 22 performs data processing on the print command and print data received from the data receiving unit 21 based on various settings. That is, in order to correspond to a print job described in HP-GL that does not have paper size information, processing such as changing the position and size of an image is performed in accordance with the paper that is the print medium. Furthermore, in this embodiment, the orientation of each image is determined and corrected. Details of the image orientation determination method according to this embodiment will be described later.

イメージ生成部23は、RIP(Raster Image Processor)、デコンポーザ等とも呼ばれる。このイメージ生成部23は、データ処理部22から取得した印刷データを解析し、1ページごとにラスタ画像に変換する。そして、印刷命令と共に、生成したラスタ画像を画像形成制御部24へ送る。   The image generation unit 23 is also called a RIP (Raster Image Processor), a decomposer, or the like. The image generation unit 23 analyzes the print data acquired from the data processing unit 22 and converts it into a raster image for each page. The generated raster image is sent to the image formation control unit 24 together with the print command.

画像形成制御部24は、イメージ生成部23から取得した印刷命令および印刷対象のラスタ画像の文書画像に基づいて、画像形成部10を制御する。そして、印刷命令における印刷設定(部数、倍率、カラーか白黒か、両面印刷か片面印刷か等)にしたがって、印刷データから生成された画像を用紙上に形成させる。   The image formation control unit 24 controls the image forming unit 10 based on the print command acquired from the image generation unit 23 and the document image of the raster image to be printed. Then, an image generated from the print data is formed on the paper according to the print setting (number of copies, magnification, color or black and white, double-sided printing or single-sided printing, etc.) in the printing command.

<画像の向きの判断方法>
上記のように、本実施形態の画像形成装置100における制御部20のデータ処理部22は、印刷対象の画像の向きを判断し、向きを揃えるために、必要に応じて修正する。以下、データ処理部22による画像の向きの判断方法について詳細に説明する。
<Method of judging image orientation>
As described above, the data processing unit 22 of the control unit 20 in the image forming apparatus 100 according to the present embodiment determines the orientation of the image to be printed and corrects it as necessary in order to align the orientation. Hereinafter, a method for determining the orientation of the image by the data processing unit 22 will be described in detail.

本実施形態では、HP−GLで記述されたCAD(Computer Aided Design)図面の画像を、HP−GLをエミュレーションする画像形成装置100を用いて印刷する場合に、画像の向きを揃えるためのデータ処理を行う。したがって、印刷対象はCAD図面の画像である。通常、CAD図面においては、作成要領等が作成され、サイズ、正位、輪郭線、表題欄やページ番号の記載位置等の様式が具体的に定められている。そこで、本実施形態では、この様式を利用して、画像の向きを判別する。   In this embodiment, when printing an image of a CAD (Computer Aided Design) drawing described in HP-GL using the image forming apparatus 100 that emulates HP-GL, data processing for aligning the orientation of the image is performed. I do. Therefore, the print target is an image of a CAD drawing. Usually, in the CAD drawing, a preparation procedure and the like are created, and a format such as a size, a normal position, a contour line, a title column, and a position where a page number is described is specifically defined. Therefore, in this embodiment, the orientation of the image is determined using this style.

図3は、CAD図面の構成例を示す図である。
図3に示すCAD図面は、輪郭線301が設定され、この輪郭線301に囲まれた領域(以下、描画領域300)に線図等が描画されている。また、図3におけるCAD図面の向きをこのCAD図面の正位とする。描画領域300の左上にはページ番号を記載(描画)するページ欄302が設けられ、描画領域300の右下には、表題を記載(描画)する表題欄303が設けられている。図3に示す例では、ページ欄302には「PAGE 1」の文字が描画され、表題欄303には「FIGURE−A」の文字が描画されている。
FIG. 3 is a diagram illustrating a configuration example of a CAD drawing.
In the CAD drawing shown in FIG. 3, an outline 301 is set, and a diagram or the like is drawn in an area surrounded by the outline 301 (hereinafter, drawing area 300). Further, the direction of the CAD drawing in FIG. 3 is the normal position of this CAD drawing. A page field 302 for describing (drawing) a page number is provided at the upper left of the drawing area 300, and a title field 303 for describing (drawing) a title is provided at the lower right of the drawing area 300. In the example shown in FIG. 3, the characters “PAGE 1” are drawn in the page column 302, and the characters “FIGURE-A” are drawn in the title column 303.

図3に示すCAD図面において、ページ欄302および表題欄303は、描画領域300における位置が決まっている。そして、このページ欄302および表題欄303に描画される文字列(テキスト)は、一般的な横書き文字列の記載方法にしたがって、CAD図面の正位(図3に示す向き)に対して(言い換えれば、文字列が正立下状態で)左から右へ向かって描画される。したがって、本実施形態では、このページ欄302および表題欄303における画像の描画方向を調べることで、CAD図面がどのような向きになっているかを判断する。すなわち、左から右へ向かって描画されていれば正位であり、右から左へ向かって描画されていれば上下が逆転した状態である。   In the CAD drawing shown in FIG. 3, the positions of the page field 302 and the title field 303 in the drawing area 300 are determined. Then, the character strings (text) drawn in the page field 302 and the title field 303 are (in other words,) the position of the CAD drawing (direction shown in FIG. 3) according to a general horizontal writing character string description method. For example, the character string is drawn from left to right (in an upright position). Therefore, in the present embodiment, the orientation of the CAD drawing is determined by examining the image drawing direction in the page field 302 and the title field 303. That is, if it is drawn from the left to the right, it is in the normal position, and if it is drawn from the right to the left, the top and bottom are reversed.

ここで、ページ欄302および表題欄303に描画される個々の文字や、その文字を構成する個々の線に着目すると、これらは必ずしも左から右へ向かって描画される訳ではない。しかし、ページ欄302や表題欄303内に描画される文字列の画像全体で判断すれば、CAD図面が正位である場合には、左から右へ描画される。具体的な判断方法としては、例えば、ページ欄302や表題欄303内に収まる全ての画像を対象として、最初に描画が開始された位置(開始位置)と最後に描画が終了した位置(終了位置)とを比較する。そして、開始位置よりも終了位置の方が右に位置すれば、左から右へ向かって描画されたと見なし、CAD図面が正位であると判断する。   Here, when attention is paid to individual characters drawn in the page column 302 and the title column 303 and individual lines constituting the characters, these are not necessarily drawn from left to right. However, judging from the entire image of the character string drawn in the page field 302 and the title field 303, if the CAD drawing is in the normal position, the image is drawn from left to right. As a specific determination method, for example, for all images that fit in the page field 302 and the title field 303, the first drawing start position (start position) and the last drawing end position (end position) ). If the end position is located to the right of the start position, it is considered that the drawing has been drawn from the left to the right, and the CAD drawing is determined to be in the normal position.

図3に示した例では、CAD図面の描画領域300の左上にページ欄302、右下に表題欄303が配置されることとしたが、これらの配置は図示の例に限定されない。また、CAD図面の向きを判断するための情報として用いる画像は、ページ欄302および表題欄303に限定されない。ページ欄302に記載されるページ数や表題欄303に記載される表題のような特別な情報を表す文字列が記載され、描画領域300における位置が特定される領域であれば、その領域に描画される画像をCAD図面の向きを判断するために用いて良い。このような領域は、CAD図面の様式等に基づいて定めれば良い。   In the example shown in FIG. 3, the page column 302 is arranged at the upper left of the drawing area 300 of the CAD drawing, and the title column 303 is arranged at the lower right. However, these arrangements are not limited to the illustrated example. Further, the image used as information for determining the orientation of the CAD drawing is not limited to the page field 302 and the title field 303. If a character string representing special information such as the number of pages described in the page field 302 or the title described in the title field 303 is described and the position in the drawing area 300 is specified, the drawing is performed in that area. The image to be used may be used to determine the orientation of the CAD drawing. Such a region may be determined based on a CAD drawing style or the like.

例えば、図3に示した例では、描画領域300の左上と右下に位置する欄を用いたが、さらに右上と左下に位置する欄を指定して、これら4つのその欄に描画される画像の描画方向を判断しても良い。この場合、上記のようにCAD図面が正位か上下逆転しているかを判断するだけでなく、90度回転していることも判断することができる。すなわち、4つの欄の画像が上から下に向かって描画されていれば、CAD図面は右へ90度回転しており、4つの欄の画像が下から上に向かって描画されていれば、CAD図面は左へ90度回転していると判断する。   For example, in the example shown in FIG. 3, the columns located at the upper left and lower right of the drawing area 300 are used. However, the images positioned at the upper right and the lower left are designated, and images drawn in these four columns are drawn. The drawing direction may be determined. In this case, it is possible not only to determine whether the CAD drawing is upright or upside down as described above, but also to determine that the CAD drawing is rotated 90 degrees. That is, if the images in the four columns are drawn from top to bottom, the CAD drawing is rotated 90 degrees to the right. If the images in the four columns are drawn from bottom to top, It is determined that the CAD drawing is rotated 90 degrees to the left.

また、CAD画像の向きを判断するために、これらの欄の全てに画像が描画されている必要はない。判断の対象とする領域を予め定めておき、その領域に画像が描画されている場合に、その画像の描画方向に基づいてCAD画像の向きが判断される。   Further, in order to determine the orientation of the CAD image, it is not necessary that the image is drawn in all of these fields. An area to be determined is determined in advance, and when an image is drawn in the area, the direction of the CAD image is determined based on the drawing direction of the image.

なお、CAD図面においては、通常、ページ欄302や表題欄303のような特別な情報を記載するための領域以外に描画される一般の図形や文字は、描画方向が不定である。したがって、これらの画像は、CAD図面の向きを判断するための情報として用いない。   In the CAD drawing, the drawing direction is generally undefined for general graphics and characters drawn outside the area for describing special information such as the page field 302 and the title field 303. Therefore, these images are not used as information for determining the orientation of the CAD drawing.

<CAD図面および印刷データの具体例>
次に、具体的な印刷データおよび画像の例を用いて、本実施形態によるCAD図面の向きの判断方法について、さらに説明する。
図4は、HP−GLで記述された印刷データの一例を示す図、図5は、図4の印刷データに基づいて描画される画像を示す図である。また、図6は、HP−GLで記述された印刷データの他の例を示す図、図7は、図6の印刷データに基づいて描画される画像を示す図である。
<Specific examples of CAD drawings and print data>
Next, the method for determining the orientation of the CAD drawing according to the present embodiment will be further described using specific print data and image examples.
4 is a diagram illustrating an example of print data described in HP-GL, and FIG. 5 is a diagram illustrating an image rendered based on the print data in FIG. 6 is a diagram illustrating another example of print data described in HP-GL, and FIG. 7 is a diagram illustrating an image rendered based on the print data in FIG.

図4および図6で使用されているHP−GLのコマンドは、「IN」、「SP」、「PU」、「PD」の4種類である。各コマンドの区切りは、セミコロン「;」で示されている。また、基本的に、座標形は、用紙の中央を原点(0,0)とし、X座標は用紙の右に向かってプラス、Y座標は用紙の上に向かってプラスとする。なお、図4および図6で使用されているコマンドは、HP−GLのコマンドの一部である。   The HP-GL commands used in FIGS. 4 and 6 are four types of “IN”, “SP”, “PU”, and “PD”. Each command is separated by a semicolon “;”. Basically, in the coordinate form, the center of the paper is the origin (0, 0), the X coordinate is positive toward the right of the paper, and the Y coordinate is positive toward the top of the paper. The commands used in FIGS. 4 and 6 are a part of HP-GL commands.

図4および図6で使用されているHP−GLのコマンドのうち、コマンド「IN」は、初期化コマンドであり、HP−GLデータの先頭に付される。コマンド「SP」は、使用するペンのペン番号を指定するコマンドである。「SP1」と記述されている場合は、ペン1が選択される。   Of the HP-GL commands used in FIGS. 4 and 6, the command “IN” is an initialization command and is added to the head of the HP-GL data. The command “SP” is a command for specifying the pen number of the pen to be used. When “SP1” is described, the pen 1 is selected.

コマンド「PU」は、ペンを上げた状態で、パラメータの座標に移動させるコマンドである。「PU3360,−2960」と記述されている場合は、ペンを上げたままで、X座標3360、Y座標−2960に移動させる。ペンが上がっているので、描画はされず、次の描画の開始位置にペンが移動する。   The command “PU” is a command for moving to the parameter coordinates while the pen is raised. When “PU3360, −2960” is described, the pen is raised and moved to the X coordinate 3360 and the Y coordinate −2960. Since the pen is raised, drawing is not performed, and the pen moves to the start position of the next drawing.

コマンド「PD」は、ペンを下ろした状態で、パラメータの座標に移動させるコマンドである。「PD3200,−2960」と記述されている場合は、ペンを下ろしたままで、X座標3200、Y座標−2960に移動させる。ペンが下りているので、移動前のペンの位置からパラメータで指定された座標位置まで線が描画される。   The command “PD” is a command for moving to the parameter coordinates while the pen is lowered. When “PD3200, −2960” is described, the pen is moved down to move to the X coordinate 3200 and the Y coordinate −2960. Since the pen is descending, a line is drawn from the position of the pen before movement to the coordinate position specified by the parameter.

図4および図6では、HP−GLのコマンド列(印刷データ)の各部分において、コマンドの右に図5および図7の画像のどの部分を描画しているかを説明するコメントを記載している。例えば、図4において、コマンド「PU3360,−2960」からコマンド「PD3360,−3080」までで、図5における文字「F」が描画される。また、コマンド「PU−5600,−4000」からコマンド「PD−5600,−4000」までで、外枠(輪郭線301)が描画され、コマンド「PU−1600,1200」からコマンド「PD−1600,1200」までで、描画領域300内の三角形が描画される。図6および図7についても同様である。   4 and 6, in each part of the HP-GL command string (print data), a comment explaining which part of the image of FIGS. 5 and 7 is drawn to the right of the command is described. . For example, in FIG. 4, the character “F” in FIG. 5 is drawn from the command “PU3360, −2960” to the command “PD3360, −3080”. Further, the outer frame (outline 301) is drawn from the command “PU-5600, −4000” to the command “PD-5600, −4000”, and the command “PU-1600, 1200” to the command “PD-1600, Up to 1200 ", the triangles in the drawing area 300 are drawn. The same applies to FIGS. 6 and 7.

ここで、図5および図7の画像を比較すると、右下に描画された「FIGURE−A」の文字列が、図5と図7では上下が逆転していることが分かる。また、図4および図6の印刷データにおいて、文字列「FIGURE−A」を描画するためのコマンド列を参照すると、図4では全体的に左から右へ向かって描画されている(各コマンド列のパラメータにおいて、X座標値が全体として次第に大きい値となっている)。図6では全体的に右から左へ向かって描画されていることが分かる(各コマンド列のパラメータにおいて、X座標値が全体として次第に小さい値となっている)。   Here, comparing the images of FIG. 5 and FIG. 7, it can be seen that the character string “FIGURE-A” drawn in the lower right is inverted in FIGS. 5 and 7. In addition, referring to the command string for drawing the character string “FIGURE-A” in the print data of FIG. 4 and FIG. 6, it is drawn from left to right as a whole in FIG. In this parameter, the X coordinate value becomes gradually larger as a whole). In FIG. 6, it can be seen that the drawing is performed from the right to the left as a whole (in the parameters of each command sequence, the X coordinate value becomes gradually smaller as a whole).

図4乃至図7に示した具体例において、文字列「FIGURE−A」が描画されている領域を、CAD図面の向きを判断するための領域として用いる場合、上記の検討結果から、図5の画像は正位であり、図7の画像は上下が逆転していると判断される。したがって、これらの画像を画像形成装置100において印刷出力する場合、制御部20のデータ処理部22は、上記のように判断した後、図7の画像を上下逆転するように、印刷ジョブに命令を追加する。   In the specific examples shown in FIGS. 4 to 7, when the area where the character string “FIGURE-A” is drawn is used as an area for determining the orientation of the CAD drawing, the above examination results indicate that FIG. The image is in the normal position, and it is determined that the image in FIG. 7 is upside down. Therefore, when these images are printed out by the image forming apparatus 100, the data processing unit 22 of the control unit 20 makes a command to the print job so that the image of FIG. to add.

<制御部20の動作>
図8は、制御部20の処理手順を示すフローチャートである。
まず、制御部20のデータ受信部21が、外部装置200から印刷ジョブを受信する(ステップ801)。そして、データ処理部22が、印刷ジョブに含まれる印刷データ(HP−GLのコマンド列)を解析し、原稿サイズを求める(ステップ802)。この原稿サイズは、図3に示した輪郭線301を描画するためのコマンド列等から得られる。
<Operation of Control Unit 20>
FIG. 8 is a flowchart illustrating a processing procedure of the control unit 20.
First, the data receiving unit 21 of the control unit 20 receives a print job from the external device 200 (step 801). Then, the data processing unit 22 analyzes the print data (HP-GL command string) included in the print job, and obtains the document size (step 802). This document size is obtained from a command sequence or the like for drawing the contour line 301 shown in FIG.

次に、データ処理部22は、ステップ802で求めた原稿サイズに基づき、特定の領域(例えば原稿の左上および右下の一定領域)に対する描画コマンドを抽出する(ステップ803)。この特定の領域は、図3に示したページ欄302や表題欄303のような特別な情報を表す文字列が記載される領域であり、予め設定され、制御部20のメモリに保持される。   Next, the data processing unit 22 extracts a drawing command for a specific area (for example, a certain area on the upper left and lower right of the original) based on the original size obtained in Step 802 (Step 803). This specific area is an area in which character strings representing special information such as the page field 302 and the title field 303 shown in FIG. 3 are described, and is preset and held in the memory of the control unit 20.

上記の特定の領域に対する描画コマンドが存在すれば、データ処理部22は、この描画コマンドを解析して、描画方向を判断する(ステップ804)。描画方向が左から右へ向かう方向である場合(ステップ805でYes)、データ処理部22は、画像の向きを変更することなく、印刷ジョブをイメージ生成部23に送る。そして、イメージ生成部23がラスタ画像を生成し、画像形成制御部24が画像形成部10を制御して、イメージ生成部23により生成されたラスタ画像を用紙上に形成させる(ステップ806)。   If there is a drawing command for the specific area, the data processing unit 22 analyzes the drawing command and determines the drawing direction (step 804). If the drawing direction is from left to right (Yes in step 805), the data processing unit 22 sends the print job to the image generation unit 23 without changing the orientation of the image. Then, the image generation unit 23 generates a raster image, and the image formation control unit 24 controls the image formation unit 10 to form the raster image generated by the image generation unit 23 on a sheet (step 806).

一方、特定の領域における描画方向が右から左へ向かう方向である場合(ステップ805でNo)、データ処理部は、画像の向きを上下が逆転するように回転させるコマンドを印刷ジョブに付加して(ステップ807)、コマンドが付加された印刷ジョブをイメージ生成部23に送る。そして、イメージ生成部23が印刷ジョブの印刷データに対して上下が逆転したラスタ画像を生成し、画像形成制御部24が画像形成部10を制御して、イメージ生成部23により生成されたラスタ画像を用紙上に形成させる(ステップ806)。   On the other hand, when the drawing direction in the specific area is the direction from right to left (No in step 805), the data processing unit adds a command to the print job to rotate the image so that the image is turned upside down. (Step 807), the print job to which the command is added is sent to the image generation unit 23. Then, the image generation unit 23 generates a raster image that is upside down with respect to the print data of the print job, and the image formation control unit 24 controls the image formation unit 10 to generate the raster image generated by the image generation unit 23. Is formed on the paper (step 806).

なお、図8を参照して説明した上記の動作例では、特定の領域における描画方向に関して、左から右へ向かう方向か、右から左へ向かう方向かのみを判断し、判断結果に基づいて画像を上下が逆転するように(180度)回転させることとしたが、さらに、特定の領域における描画方向が下から上へ向かう方向か、上から下へ向かう方向かを判断し、判断結果に基づいて左方向または右方向へ90度回転させる変換を行うこととしても良い。すなわち、データ処理部22は、特定の領域に描画される画像の描画方向が全体として左から右へ向かう方向となるように、画像を回転させる。   In the above operation example described with reference to FIG. 8, only the direction from left to right or the direction from right to left is determined with respect to the drawing direction in a specific area, and the image is determined based on the determination result. Is rotated so that the top and bottom are reversed (180 degrees). Further, it is determined whether the drawing direction in the specific area is from the bottom to the top or from the top to the bottom, and based on the determination result. It is also possible to perform conversion by rotating 90 degrees leftward or rightward. That is, the data processing unit 22 rotates the image so that the drawing direction of the image drawn in the specific area is the direction from left to right as a whole.

また、本実施形態では、印刷ジョブに含まれる印刷データがHP−GLで記述されている場合について説明したが、印刷データが、HP−GLを拡張して作成された各種のプリンタ制御言語や、HP−GL以外のプリンタ制御言語で記述されている場合であっても、特定の領域における全体的な描画方向を判断できるものであれば、本実施形態を適用して良い。   In this embodiment, the case where the print data included in the print job is described in HP-GL has been described. However, the print data may be various printer control languages created by extending HP-GL, Even if it is described in a printer control language other than HP-GL, this embodiment may be applied as long as the overall drawing direction in a specific area can be determined.

10…画像形成部、20…制御部、21…データ受信部、22…データ処理部、23…イメージ生成部、24…画像形成制御部、100…画像形成装置 DESCRIPTION OF SYMBOLS 10 ... Image formation part, 20 ... Control part, 21 ... Data reception part, 22 ... Data processing part, 23 ... Image generation part, 24 ... Image formation control part, 100 ... Image formation apparatus

Claims (9)

プロッタ用の制御言語で記述された印刷データから印刷対象の画像を生成する生成部と、
前記印刷データに基づいて、前記印刷対象の画像における特定の領域に描画される画像の描画方向を判断し、当該描画方向に応じて、前記印刷データによる画像全体の向きを変更して前記生成部による画像の生成が行われるようにデータ処理を行うデータ処理部と、
前記生成部により生成された画像を媒体上に形成する画像形成部と、
を備えることを特徴とする、画像形成装置。
A generation unit that generates an image to be printed from print data described in a control language for a plotter;
Based on the print data, it determines a drawing direction of an image drawn in a specific area in the image to be printed, and changes the orientation of the entire image based on the print data according to the drawing direction. A data processing unit that performs data processing so that an image is generated by
An image forming unit that forms an image generated by the generating unit on a medium;
An image forming apparatus comprising:
前記データ処理部は、前記特定の領域に描画される画像全体において、描画が開始された位置と描画が終了した位置とに基づいて、当該特定の領域における画像の描画方向を判断することを特徴とする、請求項1に記載の画像形成装置。   The data processing unit determines a drawing direction of an image in the specific area based on a position where drawing is started and a position where drawing is finished in the entire image drawn in the specific area. The image forming apparatus according to claim 1. 前記特定の領域に描画される画像は、文字列を表す画像であり、
前記データ処理部は、前記特定の領域に描画される画像の描画方向が、前記生成部により生成される画像において、前記文字列が正立した状態で左から右へ向かう方向となるように、前記印刷データによる画像全体の向きを変更するデータ処理を行うことを特徴とする、請求項1または請求項2に記載の画像形成装置。
The image drawn in the specific area is an image representing a character string,
The data processing unit is configured such that a drawing direction of an image drawn in the specific area is a direction from left to right in a state where the character string is upright in the image generated by the generation unit. The image forming apparatus according to claim 1, wherein data processing is performed to change an orientation of the entire image based on the print data.
前記データ処理部は、前記印刷データによる画像において、少なくとも左上の一定範囲を占める領域および右下の一定範囲を占める領域を前記特定の領域とし、当該特定の領域に描画される画像の描画方向を判断することを特徴とする、請求項1乃至請求項3のいずれかに記載の画像形成装置。   The data processing unit sets at least a region occupying a certain upper left region and a region occupying a certain lower right region in the image based on the print data as the specific region, and sets a drawing direction of an image drawn in the specific region. The image forming apparatus according to claim 1, wherein the determination is made. 前記プロッタ用の制御言語は、HP−GLであることを特徴とする、請求項1乃至請求項4のいずれかに記載の画像形成装置。   The image forming apparatus according to claim 1, wherein a control language for the plotter is HP-GL. プロッタ用の制御言語で記述された印刷データを取得する取得手段と、
前記印刷データによる画像において、特定の領域に描画される画像が特定の方向へ向かって描画されるように、当該印刷データによる画像全体の向きを変更するデータ処理を行うデータ処理手段と、
前記データ処理手段によりデータ処理された印刷データに基づいて画像を媒体上に形成する画像形成手段と、
を備えることを特徴とする、画像形成装置。
An acquisition means for acquiring print data described in a control language for the plotter;
Data processing means for performing data processing for changing the orientation of the entire image by the print data so that the image drawn in the specific area is drawn in a specific direction in the image by the print data;
Image forming means for forming an image on a medium based on the print data subjected to data processing by the data processing means;
An image forming apparatus comprising:
前記特定の領域に描画される画像は、文字列を表す画像であり、
前記データ処理手段は、前記特定の領域に描画される画像の描画方向が、前記文字列が正立した状態で左から右へ向かう方向となるように、前記印刷データによる画像全体の向きを変更するデータ処理を行うことを特徴とする、請求項6に記載の画像形成装置。
The image drawn in the specific area is an image representing a character string,
The data processing means changes the orientation of the entire image by the print data so that the drawing direction of the image drawn in the specific area is a direction from left to right in a state where the character string is upright. The image forming apparatus according to claim 6, wherein data processing is performed.
画像形成装置を制御する制御装置に、
プロッタ用の制御言語で記述された印刷データを取得し、当該印刷データに基づいて、印刷対象の画像における特定の領域に描画される画像の描画方向を判断する処理と、
判断された前記描画方向が予め定められた特定の方向となるように、前記印刷データによる画像全体の向きを変更する処理と、
前記画像全体の向きを変更された前記印刷データに基づいて印刷対象の画像を生成する処理と、
を実行させることを特徴とする、プログラム。
In the control device that controls the image forming apparatus,
Processing for acquiring print data described in a control language for a plotter, and determining a drawing direction of an image drawn in a specific area in an image to be printed based on the print data;
A process of changing the orientation of the entire image based on the print data so that the determined drawing direction is a predetermined specific direction;
Processing for generating an image to be printed based on the print data in which the orientation of the entire image is changed;
A program characterized by having executed.
前記特定の領域に描画される画像全体において、描画が開始された位置と描画が終了した位置とに基づいて、当該特定の領域における画像の描画方向を判断することを特徴とする、請求項8に記載のプログラム。   9. The drawing direction of an image in the specific area is determined based on a position where drawing is started and a position where drawing is completed in the entire image drawn in the specific area. The program described in.
JP2009076012A 2009-03-26 2009-03-26 Image forming apparatus and program Pending JP2010228167A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2009076012A JP2010228167A (en) 2009-03-26 2009-03-26 Image forming apparatus and program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2009076012A JP2010228167A (en) 2009-03-26 2009-03-26 Image forming apparatus and program

Publications (1)

Publication Number Publication Date
JP2010228167A true JP2010228167A (en) 2010-10-14

Family

ID=43044506

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2009076012A Pending JP2010228167A (en) 2009-03-26 2009-03-26 Image forming apparatus and program

Country Status (1)

Country Link
JP (1) JP2010228167A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2015114806A (en) * 2013-12-11 2015-06-22 富士ゼロックス株式会社 Image processor and program

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2015114806A (en) * 2013-12-11 2015-06-22 富士ゼロックス株式会社 Image processor and program

Similar Documents

Publication Publication Date Title
JP2008293105A (en) Printer driver program and image forming apparatus
US8179558B2 (en) Image processing apparatus, image processing method, program and storage medium constructed to generate print data including a bitmap image and attribute data of each pixel of the bitmap image
JP6066108B2 (en) Electronic document generation system and program
JP5013068B2 (en) Print setting instruction apparatus, print setting instruction system, and control program
US20150269459A1 (en) Image formation apparatus and method for processing print setting information
JP6984145B2 (en) Information processing equipment
JP4396749B2 (en) Print control device and printer driver program
JP6917285B2 (en) Image forming device
JP2010228167A (en) Image forming apparatus and program
JP2006196976A (en) Copying system with automatic clean copy function using ocr
JP4564732B2 (en) PRINT CONTROL DEVICE, PRINT CONTROL METHOD, PRINT SYSTEM, PROGRAM
JP2006281597A (en) Image forming apparatus and its program
JP2019144929A (en) Print data generator, print data generation method, and print data generation program
JP4960837B2 (en) Image forming system, image forming apparatus, information processing apparatus, image forming method, and image forming program
JP2010211439A (en) Character output device and program
JP7298241B2 (en) Support program, information processing device, and printing method
JP2008299634A (en) Print control device and program
JP4998176B2 (en) Translation apparatus and program
JP2009260614A (en) Image forming system, image forming apparatus, image processor, and program
JP2005235072A (en) Print controller, method and program
JP7312357B2 (en) image forming device
JP4968417B1 (en) Print data conversion apparatus and program
JP2006281598A (en) Image forming apparatus and its program
JP7322662B2 (en) Image processing device, image processing program and image processing method
JP4290711B2 (en) Printing device