JP2011013930A - Booklet printing program - Google Patents

Booklet printing program Download PDF

Info

Publication number
JP2011013930A
JP2011013930A JP2009157475A JP2009157475A JP2011013930A JP 2011013930 A JP2011013930 A JP 2011013930A JP 2009157475 A JP2009157475 A JP 2009157475A JP 2009157475 A JP2009157475 A JP 2009157475A JP 2011013930 A JP2011013930 A JP 2011013930A
Authority
JP
Japan
Prior art keywords
image data
page
cover
booklet
pages
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP2009157475A
Other languages
Japanese (ja)
Inventor
Masayuki Ishibashi
昌幸 石橋
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 JP2009157475A priority Critical patent/JP2011013930A/en
Publication of JP2011013930A publication Critical patent/JP2011013930A/en
Pending legal-status Critical Current

Links

Images

Abstract

PROBLEM TO BE SOLVED: To provide a program for printing print data for one page in spread in booklet printing.SOLUTION: A printer 10 performs booklet printing for forming a booklet. A PC 20a is communicatively connected to a printer 10. A printer driver divides each of image data arranged in the order of pages to generate divided image data. The printer driver moves the data corresponding to the cover on the back side of the booklet among the two divided image data obtained by dividing the image data of the first page to the last of the order of pages. The printer driver allocates the divided image data of the P-th page (P is the variable of a natural number, 1≤P≤N) and the divided image data of (2N+1-P)th page to a print sheet about all the divided image data for 2N pages. The printer driver makes the printer 10 print the divided image data for 2 pages on both the sides of the print sheet based on the result of allocation.

Description

本発明は、印刷装置にブックレット印刷を実行させるためのプログラムに関する。   The present invention relates to a program for causing a printing apparatus to execute booklet printing.

従来より、表裏面にそれぞれ2頁分ずつ印刷された用紙複数枚を重ね合わせて2つ折りして綴じてなる小冊子(ブックレット)を作製するための、ブックレット印刷を実行する画像形成装置が知られている。   2. Description of the Related Art Conventionally, there has been known an image forming apparatus that executes booklet printing for producing a booklet (booklet) in which a plurality of sheets printed on two pages on the front and back surfaces are overlapped and folded in two. Yes.

特開平7−50738号公報JP-A-7-50738

しかし、従来のブックレット印刷では、印刷用紙の一面に2ページ分の印刷データを割り付けて印刷を行っている。よって例えば、パンフレットのように、見開きで1ページ分の印刷データを印刷することが困難であった。本明細書では、このような不便性を解消することができる技術を提供する。   However, in conventional booklet printing, printing is performed by allocating print data for two pages on one side of the printing paper. Therefore, for example, it is difficult to print print data for one page with a double spread like a pamphlet. In this specification, the technique which can eliminate such inconvenience is provided.

本発明に係るプログラムは、コンピュータを、分割手段と、第1並び替え手段と、割り付け手段と、印刷制御手段と、して機能させる。コンピュータは、印刷装置に対して通信可能に接続される。コンピュータに接続される印刷装置は1台に限られず、複数であってもよい。また、接続形態の一例としては、イーサネット(登録商標)やUSBなどが挙げられる。印刷装置は、ブックレット印刷が可能とされる。ブックレット印刷は、印刷用紙の両面に各2ページ分の印刷を行い、印刷後の印刷用紙を複数枚重ね合わせて2つ折りすることにより小冊子を形成できる印刷方法である。   The program according to the present invention causes a computer to function as a dividing unit, a first rearranging unit, an allocating unit, and a printing control unit. The computer is communicably connected to the printing apparatus. The number of printing apparatuses connected to the computer is not limited to one, and may be plural. Examples of the connection form include Ethernet (registered trademark) and USB. The printing apparatus is capable of booklet printing. Booklet printing is a printing method in which a booklet can be formed by printing two pages each on both sides of a printing paper and then folding the printed printing paper into a plurality of folded sheets.

分割手段は、ページ順に並んだNページ分(Nは自然数)のイメージデータの各々について、イメージデータを分割して2Nページ分の分割イメージデータを生成する。分割は、イメージデータが印刷用紙の形状に合わせた長方形の形状を有する場合には、長辺の中点を通るように分割することが好ましい。分割手段により2分割された分割イメージデータは、小冊子に製本された後では、見開きのページ境界部で連続することで、1ページ分のイメージデータを形成する。なお、分割イメージデータのページ数(2N)は、イメージデータのページ数(N)の2倍になる。   The dividing unit divides the image data for each of N pages (N is a natural number) of image data arranged in page order to generate 2N pages of divided image data. When the image data has a rectangular shape that matches the shape of the printing paper, it is preferable to divide the image data so that it passes through the midpoint of the long side. After the divided image data divided into two by the dividing means is bound into a booklet, the divided image data is continued at the page boundary portion of the spread to form one page of image data. Note that the number of pages of divided image data (2N) is twice the number of pages of image data (N).

第1並び替え手段は、1ページ目のイメージデータを分割して得られた2つの分割イメージデータのうち、小冊子の裏側の表紙に対応する分割イメージデータを、分割イメージデータのページ順の最後尾へ移動させる。小冊子は、表側の表紙と、裏側の表紙とを有している。表側の表紙とは、小冊子の最初のページを覆う紙である。また、裏側の表紙とは、小冊子の最終ページを覆う紙である。そして、裏側の表紙に対応する分割イメージデータを、ページ順の最後尾へ移動させることによって、小冊子が製本された後においては、1ページ目のイメージデータを分割して得られた2つの分割イメージデータが表側の表紙と裏側の表紙との境界部で連続することで、1ページ分のイメージデータを形成することができる。   The first rearranging means converts the divided image data corresponding to the cover on the back side of the booklet, out of the two divided image data obtained by dividing the image data of the first page, at the end of the page order of the divided image data. Move to. The booklet has a front cover and a back cover. The front cover is paper that covers the first page of the booklet. The back cover is paper that covers the last page of the booklet. After the booklet is bound by moving the divided image data corresponding to the back cover to the end of the page order, two divided images obtained by dividing the image data of the first page The image data for one page can be formed by the data being continuous at the boundary between the front cover and the back cover.

割り付け手段は、分割イメージデータのPページ目の分割イメージデータと、(2N+1−P)ページ目の分割イメージデータとを、分割印刷領域の各々に対して割り付ける。分割印刷領域とは、印刷用紙を分割して得られる各々の領域のことである。印刷用紙が長方形の形状を有する場合には、長辺の中点を通るように分割することが好ましい。またPは自然数の変数であり、Pの値の範囲は1≦P≦Nとされる。すなわち、Pの値の範囲は、分割イメージデータの1ページ目から真ん中のページまでとされる。そして、分割イメージデータのページ順の先頭の分割イメージデータと最後尾の分割イメージデータとが分割印刷領域に割り付けられ、分割イメージデータのページ順の先頭から2番目の分割イメージデータと最後尾から2番目の分割イメージデータとが次の分割印刷領域に割り付けられ、という手順が繰り返されることによって、2Nページ分の全ての分割イメージデータについて割り付け処理が行われる。   The assigning means assigns the divided image data of the P page of the divided image data and the divided image data of the (2N + 1−P) page to each of the divided print areas. The divided printing area is each area obtained by dividing the printing paper. When the printing paper has a rectangular shape, it is preferable to divide the printing paper so that it passes through the midpoint of the long side. P is a natural number variable, and the range of the value of P is 1 ≦ P ≦ N. That is, the range of the value of P is from the first page to the middle page of the divided image data. Then, the first divided image data and the last divided image data in the page order of the divided image data are allocated to the divided print area, and the second divided image data from the beginning and the second divided image data in the page order of the divided image data. By repeating the procedure that the second divided image data is allocated to the next divided printing area, the allocation processing is performed for all the divided image data for 2N pages.

印刷制御手段は、割り付け手段での割り付け結果に基づいて、印刷用紙の両面の各々に2ページ分ずつの分割イメージデータを印刷させる制御を行う。   The print control unit performs control to print the divided image data for two pages on each of both sides of the printing paper based on the allocation result of the allocation unit.

これにより、1枚の印刷用紙に2ページ分のイメージデータを割り付けるブックレット印刷においても、見開きで1ページ分のイメージデータを印刷させることが可能となる。また、イメージデータのサイズと印刷用紙のサイズとが同じサイズである場合には、イメージデータを縮小することなく印刷させることが可能となる。   As a result, even in booklet printing in which image data for two pages is assigned to one printing paper, it is possible to print the image data for one page with spread. Further, when the size of the image data and the size of the printing paper are the same size, the image data can be printed without being reduced.

また、コンピュータを、第2並び替え処理を行う第2並び替え手段として機能させるとしてもよい。第2並び替え処理は、イメージデータの向きが横向きであり小冊子の綴じ方向が右綴じである場合、または、イメージデータの向きが縦向きであり小冊子の綴じ方向が下綴じである場合、に実行される処理である。イメージデータの横向きとは、小冊子の見開きにおいて左右方向にページ数が進行するようにユーザが読み進めるような、イメージデータの印刷方向である。また、イメージデータの縦向きとは、小冊子の見開きにおいて上下方向にページ数が進行するようにユーザが読み進めるような、イメージデータの印刷方向である。小冊子の右綴じとは、小冊子の表側の表紙に対して右側が綴じられる綴じ方向である。また、小冊子の下綴じとは、小冊子の表側の表紙に対して下側が綴じられる綴じ方向である。また、第2並び替え手段は、第1並び替え手段による第1並び替え処理が行われた後に実行される。第2並び替え処理は、分割イメージデータのページ順の先頭の分割イメージデータおよび最後尾の分割イメージデータ以外の分割イメージデータについて、隣り合う偶数ページと奇数ページの分割イメージデータを入れ替える処理である。すなわち、分割イメージデータの2ページと3ページとが入れ替えられ、4ページと5ページとが入れ替えられ、という手順が繰り返されることによって、(2N−2)ページ分の分割イメージデータについて第2並び替え処理が行われる。   Further, the computer may function as a second rearranging unit that performs the second rearrangement process. The second rearrangement process is executed when the orientation of the image data is landscape and the booklet binding direction is right binding, or when the image data orientation is portrait and the booklet binding direction is bottom binding. Process. The horizontal direction of the image data is a printing direction of the image data such that the user reads the page so that the number of pages advances in the horizontal direction when the booklet is spread. Further, the portrait orientation of the image data is a print direction of the image data that the user proceeds to read so that the number of pages advances in the vertical direction when the booklet is spread. The right binding of the booklet is a binding direction in which the right side is bound to the front cover of the booklet. The booklet bottom binding is a binding direction in which the lower side is bound to the front cover of the booklet. The second rearrangement unit is executed after the first rearrangement process is performed by the first rearrangement unit. The second rearrangement process is a process of replacing divided image data of adjacent even-numbered pages and odd-numbered pages with respect to divided image data other than the first divided image data and the last divided image data in the page order of the divided image data. That is, the second rearrangement of the divided image data for (2N-2) pages is performed by repeating the procedure of switching the 2nd page and the 3rd page of the divided image data, and switching the 4th page and the 5th page. Processing is performed.

例として、イメージデータが横向きであり綴じ方向が右綴じである場合を説明する。分割手段により、イメージデータが分割されると、境界部を挟んで左側の分割イメージデータと右側の分割イメージデータとが生成される。そして、分割イメージデータは、見開きで1ページ分のイメージデータを形成するため、左側の分割イメージデータを見開きページの左側に割り付け、右側の分割イメージデータを見開きページの右側に割り付ける必要がある。すなわち、分割イメージデータの左右関係を入れ替えることはできない。   As an example, a case where the image data is in landscape orientation and the binding direction is right binding will be described. When the image data is divided by the dividing unit, divided image data on the left side and divided image data on the right side are generated across the boundary. Since the divided image data forms image data for one page by spread, it is necessary to assign the left divided image data to the left side of the spread page and to assign the right divided image data to the right side of the spread page. That is, the left-right relationship of the divided image data cannot be changed.

小冊子が左綴じの場合には、見開きにおいて左ページから右ページに順番にページ数が進行する。よって、割り付け処理時には、左側の分割イメージデータは見開きページの左側に割り付けられ、右側の分割イメージデータは見開きページの右側に割り付けられるため、分割イメージデータの左右関係が入れ替えられない。一方、小冊子が右綴じの場合には、見開きにおいて右ページから左ページに順番にページ数が進行する。よって、割り付け処理時には、左側の分割イメージデータは見開きページの右側に割り付けられ、右側の分割イメージデータは見開きページの左側に割り付けられるため、分割イメージデータの左右関係が入れ替えられてしまう。   When the booklet is bound to the left, the number of pages advances in order from the left page to the right page in the spread. Therefore, at the time of the allocation process, the left divided image data is allocated to the left side of the spread page, and the right divided image data is allocated to the right side of the spread page. On the other hand, when the booklet is bound to the right, the number of pages advances in order from the right page to the left page in the spread. Therefore, at the time of the allocation process, the left divided image data is allocated to the right side of the spread page, and the right divided image data is allocated to the left side of the spread page, so that the left-right relationship of the divided image data is switched.

そこで、イメージデータが横向きであり綴じ方向が右綴じの場合には、割り付け処理前に第2並び替え処理を行い、予め分割イメージデータの左右関係を入れ替えておくことで、その後の割り付け処理時において再度分割イメージデータの左右関係が入れ替えられる。よって、最終的に、左側の分割イメージデータを見開きページの左側に割り付け、右側の分割イメージデータを見開きページの右側に割り付けることができる。これにより、分割イメージデータの左右関係が入れ替わることが防止されるため、小冊子の綴じ方向に関わらず、見開きで1ページ分のイメージデータを印刷させることが可能となる。また、第2並び替え処理によって予め分割イメージデータの左右関係の入れ替え処理を行っておくことにより、割り付け手段では特殊な処理を不要とすることができる。よって、通常のブックレット印刷と見開き1ページのブックレット印刷との間で、割り付け手段を共用化できるため、プログラムの構成を簡略化できる。   Therefore, when the image data is in landscape orientation and the binding direction is right binding, the second rearrangement process is performed before the allocation process, and the left and right relations of the divided image data are switched in advance. The left-right relationship of the divided image data is switched again. Therefore, finally, the left divided image data can be assigned to the left side of the spread page, and the right divided image data can be assigned to the right side of the spread page. As a result, the left-right relationship of the divided image data is prevented from being switched, so that one page of image data can be printed in a spread regardless of the binding direction of the booklet. In addition, by performing the left-right relationship replacement processing of the divided image data in advance by the second rearrangement processing, special processing can be made unnecessary in the allocation means. Therefore, since the allocation means can be shared between normal booklet printing and booklet printing of one spread page, the configuration of the program can be simplified.

なお、イメージデータが縦向きであり綴じ方向が下綴じである場合も、イメージデータが横向きであり綴じ方向が右綴じである場合と同様である。すなわち、第2並び替え処理によって分割イメージデータの上下関係が入れ替わることが防止されるため、小冊子の綴じ方向に関わらず、見開きで1ページ分のイメージデータを印刷させることが可能となる。   Note that the case where the image data is in the vertical direction and the binding direction is the bottom binding is the same as the case in which the image data is in the horizontal direction and the binding direction is the right binding. In other words, the second rearrangement process prevents the vertical relationship of the divided image data from being changed, so that the image data for one page can be printed in a spread regardless of the binding direction of the booklet.

また、コンピュータを、ページ数調整手段として機能させるとしてもよい。ページ数調整手段は、イメージデータの総ページ数を表すNの値が奇数の時は、イメージデータを1ページ分追加する。これにより、分割手段による分割処理後において、分割イメージデータの総ページ数(2N)を4の倍数にすることができる。そして、ブックレット印刷では、1枚の印刷用紙の両面に各2ページ分、合計4ページ分の印刷が行われるため、分割イメージデータの総ページ数を4の倍数とすることが好ましいことから、好適なブックレット印刷が可能となる。   Further, the computer may function as a page number adjusting unit. The page number adjusting means adds one page of image data when the value of N representing the total number of pages of image data is an odd number. Thereby, after the dividing process by the dividing means, the total number of pages (2N) of the divided image data can be made a multiple of four. In booklet printing, printing is performed for two pages on both sides of a single printing sheet, for a total of four pages, and therefore it is preferable that the total number of divided image data pages is a multiple of four. Booklet printing is possible.

また、コンピュータを、表紙挿入手段として機能させるとしてもよい。表紙挿入手段は、小冊子に表紙用のページを挿入する旨の指令を受け付けることに応じて、イメージデータのページ順の先頭に表紙用のイメージデータを挿入する。ページ挿入の指令は、例えばユーザ等によって入力されるとしてもよい。また、表紙用のイメージデータは、コンピュータの記憶部等に予め保存してあり、適宜読み出して使用するとしてもよい。   Further, the computer may function as a cover sheet insertion unit. The cover inserting means inserts the cover image data at the top of the page order of the image data in response to receiving a command to insert a cover page into the booklet. The page insertion command may be input by a user or the like, for example. Further, the image data for the cover may be stored in advance in a computer storage unit or the like, and may be appropriately read and used.

また、ページ数調整手段は、表紙挿入手段によって表紙用のイメージデータが挿入される設定である場合に、表紙用のイメージデータの挿入前においてイメージデータの総ページ数を表すNの値が偶数となる場合には、表紙用のイメージデータをイメージデータのページ順の先頭に挿入すると共に、ページ数調整用のイメージデータをイメージデータのページ順の最後尾に挿入する、としてもよい。ページ数調整用のイメージデータは、例えば、白紙のイメージデータとしてもよい。これにより、表紙用のイメージデータを挿入する場合においても、分割イメージデータの総ページ数(2N)を4の倍数にすることができる。よって、好適なブックレット印刷が可能となる。   Further, the page number adjusting means is configured such that when the cover image data is inserted by the cover insert means, the value of N representing the total number of pages of the image data is even before the cover image data is inserted. In this case, the image data for the cover may be inserted at the beginning of the page order of the image data, and the image data for adjusting the number of pages may be inserted at the end of the page order of the image data. The image data for adjusting the number of pages may be, for example, blank image data. Thereby, even when the image data for the cover is inserted, the total number of pages (2N) of the divided image data can be made a multiple of four. Therefore, suitable booklet printing becomes possible.

また、ページ数調整手段は、表紙挿入手段によって表紙用のイメージデータが挿入される設定である場合に、表紙用のイメージデータの挿入前においてイメージデータの総ページ数を表すNの値が奇数となる場合には、表紙用のイメージデータをイメージデータのページ順の先頭に挿入する、としてもよい。また、ページ数調整手段は、表紙挿入手段によって表紙用のイメージデータが挿入されない設定である場合に、イメージデータの総ページ数を表すNの値が奇数となる場合には、ページ数調整用のイメージデータをイメージデータのページ順の最後尾に挿入する、としてもよい。これにより、表紙を挿入する場合においても、挿入しない場合においても、分割イメージデータの総ページ数(2N)を4の倍数にすることができる。よって、好適なブックレット印刷が可能となる。   Further, the page number adjusting means is configured such that when the cover image data is inserted by the cover inserting means, the value of N representing the total number of pages of the image data is an odd number before inserting the cover image data. In this case, the image data for the cover may be inserted at the top of the image data in the page order. Further, the page number adjusting means is for adjusting the page number when the value of N representing the total number of pages of the image data is an odd number when the image data for the cover is not inserted by the cover inserting means. The image data may be inserted at the end of the page order of the image data. As a result, the total number of pages (2N) of the divided image data can be made a multiple of 4, whether or not the cover is inserted. Therefore, suitable booklet printing becomes possible.

また、割り付け手段は、分割イメージデータを分割印刷領域に割り付ける際に、分割イメージデータが分割印刷領域に収まるように分割イメージデータのサイズを変倍して割り付ける、としてもよい。これにより、各種の印刷用紙のサイズに対応して、ブックレット印刷を行うことが可能となる。   The allocating means may allocate the divided image data by changing the size of the divided image data so that the divided image data fits in the divided print area when the divided image data is allocated to the divided print area. As a result, booklet printing can be performed corresponding to the sizes of various printing papers.

印刷システムの構成図である。1 is a configuration diagram of a printing system. 見開きブックレット印刷の動作フロー図である。It is an operation | movement flowchart of spread booklet printing. 並び順調整処理の動作フロー図である。It is an operation | movement flowchart of an arrangement | sequence order adjustment process. ブックレット印刷処理の動作フロー図である。It is an operation | movement flowchart of a booklet printing process. 見開きブックレット印刷の例(その1)を示す図である。It is a figure which shows the example (the 1) of spread booklet printing. 見開きブックレット印刷の例(その2)を示す図である。It is a figure which shows the example (the 2) of spread booklet printing. 見開きブックレット印刷の例(その3)を示す図である。It is a figure which shows the example (the 3) of spread booklet printing. 分割イメージデータの割り付け方法の例を示す図である。It is a figure which shows the example of the allocation method of division | segmentation image data.

以下、本発明の実施形態について図面を用いて説明する。図1は、本実施形態の印刷システム1の構成図である。印刷システム1は、プリンタ10と、パーソナルコンピュータであるPC20aとを有している。プリンタ10と、PC20aとは、LAN30により接続されている。   Hereinafter, embodiments of the present invention will be described with reference to the drawings. FIG. 1 is a configuration diagram of a printing system 1 according to the present embodiment. The printing system 1 includes a printer 10 and a PC 20a that is a personal computer. The printer 10 and the PC 20a are connected by a LAN 30.

プリンタ10の詳細な構成について説明する。プリンタ10は、CPU11、液晶表示パネル12、入力部13、USB_I/F15、記憶部16、ネットワークI/F17、印刷エンジン18、RAM19を備える。これらの構成要素は、バスを介して接続されている。   A detailed configuration of the printer 10 will be described. The printer 10 includes a CPU 11, a liquid crystal display panel 12, an input unit 13, a USB_I / F 15, a storage unit 16, a network I / F 17, a print engine 18, and a RAM 19. These components are connected via a bus.

CPU11は、記憶部16等に記憶されたプログラムに基づいて、印刷処理などの各種処理を実行する。液晶表示パネル12は、各種の情報を表示する。入力部13は、メカニカルスイッチやタッチパネル等を備え、ユーザからの操作入力を受け付ける。USB_I/F15は、USB対応機器とUSB規格に基づいた通信を実現するための通信処理を行う。記憶部16は、ROM、ハードディスク、フラッシュメモリ等の不揮発性の記憶媒体から構成され、プリンタ10が各種機能を実現する際に利用するデータの記憶領域として用いられる。ネットワークI/F17は、LAN30上の機器(本実施形態ではPC20a)と通信を行う。印刷エンジン18は、CPU11からの指令に基づき、印刷媒体に画像を印刷する。RAM19は、CPU11がデータの書き込みや読み出しをすることができるメモリ空間を備える。   The CPU 11 executes various processes such as a printing process based on a program stored in the storage unit 16 or the like. The liquid crystal display panel 12 displays various information. The input unit 13 includes a mechanical switch, a touch panel, and the like, and receives an operation input from a user. The USB_I / F 15 performs communication processing for realizing communication based on the USB standard with a USB compatible device. The storage unit 16 includes a nonvolatile storage medium such as a ROM, a hard disk, and a flash memory, and is used as a data storage area used when the printer 10 realizes various functions. The network I / F 17 communicates with a device on the LAN 30 (PC 20a in this embodiment). The print engine 18 prints an image on a print medium based on a command from the CPU 11. The RAM 19 includes a memory space in which the CPU 11 can write and read data.

PC20aの詳細な構成について説明する。PC20aは、CPU21、ディスプレイ22、キーボード23、マウス24、ネットワークI/F25、記憶部26、USB_I/F27、RAM29を備える。これらの構成要素は、バスを介して接続されている。   A detailed configuration of the PC 20a will be described. The PC 20 a includes a CPU 21, a display 22, a keyboard 23, a mouse 24, a network I / F 25, a storage unit 26, a USB_I / F 27, and a RAM 29. These components are connected via a bus.

CPU21は、記憶部26に記憶された各種のソフトウェアに基づいて処理を実行する。ディスプレイ22は、各種の情報を表示する。キーボード23は、周知のキーボードであり、ユーザからの操作入力を受け付ける。マウス24は、周知のマウスであり、ユーザからの操作入力を受け付ける。ネットワークI/F25は、他のLAN30上の機器(本実施形態ではプリンタ10)と通信を行う。USB_I/F27は、USB対応機器とUSB規格に基づいた通信を実現するための通信処理を行う。RAM29は、CPU21がデータの書き込みや読み出しをすることができるメモリ空間を備える。   The CPU 21 executes processing based on various software stored in the storage unit 26. The display 22 displays various information. The keyboard 23 is a well-known keyboard and accepts an operation input from a user. The mouse 24 is a well-known mouse and receives an operation input from the user. The network I / F 25 communicates with other devices on the LAN 30 (the printer 10 in this embodiment). The USB_I / F 27 performs communication processing for realizing communication based on the USB standard with a USB compatible device. The RAM 29 has a memory space in which the CPU 21 can write and read data.

記憶部26には、OS(Operating System)や、各種アプリケーションプログラムや、プリンタ10を制御するためのデバイスドライバなどの、各種のソフトウェアが記憶される。これらのソフトウェアは、実行時には、RAM19のメモリ空間上に展開されて実行される。アプリケーションプログラムの一例としては、写真加工ソフトなどの画像表示アプリケーション、ワープロアプリケーション、表計算アプリケーションなどが挙げられる。また、デバイスドライバの一例としては、プリンタ10の印刷機能を制御するためのプリンタドライバが挙げられる。   The storage unit 26 stores various software such as an OS (Operating System), various application programs, and a device driver for controlling the printer 10. These software programs are executed in the memory space of the RAM 19 when executed. Examples of application programs include image display applications such as photo processing software, word processing applications, spreadsheet applications, and the like. An example of the device driver is a printer driver for controlling the printing function of the printer 10.

プリンタドライバは、プリンタ設定値を設定する機能を備える。プリンタ設定値の内容の一例としては、用紙サイズ、用紙の種類、コピー枚数、両面印刷するか否か、などが挙げられる。また、後述するブックレット印刷に関するプリンタ設定値の内容の一例としては、表紙用イメージデータの挿入を行うか否か、イメージデータが横向きか縦向きか、イメージデータが横向きの場合は小冊子の綴じ方向は右綴じか左綴じか、イメージデータが縦向きの場合は小冊子の綴じ方向は上綴じか左綴じか、などが挙げられる。プリンタ設定値は予めユーザ等によって設定され、記憶部26に記憶されるとしてもよい。   The printer driver has a function for setting printer setting values. Examples of the contents of the printer setting value include a paper size, a paper type, the number of copies, whether or not to perform double-sided printing, and the like. In addition, as an example of the contents of printer setting values related to booklet printing, which will be described later, whether to insert cover image data, whether the image data is in landscape orientation or portrait orientation, and if the image data is landscape orientation, the binding direction of the booklet is For example, when the image data is in portrait orientation, the binding direction of the booklet may be top binding or left binding. The printer setting value may be set in advance by a user or the like and stored in the storage unit 26.

また、プリンタドライバは、アプリケーションプログラムから渡された印刷用データを元に、プリンタ10で用いられるイメージデータを生成し、プリンタ10へ送信する。イメージデータは、プリンタ言語で記述された描画データをページ画像データに変換したデータである。   Further, the printer driver generates image data used by the printer 10 based on the print data passed from the application program, and transmits the image data to the printer 10. Image data is data obtained by converting drawing data described in a printer language into page image data.

また、プリンタドライバは、プリンタ10に対して、ブックレット印刷を実行させることが可能とされる。ブックレット印刷は、複数のページからなる小冊子を形成するための印刷方法である。ブックレット印刷では、各ページは、印刷用紙を2つ折りにしたときに順序が正しくなるよう配列される。ブックレット印刷の配列では、先頭のページと最後のページが同じ用紙に、2番目のページと後ろから2番目のページが同じ用紙にそれぞれ配列され、以下同様にすべてのページが配列される。そして、2つのページが並列に配列された状態で、印刷用紙の両面にそれぞれ印刷が行われる。両面印刷された印刷用紙は、ページ順に重ねて2つ折りにされ、折り目にそって綴じられる。これにより、ページが正しく配列された、中綴じ小冊子を作成することができる。   The printer driver can cause the printer 10 to execute booklet printing. Booklet printing is a printing method for forming a booklet composed of a plurality of pages. In booklet printing, the pages are arranged so that the order is correct when the printing paper is folded in half. In the booklet printing arrangement, the first page and the last page are arranged on the same sheet, the second page and the second page from the back are arranged on the same sheet, and all the pages are arranged in the same manner. Then, printing is performed on both sides of the printing paper with the two pages arranged in parallel. The printing paper that has been printed on both sides is overlapped in the page order, folded in half, and bound along the crease. This makes it possible to create a saddle-stitched booklet with pages arranged correctly.

印刷システム1で行われる印刷処理について、図2ないし図4のフローチャートを用いて説明する。本実施形態の説明例では、PC20aのプリンタドライバで生成したイメージデータを、プリンタ10に送信して見開きブックレット印刷させる場合を説明する。また例として、イメージデータの総ページ数N=4の場合を説明する。また、小冊子を作成する際の2つ折りは、折り目を内側にする谷折りの場合を説明する。また、プリンタ出力のスタックの方法が、フェイスアップの場合を説明する。なお、印刷システム1で行われる印刷処理は、ユーザによって印刷指示が入力されることにより開始され、印刷の終了により終了する。   The printing process performed in the printing system 1 will be described with reference to the flowcharts of FIGS. In the description example of the present embodiment, a case will be described in which image data generated by the printer driver of the PC 20a is transmitted to the printer 10 and spread booklet printing is performed. As an example, a case where the total number of pages of image data N = 4 will be described. In addition, the case where the booklet is folded in half will be described in the case of valley folding with the fold line inside. A case where the printer output stacking method is face-up will be described. Note that the printing process performed in the printing system 1 starts when a printing instruction is input by the user, and ends when printing ends.

見開きブックレット印刷が開始されると、S11において、プリンタドライバは、イメージデータの総ページ数Nを取得する。本実施形態の説明例では、図5(A)に示すように、イメージデータID1ないしID4が並んでおり、総ページ数N=4が取得される。   When the spread booklet printing is started, the printer driver acquires the total page number N of the image data in S11. In the example of this embodiment, as shown in FIG. 5A, image data ID1 to ID4 are arranged, and the total number of pages N = 4 is acquired.

S13において、プリンタドライバは、小冊子の表側の表紙および裏側の表紙に、表紙用イメージデータを挿入する設定とされているか否かを判断する。表側の表紙とは、小冊子の最初のページを覆う紙である。また、裏側の表紙とは、小冊子の最終ページを覆う紙である。当該判断は、例えば、表紙用イメージデータを用いるか否かの選択ダイアログがディスプレイ22に表示され、ユーザがキーボード23やマウス24を用いて選択結果を入力することに応じて、表紙用イメージデータを用いるか否かをプリンタドライバが判断するとしてもよい。また例えば、表紙用イメージデータを用いるか否かのプリンタ設定値が記憶部26に記憶されており、記憶部26から読み出されたプリンタ設定値に基づいて、表紙用イメージデータを用いるか否かをプリンタドライバが判断するとしてもよい。また、表紙用イメージデータは、記憶部26に予め保存してあり、適宜読み出して使用するとしてもよい。表紙用イメージデータを挿入する設定とされていないと判断される場合(S13:NO)にはS21へ進み、挿入する設定とされていると判断される場合(S13:YES)にはS15へ進む。   In S13, the printer driver determines whether or not the setting is made to insert cover image data into the front cover and the back cover of the booklet. The front cover is paper that covers the first page of the booklet. The back cover is paper that covers the last page of the booklet. In the determination, for example, a selection dialog for determining whether or not to use the cover image data is displayed on the display 22, and when the user inputs a selection result using the keyboard 23 or the mouse 24, the cover image data is displayed. The printer driver may determine whether to use it. Further, for example, a printer setting value indicating whether or not to use the cover image data is stored in the storage unit 26, and whether or not to use the cover image data based on the printer setting value read from the storage unit 26. May be determined by the printer driver. Further, the cover image data may be stored in advance in the storage unit 26 and may be read and used as appropriate. If it is determined that the cover image data is not set to be inserted (S13: NO), the process proceeds to S21. If it is determined that the cover image data is set to be inserted (S13: YES), the process proceeds to S15. .

S15において、プリンタドライバは、イメージデータの総ページ数Nが、奇数か偶数かを判断する。奇数であると判断される場合には、表紙用イメージデータを挿入することなくS21へ進む。また、偶数であると判断される場合にはS17へ進み、プリンタドライバは、表紙用イメージデータをイメージデータのページ順の先頭に挿入する。本実施形態の説明例では、図5(B)に示すように、「タイトル」の文字列を有する表紙用イメージデータIDHが、イメージデータのページ順の先頭に挿入される。   In S15, the printer driver determines whether the total page number N of the image data is an odd number or an even number. If it is determined that the number is an odd number, the process proceeds to S21 without inserting cover image data. If it is determined that the number is even, the process advances to step S17, and the printer driver inserts the cover image data at the top of the page order of the image data. In the example of the present embodiment, as shown in FIG. 5B, the cover image data IDH having the character string “title” is inserted at the top of the page order of the image data.

S19において、プリンタドライバは、イメージデータの総ページ数Nに、挿入された表紙用イメージデータの1ページ分を加算する。本実施形態の説明例では、総ページ数N=5となる(図5(B))。   In S19, the printer driver adds one page of the inserted cover image data to the total number N of image data pages. In the description example of the present embodiment, the total number of pages N = 5 (FIG. 5B).

S21において、プリンタドライバは、ページ順に並んだ総ページ数Nのイメージデータの各々について、イメージデータを分割して分割イメージデータを生成する。分割処理は、イメージデータが印刷用紙の形状に合わせた長方形の形状を有する場合には、長辺の中点を通るように分割することが好ましい。分割手段により2分割された分割イメージデータは、小冊子に製本された後では、見開きのページ境界部で連続することで、1ページ分のイメージデータを形成する。なお、分割処理後の分割イメージデータの分割総ページ数2Nは、分割処理前のイメージデータの総ページ数Nの2倍になる。本実施形態の説明例では、図5(B)に示すイメージデータの各々が分割され、図5(C)に示す分割イメージデータが生成される。また、分割総ページ数2N=10とされる。   In S21, the printer driver divides the image data for each of the N pages of image data arranged in the page order to generate divided image data. When the image data has a rectangular shape that matches the shape of the printing paper, it is preferable to divide the image so that it passes through the midpoint of the long side. After the divided image data divided into two by the dividing means is bound into a booklet, the divided image data is continued at the page boundary portion of the spread to form one page of image data. Note that the total divided page number 2N of the divided image data after the division process is twice the total page number N of the image data before the division process. In the example of the present embodiment, each of the image data shown in FIG. 5B is divided, and divided image data shown in FIG. 5C is generated. The total number of divided pages is 2N = 10.

S25において、プリンタドライバは、分割イメージデータの並び順調整処理を行う。図3のフローを用いて、並び順調整処理を説明する。並び順調整処理では、S41ないしS51で行われる挿入処理と、S53ないしS63で行われる並び替え処理とが行われる。   In step S <b> 25, the printer driver performs an arrangement order adjustment process for the divided image data. The arrangement order adjustment process will be described with reference to the flow of FIG. In the arrangement order adjustment process, an insertion process performed in S41 to S51 and a rearrangement process performed in S53 to S63 are performed.

挿入処理(S41ないしS51)について説明する。S41において、プリンタドライバは、イメージデータの総ページ数Nが奇数であるか偶数であるかを判断する。総ページ数Nが偶数であると判断される場合には、挿入処理を行わず、S53へ進んで並び替え処理に移行する。一方、総ページ数Nが奇数であると判断される場合にはS43へ進み、挿入処理が実行される。   The insertion process (S41 to S51) will be described. In S41, the printer driver determines whether the total page number N of the image data is an odd number or an even number. If it is determined that the total page number N is an even number, the insertion process is not performed, the process proceeds to S53, and the process proceeds to the rearrangement process. On the other hand, when it is determined that the total page number N is an odd number, the process proceeds to S43, and an insertion process is executed.

ブックレット印刷では、1枚の印刷用紙の両面に各2ページ分、合計4ページ分の分割イメージデータの印刷が行われる。よって、分割イメージデータの分割総ページ数2Nは、4の倍数とすることが好ましい。そして、分割後の分割総ページ数2Nを4の倍数とするには、分割前の総ページ数Nを偶数にする必要がある。よって、分割前の総ページ数Nが奇数である場合には、挿入処理によって総ページ数Nを偶数とする処理が行われる。   In booklet printing, divided image data for a total of four pages, two pages each on both sides of a single printing sheet, is printed. Therefore, the total divided page number 2N of the divided image data is preferably a multiple of four. In order to make the divided total page number 2N after division a multiple of 4, the total page number N before division needs to be an even number. Therefore, when the total page number N before the division is an odd number, a process for setting the total page number N to an even number by the insertion process is performed.

挿入処理では、以前のステップで表紙用イメージデータが既に挿入されているか否かや、表紙用イメージデータを挿入する設定とされているか否かに応じて、挿入パタン1ないし3の3つのパタンが存在する。挿入パタン1は、表紙用イメージデータを挿入する設定とされている場合に、表紙用イメージデータが未挿入の状態である場合のパタンである。挿入パタン1では、挿入処理において、表紙用イメージデータを分割イメージデータのページ順の先頭に挿入する処理が行われる。挿入パタン2は、表紙用イメージデータを挿入する設定とされていない場合のパタンである。挿入パタン2では、ページ数調整用イメージデータを分割イメージデータのページ順の最後尾に挿入する処理が行われる。挿入パタン3は、以前のステップで表紙用イメージデータが既に挿入済みである場合のパタンである。すなわち、当初の総ページ数Nは偶数であったが、以前のステップで表紙用イメージデータが挿入されることによりページ数が1ページ分増えることで、総ページ数Nが奇数となっている場合である。挿入パタン3では、ページ数調整用イメージデータを分割イメージデータのページ順の最後尾に挿入する処理が行われる。なお、ページ数調整用イメージデータは、例えば、白紙のイメージデータとしてもよい。   In the insertion process, three patterns 1 to 3 are inserted depending on whether or not the cover image data has been inserted in the previous step, and whether or not the cover image data is set to be inserted. Exists. The insertion pattern 1 is a pattern when the cover image data is not inserted when the cover image data is set to be inserted. In the insertion pattern 1, processing for inserting the cover image data at the head of the page order of the divided image data is performed in the insertion processing. The insertion pattern 2 is a pattern when it is not set to insert cover image data. In the insertion pattern 2, a process for inserting the page number adjusting image data at the end of the page order of the divided image data is performed. The insertion pattern 3 is a pattern when the cover image data has already been inserted in the previous step. That is, the initial total number of pages N is an even number, but the total number of pages N is an odd number by increasing the number of pages by one page by inserting the cover image data in the previous step. It is. In the insertion pattern 3, a process for inserting the page number adjusting image data at the end of the page order of the divided image data is performed. The page number adjustment image data may be, for example, blank image data.

S43において、プリンタドライバは、表紙用イメージデータを挿入する設定にされているか否かを判断する。表紙用イメージデータを挿入する設定ではないと判断される場合(S43:NO)には、挿入パタン2の場合であると判断される。よってS49へ進み、プリンタドライバは、分割イメージデータのページ順の最後尾にページ数調整用イメージデータを挿入する処理を行う。そしてS51へ進む。   In S43, the printer driver determines whether or not the setting is made to insert cover image data. When it is determined that the setting is not to insert cover image data (S43: NO), it is determined that the insertion pattern 2 is set. Accordingly, the process proceeds to S49, and the printer driver performs processing for inserting page number adjustment image data at the end of the page order of the divided image data. Then, the process proceeds to S51.

一方、S43において、表紙用イメージデータを挿入する設定にされていると判断される場合(S43:YES)にはS45へ進む。S45において、プリンタドライバは、分割イメージデータ列の先頭に表紙用イメージデータが既に挿入されているか否かを判断する。未挿入であると判断される場合(S45:NO)には、挿入パタン1の場合であると判断される。よってS47へ進み、プリンタドライバは、分割イメージデータのページ順の先頭に表紙用イメージデータを挿入する処理を行う。そしてS51へ進む。   On the other hand, if it is determined in S43 that the setting is made to insert cover image data (S43: YES), the process proceeds to S45. In S45, the printer driver determines whether cover image data has already been inserted at the head of the divided image data sequence. When it is determined that it has not been inserted (S45: NO), it is determined that it is the case of the insertion pattern 1. Accordingly, the process proceeds to S47, and the printer driver performs a process of inserting cover image data at the top of the page order of the divided image data. Then, the process proceeds to S51.

一方、S45において、表紙用イメージデータが既に挿入されていると判断される場合(S45:YES)には、挿入パタン3の場合であると判断される。よってS49へ進み、プリンタドライバは、分割イメージデータのページ順の最後尾にページ数調整用イメージデータを挿入する処理を行う。そしてS51へ進む。   On the other hand, when it is determined in S45 that the cover image data has already been inserted (S45: YES), it is determined that the case is the insertion pattern 3. Accordingly, the process proceeds to S49, and the printer driver performs processing for inserting page number adjustment image data at the end of the page order of the divided image data. Then, the process proceeds to S51.

S51において、プリンタドライバは、挿入されたページ数調整用イメージデータまたは表紙用イメージデータを、半分の大きさに分割する。S52に進むと、プリンタドライバは、イメージデータの総ページ数Nに、挿入されたページ数調整用イメージデータまたは表紙用イメージデータの1ページ分を加算する。また、プリンタドライバは、分割イメージデータの分割総ページ数2Nに、挿入されたページ数調整用イメージデータまたは表紙用イメージデータの分割によって増加した2ページ分を加算する。   In S51, the printer driver divides the inserted page number adjustment image data or cover image data into half the size. In step S52, the printer driver adds one page of the inserted page number adjustment image data or cover image data to the total page number N of image data. Further, the printer driver adds two pages increased by dividing the inserted page number adjustment image data or cover image data to the total divided page number 2N of the divided image data.

これにより、挿入パタン1ないし3のいずれの場合においても、1ページ分の表紙用イメージデータまたは1ページ分のページ数調整用イメージデータを挿入することで、イメージデータの総ページ数Nを偶数とすることができる。よって、分割イメージデータの分割総ページ数2Nを4の倍数にすることができる。   Thus, in any case of the insertion patterns 1 to 3, by inserting the image data for the cover of one page or the image data for adjusting the number of pages for one page, the total number of pages N of the image data is set to an even number. can do. Therefore, the total divided page number 2N of the divided image data can be a multiple of four.

本実施形態の説明例では、図5(B)に示すように、以前のステップであるS17において、表紙用イメージデータIDH(図5(B))が既に挿入済みとされ、総ページ数Nが奇数とされている。よって、挿入パタン3の場合である。すると、図5(D)に示すように、プリンタドライバは、分割イメージデータのページ順の最後尾にページ数調整用イメージデータIDPを挿入し(S49)、挿入されたページ数調整用イメージデータを分割し(S51)、分割総ページ数2Nに2ページ分を加算する(S52)。よって、分割総ページ数2N=12とされる。   In the explanation example of the present embodiment, as shown in FIG. 5B, the cover image data IDH (FIG. 5B) is already inserted in the previous step S17, and the total number of pages N is It is an odd number. Therefore, this is the case of the insertion pattern 3. Then, as shown in FIG. 5D, the printer driver inserts the page number adjustment image data IDP at the end of the page order of the divided image data (S49), and the inserted page number adjustment image data is inserted. The page is divided (S51), and two pages are added to the total divided page number 2N (S52). Therefore, the total number of divided pages is 2N = 12.

次に、並び替え処理(S53ないしS63)について説明する。イメージデータの向きには、横向きと縦向きとが存在する。イメージデータの横向きとは、小冊子の見開きにおいて左右方向にページ数が進行するようにユーザが読み進めるような、イメージデータの印刷方向である。このときは、イメージデータが分割されると、境界部を挟んで左側の分割イメージデータと右側の分割イメージデータとが生成される。そして、分割イメージデータは、見開きで1ページ分のイメージデータを形成するため、左側の分割イメージデータを見開きページの左側に割り付け、右側の分割イメージデータを見開きページの右側に割り付ける必要がある。すなわち、分割イメージデータの左右関係を入れ替えることはできない。   Next, the rearrangement process (S53 to S63) will be described. The orientation of the image data includes a landscape orientation and a portrait orientation. The horizontal direction of the image data is a printing direction of the image data such that the user reads the page so that the number of pages advances in the horizontal direction when the booklet is spread. At this time, when the image data is divided, left-side divided image data and right-side divided image data are generated across the boundary. Since the divided image data forms image data for one page by spread, it is necessary to assign the left divided image data to the left side of the spread page and to assign the right divided image data to the right side of the spread page. That is, the left-right relationship of the divided image data cannot be changed.

また、イメージデータの縦向きとは、小冊子の見開きにおいて上下方向にページ数が進行するようにユーザが読み進めるような、イメージデータの印刷方向である。このときは、イメージデータが分割されると、境界部を挟んで上側の分割イメージデータと下側の分割イメージデータとが生成される。そして、上側の分割イメージデータを見開きページの上側に割り付け、下側の分割イメージデータを見開きページの下側に割り付ける必要がある。すなわち、分割イメージデータの上下関係を入れ替えることはできない。   Further, the portrait orientation of the image data is a print direction of the image data that the user proceeds to read so that the number of pages advances in the vertical direction when the booklet is spread. At this time, when the image data is divided, the upper divided image data and the lower divided image data are generated across the boundary. Then, it is necessary to allocate the upper divided image data to the upper side of the spread page and to allocate the lower divided image data to the lower side of the spread page. That is, the vertical relationship of the divided image data cannot be changed.

また、イメージデータが横向きの場合には、小冊子の綴じ方向には、右綴じおよび左綴じが存在する。小冊子の右綴じとは、小冊子の表側の表紙に対して右側が綴じられ、本を読み進める際にページを右に開いていく綴じ方である。また、小冊子の左綴じとは、小冊子の表側の表紙に対して左側が綴じられ、本を読み進める際にページを左に開いていく綴じ方である。   Further, when the image data is in landscape orientation, right binding and left binding exist in the binding direction of the booklet. The booklet right binding is a binding method in which the right side is bound to the front cover of the booklet and the page is opened to the right when the book is read. Further, the booklet left binding is a binding method in which the left side is bound to the front cover of the booklet and the page is opened to the left when the book is read.

また、イメージデータが縦向きの場合には、小冊子の綴じ方向には、上綴じおよび下綴じが存在する。小冊子の下綴じとは、小冊子の表側の表紙に対して下側が綴じられ、本を読み進める際にページを下に開いていく綴じ方である。また、小冊子の上綴じとは、小冊子の表側の表紙に対して上側が綴じられ、本を読み進める際にページを上に開いていく綴じ方である。   Further, when the image data is in the vertical direction, there are upper binding and lower binding in the binding direction of the booklet. The booklet bottom binding is a binding method in which the lower side is bound to the front cover of the booklet and the page is opened downward when the book is read. Further, the booklet top binding is a binding method in which the upper side is bound to the front cover of the booklet and the page is opened upward when the book is read.

以上より、小冊子の綴じ方には、パタンA(イメージデータが横向き、小冊子が左綴じ)、パタンB(イメージデータが横向き、小冊子が右綴じ)、パタンC(イメージデータが縦向き、小冊子が上綴じ)、パタンD(イメージデータが縦向き、小冊子が下綴じ)、の4つのパタンが存在する。   From the above, booklet binding methods are Pattern A (image data is landscape, booklet is left-bound), Pattern B (image data is landscape, booklet is right-bound), Pattern C (image data is portrait, booklet is top) There are four patterns: binding) and pattern D (image data is vertically oriented and booklet is bound downward).

そして、パタンAの場合には、見開きにおいて左ページから右ページに順番にページ数が進行する。よって、割り付け処理時には、左側の分割イメージデータは見開きページの左側に割り付けられ、右側の分割イメージデータは見開きページの右側に割り付けられるため、分割イメージデータの左右関係が入れ替えられない。同様に、パタンCの場合には、見開きにおいて上ページから下ページに順番にページ数が進行する。よって、割り付け処理時には、上側の分割イメージデータは見開きページの上側に割り付けられ、下側の分割イメージデータは見開きページの下側に割り付けられるため、分割イメージデータの上下関係が入れ替えられない。よって、パタンAおよびCでは、小冊子の見開きでのページ数の進行方向と、分割イメージデータのページ数の進行方向とが一致するため、第1並び替え処理のみが行われる。なお、第1並び替え処理の内容については後述する。   In the case of pattern A, the number of pages advances in order from the left page to the right page in the spread. Therefore, at the time of the allocation process, the left divided image data is allocated to the left side of the spread page, and the right divided image data is allocated to the right side of the spread page. Similarly, in the case of pattern C, the number of pages advances in order from the upper page to the lower page in spread. Therefore, at the time of the allocation process, the upper divided image data is allocated to the upper side of the spread page, and the lower divided image data is allocated to the lower side of the spread page, so that the vertical relationship of the divided image data is not changed. Therefore, in the patterns A and C, since the progress direction of the page number in the spread of the booklet coincides with the progress direction of the page number of the divided image data, only the first rearrangement process is performed. The contents of the first rearrangement process will be described later.

一方、パタンBの場合には、見開きにおいて右ページから左ページに順番にページ数が進行する。よって、割り付け処理時には、左側の分割イメージデータは見開きページの右側に割り付けられ、右側の分割イメージデータは見開きページの左側に割り付けられるため、分割イメージデータの左右関係が入れ替えられてしまう。同様に、パタンDの場合には、見開きにおいて下ページから上ページに順番にページ数が進行する。よって、割り付け処理時には、上側の分割イメージデータは見開きページの下側に割り付けられ、下側の分割イメージデータは見開きページの上側に割り付けられるため、分割イメージデータの上下関係が入れ替えられてしまう。よって、パタンBおよびDでは、小冊子の見開きでのページ数の進行方向と、分割イメージデータのページ数の進行方向とが一致しない。すると、パタンBおよびDでは、第1並び替え処理の実行後に、第2並び替え処理を行う必要がある。なお、第2並び替え処理の内容については後述する。   On the other hand, in the case of pattern B, the number of pages advances in order from the right page to the left page in the spread. Therefore, at the time of the allocation process, the left divided image data is allocated to the right side of the spread page, and the right divided image data is allocated to the left side of the spread page, so that the left-right relationship of the divided image data is switched. Similarly, in the case of pattern D, the number of pages advances in order from the lower page to the upper page in the spread. Therefore, during the allocation process, the upper divided image data is allocated to the lower side of the spread page, and the lower divided image data is allocated to the upper side of the spread page, so that the vertical relationship of the divided image data is switched. Therefore, in the patterns B and D, the progress direction of the page number in the spread of the booklet does not match the progress direction of the page number of the divided image data. Then, in the patterns B and D, it is necessary to perform the second rearrangement process after the execution of the first rearrangement process. The contents of the second rearrangement process will be described later.

以下、第1並び替え処理および第2並び替え処理について詳述する。S53において、プリンタドライバは、イメージデータの向きが横向きか縦向きかを判断する。横向きであると判断される場合にはS57へ進み、プリンタドライバは、綴じ方が右綴じか左綴じかを判断する。右綴じであると判断される場合にはS61へ進み、左綴じであると判断される場合にはS59へ進む。一方、S53において、縦向きであると判断される場合にはS55へ進み、プリンタドライバは、綴じ方が上綴じか下綴じかを判断する。下綴じであると判断される場合にはS61へ進み、上綴じであると判断される場合にはS59へ進む。   Hereinafter, the first rearrangement process and the second rearrangement process will be described in detail. In S53, the printer driver determines whether the orientation of the image data is landscape or portrait. If it is determined that the paper is in landscape orientation, the process advances to step S57, and the printer driver determines whether the binding method is right binding or left binding. When it is determined that the right binding is performed, the process proceeds to S61, and when it is determined that the left binding is performed, the process proceeds to S59. On the other hand, if it is determined in S53 that the document is in the portrait orientation, the process proceeds to S55, and the printer driver determines whether the binding method is upper binding or lower binding. If it is determined that the bottom binding is performed, the process proceeds to S61, and if it is determined that the top binding is performed, the process proceeds to S59.

これにより、パタンAおよびパタンCの場合にはS59へ進み、パタンBおよびパタンDの場合には、S61へ進むことになる。なお、S53ないしS57の判断は、記憶部26に記憶されている、イメージデータの向きや小冊子の綴じ方向についてのプリンタ設定値に基づいて行われるとしてもよい。   Thereby, in the case of the pattern A and the pattern C, it progresses to S59, and in the case of the pattern B and the pattern D, it progresses to S61. Note that the determinations in S53 to S57 may be made based on the printer setting values stored in the storage unit 26 for the orientation of the image data and the binding direction of the booklet.

パタンAおよびパタンCの場合に行われる処理内容を説明する。例として、図6に示すパタンA(イメージデータが横向き、小冊子が左綴じ)の場合を説明する。S59において、プリンタドライバは、第1並び替え処理を行う。第1並び替え処理では、1ページ目のイメージデータを分割して得られた2つの分割イメージデータのうち、小冊子の裏側の表紙に対応する分割イメージデータを、分割イメージデータのページ順の最後尾へ移動させる。そして、ページ順の先頭の分割イメージデータから順番にページ番号が振られる。   Processing contents performed in the case of pattern A and pattern C will be described. As an example, the case of the pattern A shown in FIG. 6 (image data is landscape and booklet is left-bound) will be described. In S59, the printer driver performs a first rearrangement process. In the first rearrangement process, among the two divided image data obtained by dividing the image data of the first page, the divided image data corresponding to the cover on the back side of the booklet is changed to the last in the page order of the divided image data. Move to. Then, page numbers are assigned in order from the first divided image data in the page order.

図6(A)の例では、1ページ目の表紙用イメージデータIDHを分割して得られた2つの分割イメージデータIDH1およびIDH2のうち、小冊子の裏側の表紙に対応する1ページ目の分割イメージデータIDH1を最後尾へ移動させる(図6(A)、矢印Y11)。そして、先頭の分割イメージデータIDH2の1ページ目から、最後尾の分割イメージデータIDH1の12ページ目まで、順番にページ順が振られる。第1並び替え処理が終了すると、S27(図2)へ進む。   In the example of FIG. 6A, the divided image of the first page corresponding to the cover on the back side of the booklet out of the two divided image data IDH1 and IDH2 obtained by dividing the cover image data IDH of the first page. The data IDH1 is moved to the tail (FIG. 6 (A), arrow Y11). Then, the page order is assigned in order from the first page of the first divided image data IDH2 to the twelfth page of the last divided image data IDH1. When the first rearrangement process ends, the process proceeds to S27 (FIG. 2).

このように、第1並び替え処理を行うことによって、小冊子が製本された後においては、1ページ目のイメージデータを分割して得られた2つの分割イメージデータが表側の表紙と裏側の表紙との境界部で連続することで、1ページ分のイメージデータを形成することができる。   Thus, after the booklet is bound by performing the first rearrangement process, the two divided image data obtained by dividing the image data of the first page are the front cover and the back cover. The image data for one page can be formed by being continuous at the boundary.

また、パタンBおよびパタンDの場合に行われる処理内容を説明する。例として、図7に示すパタンB(イメージデータが横向き、小冊子が右綴じ)の場合を説明する。S61において、プリンタドライバは、第1並び替え処理を行う。第1並び替え処理では、1ページ目のイメージデータを分割して得られた2つの分割イメージデータのうち、小冊子の裏側の表紙に対応する分割イメージデータを、分割イメージデータのページ順の最後尾へ移動させる。そして、ページ順の先頭の分割イメージデータから順番にページ番号が振られる。   Also, processing contents performed in the case of pattern B and pattern D will be described. As an example, the case of the pattern B shown in FIG. 7 (image data is landscape and booklet is bound right) will be described. In S61, the printer driver performs a first rearrangement process. In the first rearrangement process, among the two divided image data obtained by dividing the image data of the first page, the divided image data corresponding to the cover on the back side of the booklet is changed to the last in the page order of the divided image data. Move to. Then, page numbers are assigned in order from the first divided image data in the page order.

図7(A)の例では、1ページ目の表紙用イメージデータIDHを分割して得られた2つの分割イメージデータIDH1およびIDH2のうち、小冊子の裏側の表紙に対応する2ページ目の分割イメージデータIDH2を最後尾へ移動させる(図7(A)、矢印Y21)。そして、先頭の分割イメージデータIDH1の1ページ目から、最後尾の分割イメージデータIDH2の12ページ目まで、順番にページ順が振られる。   In the example of FIG. 7A, among the two divided image data IDH1 and IDH2 obtained by dividing the cover image data IDH for the first page, the divided image of the second page corresponding to the cover on the back side of the booklet. The data IDH2 is moved to the tail (FIG. 7A, arrow Y21). Then, the page order is assigned in order from the first page of the first divided image data IDH1 to the twelfth page of the last divided image data IDH2.

S63において、プリンタドライバは、第2並び替え処理を行う。第2並び替え処理では、分割イメージデータのページ順の先頭の分割イメージデータおよび最後尾の分割イメージデータ以外の分割イメージデータについて、隣り合う偶数ページと奇数ページの分割イメージデータを入れ替える処理を行う。すなわち、割り付けた時に見開きになる分割イメージデータの組が、それぞれ入れ替えられる。これにより、分割イメージデータの2ページと3ページとが入れ替えられ、4ページと5ページとが入れ替えられ、という手順が繰り返されることによって、(2N−2)ページ分の分割イメージデータについて第2並び替え処理が行われる。   In S63, the printer driver performs a second rearrangement process. In the second rearrangement process, for the divided image data other than the first divided image data and the last divided image data in the page order of the divided image data, the divided image data of the adjacent even page and odd page are replaced. That is, the sets of divided image data that are spread when assigned are replaced. As a result, the 2nd page and the 3rd page of the divided image data are exchanged, and the 4th page and the 5th page are exchanged, whereby the second arrangement of the divided image data for (2N-2) pages is repeated. Replacement processing is performed.

図7(A)の例では、見開きになる組である、分割イメージデータの2ページと3ページとが入れ替えられ、4ページと5ページとが入れ替えられ、という手順が繰り返される(図7(A)、矢印Y22)。第2並び替え処理が終了すると、S27(図2)へ進む。   In the example of FIG. 7 (A), the procedure of page 2 and page 3 of the divided image data, and the page 4 and page 5 are exchanged, which is a spread set, is repeated (FIG. 7 (A)). ), Arrow Y22). When the second rearrangement process ends, the process proceeds to S27 (FIG. 2).

S27において、プリンタドライバは、ブックレット印刷処理を行う。図4のフローを用いて、ブックレット印刷処理について説明する。   In S27, the printer driver performs booklet printing processing. The booklet printing process will be described using the flow of FIG.

S81において、プリンタドライバは、分割イメージデータを分割印刷領域に割り付ける際に、分割イメージデータのサイズが分割印刷領域に収まるサイズとされているか否かを判断する。分割印刷領域とは、印刷用紙を分割して得られる各々の領域のことである。印刷用紙が長方形の形状を有する場合には、長辺の中点を通るように分割することが好ましい。分割イメージデータのサイズが分割印刷領域に収まるサイズではないと判断される場合(S81:NO)には、S83へ進む。S83において、プリンタドライバは、分割イメージデータが分割印刷領域に収まるように、分割イメージデータのサイズを変倍する。そしてS85へ進む。これにより、各種の印刷用紙のサイズに対応して、ブックレット印刷を行うことが可能となる。   In S <b> 81, the printer driver determines whether the size of the divided image data is a size that fits in the divided print area when allocating the divided image data to the divided print area. The divided printing area is each area obtained by dividing the printing paper. When the printing paper has a rectangular shape, it is preferable to divide the printing paper so that it passes through the midpoint of the long side. If it is determined that the size of the divided image data does not fit in the divided print area (S81: NO), the process proceeds to S83. In S83, the printer driver changes the size of the divided image data so that the divided image data fits in the divided print area. Then, the process proceeds to S85. As a result, booklet printing can be performed corresponding to the sizes of various printing papers.

一方、S81において、分割イメージデータのサイズが分割印刷領域に収まるサイズであると判断される場合(S81:YES)には、S83に進むことなく、S85へ進む。   On the other hand, if it is determined in S81 that the size of the divided image data is a size that fits in the divided print area (S81: YES), the process proceeds to S85 without proceeding to S83.

S85において、プリンタドライバは、分割イメージデータの割り付けの組み合わせを決定する。割り付けの組み合わせでは、分割イメージデータのページ順の先頭の分割イメージデータと、最後尾の分割イメージデータとが組み合わされる。また、分割イメージデータのページ順の先頭から2番目の分割イメージデータと、最後尾から2番目の分割イメージデータとが組み合わされる。そして、この手順が繰り返されることによって、2Nページ分の全ての分割イメージデータについて、組み合わせが決定される。   In S85, the printer driver determines a combination of allocation of the divided image data. In the allocation combination, the first divided image data in the page order of the divided image data and the last divided image data are combined. Further, the second divided image data from the top in the page order of the divided image data and the second divided image data from the tail are combined. Then, by repeating this procedure, combinations are determined for all the divided image data for 2N pages.

S87において、プリンタドライバは、印刷の向きや、綴じ方向や、プリンタ出力のスタックの方法がフェイスアップかフェイスダウンかに基づいて、分割印刷領域への分割イメージデータの割り付け方法を決定する。フェイスアップは、印刷面を上向きにして積み重ねるように印刷用紙を出力する方法である。フェイスアップが用いられるプリンタの例としては、インクジェットプリンタなどが挙げられる。また、フェイスダウンは、印刷面を下向きにして積み重ねるように印刷用紙を出力する方法である。フェイスダウンが用いられるプリンタの例としては、レーザプリンタなどが挙げられる。   In step S87, the printer driver determines a method for allocating the divided image data to the divided print area based on the printing direction, the binding direction, and whether the stacking method of the printer output is face up or face down. Face-up is a method of outputting printing paper so that the printing surfaces are stacked upward. An example of a printer using face-up is an ink jet printer. The face-down is a method for outputting printing sheets so that the printing surfaces are stacked downward. Examples of printers that use face-down include laser printers.

S87で決定される割り付け方法には、イメージデータの向き、綴じ方向、およびプリンタ出力方法の組合せに応じて、8種類が存在する。8種類の割り付け方法の例について、図8(A)ないし(H)に示す。図8は、分割イメージデータの1ページ目、2ページ目、最終ページから1ページ前の(2N−1)ページ目、最終ページである2Nページ目、の4つのページについて、1枚の印刷用紙の両面に割り付ける方法を示した図である。   There are eight types of allocation methods determined in S87 depending on the combination of image data orientation, binding direction, and printer output method. Examples of eight allocation methods are shown in FIGS. 8A to 8H. FIG. 8 shows one sheet of printing paper for the four pages of the first page, the second page, the (2N-1) page one page before the last page, and the 2N page which is the last page of the divided image data. It is the figure which showed the method of allocating to both surfaces.

本実施形態の図6の例では、イメージデータが横向き、綴じ方向が左綴じ、プリンタ出力方法がフェイスアップであるため、図8(A)の割り付け方法に該当する。また、本実施形態の図7の例では、イメージデータが横向き、綴じ方向が右綴じ、プリンタ出力方法がフェイスアップであるため、図8(B)の割り付け方法に該当する。   In the example of FIG. 6 of the present embodiment, the image data is in the horizontal direction, the binding direction is in the left direction, and the printer output method is face up, which corresponds to the allocation method in FIG. In the example of FIG. 7 of the present embodiment, the image data is in landscape orientation, the binding direction is in right binding, and the printer output method is face-up, which corresponds to the allocation method in FIG.

S91において、プリンタドライバは、決定した割り付けの組み合わせと割り付け方法に従って、1枚の印刷用紙の両面に対して分割イメージデータの割り付け処理を行う。初回の割り付け処理では、分割イメージデータの1ページ目と(2N)ページ目が印刷用紙の一方の面に割り付けられ、分割イメージデータの2ページ目と(2N−1)ページ目が印刷用紙の他方の面に割り付けられる。そしてS93へ進む。ここでPは自然数の変数であり、Pの値の範囲は1≦P≦Nとされる。   In step S91, the printer driver performs divided image data assignment processing on both sides of one print sheet according to the determined assignment combination and assignment method. In the first allocation process, the first page and (2N) page of the divided image data are allocated to one side of the printing paper, and the second page and (2N-1) page of the divided image data are assigned to the other side of the printing paper. Assigned to the face. Then, the process proceeds to S93. Here, P is a natural number variable, and the range of the value of P is 1 ≦ P ≦ N.

S93においてプリンタドライバは、S91での割り付け結果に基づいて、プリンタ10に対して、印刷用紙の両面に計4ページ分の分割イメージデータを印刷させる。   In S93, the printer driver causes the printer 10 to print a total of four pages of divided image data on both sides of the printing paper based on the allocation result in S91.

S95に進むと、プリンタドライバは、印刷の終了条件を満たすか否かを判断する。終了条件は、分割イメージデータのPページ目が、分割総ページ数2Nを2で割った値より大きい場合に、終了条件を満たすと判断される。すなわち、分割イメージデータを1ページ目から順番に割り付け、分割総ページ数2Nの丁度半分の分割イメージデータまで割り付けが行われると、終了条件を満たすと判断される。終了条件を満たす場合(S95:YES)には、ブックレット印刷が終了される。一方、終了条件を満たさない場合(S95:NO)には、S91へ戻る。   In step S95, the printer driver determines whether a print end condition is satisfied. The end condition is determined to satisfy the end condition when the Pth page of the divided image data is larger than the value obtained by dividing the total divided page number 2N by 2. That is, when the divided image data is allocated in order from the first page and the divided image data is allocated up to exactly half of the divided total page number 2N, it is determined that the end condition is satisfied. If the end condition is satisfied (S95: YES), the booklet printing is ended. On the other hand, when the termination condition is not satisfied (S95: NO), the process returns to S91.

S91へ戻ると、プリンタドライバは、分割イメージデータの3ページ目と(2N−2)ページ目を印刷用紙の一方の面に割り付け、4ページ目と(2N−3)ページ目を印刷用紙の他方の面に割り付ける。そしてS93において印刷が行われ、S95において終了条件が再度判断される。   Returning to S91, the printer driver assigns the third page and (2N-2) page of the divided image data to one side of the printing paper, and assigns the fourth page and (2N-3) page to the other side of the printing paper. Assign to the face. Then, printing is performed in S93, and the end condition is determined again in S95.

このように、分割イメージデータの先頭側から2ページずつと、最後尾側から2ページずつを割り付けて印刷を行う処理を、終了条件を満たすまで繰り返すことで、全ての分割イメージデータについて割り付けおよび印刷が行われる。   In this way, by assigning and printing two pages from the beginning of the divided image data and two pages from the last side, printing is repeated until the end condition is satisfied, thereby assigning and printing all the divided image data. Is done.

本実施形態の図6(A)の例(イメージデータが横向き、綴じ方向が左綴じ、プリンタ出力方法がフェイスアップ)では、図6(B)に示すように割り付けおよび印刷が行われる。また、本実施形態の図7(A)の例(イメージデータが横向き、綴じ方向が右綴じ、プリンタ出力方法がフェイスアップ)では、図7(B)に示すように割り付けおよび印刷が行われる。   In the example of FIG. 6A according to the present embodiment (image data is landscape orientation, binding direction is left binding, and the printer output method is face-up), allocation and printing are performed as shown in FIG. 6B. Further, in the example of FIG. 7A of the present embodiment (image data is landscape orientation, the binding direction is right binding, and the printer output method is face-up), allocation and printing are performed as shown in FIG. 7B.

本実施形態に係る発明の効果を説明する。本実施形態に係るプリンタドライバでは、イメージデータの各々を分割して分割イメージデータを生成する。そして、1ページ目のイメージデータを分割して得られた2つの分割イメージデータのうち、小冊子の裏側の表紙に対応する分割イメージデータを、分割イメージデータのページ順の最後尾へ移動させる第1並び替え処理を行う。これにより、1枚の印刷用紙に2ページ分のイメージデータを割り付けるブックレット印刷においても、見開きで1ページ分のイメージデータをプリンタ10に印刷させることが可能となる。   The effects of the invention according to this embodiment will be described. In the printer driver according to the present embodiment, each piece of image data is divided to generate divided image data. Of the two divided image data obtained by dividing the image data of the first page, the divided image data corresponding to the cover on the back side of the booklet is moved to the end of the page order of the divided image data. Sorting process is performed. As a result, even in booklet printing in which image data for two pages is assigned to one printing paper, it is possible to cause the printer 10 to print image data for one page with spread.

また、本実施形態に係るプリンタドライバでは、イメージデータが横向きであり小冊子が右綴じである場合や、イメージデータが縦向きであり小冊子が下綴じである場合には、割り付け処理前に第2並び替え処理を行う。第2並び替え処理では、割り付けた時に見開きになる分割イメージデータの組が、それぞれ入れ替えられる。これにより、割り付け処理時において見開きになる組の分割イメージデータが再度入れ替えられる場合においても、小冊子の見開きでのページ数の進行方向と、分割イメージデータのページ数の進行方向とを一致させることができる。よって、小冊子の綴じ方向に関わらず、見開きで1ページ分のイメージデータをプリンタ10に印刷させることが可能となる。   In the printer driver according to the present embodiment, when the image data is in landscape orientation and the booklet is bound right, or when the image data is in portrait orientation and the booklet is bound downward, the second alignment is performed before the layout process. Perform the replacement process. In the second rearrangement process, the sets of divided image data that become spread when assigned are respectively replaced. As a result, even when the divided image data of the set that becomes spread at the time of the allocation process is replaced again, the progress direction of the page number in the booklet spread and the progress direction of the page number of the divided image data can be matched. it can. Therefore, regardless of the binding direction of the booklet, it is possible to cause the printer 10 to print image data for one page in a spread.

また、第2並び替え処理によって予め分割イメージデータの入れ替え処理を行っておくことにより、割り付け手段では特殊な処理を不要とすることができる。よって、通常のブックレット印刷と見開き1ページのブックレット印刷との間で、割り付け手段を共用化できるため、プログラムの構成を簡略化することが可能となる。   In addition, by performing the replacement processing of the divided image data in advance by the second rearrangement processing, it is possible to eliminate the need for special processing in the allocation unit. Therefore, since the allocation means can be shared between normal booklet printing and booklet printing of one spread page, the configuration of the program can be simplified.

以上、本発明の具体例を詳細に説明したが、これらは例示にすぎず、特許請求の範囲を限定するものではない。特許請求の範囲に記載の技術には、以上に例示した具体例を様々に変形、変更したものが含まれる。   Specific examples of the present invention have been described in detail above, but these are merely examples and do not limit the scope of the claims. The technology described in the claims includes various modifications and changes of the specific examples illustrated above.

プリンタ10が有する機能は印刷機能に限られず、スキャナ機能、コピー機能、FAX機能等を有していてもよい。   The function of the printer 10 is not limited to the printing function, and may have a scanner function, a copy function, a FAX function, and the like.

また、本明細書または図面に説明した技術要素は、単独であるいは各種の組合せによって技術的有用性を発揮するものであり、出願時請求項記載の組合せに限定されるものではない。また、本明細書または図面に例示した技術は複数目的を同時に達成するものであり、そのうちの一つの目的を達成すること自体で技術的有用性を持つものである。   The technical elements described in this specification or the drawings exhibit technical usefulness alone or in various combinations, and are not limited to the combinations described in the claims at the time of filing. In addition, the technology illustrated in the present specification or the drawings achieves a plurality of objects at the same time, and has technical utility by achieving one of the objects.

なお、プリンタ10は印刷装置の一例、PC20aはコンピュータの一例、である。   The printer 10 is an example of a printing apparatus, and the PC 20a is an example of a computer.

また、S21を実行する制御部は分割手段の一例である。S59、S61を実行する制御部は第1並び替え手段の一例である。S83、S91を実行する制御部は割り付け手段の一例である。S93を実行する制御部は印刷制御手段の一例である。S63を実行する制御部は第2並び替え手段の一例である。S47、S49を実行する制御部はページ数調整手段の一例である。S17、S47を実行する制御部は表紙挿入手段の一例である。   The control unit that executes S21 is an example of a dividing unit. The control unit that executes S59 and S61 is an example of a first rearranging unit. The control unit that executes S83 and S91 is an example of an allocation unit. The control unit that executes S93 is an example of a print control unit. The control unit that executes S63 is an example of a second rearranging unit. The control unit that executes S47 and S49 is an example of a page number adjusting unit. The control unit that executes S17 and S47 is an example of a cover sheet insertion unit.

1 印刷システム
10 プリンタ
20a PC
26 記憶部
N 総ページ数
2N 分割総ページ数
1 Printing System 10 Printer 20a PC
26 Storage N Total number of pages 2N Total number of divided pages

Claims (6)

印刷用紙の両面に各2ページ分の印刷を行い、印刷後の前記印刷用紙を複数枚重ね合わせて2つ折りすることにより小冊子を形成できるブックレット印刷が可能な印刷装置に対して、通信可能に接続されるコンピュータを、
ページ順に並んだNページ分(Nは自然数)のイメージデータの各々について、前記イメージデータを分割して2Nページ分の分割イメージデータを生成する分割手段と、
1ページ目の前記イメージデータを分割して得られた2つの前記分割イメージデータのうち、前記小冊子の裏側の表紙に対応する前記分割イメージデータを、前記分割イメージデータのページ順の最後尾へ移動させる第1並び替え処理を行う第1並び替え手段と、
Pページ目(Pは自然数の変数、1≦P≦N)の前記分割イメージデータと、(2N+1−P)ページ目の前記分割イメージデータとを、前記印刷用紙を分割して得られる分割印刷領域の各々に対して割り付けることで、2Nページ分の全ての分割イメージデータについて割り付け処理を行う割り付け手段と、
前記割り付け手段での割り付け結果に基づいて、前記印刷用紙の両面の各々に2ページ分ずつの前記分割イメージデータを前記印刷装置に印刷させる印刷制御手段と
して機能させるためのプログラム。
Connects to a printing device capable of booklet printing that prints two pages on both sides of the printing paper and forms a booklet by stacking and folding the printed paper into two. Computer
Dividing means for dividing the image data for each of N pages (N is a natural number) of image data arranged in page order to generate divided image data for 2N pages;
Of the two divided image data obtained by dividing the image data of the first page, the divided image data corresponding to the cover on the back side of the booklet is moved to the end of the page order of the divided image data. First sorting means for performing a first sorting process to be performed;
A divided print area obtained by dividing the print sheet into the divided image data of the P-th page (P is a natural number variable, 1 ≦ P ≦ N) and the divided image data of the (2N + 1−P) page. Allocating means for performing allocation processing for all divided image data for 2N pages,
A program for causing the printing apparatus to function as a print control unit that prints the divided image data for two pages on each of both surfaces of the printing paper based on the result of the allocation by the allocation unit.
イメージデータの向きが前記小冊子の見開きにおいて左右方向にページ数が進行する横向きであり、前記小冊子の綴じ方向が前記小冊子の表側の表紙に対して右側が綴じられる右綴じで行われる場合、または、イメージデータの向きが前記小冊子の見開きにおいて上下方向にページ数が進行する縦向きであり、前記小冊子の綴じ方向が前記小冊子の表側の表紙に対して下側が綴じられる下綴じで行われる場合には、
前記第1並び替え処理後において、前記分割イメージデータのページ順の先頭の前記分割イメージデータおよび最後尾の前記分割イメージデータ以外の前記分割イメージデータについて、隣り合う偶数ページと奇数ページの前記分割イメージデータを入れ替える第2並び替え処理を行う第2並び替え手段
として前記コンピュータを機能させることを特徴とする請求項1に記載のプログラム。
When the orientation of the image data is a landscape orientation in which the number of pages advances in the left-right direction in the spread of the booklet, and the binding direction of the booklet is performed by right binding with the right side bound to the front cover of the booklet, or When the orientation of the image data is a vertical orientation in which the number of pages advances in the booklet spread, and the booklet binding direction is performed by bottom binding in which the lower side is bound to the front cover of the booklet. ,
After the first rearrangement process, the divided image data of adjacent even-numbered pages and odd-numbered pages of the divided image data other than the first divided image data in the page order of the divided image data and the last divided image data. The program according to claim 1, wherein the computer is caused to function as a second rearranging unit that performs a second rearrangement process for exchanging data.
前記イメージデータの総ページ数を表すNの値が奇数の時は、前記イメージデータを1ページ分追加するページ数調整手段
として前記コンピュータを機能させることを特徴とする請求項1または請求項2に記載のプログラム。
3. The computer according to claim 1, wherein when the value of N representing the total number of pages of the image data is an odd number, the computer is caused to function as a page number adjusting means for adding the image data for one page. The listed program.
前記小冊子に表紙用のページを挿入する旨の指令を受け付けることに応じて、前記イメージデータのページ順の先頭に表紙用の前記イメージデータを挿入する表紙挿入手段として前記コンピュータを機能させ、
前記ページ数調整手段は、前記表紙挿入手段によって表紙用の前記イメージデータが挿入される設定である場合に、表紙用の前記イメージデータの挿入前において前記イメージデータの総ページ数を表すNの値が偶数となる場合には、表紙用の前記イメージデータを前記イメージデータのページ順の先頭に挿入すると共に、ページ数調整用の前記イメージデータを前記イメージデータのページ順の最後尾に挿入する
ことを特徴とする請求項3に記載のプログラム。
In response to receiving an instruction to insert a cover page into the booklet, the computer functions as a cover insertion unit that inserts the image data for the cover at the top of the page order of the image data,
The page number adjusting unit is a value of N that represents the total number of pages of the image data before inserting the image data for the cover when the image data for the cover is inserted by the cover inserting unit. When the image data is an even number, the image data for the cover is inserted at the beginning of the page order of the image data, and the image data for adjusting the number of pages is inserted at the end of the page order of the image data. The program according to claim 3.
前記小冊子に表紙用のページを挿入する旨の指令を受け付けることに応じて、前記イメージデータのページ順の先頭に表紙用の前記イメージデータを挿入する表紙挿入手段として前記コンピュータを機能させ、
前記ページ数調整手段は、前記表紙挿入手段によって表紙用の前記イメージデータが挿入される設定である場合に、表紙用の前記イメージデータの挿入前において前記イメージデータの総ページ数を表すNの値が奇数となる場合には、表紙用の前記イメージデータを前記イメージデータのページ順の先頭に挿入し、前記表紙挿入手段によって表紙用の前記イメージデータが挿入されない設定である場合に、前記イメージデータの総ページ数を表すNの値が奇数となる場合には、ページ数調整用の前記イメージデータを前記イメージデータのページ順の最後尾に挿入する
ことを特徴とする請求項3に記載のプログラム。
In response to receiving an instruction to insert a cover page into the booklet, the computer functions as a cover insertion unit that inserts the image data for the cover at the top of the page order of the image data,
The page number adjusting unit is a value of N that represents the total number of pages of the image data before inserting the image data for the cover when the image data for the cover is inserted by the cover inserting unit. Is set to an odd number, the image data for the cover is inserted at the top of the page order of the image data and the image data for the cover is not inserted by the cover insert means. 4. The program according to claim 3, wherein, when the value of N representing the total number of pages is an odd number, the image data for adjusting the number of pages is inserted at the end of the page order of the image data. 5. .
前記割り付け手段は、
前記分割イメージデータを前記分割印刷領域に割り付ける際に、前記分割イメージデータが前記分割印刷領域に収まるように前記分割イメージデータのサイズを変倍して割り付ける
ことを特徴とする請求項1ないし請求項5の何れかに記載のプログラム。
The allocating means includes
2. When the divided image data is allocated to the divided printing area, the size of the divided image data is changed and allocated so that the divided image data fits in the divided printing area. 6. The program according to any one of 5.
JP2009157475A 2009-07-02 2009-07-02 Booklet printing program Pending JP2011013930A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2009157475A JP2011013930A (en) 2009-07-02 2009-07-02 Booklet printing program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2009157475A JP2011013930A (en) 2009-07-02 2009-07-02 Booklet printing program

Publications (1)

Publication Number Publication Date
JP2011013930A true JP2011013930A (en) 2011-01-20

Family

ID=43592740

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2009157475A Pending JP2011013930A (en) 2009-07-02 2009-07-02 Booklet printing program

Country Status (1)

Country Link
JP (1) JP2011013930A (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002200814A (en) * 2000-10-31 2002-07-16 Canon Inc Print controller and controlling method
JP2002283644A (en) * 2001-03-22 2002-10-03 Ricoh Co Ltd Printer system

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002200814A (en) * 2000-10-31 2002-07-16 Canon Inc Print controller and controlling method
JP2002283644A (en) * 2001-03-22 2002-10-03 Ricoh Co Ltd Printer system

Similar Documents

Publication Publication Date Title
KR100495293B1 (en) Print control apparatus, printing method, and print control program
EP1986092A2 (en) Information processing apparatus, information processing method, and computer program
US8553241B2 (en) Information processing apparatus, information processing method, and storage medium for generating print data according to an instruction
US20090201534A1 (en) Method for generating simulated insert sheets for a print job
KR20080114586A (en) Information processing apparatus and control method, and computer-readable medium
US20120268792A1 (en) Print processing apparatus, print processing method, and print control program
JP6991108B2 (en) Information processing equipment, programs, and control methods for information processing equipment
JP2010009219A (en) Information processor, information processing method and program
JP7040251B2 (en) Image formation system and program
JP2003162406A (en) Data processing apparatus
JP7025240B2 (en) Print data generator, print data generation method, and print data generation program
JP7240109B2 (en) Information processing device, system, display method and program
JP4849001B2 (en) Image processing apparatus, image forming apparatus, and program
JP2011013930A (en) Booklet printing program
JP2006172306A (en) Device, method for information processing and computer readable program
JP4574652B2 (en) Information processing apparatus and method, and print control program
JP2011013931A (en) Program for booklet printing
CN103129164B (en) Printing control apparatus and control method thereof
JP2012146194A (en) Information processing apparatus, information processing method, and program
US8400669B2 (en) Information processing apparatus and staple attribute setting method
JP7450675B2 (en) Information processing device, program, and control method for information processing device
JP2012146045A (en) Print data editing device and program
JP6766701B2 (en) Imposition printing control program, printing system and imposition printing control method
JP2017134285A (en) Image processor, information processing method and program
JP2021082197A (en) Print control device, print control method, and program

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20111212

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20121204

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20130130

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20130305

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20130702