JP6628127B2 - Image processing apparatus and computer program - Google Patents

Image processing apparatus and computer program Download PDF

Info

Publication number
JP6628127B2
JP6628127B2 JP2015170775A JP2015170775A JP6628127B2 JP 6628127 B2 JP6628127 B2 JP 6628127B2 JP 2015170775 A JP2015170775 A JP 2015170775A JP 2015170775 A JP2015170775 A JP 2015170775A JP 6628127 B2 JP6628127 B2 JP 6628127B2
Authority
JP
Japan
Prior art keywords
image
page
data
page data
supplementary
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
JP2015170775A
Other languages
Japanese (ja)
Other versions
JP2017049667A (en
Inventor
圭佑 藤田
圭佑 藤田
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Brother Industries Ltd
Original Assignee
Brother Industries 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 Brother Industries Ltd filed Critical Brother Industries Ltd
Priority to JP2015170775A priority Critical patent/JP6628127B2/en
Publication of JP2017049667A publication Critical patent/JP2017049667A/en
Application granted granted Critical
Publication of JP6628127B2 publication Critical patent/JP6628127B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Record Information Processing For Printing (AREA)

Description

本明細書は、複数個のページ画像を印刷するための技術に関する。   The present specification relates to a technique for printing a plurality of page images.

特許文献1には、複数枚の用紙の端部に所定の画像(いわゆる爪見出し画像)を印刷する技術が開示されている。この技術では、画像処理装置は、複数のページを一の方法で分類した分類結果を示す爪見出し画像を用紙の表面に印刷し、複数のページを他の方法によって分類した分類結果を示す爪見出し画像を用紙の裏面に印刷している。複数個のページのそれぞれについて印刷すべき爪見出し画像の詳細、例えば、複数のページの分類態様や、爪見出し画像に示すテキストは、印刷設定画面を介して、ユーザによって指定される。   Patent Literature 1 discloses a technique for printing a predetermined image (a so-called nail heading image) on edges of a plurality of sheets. In this technique, the image processing apparatus prints, on the surface of a sheet, a nail heading image indicating a classification result obtained by classifying a plurality of pages by one method, and a nail heading indicating a classification result obtained by classifying a plurality of pages by another method. The image is printed on the back of the paper. The details of the nail head image to be printed for each of the plurality of pages, for example, the classification of the plurality of pages and the text shown in the nail head image are specified by the user via the print setting screen.

特開2010−201802号公報JP 2010-201802 A

しかしながら、上記技術では、複数個のページのそれぞれについて、印刷すべき爪見出し画像をユーザが指定する際のユーザの負担が過度に大きくなる可能性があった。   However, in the above technique, there is a possibility that the user's burden when the user designates the nail head image to be printed for each of the plurality of pages becomes excessively large.

本明細書は、複数個のページ画像を印刷する際に、補足画像(例えば、上述した爪見出し画像)を印刷するためのユーザの負担を低減することができる技術を開示する。   The present specification discloses a technique capable of reducing a user's burden of printing a supplementary image (for example, the nail head image described above) when printing a plurality of page images.

本明細書に開示された技術は、以下の適用例として実現することが可能である。   The technology disclosed in this specification can be implemented as the following application examples.

[適用例1]画像処理装置であって、それぞれがページ画像を示すm個(mは、2以上の整数)のページデータと、m個の前記ページデータを補足する補足データと、を含む対象ファイルを取得する取得部であって、前記補足データは、前記対象ファイルを用いて前記m個のページデータによって示されるm個のページ画像が表示部に表示される際に、m個の前記ページデータのうちの第1のページデータによって示される第1のページ画像が表示される画面から、第2のページデータによって示される第2のページ画像が表示される画面へ移動するためのユーザの操作に利用されるデータである、前記取得部と、前記補足データを用いて、m個の前記ページデータを、前記第1のページデータを含む第1のグループと、前記第2のページデータを含む第2のグループと、を含むk個(kは、2≦k<mを満たす整数)のグループに分類する分類部であって、k個の前記グループのそれぞれは、互いにページ順序が連続する1個以上の前記ページデータを含む、前記分類部と、m個の前記ページデータと、前記分類部による分類結果と、を用いて、m個の前記ページデータのそれぞれに対応するm個の処理済ページデータを生成する生成部であって、m個の前記処理済みページデータは、前記第1のグループに属する1個以上の前記ページデータのそれぞれに対応する1個以上の第1の処理済ページデータと、前記第2のグループに属する1個以上の前記ページデータのそれぞれに対応する1個以上の第2の処理済ページデータと、を含み、前記1個以上の前記第1の処理済ページデータのそれぞれは、対応する前記ページデータによって示される前記ページ画像と、前記第1のグループに属することを示す第1の補足画像と、を含む第1の処理済ページ画像を示し、1個以上の前記第2の処理済ページデータのそれぞれは、対応する前記ページデータによって示される前記ページ画像と、前記第2のグループに属することを示す第2の補足画像と、を含む第2の処理済ページ画像を示す、前記生成部と、m個の前記処理済ページデータを用いて、前記第1の処理済ページ画像と前記第2の処理済ページ画像とを含むm個の処理済ページ画像を印刷する印刷処理を制御する印刷制御部と、を備える、画像処理装置。 [Application Example 1] An image processing apparatus that includes m (m is an integer of 2 or more) page data, each of which indicates a page image, and supplementary data that supplements the m page data. An acquisition unit for acquiring a file, wherein the supplementary data is displayed when m page images indicated by the m page data are displayed on the display unit using the target file; User's operation for moving from the screen on which the first page image indicated by the first page data of the data is displayed to the screen on which the second page image indicated by the second page data is displayed Using the acquisition unit and the supplementary data, m pieces of the page data are divided into a first group including the first page data, and a second group of the second page data. And a k group (k is an integer that satisfies 2 ≦ k <m), and the k groups each have a page order with respect to each other. Using the classification unit including one or more continuous page data, the m pieces of the page data, and the classification result by the classification unit, m pieces of the page data corresponding to the m pieces of the page data, respectively. Wherein the m pieces of the processed page data are one or more first page data corresponding to each of the one or more page data belonging to the first group. Including one or more second processed page data corresponding to each of one or more of the one or more page data belonging to the second group, wherein the one or more of the first Processed page Each of the data indicates a first processed page image including the page image indicated by the corresponding page data and a first supplementary image indicating that the image belongs to the first group. Each of the above-described second processed page data includes a second image including the page image indicated by the corresponding page data and a second supplementary image indicating that the page belongs to the second group. M generated page images including the first processed page image and the second processed page image using the generation unit and the m processed page data indicating the processed page image An image processing apparatus, comprising: a print control unit configured to control a print process for printing an image.

上記構成によれば、m個のページデータは、対象ファイルに含まれる補足データを用いて、第1のグループと第2のグループとを含むk個のグループに分類される。そして、対応するページ画像と、第1のグループに属することを示す第1の補足画像と、を含む第1の処理済ページ画像をそれぞれ示す第1の処理済ページデータと、対応するページ画像と、第2のグループに属することを示す第2の補足画像と、を含む第2の処理済ページ画像をそれぞれ示す第1の処理済ページデータと、がそれぞれ生成される。補足データは、通常、対象ファイルを表示部に表示する際に利用されるデータであるが、上記構成では、補足データは、処理済みページデータを生成するために利用される。この結果、m個のページ画像を印刷する際に、補足画像を印刷するためのユーザの負担を低減することができる。
[適用例2]
適用例1に記載の画像処理装置であって、
前記印刷制御部は、m個の前記処理済ページ画像を、複数個の印刷媒体のm個の印刷面に1個ずつ印刷させる、画像処理装置。
[適用例3]
適用例2に記載の画像処理装置であって、
前記第1の補足画像は、前記第1の処理済ページ画像が印刷される印刷媒体の特定の端に沿った第1の位置に印刷され、
前記第2の補足画像は、前記第2の処理済ページ画像が印刷される印刷媒体の前記特定の端に沿った第2の位置であって、前記第1の位置とは異なる前記第2の位置に印刷される、画像処理装置。
[適用例4]
適用例1から3のいずれかに記載の画像処理装置であって、
前記補足データは、n個(nは、(k−1)≦nを満たす整数)の項目情報を含み、
n個の前記項目情報は、p個(pは、2以上の整数)の階層を示す階層構造を有し、
前記分類部は、p個の階層のうちのq(qは、1以上p未満の整数)番目の階層以上の階層に属するk個または(k−1)個の前記項目情報を用いて、m個の前記ページデータをk個の前記グループに分類する、画像処理装置。
[適用例5]
適用例4に記載の画像処理装置であって、さらに、
p個の階層の中から、q番目の階層を指定する指示をユーザから取得する指示取得部を備え、
前記分類部は、ユーザの指示によって指定されたq番目の階層以上の階層に属するk個または(k−1)個の前記項目情報を用いて、m個の前記ページデータをk個の前記グループに分類する、画像処理装置。
[適用例6]
適用例1から5のいずれかに記載の画像処理装置であって、さらに、
m個の前記ページデータが分類される前記グループの個数と、m個の前記処理済ページ画像が印刷されるべき印刷媒体の特定の端に沿う方向の長さと、に基づいて、前記第1の補足画像および前記第2の補足画像の前記特定の端に沿う方向の長さを決定する第1の決定部を備える、画像処理装置。
[適用例7]
適用例1から6のいずれかに記載の画像処理装置であって、
前記補足データは、前記ページ画像に関するテキストデータを含み、
前記画像処理装置は、さらに、
前記第1の補足画像および第2の補足画像のそれぞれについて、前記テキストデータによって示される文字列から、1個以上の文字を選択する選択部を備え、
前記第1の補足画像は、前記第1の補足画像について選択された1個以上の文字を含む画像であり、
前記第2の補足画像は、前記第2の補足画像について選択された1個以上の文字を含む画像である、画像処理装置。
[適用例8]
適用例7に記載の画像処理装置であって、
前記選択部は、前記第1の補足画像および前記第2の補足画像の印刷媒体の特定の端に沿う方向の長さと、前記第1の補足画像および前記第2の補足画像に含まれるべき文字のサイズと、に基づいて、前記テキストデータによって示される文字列から、1個以上の文字を選択する、画像処理装置。
[適用例9]
適用例7または8に記載の画像処理装置であって、さらに、
m個の前記ページデータによって示されるm個の前記ページ画像のうちの、少なくとも1個のページ画像内の文字のサイズに基づいて、前記第1の補足画像および前記第2の補足画像にて示すべき文字のサイズを決定する第2の決定部を備える、画像処理装置。
[適用例10]
適用例7から9のいずれかに記載の画像処理装置であって、
前記補足データは、前記テキストデータによって示される文字列の色を示す文字色情報を含み、
前記画像処理装置は、さらに、
前記文字色情報に基づいて、文字色を決定する第3の決定部を備え、
前記第1の補足画像および前記第2の補足画像は、決定された前記文字色を有する文字を示す画像である、画像処理装置。
[適用例11]
適用例1から10のいずれかに記載の画像処理装置であって、
前記補足データは、m個の前記ページデータの少なくとも1つにそれぞれ対応付けられた第1の項目情報と、第2の項目情報と、第3の項目情報と、第4の項目情報と、を含み、
前記分類部は、
前記第1の項目情報に対応する前記ページデータと、前記第2の項目情報に対応する前記ページデータの直前の前記ページデータと、を含む1個以上の前記ページデータであって、互いにページ順序が連続する1個以上の前記ページデータを、前記第1のグループに分類し、
前記第3の項目情報に対応する前記ページデータと、前記第4の項目情報に対応する前記ページデータの直前の前記ページデータと、を含む1個以上の前記ページデータであって、互いにページ順序が連続する1個以上の前記ページデータを、前記第2のグループに分類する、画像処理装置。
According to the above configuration, the m page data are classified into k groups including the first group and the second group using the supplementary data included in the target file. Then, first processed page data each indicating a first processed page image including a corresponding page image and a first supplementary image indicating that the image belongs to the first group, and a corresponding page image , A second supplementary image indicating that the image belongs to the second group, and first processed page data each indicating a second processed page image. The supplementary data is usually used when the target file is displayed on the display unit. In the above configuration, the supplementary data is used to generate processed page data. As a result, when printing m page images, the burden on the user for printing the supplementary images can be reduced.
[Application Example 2]
An image processing apparatus according to application example 1,
The image processing apparatus, wherein the print control unit prints the m processed page images one by one on m print surfaces of a plurality of print media.
[Application Example 3]
An image processing apparatus according to application example 2,
The first supplemental image is printed at a first location along a particular edge of a print medium on which the first processed page image is printed;
The second supplemental image is a second position along the specific edge of the print medium on which the second processed page image is printed, and the second supplemental image is different from the first position. An image processing device that is printed at a location.
[Application Example 4]
An image processing apparatus according to any one of application examples 1 to 3,
The supplementary data includes n (n is an integer satisfying (k−1) ≦ n) item information,
The n pieces of item information have a hierarchical structure indicating p (p is an integer of 2 or more) layers,
The classifying unit uses the k or (k−1) item information belonging to the q-th (q is an integer of 1 or more and less than p) -th layer or more of the p layers to obtain m An image processing apparatus for classifying the page data into k groups.
[Application Example 5]
An image processing apparatus according to application example 4, further comprising:
an instruction acquisition unit that acquires an instruction to specify the q-th layer from the user from among the p layers,
The classifying unit may classify m page data into k groups using k or (k-1) item information items belonging to a q-th or higher layer specified by a user's instruction. Image processing device.
[Application Example 6]
The image processing apparatus according to any one of application examples 1 to 5, further comprising:
based on the number of the groups into which the m pieces of the page data are classified and the length along a specific edge of a print medium on which the m processed page images are to be printed; An image processing device comprising: a first determination unit that determines a length of a supplementary image and a second supplementary image in a direction along the specific end.
[Application Example 7]
An image processing apparatus according to any one of application examples 1 to 6, wherein
The supplementary data includes text data related to the page image,
The image processing apparatus further includes:
A selection unit that selects one or more characters from a character string indicated by the text data for each of the first supplementary image and the second supplementary image;
The first supplementary image is an image including one or more characters selected for the first supplementary image,
The image processing device, wherein the second supplementary image is an image including one or more characters selected for the second supplementary image.
[Application Example 8]
An image processing apparatus according to application example 7,
The selection unit is configured to determine a length of the first supplementary image and the second supplementary image in a direction along a specific edge of a print medium, and a character to be included in the first supplementary image and the second supplementary image. An image processing apparatus for selecting one or more characters from a character string indicated by the text data based on the size of the character data.
[Application Example 9]
The image processing apparatus according to application example 7 or 8, further comprising:
Based on the size of characters in at least one of the m page images indicated by the m page data, the first and second supplementary images indicate the characters. An image processing apparatus comprising: a second determining unit that determines a size of a character to be formed.
[Application Example 10]
An image processing apparatus according to any one of application examples 7 to 9, wherein
The supplementary data includes character color information indicating a color of a character string indicated by the text data,
The image processing apparatus further includes:
A third determining unit that determines a character color based on the character color information;
The image processing device, wherein the first supplementary image and the second supplementary image are images showing a character having the determined character color.
[Application Example 11]
An image processing apparatus according to any one of application examples 1 to 10, wherein
The supplementary data includes first item information, second item information, third item information, and fourth item information respectively associated with at least one of the m pieces of page data. Including
The classification unit includes:
At least one page data including the page data corresponding to the first item information, and the page data immediately before the page data corresponding to the second item information, wherein Categorizing one or more of the page data that are consecutive into the first group,
At least one page data including the page data corresponding to the third item information and the page data immediately before the page data corresponding to the fourth item information, wherein An image processing apparatus for classifying one or more pieces of the page data having a plurality of consecutively into the second group.

なお、本明細書に開示された技術は、種々の形態で実現可能であり、例えば、印刷装置、印刷装置の制御装置、画像処理方法、これらの装置および方法の機能を実現するためのコンピュータプログラム、そのコンピュータプログラムを記録した記録媒体、等の形態で実現することができる。   The technology disclosed in the present specification can be realized in various forms, for example, a printing device, a control device of the printing device, an image processing method, and a computer program for realizing the functions of these devices and methods. , A recording medium on which the computer program is recorded, and the like.

実施例における画像処理装置としての計算機200とプリンタ100の構成を示すブロック図である。FIG. 1 is a block diagram illustrating a configuration of a computer 200 and a printer 100 as an image processing apparatus according to an embodiment. 印刷処理のフローチャートである。6 is a flowchart of a printing process. 対象ファイルIFの概略図である。It is a schematic diagram of a target file IF. 対象ファイルIFによって示される文書の概念図である。FIG. 3 is a conceptual diagram of a document indicated by a target file IF. 指示入力画面WI1WI2の一例を示す図である。It is a figure showing an example of instruction input screen WI1WI2. 片面印刷処理の印刷画像の一例を示す図である。FIG. 7 is a diagram illustrating an example of a print image of a single-sided printing process. パラメータ決定処理のフローチャートである。It is a flowchart of a parameter determination process. 片面印刷処理のフローチャートである。9 is a flowchart of a one-sided printing process. 印刷画像TI1〜TI20を示す図である。FIG. 3 is a diagram illustrating print images TI1 to TI20. 両面印刷処理のフローチャートである。9 is a flowchart of a duplex printing process. 両面印刷処理の印刷画像の一例を示す図である。FIG. 9 is a diagram illustrating an example of a print image of a double-sided printing process.

A.実施例:
A−1:画像処理装置の構成
次に、実施の形態を実施例に基づき説明する。図1は、実施例における画像処理装置としての計算機200と、プリンタ100の構成を示すブロック図である。
A. Example:
A-1: Configuration of Image Processing Apparatus Next, an embodiment will be described based on an example. FIG. 1 is a block diagram illustrating a configuration of a computer 200 as an image processing apparatus and a printer 100 according to the embodiment.

計算機200は、例えば、パーソナルコンピュータであり、計算機200のコントローラとしてのプロセッサであるCPU210と、ハードディスクドライブなどの不揮発性記憶装置220と、RAMなどの揮発性記憶装置230と、マウスやキーボードなどの操作部260と、液晶ディスプレイなどの表示部270と、通信部280と、を備えている。計算機200は、通信部280を介して、プリンタ100などの外部装置と通信可能に接続される。   The computer 200 is, for example, a personal computer, and includes a CPU 210 as a processor as a controller of the computer 200, a non-volatile storage device 220 such as a hard disk drive, a volatile storage device 230 such as a RAM, and operation of a mouse and a keyboard. The display unit 270 includes a unit 260, a display unit 270 such as a liquid crystal display, and a communication unit 280. The computer 200 is communicably connected to an external device such as the printer 100 via the communication unit 280.

揮発性記憶装置230は、CPU210が処理を行う際に生成される種々の中間データを一時的に格納するバッファ領域231を提供する。不揮発性記憶装置220には、コンピュータプログラムCPが格納されている。コンピュータプログラムCPは、本実施例では、プリンタ100の後述するプリンタ部130を制御するためのプリンタドライバプログラムであり、サーバからダウンロードされる形態で提供される。これに代えて、コンピュータプログラムCPは、DVD−ROMなどに格納される形態で提供されてもよい。CPU210は、コンピュータプログラムCPを実行することにより、後述する印刷処理を実行する。   The volatile storage device 230 provides a buffer area 231 for temporarily storing various intermediate data generated when the CPU 210 performs processing. The non-volatile storage device 220 stores a computer program CP. In this embodiment, the computer program CP is a printer driver program for controlling a printer unit 130 of the printer 100 described later, and is provided in a form downloaded from a server. Instead, the computer program CP may be provided in a form stored in a DVD-ROM or the like. The CPU 210 executes a printing process described later by executing the computer program CP.

プリンタ100は、所定の方式(例えば、インクジェット、レーザー)によって用紙などの印刷媒体に画像を印刷する機構であるプリントエンジン120と、プリントエンジン120を制御するCPUとメモリとを含む制御部110と、を備えている。   The printer 100 includes a print engine 120 which is a mechanism for printing an image on a print medium such as paper by a predetermined method (for example, ink jet or laser), a control unit 110 including a CPU and a memory for controlling the print engine 120, It has.

A−2:印刷処理
図2は、印刷処理のフローチャートである。この印刷処理は、例えば、計算機200において、コンピュータプログラムCPが実行されて、プリンタドライバが起動されているときに、ユーザの開始指示に基づいて開始される。
A-2: Printing Process FIG. 2 is a flowchart of the printing process. This printing process is started based on a user's start instruction, for example, when the computer program CP is executed in the computer 200 and the printer driver is activated.

S5では、CPU210は、印刷対象の文書ファイル(以下、対象ファイルとも呼ぶ)を不揮発性記憶装置220または揮発性記憶装置230から取得する。図3は、対象ファイルIFの概略図である。図4は、対象ファイルIFによって示される文書の概念図である。対象ファイルIFは、mページ分の文書を示す文書ファイルである。本実施例では、対象ファイルIFは、PDF(Portable Document Formatの略)と呼ばれるファイルフォーマットを有する、いわゆるPDFファイルである。   In S5, the CPU 210 acquires a document file to be printed (hereinafter also referred to as a target file) from the nonvolatile storage device 220 or the volatile storage device 230. FIG. 3 is a schematic diagram of the target file IF. FIG. 4 is a conceptual diagram of a document indicated by the target file IF. The target file IF is a document file indicating documents of m pages. In the present embodiment, the target file IF is a so-called PDF file having a file format called PDF (abbreviation of Portable Document Format).

対象ファイルIFは、それぞれがページ画像PIを示すm個(mは、2以上の整数)のページデータPDを含むページデータ群PGと、m個のページデータPDを補足する補足データSDと、を含んでいる。図3、図4の例では、対象ファイルIFは、20個のページ画像PI1〜PI20(図4)を示す20個のページデータPD1〜PD20を含んでいる(m=20)。ページデータPDは、PDFフォーマットに従う描画命令を用いて、1個のページ画像PIを記述する画像データである。複数個のページデータPDのそれぞれ(すなわち、複数個のページ画像PIのそれぞれ)には、ページ順序が定められている。図3のページデータPD1〜PD20、および、図4のページ画像PI1〜PI20の符号の末尾の整数は、ページ順序を示す番号である。   The target file IF includes a page data group PG including m (m is an integer of 2 or more) page data PD each indicating a page image PI, and supplementary data SD for supplementing the m page data PD. Contains. In the examples of FIGS. 3 and 4, the target file IF includes 20 page data PD1 to PD20 indicating 20 page images PI1 to PI20 (FIG. 4) (m = 20). The page data PD is image data that describes one page image PI using a drawing command according to the PDF format. The page order is determined for each of the plurality of page data PDs (that is, for each of the plurality of page images PI). The integers at the end of the codes of the page data PD1 to PD20 in FIG. 3 and the page images PI1 to PI20 in FIG. 4 are numbers indicating the page order.

補足データSDは、本実施例では、PDFにて、しおり(ドキュメントアウトライン)と呼ばれるデータである。補足データSDは、一般に、PDFファイルを用いて、PDFファイルによって示されるページ画像がビューアで表示される際に、利用されるデータである。より具体的には、補足データSDは、PDFファイル内の各ページデータによって示されるページ画像がビューアに表示される際に、各ページ画像とは独立して、表示可能な情報を示す。例えば、補足データSDによって示される情報は、ページ画像を表示する画面(以下、ページウインドウ)とは別の操作ウインドウ内に示される。操作ウインドウは、ユーザからの操作を受け取るための画面であり、例えば、補足データSDに含まれる後述の複数個の項目情報を示す複数個の選択肢を含む。例えば、ページウインドウに図4(A)のページ画像PI1が表示されている状態で、操作ウインドウ内の複数個の選択肢のうち、後述の項目情報I22を示す選択肢がユーザによって選択されると、ページウインドウ内に表示されるページ画像は、ページ画像PI1から、項目情報I22に対応付けられたページ画像PI13に、移動する。このように、補足データSDは、ページ画像を表示する際に、ページ画像の表示画面とともに表示される操作画面を表現するデータである、と言うことができる。操作画面は、ユーザがページ画像の表示を操作するために用いられる画面である、と言うことができる。   In this embodiment, the supplementary data SD is data called a bookmark (document outline) in PDF. Generally, the supplementary data SD is data used when a page image indicated by the PDF file is displayed by the viewer using the PDF file. More specifically, the supplementary data SD indicates information that can be displayed independently of each page image when the page image indicated by each page data in the PDF file is displayed on the viewer. For example, the information indicated by the supplementary data SD is shown in an operation window different from a screen displaying a page image (hereinafter, a page window). The operation window is a screen for receiving an operation from the user, and includes, for example, a plurality of options indicating a plurality of item information described later included in the supplementary data SD. For example, in a state where the page image PI1 of FIG. 4A is displayed in the page window, if the user selects an item indicating item information I22 described later from among a plurality of options in the operation window, the page is displayed. The page image displayed in the window moves from the page image PI1 to the page image PI13 associated with the item information I22. Thus, it can be said that the supplementary data SD is data representing an operation screen displayed together with the page image display screen when displaying the page image. It can be said that the operation screen is a screen used for the user to operate the display of the page image.

補足データSDは、複数個の項目情報をツリー状に対応付けたツリー構造を有している。このツリー構造は、3個の階層を有する階層構造となっている。例えば、図3に示すように、補足データSDは、ルートの項目情報I0と、ルートの項目情報I0に対応付けられた第1階層の項目情報I1〜I3と、第1階層の項目情報I2に対応付けられた第2階層の項目情報I21、I22と、第2階層の項目情報I21に対応付けられた第3階層の項目情報I211、I212と、を含んでいる。   The supplementary data SD has a tree structure in which a plurality of items of information are associated in a tree shape. This tree structure has a hierarchical structure having three layers. For example, as shown in FIG. 3, the supplementary data SD includes root item information I0, first-layer item information I1 to I3 associated with the root item information I0, and first-layer item information I2. It includes item information I21 and I22 of the second layer associated with the item information I21 and I212 of the third layer associated with the item information I21 of the second layer.

補足データSDについてより詳細に説明する。補足データSDに含まれる複数個の項目情報I1〜I3、I21、I22、I211、I212のそれぞれは、複数個のエントリとして、/Titleと、/Parentと、/Prevと、/Nextと、/Firstと、/Lastと、/Destと、/Collorと、/Fontと、を含んでいる。/Titleは、その項目情報のタイトルを表す文字列を示すテキストデータである。例えば、図3の項目情報I2の/Titleは、「本論」であり、項目情報I21の/Titleは、「実験方法」である。/Parentは、その項目情報が対応付けられる上位階層の項目情報を示すエントリである。例えば、項目情報I2の/Parentは、項目情報I0を示しており、項目情報I21の/Parentは、項目情報I2を示している。/Prevは、同じ階層の項目情報のうち、1つ前の項目情報を示すエントリである。例えば、項目情報I2の/Prevは、項目情報I1を示している。項目情報I21には、1つ前の項目情報がないので、項目情報I21の/Prevは、省略される。/Nextは、同じ階層の項目情報のうち、1つ後の項目情報を示すエントリである。例えば、項目情報I2の/Nextは、項目情報I3を示し、項目情報I21の/Nextは、項目情報I22を示す。/Firstは、1つ下位の階層の項目情報のうち、最初の項目情報を示すエントリである。例えば、項目情報I2の/Firstは、項目情報I21を示し、項目情報I21の/Firstは、項目情報I211を示す。/Lastは、1つ下位の階層の項目情報のうち、最後の項目情報を示すエントリである。例えば、項目情報I2の/Lastは、項目情報I22を示し、項目情報I21の/Lastは、項目情報I212を示す。/Destは、その項目情報が対応付けられるページ画像PIおよびページ画像PIにおける位置を示すデータである。例えば、項目情報I2、I21の/Destは、いずれも5ページ目のページ画像PI5を示す。/Colorは、その項目情報のタイトルを表す文字列の文字色を示すエントリである。文字色は、例えば、各成分の階調数が256階調のRGB値で表される。/Fontは、その項目情報のタイトルを表す文字列のフォントを示すエントリである。   The supplementary data SD will be described in more detail. Each of the plurality of item information items I1 to I3, I21, I22, I211 and I212 included in the supplementary data SD is represented by a plurality of entries as / Title, / Parent, / Prev, / Next, and / First. And / Last, / Dest, / Collor, and / Font. / Title is text data indicating a character string representing the title of the item information. For example, the / Title of the item information I2 in FIG. 3 is “Main subject”, and the / Title of the item information I21 is “Experiment method”. / Parent is an entry indicating the item information of the upper hierarchy to which the item information is associated. For example, / Parent of item information I2 indicates item information I0, and / Parent of item information I21 indicates item information I2. / Prev is an entry indicating the previous item information among the item information of the same hierarchy. For example, / Prev of item information I2 indicates item information I1. Since the item information I21 does not have the previous item information, / Prev of the item information I21 is omitted. / Next is an entry indicating the next item information among the item information of the same hierarchy. For example, / Next of item information I2 indicates item information I3, and / Next of item information I21 indicates item information I22. / First is an entry indicating the first item information of the item information of the next lower hierarchy. For example, / First of the item information I2 indicates the item information I21, and / First of the item information I21 indicates the item information I211. / Last is an entry indicating the last item information of the item information of the next lower hierarchy. For example, / Last of item information I2 indicates item information I22, and / Last of item information I21 indicates item information I212. / Dest is data indicating the page image PI to which the item information is associated and the position in the page image PI. For example, / Dest of the item information I2, I21 indicates the page image PI5 of the fifth page. / Color is an entry indicating the character color of the character string representing the title of the item information. The character color is represented by, for example, RGB values of 256 gradations of each component. / Font is an entry indicating the font of a character string representing the title of the item information.

複数個の項目情報I1〜I3、I21、I22、I211、I212のそれぞれは、/Destエントリを含むことによって、20個のページ画像PI1〜PI20のいずれかに対応付けられている。図4の例では、1ページ目のページ画像PI1には、項目情報I1が対応付けられ、5ページ目のページ画像PI5には、項目情報I2、I21、I211が対応付けられている。また、13ページ目のページ画像PI13には、項目情報I22が対応付けられ、18ページ目のページ画像PI8には、項目情報I3が対応付けられている。   Each of the plurality of item information items I1 to I3, I21, I22, I211 and I212 includes a / Dest entry, and thus is associated with one of the twenty page images PI1 to PI20. In the example of FIG. 4, item information I1 is associated with the page image PI1 of the first page, and item information I2, I21, and I211 are associated with the page image PI5 of the fifth page. The item information I22 is associated with the page image PI13 of the thirteenth page, and the item information I3 is associated with the page image PI8 of the eighteenth page.

図2に戻って、説明を続ける。S10では、CPU210は、印刷処理に関する指示を入力するための指示入力画面を表示部270に表示する。図5は、指示入力画面WI1、WI2の一例を示す図である。図5(A)のメイン画面WI1は、プルダウンメニューPM1と、複数個のラジオボタンRB1〜RB9と、複数個のボタンBT1〜BT3と、を含んでいる。   Returning to FIG. 2, the description will be continued. In S10, CPU 210 causes display unit 270 to display an instruction input screen for inputting an instruction relating to print processing. FIG. 5 is a diagram illustrating an example of the instruction input screens WI1 and WI2. The main screen WI1 in FIG. 5A includes a pull-down menu PM1, a plurality of radio buttons RB1 to RB9, and a plurality of buttons BT1 to BT3.

プルダウンメニューPM1は、印刷媒体としての用紙のサイズの指定を入力するための入力要素である。ラジオボタンRB1、RB2は、用紙を縦方向として印刷するか横方向として印刷するかの指示を入力するための入力要素である。ラジオボタンRB3、RB4は、用紙の両面に印刷を行う両面印刷と、用紙の片面に印刷を行う片面印刷と、のいずれを実行するかの指示を入力するための入力要素である。   The pull-down menu PM1 is an input element for inputting the designation of a paper size as a print medium. Radio buttons RB1 and RB2 are input elements for inputting an instruction as to whether to print a sheet vertically or horizontally. Radio buttons RB3 and RB4 are input elements for inputting an instruction to execute either double-sided printing for printing on both sides of a sheet or single-sided printing for printing on one side of a sheet.

ラジオボタンRB5〜RB7は、用紙の綴じ方向を指示するための入力要素である。綴じ方向は、複数枚の印刷済の用紙を綴じて、冊子を作製する際に、印刷済の用紙の4つの端のうち、綴じられるべき端が位置する方向である。具体的には、綴じ方向は、片面印刷の場合は印刷面、両面印刷の場合は奇数ページの印刷面を表向きとした状態を基準にして、定義される。   Radio buttons RB5 to RB7 are input elements for instructing a binding direction of a sheet. The binding direction is a direction in which, when binding a plurality of printed sheets to produce a booklet, the end to be bound is located among the four ends of the printed sheets. Specifically, the binding direction is defined on the basis of a state in which the printing surface of the odd-numbered page is facing up in the case of single-sided printing and the printing surface in the case of double-sided printing.

ラジオボタンRB8、RB9は、爪見出しを示す画像(以下、見出し画像CIとも呼ぶ)をページ画像PIとともに印刷するか否かを指示するための入力要素である。CPU210は、図2のS5にて取得した対象ファイルIFを解析して、対象ファイルIFに補足データSDが含まれている場合に、見出し画像CIの印刷指示の入力を許容する。CPU210は、対象ファイルIFに補足データSDが含まれていない場合には、見出し画像CIの印刷指示の入力を許容しない。以下、簡単に見出し画像CIについて説明する。   Radio buttons RB8 and RB9 are input elements for instructing whether to print an image indicating a nail heading (hereinafter also referred to as heading image CI) together with page image PI. The CPU 210 analyzes the target file IF acquired in S5 of FIG. 2 and, when the target file IF includes the supplementary data SD, allows input of a print instruction for the heading image CI. When the target file IF does not include the supplementary data SD, the CPU 210 does not permit the input of the print instruction of the heading image CI. Hereinafter, the headline image CI will be briefly described.

図6は、片面印刷処理の印刷画像の一例を示す図である。図6(A)、(B)には、片面印刷で印刷される印刷画像TIの一例として、印刷画像TI1、TI1bが示されている。図6(A)の印刷画像TI1は、1ページ目のページ画像PI1(図4(A)参照)と、印刷画像TI1の右端に沿う見出し画像CIRaと、を含む。図6(B)の印刷画像TI1bは、1ページ目のページ画像PI1と、印刷画像TI1bの上端に沿う見出し画像CIuと、を含む。   FIG. 6 is a diagram illustrating an example of a print image of the simplex printing process. FIGS. 6A and 6B show print images TI1 and TI1b as an example of a print image TI printed by single-sided printing. The print image TI1 of FIG. 6A includes a page image PI1 of the first page (see FIG. 4A) and a heading image CIRa along the right end of the print image TI1. The print image TI1b in FIG. 6B includes a page image PI1 of the first page and a heading image CIu along the upper end of the print image TI1b.

図6(A)、(B)の領域PA(1点鎖線)は、印刷画像TI1、TI1bが印刷されるべき用紙の位置を示している。これから解るように、見出し画像CIは、印刷済の用紙が綴じられて冊子が作製された場合に、当該冊子の小口(綴じられていない冊子の側面)に現れるように、用紙の特定の端に沿って印刷される。見出し画像CIが印刷される用紙の特定の端を用紙における配置端とも呼ぶ。また、綴じ方向の端と同様に、用紙における見出し画像CIの配置端は、片面印刷の場合は印刷面、両面印刷の場合は奇数ページの印刷面を表向きとした状態を基準として定義される。例えば、見出し画像CIの配置端が用紙の右端であることは、片面印刷の場合は印刷面、両面印刷の場合は奇数ページの印刷面を表向きとした状態において、見出し画像CIが、右端に印刷されることを意味する。用紙における見出し画像CIの配置端は、用紙の綴じ方向の端とは異なる端である。例えば、用紙の綴じ方向の端が、左端である場合には、見出し画像CIの配置端は、右端、下端、上端のうちのいずれかである。   6A and 6B indicate the position of the sheet on which the print images TI1 and TI1b are to be printed. As will be understood from the above description, when a booklet is produced by binding printed sheets, a heading image CI is attached to a specific edge of the sheet so that the booklet appears on the fore-edge of the booklet (side surface of the unbound booklet). Printed along. A specific end of the sheet on which the heading image CI is printed is also referred to as an arrangement end on the sheet. Similarly to the end in the binding direction, the arrangement end of the heading image CI on the sheet is defined based on a state in which the print surface of the odd-numbered page faces up in the case of one-sided printing and the odd-numbered page in the case of double-sided printing. For example, the arrangement end of the heading image CI is the right end of the sheet, which means that the heading image CI is printed on the right end in a state where the printing surface is facing up in the case of single-sided printing and the printing surface of the odd-numbered page in the case of double-sided printing. Means to be done. The arrangement end of the heading image CI on the sheet is an end different from the end in the binding direction of the sheet. For example, when the end in the binding direction of the sheet is the left end, the arrangement end of the heading image CI is any one of the right end, the lower end, and the upper end.

図5に戻って説明を続ける。図5(A)のメイン画面WI1の詳細設定ボタンBT3が押下されると、CPU210は、図5(B)の詳細設定画面WI2を表示部270に表示する。詳細設定画面WI2は、複数個のプルダウンメニューPM2〜PM4と、複数個のラジオボタンRB10〜RB13と、複数個のボタンBT4、BT5と、を含んでいる。   Returning to FIG. 5, the description will be continued. When the detailed setting button BT3 of the main screen WI1 of FIG. 5A is pressed, the CPU 210 displays the detailed setting screen WI2 of FIG. The detailed setting screen WI2 includes a plurality of pull-down menus PM2 to PM4, a plurality of radio buttons RB10 to RB13, and a plurality of buttons BT4 and BT5.

プルダウンメニューPM2は、対象ファイルIFに含まれる補足データSDの複数個の項目情報I1〜I3、I21、I22、I211、I212のうち、見出し画像CIの印刷のために使用すべき項目情報を指定するための入力要素である。使用すべき項目情報の指定は、使用すべき項目情報が属する階層(以下、使用階層とも呼ぶ)の下限を指定することによって行われる。CPU210は、図2のS5にて取得した対象ファイルIFを解析して、補足データSDの階層構造の階層を認識し、各階層を選択できるように、プルダウンメニューPM2において選択可能な選択項目を決定する。例えば、図3の例では、補足データSDの階層構造は、第1〜第3までの3個の階層を含んでいるので、プルダウンメニューPM2において、これらの3個の階層のいずれかを選択可能である。   The pull-down menu PM2 specifies item information to be used for printing the heading image CI among a plurality of item information I1 to I3, I21, I22, I211 and I212 of the supplementary data SD included in the target file IF. Is an input element for The specification of the item information to be used is performed by specifying the lower limit of the layer to which the item information to be used belongs (hereinafter, also referred to as a use layer). The CPU 210 analyzes the target file IF acquired in S5 of FIG. 2, recognizes the hierarchy of the hierarchical structure of the supplementary data SD, and determines a selectable selection item in the pull-down menu PM2 so that each hierarchy can be selected. I do. For example, in the example of FIG. 3, since the hierarchical structure of the supplementary data SD includes the first to third layers, any one of these three layers can be selected in the pull-down menu PM2. It is.

プルダウンメニューPM3は、見出し画像CIに含むべき文字の文字色を指定するための入力要素である。プルダウンメニューPM4は、見出し画像CIに含むべき背景色を指定するための入力要素である。プルダウンメニューPM3、PM4において選択可能な選択項目は、例えば、黒、青、赤などの予め定められた複数個の候補色と、自動設定と、を含む。CPU210は、文字色と背景色として、同一の色が選択できないように、プルダウンメニューPM3、PM4において選択可能な選択項目を制御する。なお、実施例では、文字色と背景色との両方をユーザが指定可能となっているが、変形例としては、CPU210は、文字色と背景色のうちの一方のみをユーザが指定可能としても良い。この場合には、文字色と背景色のうちの他方は、CPU210によって自動的に決定される。例えば、文字色と背景色のうちの他方は、ユーザによって指定された文字色と背景色のうちの一方の色の補色に決定されても良い。   The pull-down menu PM3 is an input element for designating a character color of a character to be included in the heading image CI. The pull-down menu PM4 is an input element for designating a background color to be included in the heading image CI. The selectable items in the pull-down menus PM3 and PM4 include, for example, a plurality of predetermined candidate colors such as black, blue, and red, and automatic setting. The CPU 210 controls selectable items in the pull-down menus PM3 and PM4 so that the same color cannot be selected as the character color and the background color. In the embodiment, both the character color and the background color can be specified by the user. However, as a modified example, the CPU 210 may specify that only one of the character color and the background color can be specified by the user. good. In this case, the other of the character color and the background color is automatically determined by the CPU 210. For example, the other of the character color and the background color may be determined to be a complementary color of one of the character color and the background color specified by the user.

ラジオボタンRB10〜RB13は、上述した見出し画像CIの配置端を指定するための入力要素である。ラジオボタンRB10〜RB13によって選択可能な選択項目は、用紙の上下左右の4つの端のうち、メイン画面WI1のラジオボタンRB5〜RB7にて選択されている綴じ方向の端を除いた3つの端と、自動設定と、を含む。図5の例では、メイン画面WI1にて、左端が綴じ方向の端として選択されているので、ラジオボタンRB11〜RB13にて、左端を除いた3つの端(上端、下端、右端)が選択可能とされている。   Radio buttons RB10 to RB13 are input elements for designating the arrangement end of heading image CI described above. The selection items that can be selected by the radio buttons RB10 to RB13 are three ends, excluding the end in the binding direction selected by the radio buttons RB5 to RB7 of the main screen WI1, among the four ends of the top, bottom, left, and right of the sheet. , Automatic setting, and so on. In the example of FIG. 5, since the left end is selected as the end in the binding direction on the main screen WI1, three ends (upper end, lower end, right end) excluding the left end can be selected with the radio buttons RB11 to RB13. It has been.

なお、プルダウンメニューPM2〜PM4のデフォルトの選択項目は、それぞれ、最上位の階層(第1階層)、自動設定、自動設定である。ラジオボタンRB10〜RB13のデフォルトの選択項目は、自動設定である。これらの設定について、ユーザによる選択が行われなかった場合には、これらのデフォルトの選択項目が選択されたと判断される。これらの設定について、ユーザによる選択が行われなかった場合は、具体的には、メイン画面WI1の詳細設定ボタンBT3が押下されずに、詳細設定画面WI2が表示されなかった場合、あるいは、詳細設定画面WI2が表示されたとしても、プルダウンメニューPM2が操作されなかった場合である。   Note that the default selection items of the pull-down menus PM2 to PM4 are the highest hierarchy (first hierarchy), automatic setting, and automatic setting, respectively. The default selection items of the radio buttons RB10 to RB13 are automatic setting. When these settings are not selected by the user, it is determined that these default selection items have been selected. When these settings are not selected by the user, specifically, when the detailed setting button BT3 of the main screen WI1 is not pressed and the detailed setting screen WI2 is not displayed, or This is a case where the pull-down menu PM2 is not operated even when the screen WI2 is displayed.

詳細設定画面WI2のOKボタンBT4が押下されると、CPU210は、詳細設定画面WI2を介して入力された設定を有効にして、メイン画面WI1を表示部270に表示する。詳細設定画面WI2のキャンセルボタンBT5が押下されると、CPU210は、詳細設定画面WI2を介して入力された設定を無効にして、メイン画面WI1を表示部270に表示する。   When the OK button BT4 on the detailed setting screen WI2 is pressed, the CPU 210 validates the settings input via the detailed setting screen WI2 and displays the main screen WI1 on the display unit 270. When the cancel button BT5 on the detailed setting screen WI2 is pressed, the CPU 210 invalidates the setting input via the detailed setting screen WI2 and displays the main screen WI1 on the display unit 270.

ユーザは、指示入力画面WI1、WI2にて必要な設定を入力して、印刷ボタンBT1を押下する。CPU210は、印刷ボタンBT1が押下されると、S15に処理を進め、キャンセルボタンBT2が押下されると、処理を中断する。   The user inputs necessary settings on the instruction input screens WI1 and WI2, and presses the print button BT1. When the print button BT1 is pressed, the CPU 210 advances the process to S15, and when the cancel button BT2 is pressed, the process is interrupted.

S15では、CPU210は、指示入力画面WI1、WI2を介して印刷設定を取得する。具体的には、CPU210は、印刷ボタンBT1が押下された時点で、指示入力画面WI1、WI2にて選択されている項目を印刷設定として取得する。   In S15, the CPU 210 acquires print settings via the instruction input screens WI1 and WI2. Specifically, when the print button BT1 is pressed, the CPU 210 acquires items selected on the instruction input screens WI1 and WI2 as print settings.

S20では、CPU210は、見出し画像CIの印刷指示がされたか否かを判断する。印刷ボタンBT1が押下された時点で、メイン画面WI1のラジオボタンRB8が選択されていた場合には、見出し画像CIの印刷指示がされたと判断され、ラジオボタンRB9が選択されていた場合には、見出し画像CIの印刷指示がされていないと判断される。   In S20, CPU 210 determines whether or not a print instruction for heading image CI has been issued. If the radio button RB8 on the main screen WI1 has been selected when the print button BT1 is pressed, it is determined that a print instruction for the headline image CI has been issued, and if the radio button RB9 has been selected, It is determined that the print instruction for heading image CI has not been issued.

見出し画像CIの印刷指示がされていない場合には(S20:NO)、CPU210は、S25にて、通常印刷を実行する。具体的には、CPU210は、図4のページ画像PI1〜PI20をそのまま(つまり、見出し画像CIを含まずに)印刷するための印刷データを生成して、プリンタ100に送信する。見出し画像CIの印刷指示がされた場合には(S20:YES)、CPU210は、見出し画像CIを含む画像を印刷すべく、S30に処理を進める。   If the instruction to print the heading image CI has not been issued (S20: NO), the CPU 210 executes normal printing in S25. Specifically, the CPU 210 generates print data for printing the page images PI1 to PI20 of FIG. 4 as they are (ie, without including the index image CI) and transmits the print data to the printer 100. If a print instruction for heading image CI has been issued (S20: YES), CPU 210 proceeds to S30 to print an image including heading image CI.

S30では、CPU210は、パラメータ決定処理を実行する。パラメータ決定処理は、対象ファイルIFの補足データSDと、S15にて取得済の印刷設定と、を用いて、見出し画像CIに関するパラメータを決定する処理である。パラメータ決定処理については、後述する。   In S30, the CPU 210 executes a parameter determination process. The parameter determination process is a process of determining parameters related to the headline image CI using the supplementary data SD of the target file IF and the print settings acquired in S15. The parameter determination processing will be described later.

S35では、CPU210は、メイン画面WI1を介して片面印刷が指定されているか否かを判断する。片面印刷が指定されている場合には(S35:YES)、CPU210は、S40にて、片面印刷処理を実行する。片面印刷処理では、パラメータ決定処理にて決定されたパラメータを用いて、ページ画像PIと見出し画像CIとをそれぞれ含む20個の印刷画像TIが、20枚の印刷媒体の表面から成る印刷媒体の20個の印刷面にそれぞれ1個ずつ印刷される。片面印刷処理については、後述する。   In S35, the CPU 210 determines whether or not single-sided printing has been designated via the main screen WI1. If single-sided printing is specified (S35: YES), the CPU 210 executes single-sided printing processing in S40. In the one-sided printing process, using the parameters determined in the parameter determination process, 20 print images TI each including a page image PI and a heading image CI are converted into 20 print images of a print medium consisting of 20 print medium surfaces. One print is printed on each print surface. The one-sided printing process will be described later.

片面印刷が指定されていない場合、すなわち、両面印刷が指定されている場合には(S35:NO)、CPU210は、S45にて、両面印刷処理を実行する。両面印刷処理では、パラメータ決定処理にて決定されたパラメータを用いて、ページ画像PIと見出し画像CIとをそれぞれ含む20個の印刷画像TIが、10枚の印刷媒体の表面および裏面から成る20個の印刷面にそれぞれ1個ずつ印刷される。両面印刷処理については、後述する。片面印刷処理および両面印刷処理が終了すると、印刷処理は終了される。   If single-sided printing has not been specified, that is, if double-sided printing has been specified (S35: NO), the CPU 210 executes double-sided printing processing in S45. In the double-sided printing process, using the parameters determined in the parameter determining process, 20 print images TI each including a page image PI and a heading image CI are formed by 20 print images TI each including front and back surfaces of 10 print media. Are printed one by one on the printing surface. The two-sided printing process will be described later. When the one-sided printing process and the two-sided printing process end, the printing process ends.

A−3:パラメータ決定処理
図7は、パラメータ決定処理のフローチャートである。S100では、CPU210は、詳細設定画面WI2を介して取得された使用階層の下限に基づいて、図3の補足データSDの複数個の項目情報I1〜I3、I21、I22、I211、I212の中から、使用すべき複数個の項目情報を決定する。具体的には、使用階層の下限の階層に属する項目情報と、使用階層の下限より上位の階層に属する項目情報のうち、下位の項目情報が対応付けられていない項目情報とが、使用すべき項目情報として決定される。例えば、図3の例において、使用階層の下限が、第1階層である場合には、第1階層に属する3個の項目情報I1〜I3が、使用すべき項目情報として決定される。図3の例において、使用階層の下限が、第2階層である場合には、第2階層に属する2個の項目情報I21、I22と、第1階層に属し、かつ、下位の項目情報が対応付けられていない2個の項目情報I1、I3と、から成る4個の項目情報が、使用すべき項目情報として決定される。以下では、使用階層の下限が第2階層であり、本ステップにて、4個の項目情報I1、I21、I22、I3が、使用すべき項目情報として決定されたとして、説明を続ける。
A-3: Parameter Determination Process FIG. 7 is a flowchart of the parameter determination process. In S100, the CPU 210 selects one of the item information items I1 to I3, I21, I22, I211 and I212 of the supplementary data SD of FIG. And a plurality of item information to be used are determined. Specifically, the item information belonging to the lower hierarchy of the use hierarchy and the item information belonging to the hierarchy higher than the lower limit of the use hierarchy, to which the lower item information is not associated, should be used. Determined as item information. For example, in the example of FIG. 3, when the lower limit of the use hierarchy is the first hierarchy, three item information I1 to I3 belonging to the first hierarchy are determined as the item information to be used. In the example of FIG. 3, when the lower limit of the use hierarchy is the second hierarchy, two item information items I21 and I22 belonging to the second hierarchy correspond to the item information items belonging to the first hierarchy and lower. Four item information items, which are two item information items I1 and I3 not attached, are determined as item information items to be used. Hereinafter, the description will be continued assuming that the lower limit of the use hierarchy is the second hierarchy, and in this step, four item information items I1, I21, I22, and I3 have been determined as the item information items to be used.

S105では、CPU210は、補足データSDのうち、決定済の使用すべき項目情報を用いて、対象ファイルIFの20個のページデータPD1〜PD20をk個(kは、2≦k<mを満たす整数)のグループに分類して、分類結果を示すグループ情報を生成する。図4の例では、20個のページデータPD1〜PD20が4個のグループに分類される(k=4)。20個のページデータPD1〜PD20を4個のグループに分類することは、図4に示すように、20個のページ画像PI1〜PI20を4個のグループに分類することと同義である。   In S105, the CPU 210 uses the determined item information to be used among the supplementary data SD to set k page data PD1 to PD20 of the target file IF (k satisfies 2 ≦ k <m). (Integer) group, and group information indicating the classification result is generated. In the example of FIG. 4, 20 page data PD1 to PD20 are classified into four groups (k = 4). Classifying the 20 page data PD1 to PD20 into 4 groups is equivalent to classifying the 20 page images PI1 to PI20 into 4 groups, as shown in FIG.

図4の例を用いて、具体的に説明する。図4に示すように、使用すべき4個の項目情報I1、I21、I22、I3は、それぞれ、1ページ目のページ画像PI1、5ページ目のページ画像PI5、13ページ目のページ画像PI13、18ページ目のページ画像PI18に対応付けられている。図4の20個のページデータPD1〜PD20は、使用すべき4個の項目情報I1、I21、I22、I3が対応付けられたページデータ(具体的には、/Destエントリ(図3)に示されたページデータ)を区切りとして、4個のグループに分類される。このように、本実施例では、使用すべき項目情報の個数と、分類の結果、得られるグループの個数とは、互いに等しい。また、上述した見出し画像CIは、ページデータPDが分類されるグループを示す画像であるので、グループの個数と、出し画像CIの種類の個数とは、互いに等しい。本実施例では、グループの個数と、使用すべき項目情報の個数と、見出し画像CIの種類の個数とは、いずれも4個である。なお、補足データSDの内容によっては、項目情報と、分類されるグループ数と、が一致しない場合がある。より具体的に説明すると、PDFファイル内の先頭のページから特定のページまでにおいては、項目情報が設定されない場合がある。この場合には、当該先頭のページから当該特定のページまでが1つのグループに分類され、当該特定のページの次のページ以降が項目情報の数と一致するようにグループに分類される。すなわち、グループの個数が、項目情報の数よりも1個多くなる場合がある。一般には、グループの個数は、項目情報の数及び見出し画像CIの種類の個数と同じであるか、または、項目情報の数及び見出し画像CIの種類の個数よりも1個多い。   A specific description will be given using the example of FIG. As shown in FIG. 4, the four pieces of item information I1, I21, I22, and I3 to be used are a page image PI1 of the first page, a page image PI5 of the fifth page, a page image PI13 of the thirteenth page, respectively. It is associated with the page image PI18 of the 18th page. The twenty page data PD1 to PD20 in FIG. 4 are page data (specifically, shown in the / Dest entry (FIG. 3)) in which four pieces of item information I1, I21, I22, and I3 to be used are associated. Page data) are divided into four groups. Thus, in the present embodiment, the number of item information to be used and the number of groups obtained as a result of the classification are equal to each other. In addition, since the above-described heading image CI is an image indicating a group into which the page data PD is classified, the number of groups and the number of types of the output image CI are equal to each other. In the present embodiment, the number of groups, the number of item information to be used, and the number of types of heading images CI are all four. Note that, depending on the contents of the supplementary data SD, the item information may not match the number of groups to be classified. More specifically, item information may not be set from the first page to a specific page in the PDF file. In this case, the area from the top page to the specific page is classified into one group, and the pages subsequent to the specific page are classified into groups so as to match the number of item information. That is, the number of groups may be one more than the number of item information. In general, the number of groups is the same as the number of item information and the number of types of heading images CI, or one more than the number of item information and the number of types of heading images CI.

より具体的に説明する。4個の項目情報I1、I21、I22、I3を、対応するページ画像PIのページ順序が最も早い順に、第1の項目情報I1、第2の項目情報I21、第3の項目情報I22、第4の項目情報I3とする。この場合には、これらの使用すべき第1の項目情報I1に対応するページデータPD1から、第2の項目情報I21に対応するページデータPD5の直前のページデータPD4までの4ページ分のページデータPD1〜PD4は、グループG1に分類される。第2の項目情報I21に対応するページデータPD5から、第3の項目情報I22に対応するページデータPD13の直前のページデータPD12までの8ページ分のページデータPD5〜PD12は、グループG2に分類される。第3の項目情報I22に対応するページデータPD13から、第4の項目情報I3に対応するページデータPD18の直前のページデータPD17までの5ページ分のページデータPD13〜PD17は、グループG3に分類される。第4の項目情報I3に対応するページデータPD18から、最後のページデータPD20までの3ページ分のページデータPD18〜PD20は、グループG4に分類される。このように、各グループに属する1個以上のページデータPDは、互いにページ順序が連続する1個以上のページデータとなる。図4(A)〜(D)には、グループG1〜G4のいずれかに分類された20個のページデータPD1〜PD20によって示されるページ画像PI1〜PI20が、グループごとに分けて図示されている。   This will be described more specifically. The four pieces of item information I1, I21, I22, and I3 are sorted into the first item information I1, the second item information I21, the third item information I22, and the fourth item information in the order of the page order of the corresponding page image PI. Item information I3. In this case, page data of four pages from the page data PD1 corresponding to the first item information I1 to be used to the page data PD4 immediately before the page data PD5 corresponding to the second item information I21. PD1 to PD4 are classified into a group G1. Eight pages of page data PD5 to PD12 from the page data PD5 corresponding to the second item information I21 to the page data PD12 immediately before the page data PD13 corresponding to the third item information I22 are classified into the group G2. You. The page data PD13 to PD17 for five pages from the page data PD13 corresponding to the third item information I22 to the page data PD17 immediately before the page data PD18 corresponding to the fourth item information I3 are classified into the group G3. You. The page data PD18 to PD20 for three pages from the page data PD18 corresponding to the fourth item information I3 to the last page data PD20 are classified into a group G4. As described above, one or more page data PD belonging to each group is one or more page data in which the page order is continuous with each other. FIGS. 4A to 4D show page images PI1 to PI20 indicated by 20 page data PD1 to PD20 classified into any of the groups G1 to G4. .

S110では、CPU210は、見出し画像CIの配置端が指定されているか否かを判断する。図5(B)の詳細設定画面WI2を介して上述した見出し画像CIの配置端として、用紙の特定の端が指定されている場合には(S110:YES)、CPU210は、S115にて、ユーザによって指定された特定の端を見出し画像CIの配置端として決定する。詳細設定画面WI2において、自動設定が指定され、用紙の特定の端が指定されていない場合には(S110:NO)、CPU210は、S120にて、綴じ方向の端に対向対応するラジオボタンRB10が選択されている場合には、見出し画像CIの配置端は、指定されていないと、判断される。   In S110, CPU 210 determines whether or not the layout end of heading image CI has been designated. If a specific end of the sheet is designated as the arrangement end of the heading image CI described above via the detailed setting screen WI2 in FIG. 5B (S110: YES), the CPU 210 proceeds to S115. Is determined as the arrangement end of the heading image CI. If the automatic setting is specified on the detailed setting screen WI2 and the specific edge of the sheet is not specified (S110: NO), the CPU 210 determines in S120 that the radio button RB10 corresponding to the edge in the binding direction is pressed. When it is selected, it is determined that the arrangement end of the heading image CI is not specified.

見出し画像CIの配置端が指定されている場合には(S110:YES)、CPU210は、S115にて、当該指定された端を、配置端として決定する。見出し画像CIの配置端が指定されていない場合には(S110:NO)、CPU210は、S120にて、図5(A)のメイン画面WI1にて指定された綴じ方向の端の反対側の端を、配置端として決定する。   If the placement end of the heading image CI is designated (S110: YES), the CPU 210 determines the designated end as the placement end in S115. If the placement end of the heading image CI is not specified (S110: NO), the CPU 210 determines in S120 the end opposite to the end in the binding direction specified on the main screen WI1 of FIG. 5A. Is determined as the arrangement end.

S125では、CPU210は、見出し画像CIの配置端に沿う方向の長さLを決定する。長さLは、ページデータが分類されるグループの個数と、印刷画像TIが印刷されるべき用紙の配置端に沿う方向の長さと、に基づいて、決定される。用紙の右端が配置端である場合、すなわち、配置端に沿う方向が縦方向である場合(図6(A))と、用紙の上端が配置端である場合、すなわち、配置端に沿う方向が横方向である場合(図6(B))と、の例を用いて、より具体的に説明する。   In S125, the CPU 210 determines the length L in the direction along the arrangement end of the heading image CI. The length L is determined based on the number of groups into which the page data is classified and the length in the direction along the arrangement end of the sheet on which the print image TI is to be printed. When the right end of the paper is the placement end, that is, when the direction along the placement end is the vertical direction (FIG. 6A), when the top end of the paper is the placement end, that is, the direction along the placement end is The case of the horizontal direction (FIG. 6B) will be described more specifically using the example of FIG.

図6(A)の用紙の右端が配置端である場合には、見出し画像CIRaの縦方向の長さLaは、ページデータが分類されるグループの個数kと、用紙PAの縦方向の長さH1と、上側の余白の縦方向の長さHUと、下側の余白の縦方向の長さHBと、を用いて決定される。具体的には、印刷画像TIの縦方向の長さH2をグループの個数kで除した値が、見出し画像CIRaの縦方向の長さLaとされる(La=(H2/k))。そして、印刷画像TIの縦方向の長さH2は、用紙PAの縦方向の長さH1から上下の余白の縦方向の長さHU、HBの和を減じた値である(H2=H1−(HU+HB))。したがって、見出し画像CIRaの縦方向の長さLaは、以下の式(1)を用いて算出される。
La={H1−(HU+HB)}/k ...(1)
なお、用紙の左端が配置端である場合も、同じ式で、見出し画像CIの縦方向の長さが算出される。
When the right end of the sheet in FIG. 6A is the arrangement end, the vertical length La of the heading image CIRa is represented by the number k of groups into which page data is classified and the vertical length of the sheet PA. It is determined using H1, the vertical length HU of the upper margin, and the vertical length HB of the lower margin. Specifically, a value obtained by dividing the vertical length H2 of the print image TI by the number k of groups is set as the vertical length La of the index image CIRa (La = (H2 / k)). The vertical length H2 of the print image TI is a value obtained by subtracting the sum of the vertical lengths HU and HB of the upper and lower margins from the vertical length H1 of the paper PA (H2 = H1− ( HU + HB)). Therefore, the length La of the heading image CIRa in the vertical direction is calculated using the following equation (1).
La = {H1- (HU + HB)} / k ... (1)
Even when the left end of the sheet is the arrangement end, the vertical length of the heading image CI is calculated by the same formula.

図6(B)の用紙の上端が配置端である場合には、見出し画像CIuの配置端に沿う方向の長さ、すなわち、横方向の長さLbは、グループの個数kと、用紙PAの横方向の長さW1と、右側の余白の横方向の長さWRと、左側の余白の横方向の長さWLと、を用いて決定される。具体的には、印刷画像TIの横方向の長さW2をグループの個数kで除した値が、見出し画像CIbの横方向の長さLbとされる(Lb=(W2/k))。そして、印刷画像TIの横方向の長さW2は、用紙PAの横方向の長さW1から左右の余白の横方向の長さWR、WLの和を減じた値である(W2=W1−(WR+WL))。したがって、見出し画像CIbの横方向の長さLbは、以下の式(2)を用いて算出される。
Lb={W1−(WR+WL)}/k ...(2)
なお、用紙の下端が配置端である場合も、同じ式で、見出し画像CIの横方向の長さが算出される。なお、これらの長さLは、画素数を用いて表される。
In the case where the upper end of the sheet in FIG. 6B is the arrangement end, the length in the direction along the arrangement end of the heading image CIu, that is, the lateral length Lb is determined by the number k of groups and the length of the sheet PA. It is determined using the horizontal length W1, the horizontal length WR of the right margin, and the horizontal length WL of the left margin. Specifically, a value obtained by dividing the horizontal length W2 of the print image TI by the number k of groups is set as the horizontal length Lb of the index image CIb (Lb = (W2 / k)). The horizontal length W2 of the print image TI is a value obtained by subtracting the sum of the horizontal lengths WR and WL of the left and right margins from the horizontal length W1 of the paper PA (W2 = W1- ( WR + WL)). Therefore, the horizontal length Lb of the heading image CIb is calculated by using the following equation (2).
Lb = {W1- (WR + WL)} / k ... (2)
Even when the lower end of the sheet is the arrangement end, the horizontal length of the heading image CI is calculated by the same formula. Note that these lengths L are represented using the number of pixels.

図7のS130では、CPU210は、20個のページ画像PI1〜PI20内の文字のサイズに基づいて、見出し画像CI内の文字のサイズCSを決定する。具体的には、CPU210は、20個のページデータPD1〜PD20(具体的には、ページデータ内のテキストデータが示すフォントサイズ)を解析して、ページ画像PI1〜PI20内に含まれる文字の1種類以上のサイズのうち、最も多数の文字に採用されているサイズを、見出し画像CI内の文字のサイズCSとして決定する。変形例としては、1ページ目のページ画像PI1内の文字だけに基づいて、文字のサイズCSが決定されても良い。また、ページ画像PI1〜PI20内に含まれる文字の1種類以上のサイズを、小さな順に並べた場合の中央値が、字のサイズCSとして決定されても良い。   In S130 of FIG. 7, the CPU 210 determines the size CS of the character in the headline image CI based on the size of the character in the 20 page images PI1 to PI20. Specifically, the CPU 210 analyzes the twenty page data PD1 to PD20 (specifically, the font size indicated by the text data in the page data), and analyzes one of the characters included in the page images PI1 to PI20. The size adopted for the largest number of characters among the types or more sizes is determined as the size CS of the characters in the index image CI. As a modification, the character size CS may be determined based on only the characters in the page image PI1 of the first page. In addition, the median value when one or more types of characters included in the page images PI1 to PI20 are arranged in ascending order may be determined as the character size CS.

S135では、CPU210は、S125にて決定された見出し画像CIの配置端に沿う方向の長さLと、S130にて決定された文字のサイズCSと、に基づいて、見出し画像CI内の文字の最大文字数TCを決定する。具体的には、見出し画像CIの配置端に沿う方向の長さLを、文字のサイズCSに所定の文字間隔ΔTを加えた値で除した値が、最大文字数TCとして算出される(TC=(L/(CS+ΔT))。変形例としては、長さLの範囲と文字のサイズCSとの複数個の組み合わせのそれぞれに、最大文字数TCを対応付けたテーブルを参照して、最大文字数TCを決定しても良い。   In S135, the CPU 210 determines the size of the character in the heading image CI based on the length L in the direction along the layout end of the heading image CI determined in S125 and the character size CS determined in S130. Determine the maximum number of characters TC. Specifically, a value obtained by dividing the length L in the direction along the arrangement end of the heading image CI by a value obtained by adding a predetermined character interval ΔT to the character size CS is calculated as the maximum number of characters TC (TC = (L / (CS + ΔT)) As a modified example, the maximum number of characters TC is determined by referring to a table in which the maximum number of characters TC is associated with each of a plurality of combinations of the range of the length L and the character size CS. You may decide.

S140では、CPU210は、補足データSDを用いて、k種類の見出し画像CIのそれぞれについて、見出し画像CI内の文字を決定する。具体的には、CPU210は、補足データSDから、ページデータが分類されたk個のグループそれぞれについて、対応する項目情報を取得する。グループに対応する項目情報は、使用すべき項目情報のうち、該グループにおけるページ順序が先頭のページデータに対応付けられた項目情報である。図4の例では、グループG1に対応する項目情報は、項目情報I1であり、グループG2に対応する項目情報は、項目情報I21である。   In S140, CPU 210 determines characters in heading image CI for each of the k types of heading images CI using supplementary data SD. Specifically, the CPU 210 acquires, from the supplementary data SD, corresponding item information for each of the k groups in which the page data is classified. The item information corresponding to the group is, among the item information to be used, the item information in which the page order in the group is associated with the first page data. In the example of FIG. 4, the item information corresponding to the group G1 is the item information I1, and the item information corresponding to the group G2 is the item information I21.

CPU210は、取得した項目情報に含まれるテキストデータ、具体的には、/Titleエントリに記述されたテキストデータ(図3)によって示される文字列から、先頭から順に最大文字数TCを上限として、文字を選択する。そして、CPU210は、項目情報に含まれるテキストデータから選択された文字を、当該項目情報に対応するグループを示す見出し画像CI内の文字として決定する。図4の例において、最大文字数TCが4文字であるとすると、4個のグループG1〜G4を示す4種類の見出し画像CI内の文字として、それぞれ、「序論」、「実験方法」「実験結果」「結論」が、決定される。なお、文字が配置端に対して水平方向に記述されるとき、半角文字は0.5文字として計算される。   The CPU 210 converts characters from the text data included in the acquired item information, specifically, from the character string indicated by the text data (FIG. 3) described in the / Title entry, starting from the top with the maximum number of characters TC as an upper limit. select. Then, CPU 210 determines a character selected from the text data included in the item information as a character in heading image CI indicating a group corresponding to the item information. In the example of FIG. 4, assuming that the maximum number of characters TC is four, the characters in the four types of heading images CI indicating the four groups G1 to G4 are “introduction”, “experimental method”, and “experimental result”, respectively. "Conclusion" is determined. When a character is described in the horizontal direction with respect to the arrangement end, a half-width character is calculated as 0.5 character.

S145では、CPU210は、見出し画像CIの文字色および背景色が、図5(B)の詳細設定画面WI2を介して、ユーザによって指定されているか否かを判断する。文字色および背景色がユーザによって指定されている場合には(S145:YES)、S150にて、CPU210は、ユーザの指定に従って、見出し画像CIの文字色および背景色を決定する。   In S145, CPU 210 determines whether the character color and the background color of heading image CI have been specified by the user via detailed setting screen WI2 in FIG. 5B. If the character color and the background color are specified by the user (S145: YES), in S150, CPU 210 determines the character color and the background color of heading image CI according to the specification of the user.

文字色および背景色がユーザによって指定されていない場合には(S145:NO)、S155にて、CPU210は、補足データSDを用いて、見出し画像CIの文字色および背景色を決定する。具体的には、補足データSDに含まれる項目情報の/Colorエントリに記述された文字色を、見出し画像CIの背景色として決定する。そして、項目情報の/Colorエントリに記述された文字色の補色を、見出し画像CIの文字色として決定する。見出し画像CIの文字色および背景色は、対応する項目情報に基づいて、見出し画像CIの種類ごとに異なる色に決定されても良い。あるいは、見出し画像CIの文字色および背景色は、1個の項目情報に基づいて、k種類の見出し画像CIに共通の色に決定されても良い。S150、S155にて、見出し画像CIの文字色および背景色が決定されると、パラメータ決定処理は終了される。   If the character color and the background color have not been specified by the user (S145: NO), in S155, CPU 210 determines the character color and the background color of index image CI using supplementary data SD. Specifically, the character color described in the / Color entry of the item information included in the supplementary data SD is determined as the background color of the heading image CI. Then, a complementary color of the character color described in the / Color entry of the item information is determined as the character color of the heading image CI. The character color and the background color of the heading image CI may be determined to be different colors for each type of the heading image CI based on the corresponding item information. Alternatively, the character color and the background color of the heading image CI may be determined to be colors common to the k kinds of heading images CI based on one item information. When the character color and the background color of the heading image CI are determined in S150 and S155, the parameter determination processing ends.

A−4:片面印刷処理
図8は、片面印刷処理のフローチャートである。S200では、CPU210は、20個のページデータPD1〜PD20の中から、ページ順序に従って1個の注目ページデータを選択する。注目ページデータによって示されるページ画像PIを注目ページ画像とも呼ぶ。
A-4: One-Sided Printing Process FIG. 8 is a flowchart of the one-sided printing process. In S200, the CPU 210 selects one target page data from the 20 page data PD1 to PD20 according to the page order. The page image PI indicated by the page data of interest is also called a page image of interest.

S205では、CPU210は、PDFフォーマットに従って注目ページ画像を記述する注目ページデータに対して、ラスタライズ処理を実行して、注目ページ画像を示すビットマップデータを生成する。ビットマップデータは、本実施例では、RGB表色系の色値(RGB値)で画素ごとの色を表すRGB画像データである。図6(A)の印刷画像TI1を例として具体的に説明する。先ず、CPU210は、ラスタライズ後の注目ページ画像のサイズを決定する。ラスタライズ後の注目ページ画像(図6(A)の例では、1ページ目のページ画像PI1)の縦方向の長さH2は、印刷すべき用紙PAの縦方向の長さH1から、上下の余白の縦方向の長さHU、HBの和を減じた値である(H2={H1−(HU+HB)})。注目ページ画像の横方向の長さW2は、印刷すべき用紙PAの横方向の長さW1から、左右の余白の横方向の長さWL、WRの和を減じた値である(W2={W1−(WL+WR)})。   In step S205, the CPU 210 performs rasterization processing on the page data of interest describing the page image of interest in accordance with the PDF format, and generates bitmap data indicating the page image of interest. In the present embodiment, the bitmap data is RGB image data representing a color of each pixel with a color value (RGB value) of the RGB color system. This will be specifically described using the print image TI1 in FIG. 6A as an example. First, the CPU 210 determines the size of the page image of interest after rasterization. The vertical length H2 of the rasterized page image of interest (the page image PI1 of the first page in the example of FIG. 6A) is determined by the vertical margin H1 of the paper PA to be printed. (H2 = {H1− (HU + HB)}). The horizontal length W2 of the target page image is a value obtained by subtracting the sum of the horizontal lengths WL and WR of the left and right margins from the horizontal length W1 of the paper PA to be printed (W2 = {). W1- (WL + WR)}).

CPU210は、決定されたサイズを有する初期画像を表す画像データ(例えば、全ての画素値が初期値である画像データ)をバッファ領域231に準備する。CPU210は、注目ページデータに含まれる描画命令に従って、初期画像内に、注目ページ画像を描画することによって、注目ページ画像を示すビットマップデータを生成する。   The CPU 210 prepares image data representing an initial image having the determined size (for example, image data in which all pixel values are initial values) in the buffer area 231. The CPU 210 generates bitmap data indicating the target page image by drawing the target page image in the initial image according to the drawing command included in the target page data.

S210では、CPU210は、グループ情報を参照して、生成すべき印刷画像TIにおいて、見出し画像CIの配置位置を決定する。上述したように、見出し画像CIの配置端は、片面印刷の場合は印刷面、両面印刷の場合は奇数ページの印刷面を表向きとした状態を基準として定義される。したがって、後述する両面印刷の場合と異なり、片面印刷の場合には、図7のS115、S120にて決定された見出し画像CIの配置端と、印刷画像TIにおける配置端と対応する端とは、常に同じ方向の端となる。したがって、本ステップでは、見出し画像CIの配置端に沿って、見出し画像CIの配置位置が決定される。   In S210, the CPU 210 determines the arrangement position of the index image CI in the print image TI to be generated with reference to the group information. As described above, the layout end of the heading image CI is defined based on a state in which the print surface of the odd-numbered page faces up in the case of single-sided printing and the print surface in the case of double-sided printing. Therefore, unlike the case of double-sided printing described later, in the case of single-sided printing, the arrangement end of the index image CI determined in S115 and S120 in FIG. 7 and the end corresponding to the arrangement end in the print image TI are: Always end in the same direction. Therefore, in this step, the arrangement position of the headline image CI is determined along the arrangement end of the headline image CI.

例えば、図6(A)は、図7のS115、S120にて決定された見出し画像CIの配置端が右端である場合の例である。この場合には、先ず、CPU210は、ラスタライズ後の注目ページ画像(図6(A)のページ画像PI1)の右側に隣接する付加領域IA2を設定する。この結果、図6(A)に示すように、注目ページ画像(図6(A)のページ画像PI1)が配置される主領域IA1と、主領域IA1の右側に隣接し、見出し画像CIを配置するための付加領域IA2と、から成る印刷画像TI(図6(A)の印刷画像TI1)が生成される。   For example, FIG. 6A shows an example in which the layout end of the index image CI determined in S115 and S120 in FIG. 7 is the right end. In this case, first, the CPU 210 sets an additional area IA2 adjacent to the right side of the rasterized target page image (the page image PI1 in FIG. 6A). As a result, as shown in FIG. 6A, the main area IA1 where the page image of interest (the page image PI1 in FIG. 6A) is arranged, and the heading image CI is arranged adjacent to the right side of the main area IA1. A print image TI (a print image TI1 in FIG. 6A) including an additional area IA2 for performing the print operation is generated.

図6(B)は、図7のS115、S120にて決定された見出し画像CIの配置端が上端である場合の例である。この場合には、先ず、CPU210は、ラスタライズ後の注目ページ画像(図6(B)のページ画像PI1)の上側に隣接する付加領域IA2を設定する。この結果、図6(B)に示すように、注目ページ画像(図6(B)のページ画像PI1)が配置される主領域IA1と、主領域IA1の上側に隣接し、見出し画像CIを配置するための付加領域IA2と、から成る印刷画像TI(図6(B)の印刷画像TI1b)が生成される。   FIG. 6B shows an example in which the layout end of the index image CI determined in S115 and S120 of FIG. 7 is the upper end. In this case, first, the CPU 210 sets the additional area IA2 adjacent above the rasterized target page image (the page image PI1 in FIG. 6B). As a result, as shown in FIG. 6B, the main area IA1 where the page image of interest (the page image PI1 in FIG. 6B) is arranged, and the heading image CI is arranged adjacent to the upper side of the main area IA1. A print image TI (the print image TI1b in FIG. 6B) including the additional area IA2 for performing the printing is generated.

このような付加領域IA2は、印刷画像TIの4端のうち、図7のS115、S120にて決定された見出し画像CIの配置端(図6(A)の例では右端、図6(B)の例では上端)に沿って、該配置端の余白相当の幅(図6(A)の例では幅WR、図6(B)の例では幅HU)を有する帯状の領域である。この段階では、付加領域IA2内には、なにも配置されていない。予め主領域IA1と付加領域IA2とを別々に設定しておくことで、印刷画像TIにおいて、ページ画像PIと、見出し画像CIと、が重なる不都合を避けることができる。   Such an additional area IA2 is, among the four ends of the print image TI, the arrangement end of the index image CI determined in S115 and S120 in FIG. 7 (the right end in the example of FIG. 6A, FIG. 6B). Along the upper end in the example shown in FIG. 6A), a band-shaped area having a width corresponding to the margin of the arrangement end (width WR in the example of FIG. 6A, width HU in the example of FIG. 6B). At this stage, nothing is arranged in the additional area IA2. By setting the main area IA1 and the additional area IA2 separately in advance, it is possible to avoid the inconvenience that the page image PI and the heading image CI overlap in the print image TI.

図9は、図4に示す20個のページ画像PI1〜PI20に対応する20個の印刷画像TI1〜TI20を示す図である。図9は、配置端が右端である場合の例であるので配置端に沿う方向は、縦方向である。20個のページ画像PI1〜PI20と、20個の印刷画像TI1〜TI20とは、一対一で対応しているから、20個のページ画像PI1〜PI20は、20個のページ画像PI1〜PI20と同様に、4つのグループG1〜G4に分類できる。20個の印刷画像TI1〜TI20のそれぞれに配置される見出し画像CIの縦方向の位置は、属するグループごとに一定量ずつずれている。具体的には、見出し画像CIの縦方向の位置は、属するページ画像PIのページ順序が遅いグループほど下方向に、見出し画像CIの縦方向の長さLa(図6(A))分だけずれている。例えば、グループG1に属する印刷画像TIに配置される見出し画像CIRaの縦方向の位置は、印刷画像TIの上端に接する位置である(図9(A)、図6(A))。そして、グループG2、G3、G4に属する印刷画像TIに配置される見出し画像CIRb、CIRc、CIRdの上端から印刷画像TIの上端までの距離D2、D3、D4(図9)は、それぞれ、D2=La、D3=(2×La)、D4=(3×La)である。なお、この場合において、見出し画像CIRa〜CIRdの横方向の位置は、全て同じ位置であり、配置端である右端に接する位置である(図9)。   FIG. 9 is a diagram showing 20 print images TI1 to TI20 corresponding to the 20 page images PI1 to PI20 shown in FIG. FIG. 9 is an example in which the arrangement end is the right end, so the direction along the arrangement end is the vertical direction. Since the 20 page images PI1 to PI20 and the 20 print images TI1 to TI20 correspond one-to-one, the 20 page images PI1 to PI20 are the same as the 20 page images PI1 to PI20. And four groups G1 to G4. The vertical position of the heading image CI arranged in each of the 20 print images TI1 to TI20 is shifted by a certain amount for each group to which the heading image CI belongs. Specifically, the vertical position of the heading image CI is shifted downward by the vertical length La (FIG. 6A) of the heading image CI in a group having a lower page order of the page images PI to which the heading image CI belongs. ing. For example, the vertical position of the index image CIRa arranged in the print image TI belonging to the group G1 is a position in contact with the upper end of the print image TI (FIGS. 9A and 6A). Then, the distances D2, D3, D4 (FIG. 9) from the upper ends of the index images CIRb, CIRc, CIRd arranged in the print images TI belonging to the groups G2, G3, G4 to the upper ends of the print images TI are D2 = La, D3 = (2 × La) and D4 = (3 × La). Note that, in this case, the horizontal positions of the headline images CIRa to CIRd are all the same, and are positions that are in contact with the right end, which is the arrangement end (FIG. 9).

また、配置端が上端である場合には、配置端に沿う方向は、横方向である。この場合には、見出し画像CIの縦方向の位置は、属するページ画像PIのページ順序が遅いグループほど右方向に、見出し画像CIの横方向の長さLb(図6(B))分だけずれている(図示省略)。   When the arrangement end is the upper end, the direction along the arrangement end is the horizontal direction. In this case, the vertical position of the heading image CI is shifted to the right by a horizontal length Lb (FIG. 6B) of the heading image CI in a group in which the page order of the page images PI to which the page image PI belongs is later. (Not shown).

このように、見出し画像CIの配置位置を決定するために、CPU210は、グループ情報を参照して、注目ページ画像が属するグループを認識して、注目ページ画像に対する見出し画像CIの配置位置を、付加領域IA2において、グループごとに異なる位置に決定する。   As described above, in order to determine the arrangement position of the heading image CI, the CPU 210 refers to the group information, recognizes the group to which the page image of interest belongs, and adds the arrangement position of the heading image CI to the page image of interest. In the area IA2, a different position is determined for each group.

S215では、CPU210は、印刷画像TIに見出し画像CIを付加することによって、印刷画像TIを完成させる。具体的には、CPU210は、パラメータ決定処理によって決定された複数個のパラメータに基づいて、見出し画像CIを生成して、該見出し画像CIを、印刷画像TI内の付加領域IA2に配置する。例えば、図7のS125にて決定された配置端に沿う方向の長さLと、配置端に直交する方向の所定の長さと、を有し、図7のS150またはS155にて決定された背景色で塗りつぶされた矩形画像が生成される。配置端に直交する方向の所定の長さは、例えば、付加領域IA2の幅と同じ固定値であっても良く、図7のS130にて決定される文字サイズCSに応じて動的に決定される値であっても良い。そして、該矩形画像内に、図7のS140にて決定された文字であって、図7のS150またはS155にて決定された文字色を有する文字が配置されて、見出し画像CIが生成される。該見出し画像CIが、印刷画像TI内における、S215にて決定された配置位置に、配置される。   In S215, the CPU 210 completes the print image TI by adding the index image CI to the print image TI. Specifically, CPU 210 generates a heading image CI based on the plurality of parameters determined by the parameter determination processing, and arranges heading image CI in additional area IA2 in print image TI. For example, the background has a length L in the direction along the arrangement end determined in S125 of FIG. 7 and a predetermined length in a direction orthogonal to the arrangement end, and has the background determined in S150 or S155 in FIG. A rectangular image filled with the color is generated. The predetermined length in the direction orthogonal to the arrangement end may be, for example, the same fixed value as the width of the additional area IA2, and is dynamically determined according to the character size CS determined in S130 of FIG. Value may be used. Then, in the rectangular image, the character determined in S140 of FIG. 7 and having the character color determined in S150 or S155 of FIG. 7 is arranged, and the heading image CI is generated. . The headline image CI is arranged at the arrangement position determined in S215 in the print image TI.

この結果、図9に示す20個の印刷画像TI1〜TI20のうち、注目ページ画像を含む印刷画像TIを示すRBG画像データが生成される。   As a result, among the 20 print images TI1 to TI20 shown in FIG. 9, RBG image data indicating the print image TI including the page image of interest is generated.

S220では、CPU210は、生成された印刷画像TIを示すRBG画像データを印刷データに変換する。具体的には、RGB画像データに対して、RGB値を印刷材の色(例えば、C(シアン)、M(マゼンタ)、Y(イエロ))に対応する成分値を含む色値(例えば、CMY値)に変換する色変換処理が実行される。そして、色変換処理後の画像データに対して、誤差拡散法やディザ法などを用いたハーフトーン処理が実行される。そして、ハーフトーン処理後の画像データを印刷に用いられる順序で並び替えて、印刷コマンドなどの制御データを付加する処理が実行されて、印刷データが生成される。このとき、印刷データは、用紙における見出し画像CIの配置端に、余白を設けないように、印刷データを生成する。これにより用紙における配置端に沿って、見出し画像CIを適切に印刷することができる。   In S220, CPU 210 converts the generated RBG image data indicating print image TI into print data. Specifically, for the RGB image data, the RGB values are converted to color values (for example, CMY) including component values corresponding to the colors of the printing material (for example, C (cyan), M (magenta), and Y (yellow)). ) Is performed. Then, halftone processing using an error diffusion method, a dither method, or the like is performed on the image data after the color conversion processing. Then, the image data after the halftone processing is rearranged in the order used for printing, and a process of adding control data such as a print command is executed to generate print data. At this time, the print data is generated such that no margin is provided at the position where the heading image CI is arranged on the sheet. As a result, the heading image CI can be appropriately printed along the arrangement edge of the sheet.

S225では、CPU210は、生成された印刷データを、プリンタ100に送信することによって、注目ページ画像と、注目ページ画像が属するグループを示す見出し画像CIと、を含む印刷画像TIを、プリンタ100に印刷させる。   In step S225, the CPU 210 transmits the generated print data to the printer 100 to print a print image TI including the target page image and a heading image CI indicating a group to which the target page image belongs to the printer 100. Let it.

S230では、CPU210は、対象ファイルIFに含まれる全てのページデータPDを処理したか否かを判断する。全てのページデータPDが処理されていない場合には(S230:NO)、CPU210は、S200に戻って、未処理のページデータPDを新たな注目ページデータとして選択する。全てのページデータPDが処理されている場合には(S230:YES)、CPU210は、片面印刷処理を終了する。片面印刷処理が終了されると、図9に示す20個の印刷画像TI〜TI20が、プリンタ100において、20枚の用紙の表面に1個ずつ印刷される。   In S230, the CPU 210 determines whether all the page data PD included in the target file IF have been processed. If all the page data PD have not been processed (S230: NO), the CPU 210 returns to S200 and selects the unprocessed page data PD as new target page data. If all the page data PD has been processed (S230: YES), the CPU 210 ends the one-sided printing process. When the one-sided printing process is completed, the 20 print images TI to TI20 shown in FIG. 9 are printed by the printer 100 one by one on the surface of 20 sheets of paper.

A−5:両面印刷処理
図10は、両面印刷処理のフローチャートである。S300では、CPU210は、20個のページデータPD1〜PD20の中から、ページ順序に従って1個の注目ページデータを選択する。S305では、CPU210は、注目ページデータに対して、ラスタライズ処理を実行して、注目ページ画像を示すRGB画像データを生成する。
A-5: Duplex Printing Process FIG. 10 is a flowchart of the duplex printing process. In S300, the CPU 210 selects one target page data from the 20 page data PD1 to PD20 according to the page order. In S305, the CPU 210 performs a rasterizing process on the page data of interest to generate RGB image data indicating the page image of interest.

S310では、CPU210は、注目ページ画像が、ページ順序が奇数番目のページ画像(奇数ページ画像とも呼ぶ)であるか否かを判断する。注目ページ画像が奇数ページ画像である場合には(S310:YES)、CPU210は、S320にて、図8の片面印刷処理のS210と同様に、グループ情報を参照して、生成すべき印刷画像TIにおいて、見出し画像CIの配置位置を決定する。この結果、片面印刷処理と全く同様に、見出し画像CIの配置端に沿って、見出し画像CIの配置位置が決定される。したがって、注目ページ画像が奇数ページ画像である場合には、片面印刷処理において生成される印刷画像TIと、同じ印刷画像が生成される。   In S310, the CPU 210 determines whether or not the page image of interest is an odd-numbered page image in page order (also referred to as an odd-numbered page image). If the page image of interest is an odd page image (S310: YES), the CPU 210 refers to the group information in S320 as in S210 of the one-sided printing process in FIG. In, the arrangement position of the heading image CI is determined. As a result, the placement position of the heading image CI is determined along the placement end of the heading image CI, just like the one-sided printing process. Therefore, when the page image of interest is an odd page image, the same print image as the print image TI generated in the single-sided printing process is generated.

図11は、両面印刷処理の印刷画像の一例を示す図である。図11(A)、(B)は、図7のS115、S120にて決定された見出し画像CIの配置端が右端である場合の例であり、図11(C)、(D)は、見出し画像CIの配置端が上端である場合の例である。また、図11(A)〜(D)のいずれも、綴じ方向の端は、用紙の左端であるとする。   FIG. 11 is a diagram illustrating an example of a print image of the double-sided printing process. FIGS. 11A and 11B are examples in which the arrangement end of the heading image CI determined in S115 and S120 in FIG. 7 is the right end, and FIGS. 11C and 11D are headings. This is an example where the arrangement end of the image CI is the upper end. 11A to 11D, the end in the binding direction is the left end of the sheet.

図11(A)の印刷画像TI1c、および、図11(C)の印刷画像TI1dは、奇数ページ画像、具体的には、1ページ目のページ画像PI1が注目ページ画像である場合に、生成される印刷画像である。これらの印刷画像TI1c、TI1dは、図6(A)、(B)の印刷画像TI1、TIbと、全く同じである。   The print image TI1c in FIG. 11A and the print image TI1d in FIG. 11C are generated when the odd-numbered page image, specifically, the page image PI1 of the first page is the target page image. This is a print image. These print images TI1c and TI1d are exactly the same as the print images TI1 and TIb of FIGS. 6A and 6B.

注目ページ画像が、ページ順序が偶数番目のページ画像(偶数ページ画像とも呼ぶ)である場合には(S310:NO)、CPU210は、図7のS115、S120にて決定された見出し画像CIの配置端と、用紙の綴じ方向の端と、が互いに垂直であるか否かを判断する。例えば、見出し画像CIの配置端が上端または下端で、用紙の綴じ方向の端が左端または右端である場合には、見出し画像CIの配置端と、用紙の綴じ方向の端と、が互いに垂直な端であると判断される。見出し画像CIの配置端が右端で、用紙の綴じ方向の端が左端である場合や、見出し画像CIの配置端が下端で、用紙の綴じ方向の端が上端である場合には、用紙の綴じ方向の端と、が互いに垂直な端でない(平行である)と判断される。ここで言う用紙の綴じ方向の端、および、見出し画像CIの配置端は、上述したように、両面印刷の場合は奇数ページの印刷面を表向きとした状態を基準として定義される端である。   If the page image of interest is an even-numbered page image in the page order (also referred to as an even-numbered page image) (S310: NO), the CPU 210 determines the layout of the heading images CI determined in S115 and S120 in FIG. It is determined whether the edge and the edge in the binding direction of the sheet are perpendicular to each other. For example, when the placement end of the heading image CI is the upper end or the lower end and the end in the binding direction of the paper is the left end or the right end, the placement end of the heading image CI and the end in the binding direction of the paper are perpendicular to each other. It is determined to be an end. When the arrangement end of the heading image CI is the right end and the end in the paper binding direction is the left end, or when the arrangement end of the heading image CI is the lower end and the end in the paper binding direction is the upper end, the paper binding is performed. It is determined that the ends of the directions are not perpendicular to each other (is parallel). As described above, the edge of the sheet in the binding direction and the edge at which the heading image CI is arranged are edges defined based on the state in which the printing surface of the odd-numbered page faces up in the case of double-sided printing.

見出し画像CIの配置端と、用紙の綴じ方向の端と、が互いに垂直である場合には(S315:YES)、CPU210は、S330にて、グループ情報を参照して注目ページデータが属するグループを特定し、配置端に沿って該グループを示す見出し画像CIの配置位置を決定する。ここで、S330では、配置端に沿って見出し画像CIの配置位置が決定される点は、S320と同じであるが、配置端に沿う方向の位置が、S320とは異なる。具体的には、図11(D)は、綴じ方向の端が左端で、配置端の方向が上端であり、互いに垂直である場合の例である。この場合には、図11(D)の印刷画像TI2dには、図11(C)の印刷画像TI1dと同様に、主領域IA1の上端に隣接する付加領域IA2が設定され、見出し画像CIuは、見出し画像CIの配置端である印刷画像TI2dの上端に沿った位置に決定される。そして、図11(D)の印刷画像TI2dでは、見出し画像CIuの横方向の位置(すなわち、見出し画像CIuの配置端である上端に沿う方向の位置)は、図11(C)の印刷画像TI1dの横方向の位置とは、異なっている。具体的には、図11(C)の印刷画像TI1dにおける見出し画像CIuと、印刷画像TI1dの左端と、の距離を、Waとする。そして、図11(D)の印刷画像TI2dにおける見出し画像CIuと、印刷画像TI2dの右端と、の距離をWbとする。この場合に、図11(D)の印刷画像TI2dにおける見出し画像CIuの横方向の位置は、距離Wbと、距離Waと、が等しくなるように、決定される。こうすれば、両面印刷された用紙を綴じて作製された冊子において、同じグループを示す見出し画像CIが、互いに重なるように、見出し画像CIが適切な位置に印刷される。   If the arrangement end of the heading image CI and the end in the paper binding direction are perpendicular to each other (S315: YES), the CPU 210 refers to the group information in S330 to determine the group to which the page data of interest belongs. The arrangement position of the index image CI indicating the group is determined along the arrangement end. Here, in S330, the arrangement position of the index image CI is determined along the arrangement end in the same manner as in S320, but the position in the direction along the arrangement end is different from S320. Specifically, FIG. 11D illustrates an example in which the end in the binding direction is the left end, the arrangement end is the upper end, and the ends are perpendicular to each other. In this case, similarly to the print image TI1d in FIG. 11C, an additional area IA2 adjacent to the upper end of the main area IA1 is set in the print image TI2d in FIG. The position is determined along the upper end of the print image TI2d, which is the arrangement end of the headline image CI. In the print image TI2d in FIG. 11D, the horizontal position of the heading image CIu (that is, the position in the direction along the upper end which is the arrangement end of the heading image CIu) is the print image TI1d in FIG. Is different from the horizontal position. Specifically, the distance between the index image CIu in the print image TI1d in FIG. 11C and the left end of the print image TI1d is defined as Wa. Then, the distance between the index image CIu in the print image TI2d in FIG. 11D and the right end of the print image TI2d is Wb. In this case, the horizontal position of the index image CIu in the print image TI2d of FIG. 11D is determined so that the distance Wb and the distance Wa are equal. In this way, in a booklet made by binding double-sided printed sheets, the heading images CI are printed at appropriate positions so that the heading images CI indicating the same group overlap each other.

見出し画像CIの配置端と、用紙の綴じ方向の端と、が互いに平行である場合には(S315:NO)、CPU210は、S325にて、グループ情報を参照して、注目ページデータが属するグループを特定し、図7のS115、S120にて決定された配置端とは反対側の端に沿って該グループを示す見出し画像CIの配置位置を決定する。具体的には、図11(B)は、綴じ方向の端が左端で、配置端の方向が右端であり、互いに平行である場合の例である。この場合には、図11(B)の印刷画像TI2cには、図11(A)の印刷画像TI1cとは異なり、主領域IA1の左端に隣接する付加領域IA2が設定され、見出し画像CIRaは、印刷画像TI1cの左端に沿った位置に決定される。これは、図7のS115、S120にて決定された配置端は、上述したように、両面印刷の場合は奇数ページ画像の印刷面を表向きとした状態を基準として定義される端である。したがって、図7のS115、S120にて決定された配置端(例えば、右端)は、偶数ページ画像の印刷面を表向きとした状態を基準として定義すれば、反対側の端(例えば、左端)となるからである。なお、同じグループを示す見出し画像CIであれば、配置端に沿う方向の位置(図11(A)、(B)では、縦方向の位置)は、注目ページ画像が奇数ページ画像であっても、偶数ページ画像であっても同じ位置である。こうすれば、両面印刷された用紙を綴じて作製された冊子において、同じグループを示す見出し画像CIが、互いに重なるように、見出し画像CIが適切な位置に印刷される。   When the arrangement end of the heading image CI and the end in the binding direction of the sheet are parallel to each other (S315: NO), the CPU 210 refers to the group information in S325 and determines the group to which the page data of interest belongs. Is determined, and the arrangement position of the heading image CI indicating the group is determined along the end opposite to the arrangement end determined in S115 and S120 in FIG. Specifically, FIG. 11B illustrates an example in which the end in the binding direction is the left end, and the arrangement end is the right end, and is parallel to each other. In this case, unlike the print image TI1c in FIG. 11A, an additional area IA2 adjacent to the left end of the main area IA1 is set in the print image TI2c in FIG. 11B, and the headline image CIRa is The position is determined along the left end of the print image TI1c. As described above, the arrangement end determined in S115 and S120 in FIG. 7 is an end defined based on a state in which the printing surface of the odd-numbered page image faces up in the case of double-sided printing. Therefore, the arrangement end (for example, the right end) determined in S115 and S120 of FIG. 7 is defined as the opposite end (for example, the left end) if the printing surface of the even-numbered page image is defined as a reference. Because it becomes. In the case of a heading image CI indicating the same group, the position in the direction along the arrangement end (the position in the vertical direction in FIGS. 11A and 11B) is set even if the page image of interest is an odd-numbered page image. , Even in an even page image. In this way, in a booklet made by binding double-sided printed sheets, the heading images CI are printed at appropriate positions so that the heading images CI indicating the same group overlap each other.

図10のS335〜S350の処理は、図8のS215〜S230と同様であるので、説明を省略する。ただし、S340にて生成される印刷データには、両面印刷を実行するための制御データが含められる。   The processing in S335 to S350 in FIG. 10 is the same as the processing in S215 to S230 in FIG. However, the print data generated in S340 includes control data for executing double-sided printing.

以上説明した本実施例によれば、CPU210は、補足データSDを用いて、20個のページデータPD1〜PD20(図4)を、グループG1とグループG3とを含む4個のグループに分類する(図3、図7のS105)。4個のグループのそれぞれは、互いにページ順序が連続する1個以上のページデータPDを含む。そして、CPU210は、20個のページデータPD1〜PD20と、上述した分類結果と、を用いて、20個のページデータPD1〜PD20のそれぞれに対応する20個の印刷画像TI1〜TI20(図9)を示す20個の印刷データを生成する(図8、図10)。すなわち、20個の印刷データは、グループG1に属する4個のページデータPD1〜PD4のそれぞれに対応する4個の印刷画像TI1〜TI4を示す4個の印刷データと、グループG3に属する5個のページデータPD13〜PD17のそれぞれに対応する5個の印刷画像TI13〜TI17を示す5個の印刷データと、を含む。4個の印刷画像TI1〜TI4(図9(A))は、対応するページデータPD1〜PD4によって示されるページ画像PD1〜PD4(図4(A))と、グループG1に属することを示す見出し画像CIRa(図9(A))と、を含む。印刷画像TI13〜TI17(図9(C))は、対応するページデータPD13〜PD17によって示されるページ画像PI13〜PI17(図4(C))と、グループG3に属することを示す見出し画像CIRc(図9(C))と、を含む。そして、CPU210は、20個の印刷データを用いて、20個の印刷画像TI1〜TI20をプリンタ100に印刷させる。   According to the present embodiment described above, the CPU 210 classifies the twenty page data PD1 to PD20 (FIG. 4) into four groups including the group G1 and the group G3 using the supplementary data SD ( S105 in FIGS. 3 and 7). Each of the four groups includes one or more page data PDs whose page order is continuous with each other. Then, the CPU 210 uses the 20 page data PD1 to PD20 and the classification result described above to generate 20 print images TI1 to TI20 corresponding to the 20 page data PD1 to PD20 (FIG. 9). Are generated (FIGS. 8 and 10). In other words, the 20 pieces of print data include four pieces of print data indicating four pieces of print images TI1 to TI4 respectively corresponding to the four pieces of page data PD1 to PD4 belonging to group G1, and five pieces of pieces of print data belonging to group G3. And five print data indicating five print images TI13 to TI17 corresponding to the page data PD13 to PD17, respectively. The four print images TI1 to TI4 (FIG. 9A) are page images PD1 to PD4 (FIG. 4A) indicated by corresponding page data PD1 to PD4, and a heading image indicating that they belong to the group G1. CIRa (FIG. 9A). The print images TI13 to TI17 (FIG. 9C) include page images PI13 to PI17 (FIG. 4C) indicated by the corresponding page data PD13 to PD17, and a heading image CIRc (FIG. 4C) indicating that they belong to the group G3. 9 (C)). Then, the CPU 210 causes the printer 100 to print 20 print images TI1 to TI20 using the 20 print data.

この結果、20個のページ画像PI1〜PI20を印刷する際に、これらのページ画像とともに見出し画像CIを印刷するためのユーザの負担を低減することができる。具体的には、対象ファイルIFに含まれる補足データSDを用いて、20個のページデータPD1〜PD20の分類が自動的に行われる。補足データSDは、本来、PDFファイルをビューアで表示する際に利用されるデータであるところ、本実施例では、ページデータPDの分類にて利用される。より具体的には、本発明では、補足データSDは、各印刷画像の生成に利用される。これにより、例えば、ユーザが、同じ種類の見出し画像CIを付加するグループの指定などを行うことを要しない。換言すれば、図5(A)のメイン画面WI1のラジオボタンRB8を選択することによって、ユーザが少なくとも爪見出しを付加することを指示するだけで、見出し画像が生成される。この結果、ユーザの操作負担を低減することができる。   As a result, when printing the 20 page images PI1 to PI20, it is possible to reduce the burden on the user for printing the index image CI together with these page images. Specifically, the classification of the 20 page data PD1 to PD20 is automatically performed using the supplementary data SD included in the target file IF. The supplementary data SD is data that is originally used when a PDF file is displayed by a viewer. In the present embodiment, the supplementary data SD is used for classifying the page data PD. More specifically, in the present invention, the supplementary data SD is used for generating each print image. Thus, for example, the user does not need to specify a group to which the same type of index image CI is added. In other words, by selecting the radio button RB8 on the main screen WI1 of FIG. 5A, a heading image is generated simply by the user instructing to add at least a nail heading. As a result, the operation burden on the user can be reduced.

さらに、CPU210は、20個の印刷画像TI1〜TI20を、複数枚の印刷媒体の20個の印刷面に1個ずつプリンタ100に印刷させる。具体的には、片面印刷処理では、20枚の用紙の20個の表面に、印刷画像TIが一個ずつ印刷される。両面印刷処理では、10枚の用紙の20個の面(表面および裏面)に、印刷画像TIが一個ずつ印刷される。この結果、複数枚の用紙を用いて、例えば、冊子を適切に作成できる。   Further, the CPU 210 causes the printer 100 to print 20 print images TI1 to TI20 one by one on 20 print surfaces of a plurality of print media. Specifically, in the single-sided printing process, the print images TI are printed one by one on 20 surfaces of 20 sheets. In the double-sided printing process, the print images TI are printed one by one on 20 surfaces (front and back surfaces) of 10 sheets of paper. As a result, for example, a booklet can be appropriately created using a plurality of sheets.

さらに、グループG1を示す見出し画像CIRaは、グループG1に属する印刷画像TIが印刷される用紙の特定の端(配置端)に沿った第1の位置に印刷され、グループG3を示す見出し画像CIRcは、グループG3に属する印刷画像TIが印刷される用紙の配置端に沿った第1の位置とは異なる第2の位置に印刷される(図9)。この結果、用紙の特定の端に沿った互いに異なる位置に複数種類の見出し画像CIRa、CIRcが印刷されるので、例えば、見出し画像付きの冊子を適切に、かつ、容易に作成できる。   Further, the heading image CIRa indicating the group G1 is printed at a first position along a specific end (arrangement end) of the sheet on which the print image TI belonging to the group G1 is printed, and the heading image CIRc indicating the group G3 is , The print image TI belonging to the group G3 is printed at a second position different from the first position along the arrangement end of the sheet to be printed (FIG. 9). As a result, a plurality of types of heading images CIRa and CIRc are printed at different positions along a specific edge of the sheet, so that, for example, a booklet with a heading image can be appropriately and easily created.

さらに、補足データSDは、n個(nは、(k−1)≦nを満たす整数)の項目情報を含んでいる。n個の項目情報は、p個(pは、2以上の整数)の階層を示す階層構造を有している。図3の例では、補足データSDは、7個の項目情報I1〜I3、I21、I22、I211、I212を含んでいる(n=7)。7個の項目情報は、3個の階層を示す階層構造を有している(p=3)。CPU210は、3個の階層のうちの最上位から数えて2番目の階層(第2階層)以上の階層に属する4個の項目情報I1、I21、I22、I3を用いて、20個のページデータPD1〜PD20を4個のグループに分類する(図4、図7のS105)。この結果、20個のページデータPD1〜PD20を、補足データSDに含まれる項目情報の一部を用いて適切に分類することができる。   Further, the supplementary data SD includes n (n is an integer satisfying (k-1) ≦ n) item information. The n item information has a hierarchical structure indicating p (p is an integer of 2 or more) layers. In the example of FIG. 3, the supplementary data SD includes seven item information items I1 to I3, I21, I22, I211 and I212 (n = 7). The seven items of information have a hierarchical structure indicating three layers (p = 3). The CPU 210 uses the four item information items I1, I21, I22, and I3 belonging to the second layer (the second layer) or more of the three layers counted from the top of the three layers to generate 20 pieces of page data. PD1 to PD20 are classified into four groups (S105 in FIGS. 4 and 7). As a result, the twenty page data PD1 to PD20 can be appropriately classified using a part of the item information included in the supplementary data SD.

さらに、CPU210は、3個の階層の中から、使用すべき下限の階層(例えば、q番目の階層(qは、1以上p未満の整数))を指定する指示をユーザから詳細設定画面WI2(図5)を介して取得する(図2のS15)。そして、CPU210は、指定されたq番目の階層(例えば、第2階層)以上の階層に属するk個(例えば、4個)または、(k−1)個の項目情報を用いて、20個のページデータPD1〜PD20を分類する。この結果、ユーザの指示に応じて、20個のページデータPD1〜PD20を適切な個数のグループに分類することができる。   Further, the CPU 210 gives an instruction from the user to specify the lowermost layer to be used (for example, the qth layer (q is an integer of 1 or more and less than p)) from the three layers from the detailed setting screen WI2 ( 5) (FIG. 5) (S15 in FIG. 2). Then, the CPU 210 uses the k (for example, 4) or (k-1) item information belonging to the specified q-th layer (for example, the second layer) or higher layers to obtain 20 items of information. The page data PD1 to PD20 are classified. As a result, the twenty page data PD1 to PD20 can be classified into an appropriate number of groups according to a user's instruction.

さらに、CPU210は、20個のページデータPD1〜PD20が分類されるグループの個数(例えば、4個)と、20個の印刷画像TI1〜TI20が印刷されるべき用紙の配置端に沿う方向の長さ(例えば、図6の長さH1)と、に基づいて、見出し画像CIRa〜CIRd(図9)の配置端に沿う方向の長さLa(図6(A))を決定する(図7のS125)。したがって、グループの個数と、用紙の配置端に沿う方向の長さに応じた適切な大きさの見出し画像CIを印刷することができる。   Further, the CPU 210 determines the number of groups (for example, four) into which the twenty page data PD1 to PD20 are classified, and the length in the direction along the arrangement end of the paper on which the twenty print images TI1 to TI20 are to be printed. 7 (for example, the length H1 in FIG. 6), the length La (FIG. 6A) in the direction along the arrangement end of the headline images CIRa to CIRd (FIG. 9) is determined (FIG. 7A). S125). Therefore, it is possible to print a heading image CI having an appropriate size according to the number of groups and the length in the direction along the paper placement edge.

さらに、補足データSDは、ページ画像PIに関するテキストデータを含んでいる(図3)。CPU210は、複数個の見出し画像CIRa〜CIRdのそれぞれについて、補足データSDに含まれるテキストデータによって示される文字列から、文字を選択する(図7のS140)。そして、複数個の見出し画像CIRa〜CIRdのそれぞれは、それぞれについて選択された1個以上の文字を示す画像である(図9)。この結果、補足データSDを用いて、適切な見出し画像CI、例えば、対応するページ画像のコンテンツを適切に表現した文字を含む見出し画像CIを含む印刷画像TIを示す印刷データを、ユーザに過度な負担を与えることなく、自動的に生成することができる。   Further, the supplementary data SD includes text data relating to the page image PI (FIG. 3). CPU 210 selects a character from the character string indicated by the text data included in supplementary data SD for each of a plurality of headline images CIRa to CIRd (S140 in FIG. 7). Each of the plurality of headline images CIRa to CIRd is an image showing one or more characters selected for each of them (FIG. 9). As a result, the print data indicating the print image TI including the appropriate heading image CI, for example, the heading image CI including the character appropriately expressing the content of the corresponding page image, using the supplementary data SD, is excessively given to the user. It can be generated automatically without any burden.

さらに、CPU210は、複数個の見出し画像CIRa〜CIRdの配置端に沿う方向の長さLと、文字サイズCSと、に基づいて、テキストデータによって示される文字列から、1個以上の文字を選択する(図7のS135、S140)。この結果、適切な個数の文字を選択できるので、見やすい文字が示された見出し画像CIを含む印刷画像TIを示す印刷データが自動的に生成され得る。この結果、ユーザは、見出し画像CIを含む文字の選択を行う必要がないので、ユーザの負担をさらに軽減できる。   Further, CPU 210 selects one or more characters from the character string indicated by the text data based on length L in the direction along the arrangement end of the plurality of headline images CIRa to CIRd and character size CS. (S135 and S140 in FIG. 7). As a result, an appropriate number of characters can be selected, so that print data indicating the print image TI including the index image CI in which easy-to-read characters are indicated can be automatically generated. As a result, the user does not need to select a character including the heading image CI, so that the burden on the user can be further reduced.

また、本実施例では、ページ画像PI内の文字のサイズに基づいて、見出し画像CIにて示すべき文字のサイズCSが決定される(図7のS130)。したがって、ページ画像PI1〜PI20内の文字のサイズに基づいて、見出し画像CIに含むべき文字の適切なサイズを自動的に決定することができる。この結果、ユーザは、文字のサイズの指定を行う必要がないので、ユーザの負担をさらに軽減できる。   Further, in the present embodiment, the size CS of the character to be indicated in the index image CI is determined based on the size of the character in the page image PI (S130 in FIG. 7). Therefore, an appropriate size of the character to be included in the heading image CI can be automatically determined based on the size of the character in the page images PI1 to PI20. As a result, the user does not need to specify the character size, so that the burden on the user can be further reduced.

さらに、補足データSDは、補足データSDに含まれるテキストデータによって示される文字列の色を示す文字色情報(具体的には、図3の/Colorエントリ)を含む。CPU210は、この文字色情報に基づいて、文字色を決定する(図7のS150)。そして、見出し画像CIは、決定された文字色を有する文字を示す画像である。この結果、見やすい色の文字が示された見出し画像CIを含む印刷画像TIを自動的にプリンタ100に印刷させることができる。   Further, the supplementary data SD includes character color information (specifically, the / Color entry in FIG. 3) indicating the color of the character string indicated by the text data included in the supplementary data SD. The CPU 210 determines the character color based on the character color information (S150 in FIG. 7). The heading image CI is an image indicating a character having the determined character color. As a result, it is possible to cause the printer 100 to automatically print the print image TI including the heading image CI in which the characters having the easy-to-see color are shown.

CPU210は、第1の項目情報I1に対応するページデータPD1と、第2の項目情報I21に対応するページデータPD5の直前のページデータPD4と、を含み、互いにページ順序が連続するページデータPD1〜PD4を、グループG1に分類する(図4)。そして、CPU210は、第3の項目情報I22に対応するページデータPD13と、第4の項目情報I3に対応するページデータPD18の直前のページデータPD17と、を含み、互いにページ順序が連続するページデータPD13〜PD17を、グループG3に分類する。   The CPU 210 includes page data PD1 corresponding to the first item information I1 and page data PD4 immediately before the page data PD5 corresponding to the second item information I21. PD4 is classified into group G1 (FIG. 4). The CPU 210 includes page data PD13 corresponding to the third item information I22 and page data PD17 immediately before the page data PD18 corresponding to the fourth item information I3. PD13 to PD17 are classified into group G3.

以上の説明から解るように、本実施例のページ画像PI1は、第1のページ画像の例であり、ページ画像PI13は、第2のページ画像の例である。また、グループG1は、第1のグループの例であり、グループG3は、第2のグループの例である。本実施例の印刷画像TI1〜TI20は、処理済ページ画像の例であり、印刷画像TI1〜TI4は、第1の処理済ページ画像の例であり、印刷画像TI13〜TI17は、第2の処理済ページ画像の例であり、印刷処理にて生成される印刷データは、処理済ページデータの例である。本実施例の見出し画像CIは、補足画像の例である。   As understood from the above description, the page image PI1 of this embodiment is an example of a first page image, and the page image PI13 is an example of a second page image. The group G1 is an example of a first group, and the group G3 is an example of a second group. The print images TI1 to TI20 of the present embodiment are examples of processed page images, the print images TI1 to TI4 are examples of first processed page images, and the print images TI13 to TI17 are second process images. This is an example of a processed page image, and the print data generated in the print processing is an example of processed page data. The heading image CI according to the present embodiment is an example of a supplementary image.

C.変形例:
(1)上記実施例では、対象ファイルIFは、PDFフォーマットに従う文書ファイルである。これに代えて、mページ分の画像を示すページデータを1個のファイルに格納可能なページの概念を有するファイル形式であって、少なくともページごとに、補足データを対応付けることができる他のファイル形式であっても良い。具体的には、対象ファイルIFは、XPSファイル形式、各種のワープロ・アプリケーション用のファイル形式が採用可能である。補足データとしては、採用されるファイル形式によって異なるが、例えば、補足データに含まれる項目情報を参照すると、該項目情報に対応付けられたページ画像を特定できる機能、例えば、いわゆるブックマーク機能、目次機能、しおり機能、見出し機能と呼ばれる機能のためのデータが用いられる。補足データは、複数個の階層を示す階層構造を有していなくても良い。
C. Modification:
(1) In the above embodiment, the target file IF is a document file conforming to the PDF format. Instead, a file format having the concept of a page in which page data indicating images of m pages can be stored in one file, and at least supplemental data can be associated with each page at least It may be. Specifically, the target file IF can adopt an XPS file format or a file format for various word processing applications. The supplementary data differs depending on the file format to be adopted. For example, when referring to the item information included in the supplementary data, a function capable of specifying a page image associated with the item information, for example, a so-called bookmark function, a table of contents function Data for functions called a bookmark function and a heading function is used. The supplementary data does not have to have a hierarchical structure indicating a plurality of layers.

(2)上記実施例では、見出し画像CIは、補足データSDに含まれるテキストデータによって示される文字列の一部を示す画像である。これに代えて、見出し画像CIは、補足データSDとは無関係に選択される文字を示す画像であっても良い。例えば、見出し画像CIは、通し番号を示す画像であっても良い。 (2) In the above embodiment, the heading image CI is an image showing a part of the character string indicated by the text data included in the supplementary data SD. Instead, heading image CI may be an image showing a character selected independently of supplementary data SD. For example, the heading image CI may be an image indicating a serial number.

また、例えば、CPU210は、補足データSDに含まれるテキストデータによって示される文字列が、見出し画像CI内に示す文字として適切であるか否かを判断しても良い。そして、適切であると判断される場合に、当該文字列から選択される文字を選択し、適切でないと判断される場合には、通し番号が採用されても良い。見出し画像CI内に示す文字として適切でない場合は、例えば、該文字列の先頭から数個分の文字が、複数種類の見出し画像CIの間で同じになる場合である。   Further, for example, the CPU 210 may determine whether the character string indicated by the text data included in the supplementary data SD is appropriate as a character indicated in the headline image CI. Then, when it is determined that the character string is appropriate, a character selected from the character string is selected, and when it is determined that the character string is not appropriate, a serial number may be adopted. The case where it is not appropriate as a character shown in the heading image CI is, for example, a case where several characters from the head of the character string are the same among a plurality of types of heading images CI.

(3)上記実施例では、見出し画像CIの配置端に沿う方向の位置をグループごとに異ならせることによって、見出し画像CIが付加されたページ画像が属するグループを示している。すなわち、互いに異なるグループを示す複数個の見出し画像CIの間では、見出し画像CIの配置端に沿う方向の位置が異なり、互いに同じグループを示す複数個の見出し画像CIの間では、見出し画像CIの配置端に沿う方向の位置が同じであることによって、見出し画像CIが付加されたページ画像が属するグループを示している。これに代えて、例えば、互いに異なるグループ間で配置端に沿う方向の位置が同じである状態で、見出し画像CIの色を、グループごとに異ならせても良い。あるいは、見出し画像CIの配置端に沿う方向の長さLを、グループごとに異ならせても良い。 (3) In the above-described embodiment, the group to which the page image to which the heading image CI is added belongs is indicated by making the position of the heading image CI in the direction along the arrangement end different for each group. That is, the position of the heading image CI in the direction along the arrangement end of the heading image CI is different between the plurality of heading images CI indicating different groups, and the heading image CI of the heading image CI indicating the same group is different between the heading images CI indicating the same group. The same position in the direction along the arrangement end indicates the group to which the page image to which the heading image CI has been added belongs. Instead of this, for example, the color of the heading image CI may be different for each group in a state where the positions in the direction along the arrangement end are the same between different groups. Alternatively, the length L in the direction along the arrangement end of the heading image CI may be different for each group.

(4)上記実施例にて決定される見出し画像CIに関するパラメータであって、補足データSDやページデータを参照して、自動的に決定されるパラメータのうちの一部は、例えば、ユーザの指定に基づいて決定されても良い。例えば、CPU210は、最大文字数TCや、文字サイズCSの指定を、例えば、詳細設定画面WI2を介してユーザから取得し、ユーザの指定に基づいて最大文字数TCや、文字サイズCSを決定しても良い。 (4) Some of the parameters related to the headline image CI determined in the above embodiment and automatically determined with reference to the supplementary data SD and the page data are, for example, specified by the user. May be determined based on For example, the CPU 210 obtains the designation of the maximum number of characters TC and the character size CS from the user via, for example, the detailed setting screen WI2, and determines the maximum number of characters TC and the character size CS based on the designation of the user. good.

(5)1個の見出し画像CIに複数個の階層を示す情報を含めても良い。例えば、「1−1」、「1−2」などのように、上位の階層を示す番号と、下位の階層を示す番号と、の組み合わせを、1個の見出し画像CIに含めても良い。 (5) One heading image CI may include information indicating a plurality of hierarchies. For example, a combination of a number indicating a higher layer and a number indicating a lower layer, such as “1-1” and “1-2”, may be included in one heading image CI.

(6)上記実施例では、m個のページデータPDを分類する際に、使用すべき項目情報が属する階層の下限は、詳細設定画面WI2を介してユーザによって指定されている。これに代えて、CPU210は、使用すべき項目情報が属する階層の下限を自動的に決定しても良い。例えば、CPU210は、グループの個数が、予め定められた適正数(例えば、10個)に、最も近づくように、階層の下限を決定しても良い。 (6) In the above embodiment, when classifying the m pieces of page data PD, the lower limit of the hierarchy to which the item information to be used belongs is specified by the user via the detailed setting screen WI2. Instead, the CPU 210 may automatically determine the lower limit of the hierarchy to which the item information to be used belongs. For example, the CPU 210 may determine the lower limit of the hierarchy such that the number of groups is closest to a predetermined appropriate number (for example, 10).

(7)上記各実施例では、図2の印刷処理を実行する画像処理装置としての計算機200は、パーソナルコンピュータとは異なる種類の装置、例えば、プリンタ100、デジタルカメラ、スキャナ、スマートフォンであってもよい。プリンタ100が図2の印刷処理を実行する場合には、印刷データを用いる印刷は、例えば、プリンタ100のプリントエンジン120を用いて実行される。また、図2の印刷処理を実行する画像処理装置は、例えば、ユーザの端末やプリンタ100から対象ファイルIFを取得して画像処理を実行するサーバであっても良い。このようなサーバは、ネットワークを介して互いに通信可能な複数個の計算機が、画像処理装置としての機能を一部ずつ分担して、全体として、一の画像処理の機能を実現してもよい。この場合には、ネットワークを介して互いに通信可能な複数個の計算機の全体が、画像処理装置に対応する。 (7) In each of the above embodiments, the computer 200 as the image processing apparatus that executes the printing process of FIG. 2 may be a device different from a personal computer, for example, a printer 100, a digital camera, a scanner, or a smartphone. Good. When the printer 100 executes the printing process of FIG. 2, printing using print data is executed using, for example, the print engine 120 of the printer 100. The image processing apparatus that executes the print processing in FIG. 2 may be, for example, a server that acquires the target file IF from a user terminal or the printer 100 and executes the image processing. In such a server, a plurality of computers that can communicate with each other via a network may share a part of the function as an image processing device, and may realize one image processing function as a whole. In this case, the whole of the plurality of computers that can communicate with each other via the network corresponds to the image processing apparatus.

(8)上記各実施例において、ハードウェアによって実現されていた構成の一部をソフトウェアに置き換えるようにしてもよく、逆に、ソフトウェアによって実現されていた構成の一部あるいは全部をハードウェアに置き換えるようにしてもよい。例えば、図1の計算機200のCPU210が実行している処理の一部は、専用のハードウェア回路によって実現されてもよい。 (8) In each of the above embodiments, a part of the configuration realized by hardware may be replaced by software, and conversely, a part or all of the configuration realized by software is replaced by hardware. You may do so. For example, part of the processing executed by the CPU 210 of the computer 200 in FIG. 1 may be realized by a dedicated hardware circuit.

以上、実施例、変形例に基づき本発明について説明してきたが、上記した発明の実施の形態は、本発明の理解を容易にするためのものであり、本発明を限定するものではない。本発明は、その趣旨並びに特許請求の範囲を逸脱することなく、変更、改良され得ると共に、本発明にはその等価物が含まれる。   As described above, the present invention has been described based on the examples and the modified examples. However, the above embodiments of the present invention are for facilitating understanding of the present invention, and do not limit the present invention. The present invention can be modified and improved without departing from the spirit and scope of the claims, and the present invention includes equivalents thereof.

100...プリンタ、110...制御部、120...プリントエンジン、130...プリンタ部、200...計算機、210...CPU、220...不揮発性記憶装置、230...揮発性記憶装置、231...バッファ領域、260...操作部、270...表示部、280...通信部   100 ... printer, 110 ... control unit, 120 ... print engine, 130 ... printer unit, 200 ... computer, 210 ... CPU, 220 ... non-volatile storage device, 230. .. volatile storage device, 231, buffer area, 260, operation section, 270, display section, 280, communication section

Claims (12)

画像処理装置であって、
それぞれがページ画像を示すm個(mは、2以上の整数)のページデータと、m個の前記ページデータを補足する補足データと、を含む対象ファイルを取得する取得部であって、前記補足データは、前記対象ファイルを用いてm個の前記ページデータによって示されるm個のページ画像が表示部に表示される際に、m個の前記ページデータのうちの第1のページデータによって示される第1のページ画像が表示される画面から、第2のページデータによって示される第2のページ画像が表示される画面へ移動するためのユーザの操作に利用されるデータであり、前記補足データは、n個(nは、(k−1)≦nを満たす整数)の項目情報を含み、n個の前記項目情報は、p個(pは、2以上の整数)の階層を示す階層構造を有する、前記取得部と、
p個の階層の中から、q番目(qは、1以上p未満の整数)の階層を指定する指示をユーザから取得する指示取得部と、
前記補足データを用いて、m個の前記ページデータを、前記第1のページデータを含む第1のグループと、前記第2のページデータを含む第2のグループと、を含むk個(kは、2≦k<mを満たす整数)のグループに分類する分類部であって、k個の前記グループのそれぞれは、互いにページ順序が連続する1個以上の前記ページデータを含む、前記分類部と、
m個の前記ページデータと、前記分類部による分類結果と、を用いて、m個の前記ページデータのそれぞれに対応するm個の処理済ページデータを生成する生成部であって、m個の前記処理済みページデータは、前記第1のグループに属する1個以上の前記ページデータのそれぞれに対応する1個以上の第1の処理済ページデータと、前記第2のグループに属する1個以上の前記ページデータのそれぞれに対応する1個以上の第2の処理済ページデータと、を含み、前記1個以上の前記第1の処理済ページデータのそれぞれは、対応する前記ページデータによって示される前記ページ画像と、前記第1のグループに属することを示す第1の補足画像と、を含む第1の処理済ページ画像を示し、1個以上の前記第2の処理済ページデータのそれぞれは、対応する前記ページデータによって示される前記ページ画像と、前記第2のグループに属することを示す第2の補足画像と、を含む第2の処理済ページ画像を示す、前記生成部と、
m個の前記処理済ページデータを用いて、前記第1の処理済ページ画像と前記第2の処理済ページ画像とを含むm個の処理済ページ画像を印刷実行部に印刷させる印刷制御部と、
を備え、
前記分類部は、p個の階層のうち、ユーザの指示によって指定されたq番目の階層以上の階層に属するk個または(k−1)個の前記項目情報を用いて、m個の前記ページデータをk個の前記グループに分類する、画像処理装置。
An image processing device,
An acquisition unit for acquiring a target file including m (m is an integer of 2 or more) page data each indicating a page image and supplementary data for supplementing the m page data; The data is indicated by the first page data of the m page data when m page images indicated by the m page data are displayed on the display unit using the target file. The data used for a user's operation for moving from the screen on which the first page image is displayed to the screen on which the second page image indicated by the second page data is displayed, and the supplementary data is , N (n is an integer satisfying (k−1) ≦ n) item information, and the n pieces of item information have a hierarchical structure indicating p (p is an integer of 2 or more) layers. Have, said acquisition And,
an instruction obtaining unit that obtains, from a user, an instruction designating a q-th (q is an integer of 1 or more and less than p) layer out of p layers;
Using the supplementary data, m pieces of the page data are replaced with k pieces (k is a number) including a first group including the first page data and a second group including the second page data. A classification unit for classifying into a group of (2, an integer that satisfies 2 ≦ k <m), wherein each of the k groups includes one or more pieces of the page data whose page order is continuous with each other. ,
a generation unit that generates m processed page data corresponding to each of the m pieces of the page data using the m pieces of the page data and the classification result obtained by the classification unit; The processed page data includes one or more first processed page data corresponding to each of the one or more page data belonging to the first group and one or more first processed page data belonging to the second group. And one or more second processed page data corresponding to each of the page data, and each of the one or more first processed page data is indicated by the corresponding page data. FIG. 9 shows a first processed page image including a page image and a first supplementary image indicating that the image belongs to the first group, and shows one or more of the second processed page data. Re represents said page image represented by the corresponding said page data, and a second supplementary image indicating that it belongs to the second group, the second processed page image including, said generator,
a print control unit that causes a print execution unit to print m processed page images including the first processed page image and the second processed page image, using the m processed page data; ,
With
The classifying unit uses the k or (k−1) item information items belonging to the q-th layer or more layers specified by the user's instruction among the p layers to obtain m pages of the page. An image processing apparatus for classifying data into k groups.
画像処理装置であって、
それぞれがページ画像を示すm個(mは、2以上の整数)のページデータと、m個の前記ページデータを補足する補足データと、を含む対象ファイルを取得する取得部であって、前記補足データは、前記ページ画像に関するテキストデータを含み、前記対象ファイルを用いてm個の前記ページデータによって示されるm個のページ画像が表示部に表示される際に、m個の前記ページデータのうちの第1のページデータによって示される第1のページ画像が表示される画面から、第2のページデータによって示される第2のページ画像が表示される画面へ移動するためのユーザの操作に利用されるデータである、前記取得部と、
前記補足データを用いて、m個の前記ページデータを、前記第1のページデータを含む第1のグループと、前記第2のページデータを含む第2のグループと、を含むk個(kは、2≦k<mを満たす整数)のグループに分類する分類部であって、k個の前記グループのそれぞれは、互いにページ順序が連続する1個以上の前記ページデータを含む、前記分類部と、
m個の前記ページデータと、前記分類部による分類結果と、を用いて、m個の前記ページデータのそれぞれに対応するm個の処理済ページデータを生成する生成部であって、m個の前記処理済みページデータは、前記第1のグループに属する1個以上の前記ページデータのそれぞれに対応する1個以上の第1の処理済ページデータと、前記第2のグループに属する1個以上の前記ページデータのそれぞれに対応する1個以上の第2の処理済ページデータと、を含み、前記1個以上の前記第1の処理済ページデータのそれぞれは、対応する前記ページデータによって示される前記ページ画像と、前記第1のグループに属することを示す第1の補足画像と、を含む第1の処理済ページ画像を示し、1個以上の前記第2の処理済ページデータのそれぞれは、対応する前記ページデータによって示される前記ページ画像と、前記第2のグループに属することを示す第2の補足画像と、を含む第2の処理済ページ画像を示す、前記生成部と、
m個の前記処理済ページデータを用いて、前記第1の処理済ページ画像と前記第2の処理済ページ画像とを含むm個の処理済ページ画像を印刷実行部に印刷させる印刷制御部と、
前記第1の補足画像および第2の補足画像のそれぞれについて、前記テキストデータによって示される文字列から、1個以上の文字を選択する選択部と、
を備え、
前記第1の補足画像は、前記第1の補足画像について選択された1個以上の文字を含む画像であり、
前記第2の補足画像は、前記第2の補足画像について選択された1個以上の文字を含む画像であり、
前記画像処理装置は、さらに、m個の前記ページデータによって示されるm個の前記ページ画像のうちの、少なくとも1個のページ画像内の文字のサイズに基づいて、前記第1の補足画像および前記第2の補足画像にて示すべき文字のサイズを決定するサイズ決定部を備える、画像処理装置。
An image processing device,
An acquisition unit for acquiring a target file including m (m is an integer of 2 or more) page data each indicating a page image and supplementary data for supplementing the m page data; The data includes text data relating to the page image, and when m page images indicated by the m page data are displayed on the display unit using the target file, the m Is used for a user's operation for moving from the screen on which the first page image indicated by the first page data is displayed to the screen on which the second page image indicated by the second page data is displayed. The acquisition unit,
Using the supplementary data, m pieces of the page data are replaced with k pieces (k is a number) including a first group including the first page data and a second group including the second page data. A classification unit for classifying into a group of (2, an integer that satisfies 2 ≦ k <m), wherein each of the k groups includes one or more pieces of the page data whose page order is continuous with each other. ,
a generation unit that generates m processed page data corresponding to each of the m pieces of the page data using the m pieces of the page data and the classification result obtained by the classification unit; The processed page data includes one or more first processed page data corresponding to each of the one or more page data belonging to the first group and one or more first processed page data belonging to the second group. And one or more second processed page data corresponding to each of the page data, and each of the one or more first processed page data is indicated by the corresponding page data. FIG. 9 shows a first processed page image including a page image and a first supplementary image indicating that the image belongs to the first group, and shows one or more of the second processed page data. Re represents said page image represented by the corresponding said page data, and a second supplementary image indicating that it belongs to the second group, the second processed page image including, said generator,
a print control unit that causes a print execution unit to print m processed page images including the first processed page image and the second processed page image, using the m processed page data; ,
A selection unit that selects one or more characters from a character string indicated by the text data for each of the first supplementary image and the second supplementary image;
With
The first supplementary image is an image including one or more characters selected for the first supplementary image,
The second supplementary image is an image including one or more characters selected for the second supplementary image,
The image processing device may further include, based on a size of a character in at least one page image of the m page images indicated by the m page data, the first supplementary image and the An image processing apparatus comprising: a size determining unit that determines a size of a character to be indicated in a second supplementary image.
請求項1または2に記載の画像処理装置であって、
前記印刷制御部は、m個の前記処理済ページ画像を、複数個の印刷媒体のm個の印刷面に1個ずつ印刷させる、画像処理装置。
The image processing device according to claim 1 or 2 ,
The image processing apparatus, wherein the print control unit prints the m processed page images one by one on m print surfaces of a plurality of print media.
請求項に記載の画像処理装置であって、
前記第1の補足画像は、前記第1の処理済ページ画像が印刷される印刷媒体の特定の端に沿った第1の位置に印刷され、
前記第2の補足画像は、前記第2の処理済ページ画像が印刷される印刷媒体の前記特定の端に沿った第2の位置であって、前記第1の位置とは異なる前記第2の位置に印刷される、画像処理装置。
The image processing device according to claim 3 ,
The first supplemental image is printed at a first location along a particular edge of a print medium on which the first processed page image is printed;
The second supplemental image is a second position along the specific edge of the print medium on which the second processed page image is printed, and the second supplemental image is different from the first position. An image processing device that is printed at a location.
請求項に記載の画像処理装置であって、
前記補足データは、n個(nは、(k−1)≦nを満たす整数)の項目情報を含み、
n個の前記項目情報は、p個(pは、2以上の整数)の階層を示す階層構造を有し、
前記分類部は、p個の階層のうちのq(qは、1以上p未満の整数)番目の階層以上の階層に属するk個または(k−1)個の前記項目情報を用いて、m個の前記ページデータをk個の前記グループに分類する、画像処理装置。
The image processing device according to claim 2 ,
The supplementary data includes n (n is an integer satisfying (k−1) ≦ n) item information,
The n pieces of item information have a hierarchical structure indicating p (p is an integer of 2 or more) layers,
The classifying unit uses the k or (k−1) item information belonging to the q-th (q is an integer of 1 or more and less than p) -th layer or more of the p layers to obtain m An image processing apparatus for classifying the page data into k groups.
請求項に記載の画像処理装置であって、さらに、
p個の階層の中から、q番目の階層を指定する指示をユーザから取得する指示取得部を備え、
前記分類部は、ユーザの指示によって指定されたq番目の階層以上の階層に属するk個または(k−1)個の前記項目情報を用いて、m個の前記ページデータをk個の前記グループに分類する、画像処理装置。
The image processing device according to claim 5 , further comprising:
an instruction acquisition unit that acquires an instruction to specify the q-th layer from the user from among the p layers,
The classifying unit may classify m page data into k groups using k or (k-1) item information items belonging to a q-th or higher layer specified by a user's instruction. Image processing device.
請求項に記載の画像処理装置であって、
前記補足データは、前記ページ画像に関するテキストデータを含み、
前記画像処理装置は、さらに、
前記第1の補足画像および第2の補足画像のそれぞれについて、前記テキストデータによって示される文字列から、1個以上の文字を選択する選択部を備え、
前記第1の補足画像は、前記第1の補足画像について選択された1個以上の文字を含む画像であり、
前記第2の補足画像は、前記第2の補足画像について選択された1個以上の文字を含む画像である、画像処理装置。
The image processing device according to claim 1 ,
The supplementary data includes text data related to the page image,
The image processing apparatus further includes:
A selection unit that selects one or more characters from a character string indicated by the text data for each of the first supplementary image and the second supplementary image;
The first supplementary image is an image including one or more characters selected for the first supplementary image,
The image processing device, wherein the second supplementary image is an image including one or more characters selected for the second supplementary image.
請求項に記載の画像処理装置であって、さらに、
m個の前記ページデータによって示されるm個の前記ページ画像のうちの、少なくとも1個のページ画像内の文字のサイズに基づいて、前記第1の補足画像および前記第2の補足画像にて示すべき文字のサイズを決定するサイズ決定部を備える、画像処理装置。
The image processing apparatus according to claim 7 , further comprising:
Based on the size of characters in at least one of the m page images indicated by the m page data, the first and second supplementary images indicate the characters. An image processing apparatus comprising a size determining unit for determining a size of a character to be formed.
請求項2、7、8のいずれかに記載の画像処理装置であって、
前記選択部は、前記第1の補足画像および前記第2の補足画像の印刷媒体の特定の端に沿う方向の長さと、前記第1の補足画像および前記第2の補足画像に含まれるべき文字のサイズと、に基づいて、前記テキストデータによって示される文字列から、1個以上の文字を選択する、画像処理装置。
An image processing apparatus according to any one of claims 2, 7, 8,
The selection unit is configured to determine a length of the first supplementary image and the second supplementary image in a direction along a specific edge of a print medium, and a character to be included in the first supplementary image and the second supplementary image. An image processing apparatus for selecting one or more characters from a character string indicated by the text data based on the size of the character data.
請求項2、7、8、9のいずれかに記載の画像処理装置であって、
前記補足データは、前記テキストデータによって示される文字列の色を示す文字色情報を含み、
前記画像処理装置は、さらに、
前記文字色情報に基づいて、文字色を決定する文字色決定部を備え、
前記第1の補足画像および前記第2の補足画像は、決定された前記文字色を有する文字を示す画像である、画像処理装置。
An image processing apparatus according to any one of claims 2,7,8,9,
The supplementary data includes character color information indicating a color of a character string indicated by the text data,
The image processing apparatus further includes:
A character color determination unit that determines a character color based on the character color information,
The image processing device, wherein the first supplementary image and the second supplementary image are images showing a character having the determined character color.
請求項1から10のいずれかに記載の画像処理装置であって、さらに、
m個の前記ページデータが分類される前記グループの個数と、m個の前記処理済ページ画像が印刷されるべき印刷媒体の特定の端に沿う方向の長さと、に基づいて、前記第1の補足画像および前記第2の補足画像の前記特定の端に沿う方向の長さを決定する長さ決定部を備える、画像処理装置。
The image processing device according to any one of claims 1 to 10 , further comprising:
based on the number of the groups into which the m pieces of the page data are classified and the length along a specific edge of a print medium on which the m processed page images are to be printed; An image processing device, comprising: a length determining unit that determines a length of a supplementary image and the second supplementary image in a direction along the specific end.
請求項1から11のいずれかに記載の画像処理装置であって、
前記補足データは、m個の前記ページデータの少なくとも1つにそれぞれ対応付けられた第1の項目情報と、第2の項目情報と、第3の項目情報と、第4の項目情報と、を含み、
前記分類部は、
前記第1の項目情報に対応する前記ページデータと、前記第2の項目情報に対応する前記ページデータの直前の前記ページデータと、を含む1個以上の前記ページデータであって、互いにページ順序が連続する1個以上の前記ページデータを、前記第1のグループに分類し、
前記第3の項目情報に対応する前記ページデータと、前記第4の項目情報に対応する前記ページデータの直前の前記ページデータと、を含む1個以上の前記ページデータであって、互いにページ順序が連続する1個以上の前記ページデータを、前記第2のグループに分類する、画像処理装置。
The image processing apparatus according to claim 1 , wherein:
The supplementary data includes first item information, second item information, third item information, and fourth item information respectively associated with at least one of the m pieces of page data. Including
The classification unit includes:
At least one page data including the page data corresponding to the first item information and the page data immediately before the page data corresponding to the second item information, wherein each of the page data includes a page order; Categorizing one or more of the page data that are consecutive into the first group,
At least one page data including the page data corresponding to the third item information and the page data immediately before the page data corresponding to the fourth item information, wherein An image processing apparatus for classifying one or more pieces of the page data having a plurality of consecutively into the second group.
JP2015170775A 2015-08-31 2015-08-31 Image processing apparatus and computer program Active JP6628127B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2015170775A JP6628127B2 (en) 2015-08-31 2015-08-31 Image processing apparatus and computer program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2015170775A JP6628127B2 (en) 2015-08-31 2015-08-31 Image processing apparatus and computer program

Publications (2)

Publication Number Publication Date
JP2017049667A JP2017049667A (en) 2017-03-09
JP6628127B2 true JP6628127B2 (en) 2020-01-08

Family

ID=58278660

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2015170775A Active JP6628127B2 (en) 2015-08-31 2015-08-31 Image processing apparatus and computer program

Country Status (1)

Country Link
JP (1) JP6628127B2 (en)

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4574078B2 (en) * 2001-07-31 2010-11-04 トッパン・フォームズ株式会社 Data editing system and method
JP2006268315A (en) * 2005-03-23 2006-10-05 Fuji Xerox Co Ltd Document processor, method and program
JP5062153B2 (en) * 2008-12-02 2012-10-31 コニカミノルタビジネステクノロジーズ株式会社 Image forming apparatus, image forming method, and program
JP4868009B2 (en) * 2009-03-05 2012-02-01 コニカミノルタビジネステクノロジーズ株式会社 Image forming method, image forming apparatus, print instruction apparatus, booklet, and program
JP2010260249A (en) * 2009-05-07 2010-11-18 Konica Minolta Business Technologies Inc Booklet, image forming apparatus, print indicator, and program

Also Published As

Publication number Publication date
JP2017049667A (en) 2017-03-09

Similar Documents

Publication Publication Date Title
JP4298362B2 (en) Information processing apparatus and print preview display method
JP4828338B2 (en) Image processing apparatus and program
JP4704288B2 (en) Image processing apparatus and program
US10474404B2 (en) Image forming system in which a mobile terminal sets print setting information and transmits a print instruction to an image forming apparatus, and related image forming apparatus and image forming method
JP4312738B2 (en) DATA PROCESSING SETTING DEVICE, DATA PROCESSING SETTING METHOD, DATA PROCESSING SETTING PROGRAM, AND COMPUTER-READABLE RECORDING MEDIUM CONTAINING THE PROGRAM
JP7192496B2 (en) Image processing device and image processing program
JP4458176B2 (en) Printing control apparatus, printing apparatus, and program
JP6273935B2 (en) Information processing apparatus, information processing method, and program
JP2008234457A (en) User interface control program and user interface control method
US8018618B2 (en) Information processing apparatus that outputs images having same size to single page of recording sheet and computer readable medium
JP3730109B2 (en) Method and apparatus for selectively applying imaging related options to any page of data
KR101156869B1 (en) Information processing apparatus, information processing method, and storage medium
JP2005115683A (en) Print setting method and information processor
US10609249B2 (en) Scanner and scanning control program which outputs an original image and an extracted image in a single file
JP2007215078A (en) Image forming apparatus
JP6628127B2 (en) Image processing apparatus and computer program
US8441676B2 (en) Information processing apparatus for removing blank portions from a document and taking print setting into consideration
JP5899922B2 (en) Page allocation program and information processing apparatus
US20160182748A1 (en) Method for performing job by using widget, and image forming apparatus for performing the same
JP2016099763A (en) Print job management device, management method, and program
JP2017170884A (en) Image processing device, control method thereof, and program
JP2022086331A (en) Information processing apparatus, image processing method, and image processing program
JP2022086329A (en) Information processing apparatus, image processing method, and image processing program
EP2797303A1 (en) Apparatus having a number of options for operating and/or configuring the apparatus and method and computer program product therefor
JP4232652B2 (en) Image processing device

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20180807

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20190124

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20190219

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20190416

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20190716

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20191008

A911 Transfer of reconsideration by examiner before appeal (zenchi)

Free format text: JAPANESE INTERMEDIATE CODE: A911

Effective date: 20191015

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20191108

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20191121

R150 Certificate of patent or registration of utility model

Ref document number: 6628127

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150