JP2020059195A - Image formation apparatus and image formation program - Google Patents

Image formation apparatus and image formation program Download PDF

Info

Publication number
JP2020059195A
JP2020059195A JP2018191197A JP2018191197A JP2020059195A JP 2020059195 A JP2020059195 A JP 2020059195A JP 2018191197 A JP2018191197 A JP 2018191197A JP 2018191197 A JP2018191197 A JP 2018191197A JP 2020059195 A JP2020059195 A JP 2020059195A
Authority
JP
Japan
Prior art keywords
data
garbled
pdl
fixed part
image forming
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
JP2018191197A
Other languages
Japanese (ja)
Inventor
昌倫 逢坂
Masamichi Osaka
昌倫 逢坂
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.)
Kyocera Document Solutions Inc
Original Assignee
Kyocera Document Solutions Inc
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 Kyocera Document Solutions Inc filed Critical Kyocera Document Solutions Inc
Priority to JP2018191197A priority Critical patent/JP2020059195A/en
Publication of JP2020059195A publication Critical patent/JP2020059195A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Record Information Processing For Printing (AREA)
  • Editing Of Facsimile Originals (AREA)

Abstract

To prevent the occurrence of character garbling when an image formation apparatus generates drawing data by interpreting and drawing PDL data.SOLUTION: An image formation apparatus reads stationary part image data out from a storage device when PDL data including a stationary part independent on data on a print object and a variable value dependent on the data on the printing object is not described in a specific character code or character garbling is larger than a threshold, generates first drawing data by interpreting and drawing the variable value included in the PDL data, and generates first composite data by combining the stationary part image data with the first drawing data, or reads the stationary part image data of the part with the character garbling out from the storage device when the character garbling is equal to or less than the threshold, generates second drawing data by interpreting and drawing the part without the character garbling included in the stationary part of the PDL data and the variable value included in the PDL data, and generates the second composite data by combining the stationary part image data on the part with the character garbling with the second drawing data.SELECTED DRAWING: Figure 3

Description

本開示は、印刷対象のデータに非依存の固定部と、印刷対象のデータに依存する可変値とを含む、PDL(page description language)で記述されたPDLデータを解釈し描画して印刷する画像形成装置及び画像形成プログラムに関する。   The present disclosure interprets, draws, and prints PDL data described in PDL (page description language) that includes a fixed part that is independent of print target data and a variable value that depends on the print target data. The present invention relates to a forming device and an image forming program.

PDLデータを解釈し描画して描画データを生成し、描画データを印刷する画像形成装置が知られている。   There is known an image forming apparatus that interprets PDL data, draws the drawing data to generate the drawing data, and prints the drawing data.

特開2017−121769号公報JP, 2017-121769, A

画像形成装置がPDLデータを解釈し描画して描画データを生成する場合、文字化けを発生させないことが望ましい。   When the image forming apparatus interprets PDL data and draws the drawing data to generate the drawing data, it is desirable not to generate garbled characters.

本開示の一実施形態に係る画像形成装置は、
印刷対象のデータに非依存の固定部の画像データである固定部画像データを記憶する記憶装置と、
画像形成プログラムを実行することにより、
前記固定部と、前記印刷対象のデータに依存する可変値とを含むPDLデータを取得し、前記PDLデータが特定の文字コードで記述されているか否かを判断する文字コード判断部と、
前記PDLデータが前記特定の文字コードで記述されている場合、前記PDLデータを画像データに変換して変換データを生成するデータ変換部と、
前記変換データを光学文字認識し、前記変換データに含まれる前記固定部が文字化けを含むか否かを判断し、前記固定部が文字化けを含む場合、前記文字化けが閾値より多いか否かを判断する文字化け判断部と、
前記PDLデータが前記特定の文字コードで記述されていない場合、若しくは、前記文字化けが前記閾値より多い場合、前記固定部画像データを前記記憶装置から読み出し、前記PDLデータに含まれる前記可変値を解釈し描画して第1の描画データを生成し、前記固定部画像データと前記第1の描画データとを合成して第1の合成データを生成し、又は
前記文字化けが前記閾値以下の場合、前記文字化けしたパートの固定部画像データを前記記憶装置から読み出し、前記PDLデータの前記固定部に含まれる前記文字化けしていないパート及び前記PDLデータに含まれる前記可変値を解釈し描画して第2の描画データを生成し、前記文字化けしたパートの固定部画像データと前記第2の描画データとを合成して第2の合成データを生成する
描画部と、
前記第1の合成データ又は前記第2の合成データを画像形成部に出力する印刷制御部
として動作する制御回路と
を具備する。
An image forming apparatus according to an embodiment of the present disclosure is
A storage device that stores fixed-part image data that is image data of a fixed part that does not depend on data to be printed,
By executing the image forming program,
A character code determination unit that acquires PDL data including the fixed unit and a variable value that depends on the data to be printed, and determines whether the PDL data is described by a specific character code.
When the PDL data is described with the specific character code, a data conversion unit that converts the PDL data into image data to generate conversion data,
Optical character recognition of the converted data, it is determined whether the fixed portion included in the converted data includes garbled, if the fixed portion includes garbled, whether the garbled is more than a threshold value And a garbled character determination unit that determines
When the PDL data is not described by the specific character code, or when the garbled characters are more than the threshold value, the fixed part image data is read from the storage device, and the variable value included in the PDL data is read. Interpretation and drawing to generate first drawing data, combining the fixed part image data and the first drawing data to generate first combined data, or when the garbled character is less than or equal to the threshold value Reading the fixed part image data of the garbled part from the storage device, interpreting and drawing the non-garbled part included in the fixed part of the PDL data and the variable value included in the PDL data. To generate second drawing data, and to combine the fixed part image data of the garbled part with the second drawing data to generate second combined data. Drawing section,
A control circuit that operates as a print control unit that outputs the first combined data or the second combined data to the image forming unit.

本実施形態によれば、文字コード判断部は、固定部と、印刷対象のデータに依存する可変値とを含むPDLデータを取得し、PDLデータが特定の文字コードで記述されているか否かを判断する。これにより、必ず文字化けが発生するケース(PDLデータが特定の文字コードで記述されていない)を確実に判断することができる。さらに、文字化け判断部は、PDLデータを画像データに変換した変換データを光学文字認識し、変換データに含まれる固定部が文字化けを含むか否かを判断する。これにより、PDLデータが特定の文字コードで記述されている場合でも、文字化けが発生するケースを確実に判断することができる。さらに、必ず文字化けが発生する場合(PDLデータが特定の文字コードで記述されていない)と、文字化けが閾値より多い場合は、記憶装置が予め記憶する固定部画像データを用いて第1の合成データを生成するので、文字化けが発生し得ない。さらに、文字化けが閾値以下の場合、文字化けしたパートのみ、記憶装置が予め記憶する固定部画像データを用いて第2の合成データを生成するので、文字化けが発生し得ない上、固定部画像データの使用が最小限で済むため、データ量も節約される。   According to the present embodiment, the character code determination unit acquires the PDL data including the fixed unit and the variable value that depends on the data to be printed, and determines whether the PDL data is described by the specific character code. to decide. As a result, it is possible to surely determine the case where garbled characters occur (PDL data is not described with a specific character code). Further, the garbled character determination unit performs optical character recognition on the converted data obtained by converting the PDL data into image data, and determines whether the fixed part included in the converted data contains garbled characters. As a result, even if the PDL data is described with a specific character code, it is possible to reliably determine the case where the garbled character occurs. Furthermore, when garbled characters are always generated (PDL data is not described in a specific character code) and when garbled characters are larger than the threshold value, the first portion is used by using the fixed part image data stored in advance in the storage device. Since synthetic data is generated, garbled characters cannot occur. Further, when the garbled character is less than or equal to the threshold value, only the garbled part is used to generate the second combined data by using the fixed part image data stored in advance in the storage device. The amount of data is also saved because the use of image data is minimized.

前記固定部が文字化けを含まない場合、前記描画部は、前記PDLデータを解釈し描画して第3の描画データを生成し、
前記印刷制御部は、前記第3の描画データを前記画像形成部に出力する。
If the fixed unit does not include garbled characters, the drawing unit interprets and draws the PDL data to generate third drawing data,
The print control unit outputs the third drawing data to the image forming unit.

本実施形態によれば、固定部が文字化けを含まない場合、描画部は、PDLデータを解釈し描画して第3の描画データを生成する。これにより、文字化けが確実に発生しないと予め判断された場合には、固定部画像データを用いないので、データ量が節約される。   According to this embodiment, when the fixed part does not include garbled characters, the drawing unit interprets and draws the PDL data to generate the third drawing data. As a result, if it is determined in advance that the garbled characters will not occur, the fixed part image data is not used, and the data amount is saved.

前記特定の文字コードはShift_JISである。   The specific character code is Shift_JIS.

画像形成装置がサポートしていないフォントで記述し生成したPDLデータを、画像形成プログラムが解釈し描画すると、文字化けが発生する。例えば、様々な文字コード(Shift_JISや、それ以外の文字コード)でPDLデータを生成することができる。しかしながら、そのPDLデータを解釈し描画する画像形成プログラムは、特定の文字コード(Shift_JIS)で記述されたPDLデータでなければ、正確に解釈し描画することができない。逆に言えば、画像形成プログラムは、特定の文字コード(Shift_JIS)以外の文字コード(例えば、中国語を含む文字列を表現するために用いられる文字コード)で記述されたPDLデータを解釈し描画すると、必ず、文字化けしてしまう。これに対して、本実施形態によれば、特定の文字コード(Shift_JIS)以外の文字コード(例えば、中国語を含む文字列を表現するために用いられる文字コード)で記述されたPDLデータを、文字化けせず描画することができる。   When the image forming program interprets and draws the PDL data described and generated in a font that is not supported by the image forming apparatus, garbled characters occur. For example, PDL data can be generated with various character codes (Shift_JIS and other character codes). However, an image forming program that interprets and draws the PDL data cannot correctly interpret and draw unless the PDL data is described in a specific character code (Shift_JIS). Conversely, the image forming program interprets and draws the PDL data described by a character code other than the specific character code (Shift_JIS) (for example, a character code used to represent a character string including Chinese). Then, the characters are always garbled. On the other hand, according to the present embodiment, the PDL data described by a character code other than the specific character code (Shift_JIS) (for example, a character code used to represent a character string including Chinese) is It can be drawn without garbled characters.

本開示の一実施形態に係る画像形成プログラムは、
印刷対象のデータに非依存の固定部の画像データである固定部画像データを記憶する記憶装置を有する画像形成装置の制御回路を、
前記固定部と、前記印刷対象のデータに依存する可変値とを含むPDLデータを取得し、前記PDLデータが特定の文字コードで記述されているか否かを判断する文字コード判断部と、
前記PDLデータが前記特定の文字コードで記述されている場合、前記PDLデータを画像データに変換して変換データを生成するデータ変換部と、
前記変換データを光学文字認識し、前記変換データに含まれる前記固定部が文字化けを含むか否かを判断し、前記固定部が文字化けを含む場合、前記文字化けが閾値より多いか否かを判断する文字化け判断部と、
前記PDLデータが前記特定の文字コードで記述されていない場合、若しくは、前記文字化けが前記閾値より多い場合、前記固定部画像データを前記記憶装置から読み出し、前記PDLデータに含まれる前記可変値を解釈し描画して第1の描画データを生成し、前記固定部画像データと前記第1の描画データとを合成して第1の合成データを生成し、又は
前記文字化けが前記閾値以下の場合、前記文字化けしたパートの固定部画像データを前記記憶装置から読み出し、前記PDLデータの前記固定部に含まれる前記文字化けしていないパート及び前記PDLデータに含まれる前記可変値を解釈し描画して第2の描画データを生成し、前記文字化けしたパートの固定部画像データと前記第2の描画データとを合成して第2の合成データを生成する
描画部と、
前記第1の合成データ又は前記第2の合成データを画像形成部に出力する印刷制御部
として動作させる。
An image forming program according to an embodiment of the present disclosure is
A control circuit of an image forming apparatus having a storage device that stores fixed part image data that is image data of a fixed part that is independent of print target data,
A character code determination unit that acquires PDL data including the fixed unit and a variable value that depends on the data to be printed, and determines whether the PDL data is described by a specific character code.
When the PDL data is described with the specific character code, a data conversion unit that converts the PDL data into image data to generate conversion data,
Optical character recognition of the converted data, it is determined whether the fixed portion included in the converted data includes garbled, if the fixed portion includes garbled, whether the garbled is more than a threshold value And a garbled character determination unit that determines
When the PDL data is not described by the specific character code, or when the garbled characters are more than the threshold value, the fixed part image data is read from the storage device, and the variable value included in the PDL data is read. Interpretation and drawing to generate first drawing data, combining the fixed part image data and the first drawing data to generate first combined data, or when the garbled character is less than or equal to the threshold value Reading the fixed part image data of the garbled part from the storage device, interpreting and drawing the non-garbled part included in the fixed part of the PDL data and the variable value included in the PDL data. To generate second drawing data, and to combine the fixed part image data of the garbled part with the second drawing data to generate second combined data. Drawing section,
The print control unit outputs the first combined data or the second combined data to the image forming unit.

本開示によれば、画像形成装置がPDLデータを解釈し描画して描画データを生成する場合、文字化けを発生させないことを図ることができる。   According to the present disclosure, when an image forming apparatus interprets PDL data and draws it to generate drawing data, it is possible to prevent garbled characters.

なお、ここに記載された効果は必ずしも限定されるものではなく、本開示中に記載されたいずれかの効果であってもよい。   Note that the effects described here are not necessarily limited, and may be any effects described in the present disclosure.

本発明の一実施形態に係る画像形成装置のハードウェア構成を示す。1 illustrates a hardware configuration of an image forming apparatus according to an exemplary embodiment of the present invention. 画像形成装置の機能的構成を示す。1 shows a functional configuration of an image forming apparatus. 画像形成装置の動作フローを示す。3 shows an operation flow of the image forming apparatus.

以下、図面を参照しながら、本開示の実施形態を説明する。   Hereinafter, embodiments of the present disclosure will be described with reference to the drawings.

1.画像形成装置のハードウェア構成   1. Hardware configuration of image forming apparatus

図1は、本発明の一実施形態に係る画像形成装置のハードウェア構成を示す。   FIG. 1 shows a hardware configuration of an image forming apparatus according to an embodiment of the present invention.

画像形成装置10は、制御回路11を備える。制御回路11は、プロセッサーであるCPU11a(Central Processing Unit)、RAM11b(Random Access Memory)、メモリーであるROM11c(Read Only Memory)及び専用のハードウェア回路等から構成され、画像形成装置10の全体的な動作制御を司る。CPU11aは、ROM11cが記憶する情報処理プログラムをRAM11bにロードして実行する。ROM11cは、CPU11aが実行するプログラムやデータなどを固定的に記憶する。ROM11cは、非一過性のコンピューター読み取り可能な記録媒体の一例である。   The image forming apparatus 10 includes a control circuit 11. The control circuit 11 includes a CPU 11 a (Central Processing Unit) that is a processor, a RAM 11 b (Random Access Memory), a ROM 11 c (Read Only Memory) that is a memory, a dedicated hardware circuit, and the like, and the entire image forming apparatus 10 includes Manages motion control. The CPU 11a loads the information processing program stored in the ROM 11c into the RAM 11b and executes it. The ROM 11c fixedly stores programs and data executed by the CPU 11a. The ROM 11c is an example of a non-transitory computer-readable recording medium.

制御回路11は、画像読取部12(イメージスキャナー)、画像処理部14、画像メモリー15、画像形成部16(プリンター)、表示部17aを備える操作部17(タッチパネル)、HDD(Hard Disk Drive)やSSD(Solid State Drive)等の大容量の不揮発性の記憶装置18、ファクシミリ通信部19及びネットワーク通信インターフェース13等と接続されている。制御回路11は、接続されている上記各部の動作制御や、各部との間での信号又はデータの送受信を行う。   The control circuit 11 includes an image reading unit 12 (image scanner), an image processing unit 14, an image memory 15, an image forming unit 16 (printer), an operation unit 17 (touch panel) including a display unit 17a, an HDD (Hard Disk Drive), and the like. It is connected to a large-capacity non-volatile storage device 18, such as an SSD (Solid State Drive), a facsimile communication unit 19, a network communication interface 13, and the like. The control circuit 11 controls the operation of each of the above-mentioned connected parts and transmits / receives signals or data to / from each part.

2.画像形成装置の機能的構成   2. Functional configuration of image forming apparatus

図2は、画像形成装置の機能的構成を示す。   FIG. 2 shows a functional configuration of the image forming apparatus.

画像形成装置10の制御回路11において、CPU11aは、ROM11cが記憶する画像形成プログラム100をRAM11bにロードして実行することにより、文字コード判断部101、データ変換部102、文字化け判断部103、描画部104及び印刷制御部105として動作する。   In the control circuit 11 of the image forming apparatus 10, the CPU 11a loads the image forming program 100 stored in the ROM 11c into the RAM 11b and executes the image forming program 100, thereby executing the character code determination unit 101, the data conversion unit 102, the garbled character determination unit 103, and the drawing. It operates as the unit 104 and the print control unit 105.

文字コード判断部101は、印刷対象のデータに非依存の固定部と、印刷対象のデータに依存する可変値とを含むPDLデータを取得し、PDLデータが特定の文字コードで記述されているか否かを判断する。   The character code determination unit 101 acquires PDL data including a fixed portion that is not dependent on the print target data and a variable value that depends on the print target data, and determines whether the PDL data is described in a specific character code. To judge.

データ変換部102は、PDLデータが特定の文字コードで記述されている場合、PDLデータを画像データに変換して変換データを生成する。   When the PDL data is described with a specific character code, the data conversion unit 102 converts the PDL data into image data and generates converted data.

文字化け判断部103は、変換データを光学文字認識し、変換データに含まれる固定部が文字化けを含むか否かを判断し、固定部が文字化けを含む場合、文字化けが閾値より多いか否かを判断する。   The garbled character determination unit 103 performs optical character recognition on the converted data, determines whether the fixed portion included in the converted data includes the garbled character, and if the fixed portion includes the garbled character, determines whether the garbled character is greater than a threshold value. Determine whether or not.

記憶装置18は、固定部画像データ112を記憶する。「固定部画像データ」とは、印刷対象のデータに非依存の固定部の画像データであり、予め、記憶装置18が記憶している。例えば、記憶装置18は、フォーム(例えば、利用履歴レポート)に含まれる固定部を分割した複数のパートそれぞれの画像データを記憶することにより、固定部全体の画像データである固定部画像データ112を記憶してもよい。   The storage device 18 stores the fixed part image data 112. The “fixed portion image data” is image data of the fixed portion that is independent of the data to be printed, and is stored in the storage device 18 in advance. For example, the storage device 18 stores the fixed part image data 112, which is the image data of the entire fixed part, by storing the image data of each of a plurality of parts obtained by dividing the fixed part included in the form (for example, the usage history report). May be stored.

描画部104は、固定部が文字化けを含まない場合、PDLデータを解釈し描画して第3の描画データを生成する。描画部104は、PDLデータが特定の文字コードで記述されていない場合、若しくは、文字化けが閾値より多い場合、固定部画像データ112を記憶装置18から読み出し、PDLデータに含まれる可変値を解釈し描画して第1の描画データを生成し、固定部画像データ112と第1の描画データとを合成して第1の合成データを生成する。描画部104は、文字化けが閾値以下の場合、文字化けしたパートの固定部画像データ112を記憶装置18から読み出し、PDLデータの固定部に含まれる文字化けしていないパート及びPDLデータに含まれる可変値を解釈し描画して第2の描画データを生成し、文字化けしたパートの固定部画像データ112と第2の描画データとを合成して第2の合成データを生成する   When the fixed part does not include garbled characters, the drawing unit 104 interprets and draws the PDL data to generate third drawing data. When the PDL data is not described in a specific character code or when the garbled characters are more than the threshold value, the drawing unit 104 reads the fixed part image data 112 from the storage device 18 and interprets the variable value included in the PDL data. Then, drawing is performed to generate first drawing data, and the fixed portion image data 112 and the first drawing data are combined to generate first combined data. When the garbled character is equal to or less than the threshold value, the drawing unit 104 reads the fixed part image data 112 of the garbled part from the storage device 18, and includes the non-garbled part and the PDL data included in the fixed part of the PDL data. The variable value is interpreted and drawn to generate the second drawing data, and the fixed part image data 112 of the garbled part and the second drawing data are combined to generate the second combined data.

印刷制御部105は、第3の描画データ、第1の合成データ又は第2の合成データを画像形成部16に出力する。   The print control unit 105 outputs the third drawing data, the first combined data, or the second combined data to the image forming unit 16.

3.画像形成装置の動作フロー   3. Operation flow of image forming apparatus

図3は、画像形成装置の動作フローを示す。   FIG. 3 shows an operation flow of the image forming apparatus.

前提として、HyPASアプリケーション200が、PDLデータを生成する。HyPASアプリケーション200は、画像形成装置10の特定のプラットフォーム(例えば、HyPAS(Hybrid Platform for Advanced Solutions))環境で実行可能なアプリケーションプログラムである。PDLデータは、任意の文字コード(例えば、Shift_JIS)で記述される。「Shift_JIS」は、日本語及び半角英数を含む文字列を表現するために用いられる文字コードである。PDLデータは、印刷対象のデータに非依存の固定部と、印刷対象のデータに依存する可変値とを含む。HyPASアプリケーション200が生成し固定部及び可変値を含むPDLデータの一例は、利用履歴レポートである。利用履歴レポートは、典型的には、固定部(サービス名、さらに、利用日時、印刷枚数、カラーモード等の項目等)即ちフォーム部分と、可変値(利用日時としての数値、印刷枚数としての数値、カラーモードとしてフルカラー、グレースケール又はモノクロ2階調等)とを含む。   As a premise, the HyPAS application 200 generates PDL data. The HyPAS application 200 is an application program executable in a specific platform (for example, HyPAS (Hybrid Platform for Advanced Solutions)) environment of the image forming apparatus 10. The PDL data is described by an arbitrary character code (for example, Shift_JIS). “Shift_JIS” is a character code used to represent a character string including Japanese and half-width alphanumeric characters. The PDL data includes a fixed part that does not depend on the print target data and a variable value that depends on the print target data. An example of PDL data generated by the HyPAS application 200 and including a fixed part and a variable value is a usage history report. The usage history report is typically a fixed part (service name, and further items such as date and time of use, number of prints, color mode, etc.), that is, a form value, and a variable value (number as date and time of use, number as number of prints). , Full color, gray scale, monochrome two gradations, etc.) are included as color modes.

文字コード判断部101は、HyPASアプリケーション200から、PDLデータを取得する(ステップS101)。文字コード判断部101は、取得したPDLデータが特定の文字コード(本例の場合、Shift_JIS)で記述されているか否かを判断する(ステップS102)。   The character code determination unit 101 acquires PDL data from the HyPAS application 200 (step S101). The character code determination unit 101 determines whether the acquired PDL data is described in a specific character code (Shift_JIS in this example) (step S102).

文字コード判断部101が、PDLデータが特定の文字コード(Shift_JIS)で記述されていると判断すると(ステップS102、YES)、データ変換部102は、PDLデータを画像データ(例えば、JPEGデータ)に変換して変換データを生成し保存する(ステップS103)。   When the character code determination unit 101 determines that the PDL data is described in a specific character code (Shift_JIS) (step S102, YES), the data conversion unit 102 converts the PDL data into image data (for example, JPEG data). The converted data is generated and converted and stored (step S103).

文字化け判断部103は、変換データを光学文字認識(OCR)し(ステップS104)、変換データに含まれる固定部が文字化けを含むか否かを判断する(ステップS105)。例えば、文字化け判断部103は、記憶装置18が記憶する、固定部の画像データの期待値111と、OCRにより得られた値とを比較し、これらが完全に一致すれば、固定部が文字化けを含まないと判断すればよい。   The garbled character determination unit 103 performs optical character recognition (OCR) on the converted data (step S104), and determines whether or not the fixed part included in the converted data contains garbled characters (step S105). For example, the garbled character determination unit 103 compares the expected value 111 of the image data of the fixed unit, which is stored in the storage device 18, with the value obtained by OCR. You can judge that it does not include a ghost.

文字化け判断部103が変換データに含まれる固定部が文字化けを含まないと判断すると(ステップS105、NO)、描画部104は、HyPASアプリケーション200が生成したPDLデータを解釈し描画して描画データ(第3の描画データ)を生成する(ステップS106)。   When the garbled character determination unit 103 determines that the fixed part included in the converted data does not include the character garbled (step S105, NO), the drawing unit 104 interprets and draws the PDL data generated by the HyPAS application 200 and draws the drawn data. (Third drawing data) is generated (step S106).

一方、文字化け判断部103は、変換データに含まれる固定部が文字化けを含むと判断すると(ステップS105、YES)、文字化けをカウントし(ステップS107)、カウントの結果、文字化けが閾値(例えば、50%)より多いか否かを判断する(ステップS108)。   On the other hand, when the garbled character determination unit 103 determines that the fixed part included in the converted data includes garbled characters (step S105, YES), the garbled characters are counted (step S107), and as a result of the counting, the character garbled threshold value ( (For example, 50%) is determined (step S108).

文字化け判断部103が文字化けが閾値より多いと判断すると(ステップS108、YES)、描画部104は、固定部画像データ112を記憶装置18から読み出す。描画部104は、HyPASアプリケーション200が生成したPDLデータに含まれる可変値を解釈し描画して描画データ(第1の描画データ)を生成する。描画部104は、記憶装置18から読み出した固定部画像データ112(固定部全体の画像データ)と、第1の描画データとを合成して、合成データ(第1の合成データ)を生成する(ステップS109)。   When the garbled character determination unit 103 determines that the garbled character is greater than the threshold value (YES in step S108), the drawing unit 104 reads the fixed part image data 112 from the storage device 18. The drawing unit 104 interprets and draws a variable value included in the PDL data generated by the HyPAS application 200 to generate drawing data (first drawing data). The drawing unit 104 combines the fixed part image data 112 (image data of the entire fixed part) read from the storage device 18 and the first drawing data to generate combined data (first combined data) ( Step S109).

一方、文字化け判断部103が文字化けが閾値以下と判断すると(ステップS108、NO)、描画部104は、文字化け(ステップS105で判断)したパートの固定部画像データ112を記憶装置18から読み出す。描画部104は、HyPASアプリケーション200が生成したPDLデータの固定部に含まれる文字化け(ステップS105で判断)していないパートと、PDLデータに含まれる可変値とを、解釈し描画して描画データ(第2の描画データ)を生成する。描画部104は、記憶装置18から読み出した文字化けしたパートの固定部画像データ112と、第2の描画データとを合成して、合成データ(第2の合成データ)を生成する(ステップS110)。   On the other hand, when the garbled character determination unit 103 determines that the garbled character is less than or equal to the threshold value (NO in step S108), the drawing unit 104 reads the fixed part image data 112 of the garbled part (determined in step S105) from the storage device 18. . The drawing unit 104 interprets and draws a part included in the fixed part of the PDL data generated by the HyPAS application 200 that is not garbled (determined in step S105) and a variable value included in the PDL data to draw the drawing data. (Second drawing data) is generated. The drawing unit 104 combines the fixed part image data 112 of the garbled part read from the storage device 18 and the second drawing data to generate combined data (second combined data) (step S110). .

ところで、文字コード判断部101が、PDLデータが特定の文字コード(Shift_JIS)で記述されていないと判断すると(ステップS102、NO)、描画部104は、固定部画像データ112を記憶装置18から読み出す。描画部104は、HyPASアプリケーション200が生成したPDLデータに含まれる可変値を解釈し描画して描画データ(第1の描画データ)を生成する。描画部104は、記憶装置18から読み出した固定部画像データ112(固定部全体の画像データ)と、第1の描画データとを合成して、合成データ(第1の合成データ)を生成する(ステップS109)。   By the way, when the character code determination unit 101 determines that the PDL data is not described by a specific character code (Shift_JIS) (step S102, NO), the drawing unit 104 reads the fixed portion image data 112 from the storage device 18. . The drawing unit 104 interprets and draws a variable value included in the PDL data generated by the HyPAS application 200 to generate drawing data (first drawing data). The drawing unit 104 combines the fixed part image data 112 (image data of the entire fixed part) read from the storage device 18 and the first drawing data to generate combined data (first combined data) ( Step S109).

印刷制御部105は、描画部104が生成した第3の描画データ(ステップS106)、第1の合成データ(ステップS109)又は第2の合成データ(ステップS110)を画像形成部16(プリンター)に出力する(ステップS111)。   The print control unit 105 transfers the third drawing data (step S106), the first combined data (step S109), or the second combined data (step S110) generated by the drawing unit 104 to the image forming unit 16 (printer). Output (step S111).

4.結語   4. Conclusion

HyPASアプリケーション200が、画像形成装置10がサポートしていないフォントで記述し生成したPDLデータを、画像形成プログラム100が解釈し描画すると、文字化けが発生する。例えば、HyPASアプリケーション200は、様々な文字コード(Shift_JISや、それ以外の文字コード)でPDLデータを生成することができる。しかしながら、そのPDLデータを解釈し描画する画像形成プログラム100は、特定の文字コード(Shift_JIS)で記述されたPDLデータでなければ、正確に解釈し描画することができない。逆に言えば、画像形成プログラム100は、特定の文字コード(Shift_JIS)以外の文字コード(例えば、中国語を含む文字列を表現するために用いられる文字コード)で記述されたPDLデータを解釈し描画すると、必ず、文字化けしてしまう。   When the HyPAS application 200 interprets and draws the PDL data described and generated in a font that the image forming apparatus 10 does not support, garbled characters occur. For example, the HyPAS application 200 can generate PDL data with various character codes (Shift_JIS and other character codes). However, the image forming program 100 that interprets and draws the PDL data cannot correctly interpret and draw unless the PDL data is described in a specific character code (Shift_JIS). In other words, the image forming program 100 interprets PDL data described in a character code other than a specific character code (Shift_JIS) (for example, a character code used to represent a character string including Chinese). When I draw it, the characters are always garbled.

文字化けが発生するか否かを予想する方法として、PDLデータを記述したフォントのフォントリストを画像形成装置10が持っているか否かを判断する方法が一例として考えられる。しかしながら、画像形成装置10がフォントリストを持っているか否かは、典型的には、ユーザーやサービスマンがマニュアルで画像形成装置10のフォントリストを確認する必要があり、あらゆる画像形成装置10の文字化けを回避する方法としては適切でない。さらに、仮に、ユーザーやサービスマンがフォントリストを確認して文字化けが発生しないと判断したとしても、実際には、何らかの理由で文字化けが発生するおそれもある。この場合、実際に印刷して初めて、文字化けの発生が発覚することになる。   As a method of predicting whether or not garbled characters will occur, a method of determining whether or not the image forming apparatus 10 has a font list of fonts describing PDL data can be considered as an example. However, whether or not the image forming apparatus 10 has a font list typically requires a user or a service person to manually check the font list of the image forming apparatus 10, and the characters of all the image forming apparatuses 10 need to be checked. It is not an appropriate method to avoid ghosts. Further, even if the user or the service person checks the font list and determines that the garbled character does not occur, the garbled character may actually occur for some reason. In this case, the occurrence of garbled characters will be discovered only after the actual printing.

これに対して、本実施形態によれば、文字コード判断部101は、固定部と、印刷対象のデータに依存する可変値とを含むPDLデータを取得し、PDLデータが特定の文字コードで記述されているか否かを判断する。これにより、必ず文字化けが発生するケース(PDLデータが特定の文字コードで記述されていない)を確実に判断することができる。さらに、文字化け判断部103は、PDLデータを画像データに変換した変換データを光学文字認識し、変換データに含まれる固定部が文字化けを含むか否かを判断する。これにより、PDLデータが特定の文字コードで記述されている場合でも、文字化けが発生するケースを確実に判断することができる。さらに、必ず文字化けが発生する場合(PDLデータが特定の文字コードで記述されていない)と、文字化けが閾値より多い場合は、記憶装置18が予め記憶する固定部画像データ112を用いて第1の合成データを生成するので、文字化けが発生し得ない。さらに、文字化けが閾値以下の場合、文字化けしたパートのみ、記憶装置18が予め記憶する固定部画像データ112を用いて第2の合成データを生成するので、文字化けが発生し得ない上、固定部画像データ112の使用が最小限で済むため、データ量も節約される。   On the other hand, according to the present embodiment, the character code determination unit 101 acquires PDL data including a fixed unit and a variable value that depends on the print target data, and the PDL data is described by a specific character code. It is determined whether or not it has been done. As a result, it is possible to surely determine the case where garbled characters occur (PDL data is not described with a specific character code). Further, the garbled character determination unit 103 performs optical character recognition on the converted data obtained by converting the PDL data into image data, and determines whether the fixed part included in the converted data contains garbled characters. As a result, even if the PDL data is described with a specific character code, it is possible to reliably determine the case where the garbled character occurs. Furthermore, when garbled characters are always generated (PDL data is not described with a specific character code) and when garbled characters are larger than the threshold value, the first image is stored using the fixed part image data 112 stored in advance in the storage device 18. Since the combined data of 1 is generated, garbled characters cannot occur. Further, when the garbled character is less than or equal to the threshold value, only the garbled part is used to generate the second combined data using the fixed part image data 112 stored in advance in the storage device 18, and thus the garbled character cannot occur. Since the use of the fixed part image data 112 is minimized, the amount of data is also saved.

本実施形態によれば、固定部が文字化けを含まない場合、描画部104は、PDLデータを解釈し描画して第3の描画データを生成する。これにより、文字化けが確実に発生しないと予め判断された場合には、固定部画像データ112を用いないので、データ量が節約される。   According to this embodiment, when the fixed part does not include garbled characters, the drawing unit 104 interprets and draws the PDL data to generate third drawing data. As a result, when it is determined in advance that the garbled characters will not occur, the fixed part image data 112 is not used, and the data amount is saved.

本技術の各実施形態及び各変形例について上に説明したが、本技術は上述の実施形態にのみ限定されるものではなく、本技術の要旨を逸脱しない範囲内において種々変更を加え得ることは勿論である。   Although each embodiment and each modified example of the present technology have been described above, the present technology is not limited to the above-described embodiments, and various modifications may be made without departing from the scope of the present technology. Of course.

画像形成装置10
画像形成プログラム100
文字コード判断部101
データ変換部102
文字化け判断部103
描画部104
印刷制御部105
Image forming apparatus 10
Image forming program 100
Character code determination unit 101
Data converter 102
Garbled character determination unit 103
Drawing unit 104
Print control unit 105

Claims (4)

印刷対象のデータに非依存の固定部の画像データである固定部画像データを記憶する記憶装置と、
画像形成プログラムを実行することにより、
前記固定部と、前記印刷対象のデータに依存する可変値とを含むPDLデータを取得し、前記PDLデータが特定の文字コードで記述されているか否かを判断する文字コード判断部と、
前記PDLデータが前記特定の文字コードで記述されている場合、前記PDLデータを画像データに変換して変換データを生成するデータ変換部と、
前記変換データを光学文字認識し、前記変換データに含まれる前記固定部が文字化けを含むか否かを判断し、前記固定部が文字化けを含む場合、前記文字化けが閾値より多いか否かを判断する文字化け判断部と、
前記PDLデータが前記特定の文字コードで記述されていない場合、若しくは、前記文字化けが前記閾値より多い場合、前記固定部画像データを前記記憶装置から読み出し、前記PDLデータに含まれる前記可変値を解釈し描画して第1の描画データを生成し、前記固定部画像データと前記第1の描画データとを合成して第1の合成データを生成し、又は
前記文字化けが前記閾値以下の場合、前記文字化けしたパートの固定部画像データを前記記憶装置から読み出し、前記PDLデータの前記固定部に含まれる前記文字化けしていないパート及び前記PDLデータに含まれる前記可変値を解釈し描画して第2の描画データを生成し、前記文字化けしたパートの固定部画像データと前記第2の描画データとを合成して第2の合成データを生成する
描画部と、
前記第1の合成データ又は前記第2の合成データを画像形成部に出力する印刷制御部
として動作する制御回路と
を具備する画像形成装置。
A storage device that stores fixed-part image data that is image data of a fixed part that does not depend on data to be printed,
By executing the image forming program,
A character code determination unit that acquires PDL data including the fixed unit and a variable value that depends on the data to be printed, and determines whether the PDL data is described by a specific character code.
When the PDL data is described with the specific character code, a data conversion unit that converts the PDL data into image data to generate conversion data,
Optical character recognition of the converted data, it is determined whether the fixed portion included in the converted data includes garbled, if the fixed portion includes garbled, whether the garbled is more than a threshold value And a garbled character determination unit that determines
When the PDL data is not described by the specific character code, or when the garbled characters are more than the threshold value, the fixed part image data is read from the storage device, and the variable value included in the PDL data is read. Interpretation and drawing to generate first drawing data, combining the fixed part image data and the first drawing data to generate first combined data, or when the garbled character is less than or equal to the threshold value Reading the fixed part image data of the garbled part from the storage device, interpreting and drawing the non-garbled part included in the fixed part of the PDL data and the variable value included in the PDL data. To generate second drawing data, and to combine the fixed part image data of the garbled part with the second drawing data to generate second combined data. Drawing section,
An image forming apparatus comprising: a control circuit that operates as a print control unit that outputs the first combined data or the second combined data to an image forming unit.
請求項1に記載の画像形成装置であって、
前記固定部が文字化けを含まない場合、前記描画部は、前記PDLデータを解釈し描画して第3の描画データを生成し、
前記印刷制御部は、前記第3の描画データを前記画像形成部に出力する
画像形成装置。
The image forming apparatus according to claim 1, wherein
If the fixed unit does not include garbled characters, the drawing unit interprets and draws the PDL data to generate third drawing data,
The print control unit is an image forming apparatus that outputs the third drawing data to the image forming unit.
請求項1又は2に記載の画像形成装置であって、
前記特定の文字コードはShift_JISである
画像形成装置。
The image forming apparatus according to claim 1, wherein
The image forming apparatus in which the specific character code is Shift_JIS.
印刷対象のデータに非依存の固定部の画像データである固定部画像データを記憶する記憶装置を有する画像形成装置の制御回路を、
前記固定部と、前記印刷対象のデータに依存する可変値とを含むPDLデータを取得し、前記PDLデータが特定の文字コードで記述されているか否かを判断する文字コード判断部と、
前記PDLデータが前記特定の文字コードで記述されている場合、前記PDLデータを画像データに変換して変換データを生成するデータ変換部と、
前記変換データを光学文字認識し、前記変換データに含まれる前記固定部が文字化けを含むか否かを判断し、前記固定部が文字化けを含む場合、前記文字化けが閾値より多いか否かを判断する文字化け判断部と、
前記PDLデータが前記特定の文字コードで記述されていない場合、若しくは、前記文字化けが前記閾値より多い場合、前記固定部画像データを前記記憶装置から読み出し、前記PDLデータに含まれる前記可変値を解釈し描画して第1の描画データを生成し、前記固定部画像データと前記第1の描画データとを合成して第1の合成データを生成し、又は
前記文字化けが前記閾値以下の場合、前記文字化けしたパートの固定部画像データを前記記憶装置から読み出し、前記PDLデータの前記固定部に含まれる前記文字化けしていないパート及び前記PDLデータに含まれる前記可変値を解釈し描画して第2の描画データを生成し、前記文字化けしたパートの固定部画像データと前記第2の描画データとを合成して第2の合成データを生成する
描画部と、
前記第1の合成データ又は前記第2の合成データを画像形成部に出力する印刷制御部
として動作させる
画像形成プログラム。
A control circuit of an image forming apparatus having a storage device that stores fixed part image data that is image data of a fixed part that is independent of print target data,
A character code determination unit that acquires PDL data including the fixed unit and a variable value that depends on the data to be printed, and determines whether the PDL data is described by a specific character code.
When the PDL data is described with the specific character code, a data conversion unit that converts the PDL data into image data to generate conversion data,
Optical character recognition of the converted data, it is determined whether the fixed portion included in the converted data includes garbled, if the fixed portion includes garbled, whether the garbled is more than a threshold value And a garbled character determination unit that determines
When the PDL data is not described by the specific character code, or when the garbled characters are more than the threshold value, the fixed part image data is read from the storage device, and the variable value included in the PDL data is read. Interpretation and drawing to generate first drawing data, combining the fixed part image data and the first drawing data to generate first combined data, or when the garbled character is less than or equal to the threshold value Reading the fixed part image data of the garbled part from the storage device, interpreting and drawing the non-garbled part included in the fixed part of the PDL data and the variable value included in the PDL data. To generate second drawing data, and to combine the fixed part image data of the garbled part with the second drawing data to generate second combined data. Drawing section,
An image forming program that operates as a print control unit that outputs the first combined data or the second combined data to an image forming unit.
JP2018191197A 2018-10-09 2018-10-09 Image formation apparatus and image formation program Pending JP2020059195A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2018191197A JP2020059195A (en) 2018-10-09 2018-10-09 Image formation apparatus and image formation program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2018191197A JP2020059195A (en) 2018-10-09 2018-10-09 Image formation apparatus and image formation program

Publications (1)

Publication Number Publication Date
JP2020059195A true JP2020059195A (en) 2020-04-16

Family

ID=70218622

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2018191197A Pending JP2020059195A (en) 2018-10-09 2018-10-09 Image formation apparatus and image formation program

Country Status (1)

Country Link
JP (1) JP2020059195A (en)

Similar Documents

Publication Publication Date Title
JP5652875B2 (en) Method and apparatus for dynamic printer performance tuning using Bayesian analysis
US9652189B2 (en) Non-transitory computer-readable storage medium storing printer driver causing computing device to perform prohibition processing, and print control method of the printer driver
US8792124B2 (en) Print control apparatus, image forming system, and non-transitory computer readable medium
US20190065128A1 (en) Server apparatus, method of controlling the same, storage medium, and printing kystem
CN112732206A (en) Print control method, print driving apparatus, and computer-readable storage medium
US9830541B2 (en) Image output system, image output method, document server, and non-transitory computer readable recording medium
US20110235080A1 (en) Image processing apparatus and image forming apparatus
JP6447564B2 (en) Image forming apparatus, program, and information processing system
US8797560B2 (en) Image forming apparatus, image forming method, and storage medium
US10514871B2 (en) Print management method and print management apparatus
US9239885B2 (en) Acquiring data for processing using location information
US8681363B2 (en) Raster application instances
JP2020059195A (en) Image formation apparatus and image formation program
CN108287672B (en) Server device, recording medium, information processing system, and image forming apparatus
US20150339550A1 (en) Image processing apparatus, print information generating apparatus, image forming apparatus, image forming system, image processing method, print information generating method, and non-transitory computer readable medium
US8947680B2 (en) Method and apparatus for performing direct printing by analyzing the bytes of the print data
US8526052B2 (en) Print data processing apparatus, control method for print data processing apparatus, and storage medium
US20070291294A1 (en) Printing apparatus, print control method, program, and storage medium
US9336468B2 (en) Image forming apparatus, image forming method, and medium
US10712979B2 (en) Image forming apparatus, image formation method, and storage medium
JP2014233861A (en) Image forming apparatus
US8477364B2 (en) Printing using a skeleton electronic document and multiple connections
CN110214306B (en) Server device, information processing system, and image forming apparatus
US8482777B2 (en) Image information processing device including comparing unit for printing processing system, computer-readable medium and image information processing method for the same
US10768867B2 (en) Image forming apparatus having held print job analysis, control method of image forming apparatus, and storage medium