JP2009164792A - Document processing apparatus and method, and program - Google Patents

Document processing apparatus and method, and program Download PDF

Info

Publication number
JP2009164792A
JP2009164792A JP2007340571A JP2007340571A JP2009164792A JP 2009164792 A JP2009164792 A JP 2009164792A JP 2007340571 A JP2007340571 A JP 2007340571A JP 2007340571 A JP2007340571 A JP 2007340571A JP 2009164792 A JP2009164792 A JP 2009164792A
Authority
JP
Japan
Prior art keywords
document
image data
print
information
setting
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
JP2007340571A
Other languages
Japanese (ja)
Inventor
Hiroshi Kawaguchi
容 川口
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.)
Canon IT Solutions Inc
Original Assignee
Canon IT Solutions Inc
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Canon IT Solutions Inc filed Critical Canon IT Solutions Inc
Priority to JP2007340571A priority Critical patent/JP2009164792A/en
Publication of JP2009164792A publication Critical patent/JP2009164792A/en
Pending legal-status Critical Current

Links

Landscapes

  • Facsimiles In General (AREA)
  • Editing Of Facsimile Originals (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To provide a document processing apparatus which recognizes a fold on a document from a scanned image and holds the recognized fold as print setting information on document data so that the document data may be printed on the basis of the recognized fold. <P>SOLUTION: In the document processing apparatus 100 communicable with a multifunction machine 112 having a scanner 114 which scans the document 113, image data of the scanned document 113 is received from the multifunction machine 112, and paper size and a direction of each page of the received image data are acquired. Then, in order to recognize print fold setting set to the image data of the document, the acquired paper size and the direction are compared with information combining paper size and direction stored in advance. When the paper size and the direction corresponding to the acquired paper size and the direction are included in the information, the print fold setting set to the document 113 is specified as the print fold setting of the image data of the document. Then, the specified print fold setting is registered as the print fold setting of the image data. <P>COPYRIGHT: (C)2009,JPO&INPIT

Description

本発明は、文書処理装置及び方法、並びにプログラムに関し、特に、原稿から読み取られた画像のデータを解析し、当該原稿に施された製本やZ折りに関する後処理の情報を文書設定(印刷設定)として反映させる文書処理装置及び方法、並びにプログラムに関するものである。   The present invention relates to a document processing apparatus, method, and program, and in particular, analyzes data of an image read from a document and sets post-processing information related to bookbinding and Z-folding applied to the document as document settings (print settings). The present invention relates to a document processing apparatus and method, and a program to be reflected.

近年、複合機のデジタル化やプリントオンデマンド化に伴って、オフィス内でも製本印刷やZ折りの印刷物の取り扱いが増えてきている。そのため、製本印刷やZ折りの印刷物を複製するという場面も多くなっている。ところが、ユーザがそれらを複製するには、複合機のコピー機能を使ってページを1枚ずつスキャンして印刷出力し、出力された用紙の順番を適宜並び替え、最後にステイプル留めを施すなどの面倒な作業をしなければならない。また、製本印刷やZ折り印刷そのものをコピー機能単独で実現することは困難である。これらの課題を解決するために、特許文献1のような技術が開示されている。   In recent years, bookbinding printing and Z-folded printed materials are increasing in offices as digital machines become digital and print-on-demand. For this reason, bookbinding printing and Z-folded printed materials are often duplicated. However, in order to copy them, the user scans the pages one by one using the copy function of the multifunction device, prints them out, rearranges the order of the output papers appropriately, and finally staples them. You have to do troublesome work. Further, it is difficult to realize bookbinding printing or Z-fold printing itself with a copy function alone. In order to solve these problems, a technique such as Patent Document 1 is disclosed.

特許文献1に開示された複合機は、原稿のスキャン時に、各ページに製本文書特有の影があるかを認識し、影があると認識した際には、当該原稿が製本文書であると判断する。そして、必要に応じて、ページの表裏や順番を並び替え、製本印刷設定を施して印刷を実施する。これにより、ユーザの作業を介さずに、製本文書を従来通りコピーするだけで、製本文書として出力することができる。
特開2006−245747号公報
The multifunction device disclosed in Patent Document 1 recognizes whether a shadow peculiar to a bookbinding document is present on each page at the time of scanning a document, and determines that the document is a bookbinding document when it recognizes that there is a shadow. To do. Then, if necessary, the front and back sides and the order of the pages are rearranged, and the bookbinding print setting is performed to perform printing. As a result, the bookbinding document can be output as a bookbinding document by simply copying the bookbinding document as usual without involving the user's work.
JP 2006-245747 A

しかしながら、上記従来の技術では、スキャンした原稿が製本文書であると認識するには、スキャン画像に製本跡(影)がついていることが必須条件であるため、パンフレット等の影が発生しない製本文書には対応できない。また、Z折り文書については対応されていない。   However, in the above conventional technique, in order to recognize that the scanned document is a bookbinding document, it is essential that the scanned image has a bookbinding mark (shadow). Can not respond. Also, Z-fold documents are not supported.

また、上記従来の技術では、原稿をスキャンし、スキャンした画像データから該原稿が製本文書であることを認識し、画像データに基づく印刷データに製本印刷設定を反映して出力する処理が一貫して複合機内で行われる。そのため、製本文書として認識した画像データを、一度PC(パーソナルコンピュータ)等に取り込んで、編集したり、PCのアプリケーションで作成されたデータと結合することなどができない。   In addition, in the above conventional technique, a process of scanning a document, recognizing that the document is a bookbinding document from the scanned image data, and outputting the bookbinding print setting in print data based on the image data is consistent. In the multifunction machine. For this reason, image data recognized as a bookbinding document cannot be once imported into a PC (personal computer) or the like to be edited or combined with data created by a PC application.

また、上述した一連の処理が一貫して複合機内で行われることから、出力できる複合機がスキャンを行った複合機に限られる。そのため、例えば、スキャンした製本文書を複写して他のユーザに渡したい場合は、複製された製本文書を渡すことしかできない。   In addition, since the series of processes described above are consistently performed in the multifunction peripheral, the multifunction peripheral that can output is limited to the multifunction peripheral that has performed scanning. Therefore, for example, when a scanned bookbinding document is to be copied and passed to another user, only the copied bookbinding document can be delivered.

本発明は、上記問題に鑑みて成されたものであり、原稿のスキャン画像から当該原稿に施された折りを認識し、その認識した折りを反映して当該原稿データを印刷できるように、認識した折りを当該原稿データの印刷設定情報として保持することができる文書処理装置及び方法、並びにプログラムを提供することを目的とする。   The present invention has been made in view of the above problems, and recognizes a fold applied to a document from a scanned image of the document and recognizes the recognized fold so that the document data can be printed. An object of the present invention is to provide a document processing apparatus and method, and a program that can hold the folded sheet as print setting information of the document data.

上記目的を達成するために、請求項1記載の文書処理装置は、原稿を読み取る読取手段を備える画像処理装置と通信可能な文書処理装置であって、前記読取手段によって読み取られた原稿の画像データを前記画像処理装置から受信する画像データ受信手段と、前記受信した画像データの各ページの用紙サイズと向きを取得する取得手段と、前記原稿の画像データに施された印刷折り設定を認識するために、前記取得手段で取得した用紙サイズ及び向きと、予め記憶されている用紙サイズ及び向きを組合せた情報とを比較する比較手段と、前記比較手段により、前記取得した用紙サイズ及び向きと一致するものが前記情報にあった場合は、当該情報に関連づく印刷折り設定を、前記原稿の画像データの印刷折り設定と特定する印刷折り設定特定手段と、前記印刷折り設定特定手段により特定された印刷折り設定を前記画像データの印刷折り設定として登録する登録手段とを備えることを特徴とする。   In order to achieve the above object, a document processing apparatus according to claim 1 is a document processing apparatus capable of communicating with an image processing apparatus including a reading unit for reading a document, and image data of the document read by the reading unit. For recognizing the print folding setting applied to the image data of the document, image data receiving means for receiving image data from the image processing apparatus, acquisition means for acquiring the paper size and orientation of each page of the received image data In addition, a comparison unit that compares the paper size and orientation acquired by the acquisition unit with information stored in combination with a pre-stored paper size and orientation, and the comparison unit matches the acquired paper size and orientation. If there is something in the information, the print folding setting associated with the information is specified as the print folding setting of the image data of the document. And the step, characterized in that it comprises a registration means for registering the print folding setting specified as a print folding setting of the image data by setting a specific unit the printing folding.

上記目的を達成するために、請求項7記載の文書処理方法は、原稿を読み取る読取手段を備える画像処理装置と通信可能な文書処理装置の文書処理方法であって、
前記読取手段により読み取られた原稿の画像データを前記画像処理装置から受信する画像データ受信工程と、前記受信した画像データの各ページの用紙サイズと向きを取得する取得工程と、前記原稿の画像データに施された印刷折り設定を認識するために、前記取得工程で取得した用紙サイズ及び向きと、予め記憶されている用紙サイズ及び向きを組合せた情報とを比較する比較工程と、前記比較工程により、前記取得した用紙サイズ及び向きと一致するものが前記情報にあった場合は、前記原稿に施された印刷折り設定を、前記原稿の画像データの印刷折り設定と特定する印刷折り設定特定工程と、前記印刷折り設定特定工程で特定された印刷折り設定を前記画像データの印刷折り設定として登録する登録工程とを備えることを特徴とする。
In order to achieve the above object, a document processing method according to claim 7 is a document processing method of a document processing apparatus capable of communicating with an image processing apparatus including a reading unit for reading a document,
An image data receiving step of receiving image data of the original read by the reading means from the image processing device; an acquisition step of acquiring a paper size and orientation of each page of the received image data; and the image data of the original In order to recognize the print folding setting applied to the sheet, the comparison step of comparing the paper size and orientation acquired in the acquisition step with information that is a combination of the pre-stored paper size and orientation, and the comparison step A print fold setting specifying step for specifying a print fold setting applied to the document as a print fold setting of the image data of the document when the information matches the acquired paper size and orientation; A registration step of registering the print folding setting specified in the print folding setting specifying step as the print folding setting of the image data.

上記目的を達成するために、請求項8記載のプログラムは、原稿を読み取る読取手段を備える画像処理装置と通信可能な文書処理装置の文書処理方法をコンピュータに実行させるためのコンピュータに読み取り可能なプログラムであって、前記読取手段により読み取られた原稿の画像データを前記画像処理装置から受信する画像データ受信ステップと、前記受信した画像データの各ページの用紙サイズと向きを取得する取得ステップと、前記原稿の画像データに施された印刷折り設定を認識するために、前記取得ステップで取得した用紙サイズ及び向きと、予め記憶されている用紙サイズ及び向きを組合せた情報とを比較する比較ステップと、前記比較ステップにより、前記取得した用紙サイズ及び向きと一致するものが前記情報にあった場合は、当該情報に関連づく印刷折り設定を、前記原稿の画像データの印刷折り設定と特定する印刷折り設定特定ステップと、前記印刷折り設定特定ステップで特定された印刷折り設定を前記画像データの印刷折り設定として登録する登録ステップとを備えることを特徴とする。   To achieve the above object, a program according to claim 8 is a computer-readable program for causing a computer to execute a document processing method of a document processing apparatus capable of communicating with an image processing apparatus having a reading unit for reading a document. An image data receiving step of receiving image data of a document read by the reading unit from the image processing device, an acquisition step of acquiring a paper size and orientation of each page of the received image data, A comparison step of comparing the paper size and orientation acquired in the acquisition step with information stored in advance in combination with the paper size and orientation in order to recognize the print folding setting applied to the image data of the document; If the information in the comparison step matches the acquired paper size and orientation, Print fold setting specifying step for specifying the print fold setting associated with the information as the print fold setting for the image data of the document, and the print fold setting specified in the print fold setting specifying step for printing the image data. And a registration step of registering as a folding setting.

本発明によれば、原稿のスキャン画像から当該原稿に施された折りを認識し、その認識した折りを反映して当該原稿データを印刷できるように、認識した折りを当該原稿データの印刷設定情報として保持することができる。   According to the present invention, the fold applied to the document is recognized from the scanned image of the document, and the recognized fold is reflected in the print setting information of the document data so that the document data can be printed. Can be held as.

以下、本発明の実施の形態を図面を参照して詳細に説明する。   Hereinafter, embodiments of the present invention will be described in detail with reference to the drawings.

図1は、本発明の実施形態に係る文書処理装置を含む文書処理システムのソフトウェア構成例を示すブロック図である。なお、図示例では、本発明に関わる構成要素のみを記載して、その他の構成要素については省略する。   FIG. 1 is a block diagram illustrating a software configuration example of a document processing system including a document processing apparatus according to an embodiment of the present invention. In the illustrated example, only the components related to the present invention are described, and the other components are omitted.

図1において、文書処理システムは、複写機能やFAX機能、印刷機能等の複数の機能を備える複合機112と、印刷装置としてのプリンタ107と、複合機112やプリンタ107と通信可能なコンピュータ等から成る文書処理装置100とを備える。   In FIG. 1, the document processing system includes a multifunction machine 112 having a plurality of functions such as a copying function, a FAX function, and a printing function, a printer 107 as a printing apparatus, a computer capable of communicating with the multifunction machine 112 and the printer 107, and the like. And a document processing apparatus 100.

複合機112は、製本印刷された印刷物である製本文書やZ折りの印刷物であるZ折り文書、パンフレット等を含む原稿113の読み取りを行うことが可能なスキャナ114と、読み取った原稿の画像を画像データに変換する入力処理部115と、文書処理装置100との間でデータの送受信を行うネットワークI/F116とを備える。ネットワークI/F116は、画像データを文書処理装置100に送信する。   The multifunction machine 112 includes a scanner 114 capable of reading a book 113 including a bookbinding document that is a book-printed print, a Z-fold document that is a Z-fold print, a pamphlet, and the like, and an image of the read document. An input processing unit 115 that converts data into data and a network I / F 116 that transmits and receives data to and from the document processing apparatus 100 are provided. The network I / F 116 transmits image data to the document processing apparatus 100.

文書処理装置100は、一般アプリケーション101と、電子原稿ライタ102と、後述する電子原稿ファイル103と、製本アプリケーション104と、電子原稿デスプーラ105と、プリンタドライバ106と、ホットフォルダ108と、後処理判別アプリケーション109と、編集情報ファイル110と、ネットワークI/F111とを備える。一般アプリケーション101、電子原稿ライタ102、製本アプリケーション104、電子原稿デスプーラ105、プリンタドライバ106、及び後処理判別アプリケーション109は、ソフトウェアモジュールで構成される。ホットフォルダ108は、後述するハードディスク等の外部メモリに確保されたデータ保存領域である。電子原稿ファイル103及び編集情報ファイル110は、外部メモリ等に格納されるデータファイルである。電子原稿ファイルは、図1では一つしか図示されていないが、複数あってもよい。編集情報ファイル110は、製本アプリケーション104で、電子原稿ファイルを編集するための領域である。後述するが、電子原稿ファイルには、原稿ページデータと原稿ページがどのように構成されているのかという情報(印刷設定情報を含む)(図3)と、印刷設定情報をプリンタドライバに送信することのできる形式にしたジョブチケット(図11)を保持する。それぞれ原稿ページデータ、印刷設定情報、ジョブチケットは圧縮して保持している。編集情報ファイルは、原稿の編集時に、編集情報ファイル領域にその編集の対象となる原稿ページデータ、印刷設定情報、ジョブチケットを取得し、それぞれ解凍して、編集を行うための領域である。よって、電子原稿ファイルは、編集時には直接操作されない。編集情報ファイルにおいて、編集されたそれぞれのデータは、再び圧縮され、電子原稿ファイルに格納される。   The document processing apparatus 100 includes a general application 101, an electronic document writer 102, an electronic document file 103 (to be described later), a bookbinding application 104, an electronic document despooler 105, a printer driver 106, a hot folder 108, and a post-processing determination application. 109, an editing information file 110, and a network I / F 111. The general application 101, the electronic document writer 102, the bookbinding application 104, the electronic document despooler 105, the printer driver 106, and the post-processing determination application 109 are configured by software modules. The hot folder 108 is a data storage area secured in an external memory such as a hard disk to be described later. The electronic document file 103 and the editing information file 110 are data files stored in an external memory or the like. Although only one electronic document file is illustrated in FIG. 1, there may be a plurality of electronic document files. The editing information file 110 is an area for editing the electronic document file by the bookbinding application 104. As will be described later, information (including print setting information) (FIG. 3) indicating how the original page data and the original page are structured in the electronic original file, and sending the print setting information to the printer driver. A job ticket (FIG. 11) in a format that can be stored is held. Each of the original page data, the print setting information, and the job ticket is compressed and held. The editing information file is an area for acquiring original page data, print setting information, and job ticket to be edited in the editing information file area, and decompressing them for editing when editing the original. Therefore, the electronic document file is not directly operated during editing. In the editing information file, each edited data is compressed again and stored in the electronic document file.

なお、本実施形態では、それぞれの機能が明瞭になるように、一般アプリケーション101、電子原稿ライタ102、製本アプリケーション104、及び電子原稿デスプーラ105と分離して示しているが、ユーザに提供されるパッケージはこれらに限定されず、これらを組み合わせたアプリケーションやグラフィックエンジンとして提供されてもよい。   In this embodiment, the general application 101, the electronic document writer 102, the bookbinding application 104, and the electronic document despooler 105 are shown separately from each other so that their functions are clear. Is not limited to these, and may be provided as an application or a graphic engine combining them.

文書処理装置100は、複合機112からネットワークI/F111(画像データ受信手段)を介して受信した画像データをホットフォルダ108に格納する。ホットフォルダ108に格納される画像データのファーマットは、PDF、BMP、JPEG、TIFF等の各種フォーマットが考えられるが、どのようなフォーマット形式であっても本発明を適用することができる。   The document processing apparatus 100 stores the image data received from the MFP 112 via the network I / F 111 (image data receiving unit) in the hot folder 108. Various formats such as PDF, BMP, JPEG, and TIFF are conceivable as the format of the image data stored in the hot folder 108, but the present invention can be applied to any format.

後処理判別アプリケーション109は、ホットフォルダ108に格納されている画像データを解析し、当該画像データの元となる原稿が製本文書かZ折り文書かを判別して、画像データの製本またはZ折りに関する印刷設定(後処理)の情報を製本アプリケーション104に送信する。製本アプリケーション104は、受信した後処理情報に基づいて、電子原稿ファイルを編集することができる。   The post-processing determination application 109 analyzes the image data stored in the hot folder 108, determines whether the original document of the image data is a bookbinding document or a Z-fold document, and relates to bookbinding or Z-folding of the image data. The print setting (post-processing) information is transmitted to the bookbinding application 104. The bookbinding application 104 can edit the electronic document file based on the received post-processing information.

電子原稿ライタ102は、ホットフォルダ108に格納された画像データまたは一般アプリケーション101により作成された文書データを、製本アプリケーション104やプリンタドライバ106により処理可能な形式のページ単位の原稿として、詳細な書式をもって表現可能なデータ(ブックファイル)を生成し、電子原稿ファイル103に格納する。電子原稿ファイルは、画像データと、後処理情報を含む印刷設定情報と、印刷設定情報をプリンタドライバに渡すことのできる形式にしたジョブチケットとで構成される。   The electronic manuscript writer 102 uses image data stored in the hot folder 108 or document data created by the general application 101 as a page unit manuscript in a format that can be processed by the bookbinding application 104 or the printer driver 106 with a detailed format. Expressable data (book file) is generated and stored in the electronic document file 103. The electronic document file includes image data, print setting information including post-processing information, and a job ticket in a format that can pass the print setting information to the printer driver.

本実施の形態では、上記のような電子原稿ファイルの形態をとったが、本発明はこの構成に限定されることはなく、原稿ページデータの実体と印刷設定情報を共に保持していればどのような構成をとってもよい。例えば、ページデータの実体にヘッダーとして印刷設定情報を保持してもよいし、あるいは、原稿ページデータに印刷設定情報を埋め込んでもよい。   In the present embodiment, the electronic document file is used as described above. However, the present invention is not limited to this configuration, and any document page data entity and print setting information can be stored. You may take such a structure. For example, the print setting information may be held as a header in the page data entity, or the print setting information may be embedded in the original page data.

このように、電子原稿ファイルに画像データ(原稿ページデータ)と印刷設定が共に保持されるので、つまり、電子原稿ファイルには、原稿ページデータの実体に加え印刷設定を記憶する領域があり、該領域に印刷設定を保持できるので、他ユーザに電子原稿ファイルを渡し、そのユーザが出力する際に、当該ユーザは印刷設定をプリンタドライバのUI上で選択する必要がなくなる。   In this way, both image data (original page data) and print settings are held in the electronic original file. That is, the electronic original file has an area for storing print settings in addition to the actual original page data. Since the print setting can be held in the area, when the electronic document file is transferred to another user and output by the user, the user does not need to select the print setting on the UI of the printer driver.

電子原稿デスプーラ105は、製本アプリケーション104で編集された電子原稿ファイルを印刷する際に、プリンタドライバ106へデータを出力するために使用されるモジュールである。電子原稿デスプーラ105は、後述する文書処理の対象となる電子原稿ファイルを外部メモリ等から読み出し、当該電子原稿ファイルの文書設定に記述された形式で各ページを印刷するために、OS(オペレーティングシステム)の出力モジュールに適合する出力コマンドを生成する。その際に、出力デバイスとして使用されるプリンタ107のプリンタドライバ106がデバイスドライバとして指定される。   The electronic document despooler 105 is a module used to output data to the printer driver 106 when printing an electronic document file edited by the bookbinding application 104. The electronic manuscript despooler 105 reads an electronic manuscript file, which is a target of document processing described later, from an external memory or the like, and prints each page in a format described in the document settings of the electronic manuscript file. Generate an output command that matches the output module. At that time, the printer driver 106 of the printer 107 used as the output device is designated as the device driver.

なお、プリンタ107は複合機であってもよい。また、複合機112は、画像読取機能を有するものであれば、これに限定されず、スキャナ単体であってもよい。   The printer 107 may be a multifunction machine. The multifunction machine 112 is not limited to this as long as it has an image reading function, and may be a single scanner.

図2は、図1の文書処理システムのハードウェア構成例を示すブロック図である。   FIG. 2 is a block diagram illustrating a hardware configuration example of the document processing system of FIG.

図2において、文書処理装置100は、ROM203内のプログラム用ROM或いは外部メモリ211に記憶された文書処理プログラム等に基づいて、図形、イメージ、文字、及び表(表計算等を含む)等が混在した文書処理を実行するCPU201を備える。CPU201は、システムバス204に接続され、後述する各デバイスを総括的に制御する。   In FIG. 2, the document processing apparatus 100 includes a mixture of figures, images, characters, tables (including spreadsheets), etc., based on a program processing program stored in the ROM 203 or a document processing program stored in the external memory 211. The CPU 201 executes the document processing. The CPU 201 is connected to the system bus 204 and comprehensively controls each device described later.

ROM203内のプログラム用ROM或いは外部メモリ211には、CPU201が実行する制御プログラムであるオペレーティングシステムプログラム等が記憶されている。また、ROM203内のフォント用ROM或いは外部メモリ211には、上記文書処理等の実行時に使用されるフォントデータ等が記憶されている。また、ROM203内のデータ用ROM或いは外部メモリ211には、上記文書処理等の実行時に使用される各種データが記憶されている。RAM202は、CPU201の主メモリ、ワークエリア等として機能する。   An operating system program, which is a control program executed by the CPU 201, is stored in the program ROM in the ROM 203 or the external memory 211. Further, the font ROM in the ROM 203 or the external memory 211 stores font data used when executing the document processing or the like. The data ROM in the ROM 203 or the external memory 211 stores various data used when executing the document processing or the like. The RAM 202 functions as a main memory, work area, and the like for the CPU 201.

キーボードコントローラ(KBC)205は、キーボードやポインティングデバイス等で構成される操作装置209からの入力信号を制御する。CRTコントローラ(CRTC)206は、CRTディスプレイや液晶ディスプレイ等で構成される表示装置210の表示を制御する。ディスクコントローラ(DKC)207は、ブートプログラム、各種のアプリケーション、フォントデータ、ユーザファイル、編集ファイル、及び図1のプリンタドライバ106に相当するプリンタ制御コマンド生成プログラム等を記憶するハードディスク(HD)、フロッピー(登録商標)ディスク(FD)等の外部メモリ211とのアクセスを制御する。   A keyboard controller (KBC) 205 controls an input signal from an operation device 209 configured with a keyboard, a pointing device, and the like. A CRT controller (CRTC) 206 controls display on the display device 210 configured by a CRT display, a liquid crystal display, or the like. A disk controller (DKC) 207 stores a boot program, various applications, font data, user files, editing files, a printer control command generation program corresponding to the printer driver 106 in FIG. Controls access to an external memory 211 such as a registered trademark disk (FD).

ネットワークI/F111は、双方向性インターフェース21を介して複合機112に接続されて、複合機112との通信制御処理を実行する。ネットワークコントローラ(NC)212は、ネットワーク(不図示)に接続されて、当該ネットワークに接続された他の機器との通信制御処理を実行する。   The network I / F 111 is connected to the multifunction device 112 via the bidirectional interface 21 and executes communication control processing with the multifunction device 112. A network controller (NC) 212 is connected to a network (not shown), and executes communication control processing with other devices connected to the network.

CPU201は、例えば、RAM202上に設定された表示情報RAM(不図示)へのアウトラインフォントの展開(ラスタライズ)処理を実行し、表示装置210上でのWYSIWYGを可能としている。また、CPU201は、操作装置209へのユーザ操作に応じて、登録された種々のウインドウを表示装置210に表示すると共に、各種データ処理を実行する。ユーザは印刷を実行する際、印刷の設定に関するウインドウを開き、プリンタの設定や、印刷モードの選択を含むプリンタドライバに対する印刷処理方法の設定を行える。   The CPU 201 executes, for example, an outline font rasterization process on a display information RAM (not shown) set on the RAM 202 to enable WYSIWYG on the display device 210. Further, the CPU 201 displays various registered windows on the display device 210 in accordance with a user operation on the operation device 209 and executes various data processing. When executing printing, the user opens a window relating to print settings, and can set the print processing method for the printer driver including printer settings and print mode selection.

複合機112は、CPU312により制御される。CPU312は、ROM313内のプログラム用ROMに記憶された制御プログラム等或いは外部メモリ314に記憶された制御プログラム等に基づいて、システムバス315から印刷部I/F316を介して接続される印刷部(プリンタエンジン)317に出力情報としての画像信号を出力する。ROM313内のフォント用ROMには、上記出力情報を生成する際に使用するフォントデータ等が記憶されている。ROM313内のデータ用ROMには、複合機112がハードディスク等の外部メモリ314を搭載していない場合に、文書処理装置100上で利用される情報等が記憶されている。   The multifunction machine 112 is controlled by the CPU 312. The CPU 312 is connected to a printing unit (printer) connected from the system bus 315 via the printing unit I / F 316 based on a control program stored in the program ROM in the ROM 313 or a control program stored in the external memory 314. Engine) 317 outputs an image signal as output information. The font ROM in the ROM 313 stores font data used for generating the output information. The data ROM in the ROM 313 stores information used on the document processing apparatus 100 when the multi-function peripheral 112 is not equipped with an external memory 314 such as a hard disk.

CPU312は、ネットワークI/F116を介してホストコンピュータとしての文書処理装置100との通信処理が可能となっており、複合機112内の情報等を複合機100に通知することができる。RAM319は、CPU312の主メモリや、ワークエリア等として機能するRAMで、図示しない増設ポートに接続されるオプションRAMによりメモリ容量を拡張することができるように構成されている。なお、RAM319は、出力情報展開領域、環境データ格納領域、NVRAM等に用いられる。   The CPU 312 can communicate with the document processing apparatus 100 as a host computer via the network I / F 116 and can notify the multifunction peripheral 100 of information in the multifunction peripheral 112. The RAM 319 is a RAM that functions as a main memory of the CPU 312, a work area, and the like, and is configured such that the memory capacity can be expanded by an optional RAM connected to an expansion port (not shown). The RAM 319 is used for an output information expansion area, an environment data storage area, NVRAM, and the like.

外部メモリ314は、ハードディスク(HD)、ICカード等で構成される。メモリコントローラ(MC)320は、外部メモリ314へのアクセスを制御する。外部メモリ314は、オプションとして接続され、フォントデータ、エミュレーションプログラム、フォームデータ等を記憶する。また、操作部321は、操作のためのスイッチ及びLED表示器等が配されている操作パネルである。なお、外部メモリ314は1個に限らず、複数個備えられていてもよい。また、内蔵フォントに加えてオプションカード、言語系の異なるプリンタ制御言語を解釈するプログラムを格納した外部メモリを複数接続できるように構成されていてもよい。また、複合機112は、図示しないNVRAMを有し、操作パネル321からのプリンタモード設定情報を記憶するようにしてもよい。   The external memory 314 includes a hard disk (HD), an IC card, and the like. A memory controller (MC) 320 controls access to the external memory 314. The external memory 314 is connected as an option and stores font data, an emulation program, form data, and the like. The operation unit 321 is an operation panel on which switches for operation, LED indicators, and the like are arranged. Note that the number of external memories 314 is not limited to one, and a plurality of external memories 314 may be provided. Further, in addition to the built-in font, a plurality of external memories storing option cards and programs for interpreting printer control languages having different language systems may be connected. The multifunction machine 112 may have an NVRAM (not shown) and store printer mode setting information from the operation panel 321.

次に、製本アプリケーション104で扱うことができるブックファイル形式の電子原稿ファイルについて説明する。電子原稿ファイルは、上述のように、原稿ページデータの実体に加え、印刷設定を記憶する領域があり、該領域に印刷設定を保持できるものである。   Next, a book file format electronic document file that can be handled by the bookbinding application 104 will be described. As described above, the electronic document file has an area for storing print settings in addition to the substance of the original page data, and the print settings can be held in the area.

ブックファイル形式の電子原稿ファイルは、紙媒体の書物を模した3つの階層構造を有する。上位層は「ブック」と呼ばれ、1冊の本を模しており、その本全般に係る属性(印刷設定情報も含む)が定義されている。その下の中間層は、本でいう章に相当し、「章」と呼ばれる。各章についても、章ごとに属性を定義することができる。下位層は「ページ」と呼ばれ、アプリケーションプログラムで定義された各ページに相当する。各ページについてもページごとの属性が定義できる。一つのブックは複数の章を含んでいてよく、また、一つの章は複数のページを含むことができる。   An electronic manuscript file in the book file format has a three-layer structure imitating a paper medium book. The upper layer is called a “book”, imitating one book, and attributes (including print setting information) relating to the book as a whole are defined. The middle layer below it corresponds to the chapter in the book and is called “chapter”. For each chapter, attributes can be defined for each chapter. The lower layer is called “page” and corresponds to each page defined in the application program. Attributes for each page can be defined for each page. One book may include a plurality of chapters, and one chapter may include a plurality of pages.

ブックファイルにおけるブック、章、ページは、それぞれに相当するノードにより示されている。一つのブックファイルは一つのブックを含む。ブック、章は、ブックとしての構造を定義するための概念であるから、定義された属性値と下位層へのリンクとがその実体として含まれる。   Books, chapters, and pages in the book file are indicated by corresponding nodes. One book file contains one book. Since the book and chapter are concepts for defining the structure of the book, the defined attribute values and links to lower layers are included as entities.

ページは、アプリケーションプログラムによって出力されたページごとのデータを実体として有する。そのため、ページは、その属性値のほか、原稿ページの実体(原稿ページデータ)と各原稿ページデータへのリンクを含む。なお、紙媒体等に出力する際の印刷ページは複数の原稿ページを含む場合がある。この構造に関してはリンクによって表示されず、ブック、章、ページ各階層における属性として表示される。   The page has data for each page output by the application program as an entity. Therefore, the page includes an original page entity (original page data) and a link to each original page data in addition to the attribute value. Note that a print page when outputting to a paper medium or the like may include a plurality of document pages. This structure is not displayed by a link but is displayed as an attribute in each hierarchy of a book, chapter, and page.

図3は、ブックファイル形式の電子原稿ファイルの構造を模式的に示した図である。図示では、ブックファイルが1つの完結したブックである必要はないので、「ブック」を「文書」として一般化して記載している。   FIG. 3 is a diagram schematically showing the structure of a book file format electronic document file. In the figure, since the book file does not need to be one complete book, “book” is generalized as “document”.

まず、ブックファイルは、最上位層に文書情報401を持つ。文書情報401は、文書制御情報402、文書設定情報403、章情報リスト404の3つに分けられる。文書制御情報402は、ブックファイルのファイルシステムにおけるパス名などの情報を保持する。文書設定情報403は、ページレイアウトなどのレイアウト情報とステイプルなど印刷装置の機能設定情報を保持し、後述の図4のブックの属性に相当する。章情報リスト404は、文書を構成している章の集合をリスト形式で保持する。章情報リスト404は、章情報405を保持する。   First, the book file has document information 401 at the highest layer. The document information 401 is divided into three items: document control information 402, document setting information 403, and chapter information list 404. The document control information 402 holds information such as a path name in the file system of the book file. The document setting information 403 holds layout information such as page layout and printing apparatus function setting information such as stapling, and corresponds to a book attribute of FIG. The chapter information list 404 holds a set of chapters constituting a document in a list format. The chapter information list 404 holds chapter information 405.

章情報405は、章制御情報406、章設定情報407、ページ情報リスト408の3つに分けられる。章制御情報406は、章の名称などの情報を保持する。章設定情報407は、その章特有のページレイアウトやステイプルの情報を保持し、章の属性に相当する。章ごとに設定情報を持つことで、最初の章は2UPのレイアウト、その他の章は4UPのレイアウトというように、複雑なレイアウトを持った文書を作成することが可能である。ページ情報リスト408は、各章を構成する原稿ページの集合リスト形式で保持している。ページ情報リスト408は、ページ情報データ409を保持する。   The chapter information 405 is divided into three parts: chapter control information 406, chapter setting information 407, and page information list 408. The chapter control information 406 holds information such as a chapter name. The chapter setting information 407 holds page layout information and stapling information unique to the chapter, and corresponds to chapter attributes. By having setting information for each chapter, it is possible to create a document having a complicated layout such that the first chapter has a 2UP layout and the other chapters have a 4UP layout. The page information list 408 is held in the form of a set list of manuscript pages constituting each chapter. The page information list 408 holds page information data 409.

ページ情報409は、ページ制御情報410、ページ設定情報、ページデータリンク412の3つに分けられる。ページ制御情報410は、ツリー上に表示するページ番号などの情報を保持する。ページ設定情報411は、ページ回転角やページの配置位置情報などの情報を保持し、原稿ページの属性に相当する。ページデータリンク情報412は、ページに対応する原稿データである。図示例では、ページ情報409が直接原稿データを持つのではなく、ページデータリンク情報412だけを持っており、実際の原稿データはページデータリスト413に保持される。   The page information 409 is divided into three pages: page control information 410, page setting information, and page data link 412. The page control information 410 holds information such as page numbers to be displayed on the tree. The page setting information 411 holds information such as page rotation angle and page layout position information, and corresponds to an original page attribute. The page data link information 412 is document data corresponding to a page. In the illustrated example, the page information 409 does not directly have document data, but has only page data link information 412, and actual document data is held in the page data list 413.

図4は、図3の文書設定情報403に相当するブックの属性情報の一例を示す図である。   FIG. 4 is a diagram showing an example of book attribute information corresponding to the document setting information 403 in FIG.

通常、下位層と重複して定義可能な項目に関しては、下位層の属性値が優先採用される。そのため、ブック属性にのみ含まれる項目に関しては、ブック属性に定義された値はブック全体を通して有効な値となる。なお、図示された各項目は、具体的に1項目に対応するのではなく、関連する複数の項目を含むものもある。   Normally, for items that can be defined overlapping with the lower layer, the attribute value of the lower layer is preferentially adopted. Therefore, for items included only in the book attribute, the value defined in the book attribute becomes a valid value throughout the book. Each item illustrated does not specifically correspond to one item, but may include a plurality of related items.

ブック属性に固有の項目は、印刷方法、製本詳細、表紙/裏表紙、インデックス紙、合紙、章区切りの6項目である。これらは、ブックを通して定義される項目である。印刷方法属性としては、片面印刷、両面印刷、製本印刷の3つの値を指定できる。製本印刷とは、別途指定する枚数の用紙を束にして2つ折りにし、その束をつづり合わせることで製本が可能となる形式で印刷する方法である。製本詳細属性は、製本印刷が指定されている場合に、見開き方向や、束になる枚数等が指定できる。   Items unique to the book attributes are six items: printing method, bookbinding details, front / back cover, index paper, slip sheet, and chapter break. These are items defined throughout the book. As the printing method attribute, three values of single-sided printing, double-sided printing, and bookbinding printing can be designated. Bookbinding printing is a method of printing in a format that enables bookbinding by bundling a separately designated number of sheets into two and folding the bundle. The bookbinding details attribute can specify the spread direction, the number of sheets to be bundled, and the like when bookbinding printing is designated.

表紙/裏表紙属性は、ブックとしてまとめられる電子原稿ファイルを印刷する際に、表紙及び裏表紙となる用紙を付加することの指定、及び付加した用紙への印刷内容の指定を含む。インデックス紙属性は、章の区切りとして、印刷装置に別途用意される耳付きのインデックス紙の挿入の指定及びインデックス(耳)部分への印刷内容の指定を含む。この属性は、印刷用紙とは別に用意された用紙を所望の位置に挿入するインサート機能を持ったインサータが使用する印刷装置に備えられている場合か、或いは、複数の給紙カセットを使用可能である場合に有効となる。これは合紙属性についても同様である。   The front cover / back cover attribute includes designation of adding sheets as a front cover and a back cover when printing an electronic document file to be collected as a book, and designation of print contents on the added sheet. The index sheet attribute includes designation of insertion of index sheets with ears separately prepared in the printing apparatus as chapter breaks and designation of print contents in the index (ear) portion. This attribute can be used when a printing device used by an inserter having an insert function for inserting a sheet prepared separately from a printing sheet into a desired position, or a plurality of paper cassettes can be used. Effective in some cases. The same applies to the slip sheet attribute.

合紙属性は、章の区切りとして、インサータから或いは給紙カセットから供給される用紙の挿入の指定、及び、合紙を挿入する場合には、給紙元の指定などを含む。章区切り属性は、章の区切り目において、新たな用紙を使用するか、新たな印刷ページを使用するか、特に何もしないか等の指定を含む。片面印刷時には新たな用紙の使用と新たな印刷ページの使用とは同じ意味を持つ。両面印刷時には、「新たな用紙の使用」を指定すれば連続する章が1枚の用紙に印刷されることはないが、「新たな印刷ページの使用」を指定すれば、連続する章が1枚の用紙の表裏に印刷されることがあり得る。   The slip sheet attribute includes designation of insertion of a sheet supplied from an inserter or a sheet feed cassette as a chapter break, and designation of a sheet feed source when a slip sheet is inserted. The chapter break attribute includes designation of whether to use a new sheet, use a new print page, or do nothing in particular at the chapter break. During single-sided printing, the use of new paper and the use of a new print page have the same meaning. In double-sided printing, if “use new paper” is specified, consecutive chapters will not be printed on one sheet, but if “use new print page” is specified, 1 successive chapter will be printed. It may be printed on the front and back of a sheet of paper.

本実施の形態では、電子原稿ファイルは、図3のブックファイルに加え、図11の印刷設定情報をプリンタドライバに送信することのできる形式にしたジョブチケットも保持している。   In the present embodiment, the electronic document file holds a job ticket in a format in which the print setting information in FIG. 11 can be transmitted to the printer driver in addition to the book file in FIG.

次に、複合機112で原稿113から読み取った画像データを文書処理装置100に転送し、文書処理装置100にて、原稿113に施された製本及びZ折りに関する後処理を当該画像データから認識し、この後処理の情報を画像データに基づいて生成される電子原稿ファイルの文書設定に反映させる文書処理について説明する。   Next, the image data read from the original 113 by the multifunction machine 112 is transferred to the document processing apparatus 100, and the document processing apparatus 100 recognizes the post-processing relating to bookbinding and Z-folding applied to the original 113 from the image data. The document processing for reflecting the post-processing information in the document setting of the electronic document file generated based on the image data will be described.

図5は、図1の文書処理システムにおける文書処理の一例を示すフローチャートである。本処理では、原稿を電子化する際に、当該原稿113の画像データから製本及びZ折りに関する後処理情報(出力体裁設定の情報)を認識し、認識した後処理情報を編集情報ファイルの文書設定に反映させて、電子原稿ファイルの当該文書設定における後処理情報に基づく印刷処理が行われる。   FIG. 5 is a flowchart showing an example of document processing in the document processing system of FIG. In this processing, when the original is digitized, post-processing information (output format setting information) relating to bookbinding and Z-folding is recognized from the image data of the original 113, and the recognized post-processing information is set in the document setting of the editing information file. As a result, print processing based on post-processing information in the document setting of the electronic document file is performed.

まず、ステップS1801において、複合機112は、読み取り台(不図示)にセットされた原稿113をスキャナ114により読み取り、入力処理部115で画像データに変換する。次に、ステップS1802では、複合機112は、画像データをネットワークI/F116から画像処理装置100内のネットワークI/F111を介して文書処理装置100に転送する。文書処理装置100は、受信した画像データをホットフォルダ108に格納する。   First, in step S <b> 1801, the multi-function peripheral 112 reads a document 113 set on a reading table (not shown) by a scanner 114 and converts it into image data by an input processing unit 115. In step S <b> 1802, the multifunction peripheral 112 transfers the image data from the network I / F 116 to the document processing apparatus 100 via the network I / F 111 in the image processing apparatus 100. The document processing apparatus 100 stores the received image data in the hot folder 108.

次に、ステップS1803では、文書処理装置100は、後処理判別アプリケーション109の後処理自動認識処理を実行することにより、ホットフォルダ108内の画像データから電子原稿ファイルを生成し、原稿113に施された製本及びZ折りに関する後処理を認識し、この後処理情報を編集情報ファイル110に保存する。   In step S1803, the document processing apparatus 100 generates an electronic document file from the image data in the hot folder 108 by executing a post-processing automatic recognition process of the post-processing determination application 109, and applies it to the document 113. Recognize post-processing related to bookbinding and Z-folding, and store the post-processing information in the editing information file 110.

次に、ステップS1804では、文書処理装置100は、製本アプリケーション104により、図6または図7に示すような電子原稿ファイルを編集するためのユーザーインターフェース(UI)画面701,801を表示装置210に表示し、電子原稿ファイルを編集する(編集処理)。この編集処理は、本実施の形態においては、編集の対象となる電子原稿ファイルのデータを解凍して、編集情報ファイルに該データを取得し、編集情報ファイルの領域で編集を行い、編集された該データを再び圧縮し、電子原稿ファイルに格納するという構成をとっている。次に、文書処理装置100は、ユーザからの印刷命令に応じて(ステップS1805)、電子原稿デスプーラ105で出力コマンドを生成し(ステップS1806)、プリンタドライバ106に出力する。プリンタドライバ106は、デバイスコマンドを生成して(ステップS1807)、プリンタ107に出力し、プリンタ107で当該コマンドに応じた印刷処理が実行される。   In step S1804, the document processing apparatus 100 causes the bookbinding application 104 to display user interface (UI) screens 701 and 801 for editing an electronic document file as illustrated in FIG. Then, the electronic manuscript file is edited (editing process). In this embodiment, in this embodiment, the data of the electronic manuscript file to be edited is decompressed, the data is acquired in the editing information file, edited in the editing information file area, and edited. The data is compressed again and stored in an electronic document file. Next, in response to a print command from the user (step S1805), the document processing apparatus 100 generates an output command by the electronic document despooler 105 (step S1806) and outputs the output command to the printer driver 106. The printer driver 106 generates a device command (step S1807), outputs the device command to the printer 107, and the printer 107 executes print processing according to the command.

図8は、図5のステップS1803における後処理自動認識処理の詳細を示すフローチャートである。本処理は、文書処理装置100内のホットフォルダ108に格納された画像データにおけるページの用紙サイズや向きを解析して、後処理情報の内容を電子原稿ファイルの文書設定に反映させる(印刷折り設定特定)処理である。本処理は、予め設定されたスケジュールに基づいて一定の間隔をおいて実行される。   FIG. 8 is a flowchart showing details of the post-processing automatic recognition processing in step S1803 of FIG. In this processing, the paper size and orientation of the page in the image data stored in the hot folder 108 in the document processing apparatus 100 are analyzed, and the contents of the post-processing information are reflected in the document settings of the electronic manuscript file (print folding setting). Specific) process. This process is executed at regular intervals based on a preset schedule.

まず、ステップS501において、文書処理装置100内のCPU201は、後処理判別アプリケーション109によりホットフォルダ108内の画像データの有無を確認する。次に、ステップS502では、CPU201は、ホットフォルダ108内に画像データが存在するか否かを判断し、画像データが存在しない場合は(ステップS502−No)、本処理を終了する。一方、ホットフォルダ108内に画像データが存在する場合は(ステップS502−Yes)、CPU201は、画像データの総ページ数を取得する(ステップS503)。総ページ数は、後述するステップS505の製本文書チェック処理において、画像データの「先頭ページ」、「最終ページ」、「中間ページ」を区別するために必要である。   First, in step S <b> 501, the CPU 201 in the document processing apparatus 100 checks the presence / absence of image data in the hot folder 108 by the post-processing determination application 109. Next, in step S502, the CPU 201 determines whether there is image data in the hot folder 108. If no image data exists (step S502-No), the process is terminated. On the other hand, when image data exists in the hot folder 108 (step S502—Yes), the CPU 201 acquires the total number of pages of the image data (step S503). The total number of pages is necessary to distinguish between “first page”, “last page”, and “intermediate page” of image data in the bookbinding document check process in step S505 described later.

ステップS504では、CPU201は、画像データの属性情報として各ページのサイズ及び向きを取得する。ページの向きは当該ページの縦と横の比から判断される。その後、CPU201は、製本文書チェック処理を行い(ステップS505)、原稿113が製本文書かすなわち画像データの元となる原稿が製本文書かを判断する(ステップS506)。   In step S504, the CPU 201 acquires the size and orientation of each page as image data attribute information. The page orientation is determined from the ratio of the vertical and horizontal dimensions of the page. Thereafter, the CPU 201 performs a bookbinding document check process (step S505), and determines whether the document 113 is a bookbinding document, that is, whether the document that is the source of the image data is a bookbinding document (step S506).

ステップS506において、画像データの元となる原稿が製本文書であった場合は(ステップS506−Yes)、CPU201は、ステップS509へ移行する。一方、画像データの元となる原稿が製本文書でなかった場合は(ステップS506−No)、CPU201は、Z折り文書チェック処理を行い(ステップS507)、原稿113がZ折り文書すなわち画像データの元となる原稿がZ折り文書かを判断する(ステップS508)。   In step S506, if the original document that is the source of the image data is a bookbinding document (step S506-Yes), the CPU 201 proceeds to step S509. On the other hand, if the document from which the image data is based is not a bookbinding document (step S506-No), the CPU 201 performs a Z-fold document check process (step S507), and the document 113 is a Z-fold document, that is, an image data source. It is determined whether the original to be a Z-folded document (step S508).

ステップS508において、画像データの元となる原稿がZ折り文書であった場合は(ステップS508−Yes)、ステップS509へ移行する。一方、画像データの元となる原稿がZ折り文書でなかった場合は(ステップS508−No)、本処理を終了する。   If it is determined in step S508 that the original document that is the source of the image data is a Z-folded document (step S508—Yes), the process proceeds to step S509. On the other hand, if the original document that is the source of the image data is not a Z-folded document (step S508—No), this process ends.

ステップS509では、CPU201は、図9に示すような、画像データから認識された製本またはZ折りという後処理情報を電子原稿ファイル(ドキュメント)の文書設定に反映するか否かをユーザに選択させるためのダイアログ601を表示装置210に表示する(受付手段)。ユーザはダイアログ601上で「する」または「しない」のいずれかを選択することができる。   In step S509, the CPU 201 causes the user to select whether post-processing information such as bookbinding or Z-folding recognized from the image data is reflected in the document settings of the electronic document file (document) as shown in FIG. Is displayed on the display device 210 (accepting means). The user can select either “Yes” or “No” on the dialog 601.

ダイアログ601上で「しない」が選択されると、電子原稿ファイルの文書設定に後処理情報を反映しないと判断して(ステップS509−No)、本処理を終了する。一方、ダイアログ601上で「する」が選択されると、文書設定に後処理情報を反映すると判断して(ステップS509−Yes)、CPU201は、製本アプリケーション104により、文書設定に反映した後処理情報が出力デバイスとして使用されるプリンタ107に適合するか否か、すなわち後処理情報を反映した画像データを印刷可能か否かを判断する(ステップS510)。この判断処理の詳細については図10を用いて後述する。   If “No” is selected on the dialog 601, it is determined that post-processing information is not reflected in the document setting of the electronic document file (step S 509 -No), and this processing is terminated. On the other hand, when “Yes” is selected on the dialog 601, it is determined that the post-processing information is reflected in the document setting (Yes in step S 509), and the CPU 201 causes the bookbinding application 104 to reflect the post-processing information reflected in the document setting. Is compatible with the printer 107 used as an output device, that is, whether image data reflecting post-processing information can be printed is determined (step S510). Details of this determination processing will be described later with reference to FIG.

ステップS510において、文書設定に反映する後処理情報が出力デバイスとして使用されるプリンタ107に適合しない場合は(ステップS510−No)、本処理を終了する。一方、適合する場合は(ステップS510−Yes)、この後処理情報を編集情報ファイル110に保存し、(ステップS511)、本処理を終了する。   In step S510, when the post-processing information reflected in the document setting is not compatible with the printer 107 used as the output device (No in step S510), this process is terminated. On the other hand, if it matches (step S510-Yes), this post-processing information is saved in the editing information file 110 (step S511), and this processing is terminated.

図8のステップS509のように、処理途中においてダイアログ601によりユーザに選択を求める構成だけに限らず、処理の開始前に、例えば、ホットフォルダ108から画像データを読み取る際に、ダイアログ601を表示して後処理情報を電子原稿ファイルの文書設定に反映するか否かを予め選択できるように構成してもよい。   As shown in step S509 in FIG. 8, the configuration is not limited to the configuration in which the user requests selection by the dialog 601 in the middle of processing. For example, when reading image data from the hot folder 108, the dialog 601 is displayed before the processing starts. The post-processing information may be configured to be selected in advance as to whether to reflect the post-processing information in the document settings of the electronic document file.

図10は、図8のステップS510における出力デバイスの適合性判断処理の詳細を示すフローチャートである。   FIG. 10 is a flowchart showing details of output device suitability determination processing in step S510 of FIG.

まず、ステップS1501において、CPU201は、出力デバイス(出力先)として設定されているプリンタ107の出力機能に関する情報をプリンタドライバ106より取得する。次に、CPU201は、取得した出力機能に関する情報により、文書設定に後処理情報を反映した電子原稿ファイルの印刷出力がその出力デバイスで可能か否かを判断する。そして、文書設定に後処理情報を反映した電子原稿ファイルの印刷出力ができない場合は(ステップS1502−No)、戻り値を「出力デバイスは不適合」(ステップS1504)として、本処理を終了する。一方、文書設定に後処理情報が反映された電子原稿ファイルの印刷出力が可能な場合(ステップS1502−Yes)、戻り値を「出力デバイスは適合」(ステップS1503)として、図8のステップS511で説明したように、後処理情報を文書設定に反映して編集情報ファイルに保存して、本処理を終了する。   First, in step S <b> 1501, the CPU 201 acquires, from the printer driver 106, information related to the output function of the printer 107 set as an output device (output destination). Next, the CPU 201 determines whether or not the output device can print out an electronic document file in which post-processing information is reflected in the document setting, based on the acquired information regarding the output function. If the electronic original file reflecting post-processing information cannot be printed in the document settings (step S1502-No), the return value is “non-conforming to the output device” (step S1504), and the process is terminated. On the other hand, if it is possible to print out the electronic document file in which the post-processing information is reflected in the document setting (step S1502-Yes), the return value is “conforming to the output device” (step S1503), and in step S511 of FIG. As described above, the post-processing information is reflected in the document settings and saved in the editing information file, and this processing is terminated.

なお、上述の実施形態では、複合機112で原稿113を読み取って得られた画像データを文書処理の対象としているが、これに限るものではなく、他のアプリケーションが生成したファイルをホットフォルダ108に転送して格納し、上述した処理を行う構成であってもよい。   In the above-described embodiment, the image data obtained by reading the document 113 with the multifunction machine 112 is the target of document processing. However, the present invention is not limited to this, and files generated by other applications are stored in the hot folder 108. It may be configured to transfer and store and perform the above-described processing.

複合機112により読み取られた原稿113の画像データは、文書処理装置100内のホットフォルダ108に格納される。ホットフォルダ108に格納された画像データは、後処理判別アプリケーション109を介して電子原稿ライタ102に入力される。そして、ページの向きや製本文書設定等の後処理の判定を行う旨が、電子原稿ライタ102を介して若しくは直接、製本アプリケーション104に入力される。   The image data of the document 113 read by the multifunction machine 112 is stored in the hot folder 108 in the document processing apparatus 100. The image data stored in the hot folder 108 is input to the electronic document writer 102 via the post-processing determination application 109. Then, to the effect that post-processing determination such as page orientation and bookbinding document setting is to be performed is input to the bookbinding application 104 via the electronic document writer 102 or directly.

電子原稿ライタ102は、入力された画像データからページごとにブックファイル形式の電子原稿ファイルを生成し、電子原稿ファイル103に格納する。その際、電子原稿ファイル103には、後述するジョブチケットと呼ばれる、印刷設定情報をプリンタドライバに送信することのできる形式にしたデータも格納される。後処理情報を文書設定に反映させるとは、編集情報ファイルで編集された後、編集されたデータを圧縮して電子原稿ファイルへ格納することであり、結果的に図3で示したブックファイルにおける文書設定情報403に後処理情報を登録するということになる。   The electronic document writer 102 generates a book file format electronic document file for each page from the input image data, and stores the generated electronic document file in the electronic document file 103. At that time, the electronic document file 103 also stores data called a job ticket, which will be described later, in a format that can send print setting information to the printer driver. Reflecting the post-processing information in the document setting means that after being edited in the editing information file, the edited data is compressed and stored in the electronic manuscript file. As a result, in the book file shown in FIG. This means that post-processing information is registered in the document setting information 403.

ジョブチケットは、原稿ページを最小単位として、所定のデータ構造を有するデータである。ジョブチケットには、用紙上における原稿ページのレイアウトが定義されている。ジョブチケットは1ジョブにつき1つ発行される。本実施の形態では電子原稿ファイル103に記憶されている。   The job ticket is data having a predetermined data structure with a manuscript page as a minimum unit. The job ticket defines the layout of the original page on the paper. One job ticket is issued per job. In the present embodiment, the electronic document file 103 is stored.

ジョブチケットの最上位にはドキュメントというノードがあり、文書全体の属性、例えば両面印刷/片面印刷などが定義されている。その下には、用紙ノードが属し、用いるべき用紙の識別子や、プリンタにおける給紙口の指定などの属性が含まれる。各用紙ノードには、その用紙で印刷されるシートのノードが属する。1シートは1枚の用紙に相当する。各シートには、印刷ページ(物理ページ)が属する。片面印刷ならば1シートには1物理ページが属し、両面印刷ならば1シートに2物理ページが属する。各物理ページには、その上に配置される原稿ページが属する。また、物理ページの属性として、原稿ページのレイアウトが含まれる。   At the top of the job ticket, there is a node called “document”, and attributes of the entire document, such as double-sided printing / single-sided printing, are defined. Below that, a paper node belongs, and includes attributes such as an identifier of a paper to be used and designation of a paper feed port in the printer. Each paper node includes a node of a sheet printed on the paper. One sheet corresponds to one sheet. A print page (physical page) belongs to each sheet. For single-sided printing, one physical page belongs to one sheet, and for double-sided printing, two physical pages belong to one sheet. Each physical page has an original page arranged thereon. Further, the layout of the original page is included as an attribute of the physical page.

図11は、ジョブチケットのデータ構造の一例を示す図である。   FIG. 11 is a diagram illustrating an example of a data structure of a job ticket.

印刷用のデータにおいて、文書は用紙の集合で構成され、各用紙は表、裏の2面で構成され、各面は原稿ページをレイアウトする領域(物理ページ)を持ち、各物理ページは、最小単位である原稿ページの集合で構成される。文書情報1101は、文書に相当するデータで、文書全体に関係するデータと、文書を構成する用紙情報のリストから構成される。用紙情報1102は、用紙サイズなど用紙に関する情報と、用紙上に配置される面情報のリストから構成される。面情報1103は、面に固有のデータと、面上に配置される物理ページのリストから構成される。物理ページ情報1104は、物理ページのサイズやヘッダ・フッタなどの情報と、物理ページを構成する原稿ページのリストから構成される。原稿ページ情報1105は、原稿ページのサイズなどの情報と実際のページデータへのリンク情報から構成される。製本アプリケーション104は、特定された文書設定(印刷折り設定)が反映された電子原稿ファイルの印刷時のレイアウトを表示装置210に表示する。   In printing data, a document is composed of a set of sheets, each sheet is composed of two sides, a front side and a back side, each side has an area (physical page) for laying out a manuscript page, and each physical page is a minimum It consists of a set of manuscript pages that are units. The document information 1101 is data corresponding to a document, and includes data relating to the entire document and a list of paper information constituting the document. The paper information 1102 includes information related to paper such as paper size and a list of surface information arranged on the paper. The surface information 1103 includes data specific to the surface and a list of physical pages arranged on the surface. The physical page information 1104 includes information such as the physical page size and header / footer, and a list of manuscript pages constituting the physical page. The document page information 1105 includes information such as the size of the document page and link information to actual page data. The bookbinding application 104 displays the layout at the time of printing of the electronic document file in which the specified document setting (print folding setting) is reflected on the display device 210.

電子原稿デスプーラ105は、上述のジョブチケットから、出力モジュールへの出力コマンドを生成する。   The electronic document despooler 105 generates an output command to the output module from the above-described job ticket.

次に、図8のステップS505で行われる画像データの元となる原稿が製本文書か否かの判断方法について図12を参照して説明する。   Next, a method for determining whether or not the document that is the source of the image data performed in step S505 in FIG. 8 is a bookbinding document will be described with reference to FIG.

図12は、画像データの元となる原稿が製本文書と判断される用紙サイズと向きの組合せの一例を示す図である。   FIG. 12 is a diagram illustrating an example of a combination of paper size and orientation in which a document that is the source of image data is determined to be a bookbinding document.

本実施形態において、製本文書と判断する基準は、用紙のサイズと向きの組合せである。例えば、図12に示す1601〜1603の組合せは全て製本文書と判断する。   In the present embodiment, the criterion for determining a bookbinding document is a combination of the paper size and orientation. For example, all combinations 1601 to 1603 shown in FIG.

1601の場合:画像データの中間ページ(先頭ページと最終ページ以外のページ)が同一ページサイズで且つ先頭ページと最終ページが中間ページの1/2のサイズの場合は製本文書と判断する。   In the case of 1601: If the intermediate page (pages other than the first page and the last page) of the image data has the same page size and the first page and the last page are ½ the size of the intermediate page, it is determined as a bookbinding document.

1602の場合:画像データが先頭ページを除いて同一ページサイズで且つ先頭ページが他のページの1/2のサイズの場合は、製本文書と判断する。   In the case of 1602: When the image data has the same page size except for the top page and the top page is ½ the size of other pages, it is determined as a bookbinding document.

1603の場合:画像データが最終ページを除いて同一ページサイズで且つ最終ページが他のページの1/2のサイズの場合は、製本文書と判断する。   In the case of 1603: When the image data has the same page size except for the last page and the last page is ½ the size of other pages, it is determined as a bookbinding document.

具体的には、画像データを構成するページの用紙サイズ及び向きを図13に示す用紙サイズマスタ(用紙サイズ表)901と図14に示す用紙向きマスタ(用紙向き表)1001に基づいて数値に置き換え、数値に置き換えられた用紙サイズ及び向きの組合せと一致する組合せが、図15に示す製本ページ組合せマスタ(製本ページ組合せ表)1101に存在する場合は、製本文書と判断する。   Specifically, the paper size and orientation of the pages constituting the image data are replaced with numerical values based on the paper size master (paper size table) 901 shown in FIG. 13 and the paper orientation master (paper orientation table) 1001 shown in FIG. If a combination that matches the combination of the paper size and orientation replaced with numerical values exists in the bookbinding page combination master (bookbinding page combination table) 1101 shown in FIG. 15, it is determined as a bookbinding document.

例えば、図12の1601に示すように、用紙サイズ及び向きが「A4縦、A3横、A3横、A4縦」という組合せだった場合は、先頭ページがA4縦、中間ページがA3横、最終ページがA4縦となるので、「9、8、9、1、2、1」という数値の組合せになる。これが製本ページ組合せマスタ1101に存在することから製本文書と判断される。   For example, as shown by 1601 in FIG. 12, when the paper size and orientation are a combination of “A4 portrait, A3 landscape, A3 landscape, A4 portrait”, the first page is A4 portrait, the middle page is A3 landscape, and the last page Becomes A4 length, so the combination of numerical values is “9, 8, 9, 1, 2, 1”. Since this exists in the bookbinding page combination master 1101, it is determined as a bookbinding document.

同様に、1602に示すように、用紙サイズ及び向きが「A4縦、A3横、A3横」という組合せだった場合は、先頭ページがA4縦、中間ページがA3横、最終ページがA3横となるので、「9、8、8、1、2、2」という数値の組合せになる。これが製本ページ組合せマスタ1101に存在することから製本文書と判断される。   Similarly, as indicated by 1602, if the paper size and orientation are a combination of “A4 portrait, A3 landscape, A3 landscape”, the first page is A4 portrait, the intermediate page is A3 landscape, and the last page is A3 landscape. Therefore, it becomes a combination of numerical values of “9, 8, 8, 1, 2, 2”. Since this exists in the bookbinding page combination master 1101, it is determined as a bookbinding document.

同様に、1603に示すように、用紙サイズ及び向きが「A3横、A3横、A4縦」という組合せだった場合は、先頭ページがA3横、中間ページがA3横、最終ページがA4縦となるので、「8、8、9、2、2、1」という数値の組合せになる。これに一致する数値の組合せが製本ページ組合せマスタ1101に存在することから製本文書と判断される。   Similarly, as indicated by 1603, when the paper size and orientation are “A3 landscape, A3 landscape, A4 portrait”, the first page is A3 landscape, the intermediate page is A3 landscape, and the last page is A4 portrait. Therefore, it becomes a combination of numerical values “8, 8, 9, 2, 2, 1”. Since a combination of numerical values matching this exists in the bookbinding page combination master 1101, it is determined as a bookbinding document.

次に、文書処理装置100内のホットフォルダ108に格納された画像データの元となる原稿が製本文書かをチェックする処理の流れを説明する。   Next, a flow of processing for checking whether a document as a source of image data stored in the hot folder 108 in the document processing apparatus 100 is a bound document will be described.

図16は、図8のステップS505における製本文書チェック処理の詳細を示すフローチャートである。本処理は、CPU201が後処理判別アプリケーション109を実行することにより実現される処理である。   FIG. 16 is a flowchart showing details of the bookbinding document check process in step S505 of FIG. This process is a process realized by the CPU 201 executing the post-processing determination application 109.

まず、ステップS1301において、CPU201は、図8のステップS504で取得した各ページのサイズ及び向きから、中間ページ(先頭ページと最終ページ以外のページ)の用紙サイズ及び向きを取得する。次に、ステップS1302において、CPU201は、取得した中間ページの用紙サイズが全て同一且つ中間ページの向きが同一である場合はステップS1303を実行する。一方、それ以外は、CPU201は、画像データの元となる原稿を通常文書と判断して(ステップS1308)、本処理を終了する。   First, in step S1301, the CPU 201 acquires the paper size and orientation of an intermediate page (a page other than the first page and the last page) from the size and orientation of each page acquired in step S504 of FIG. Next, in step S1302, the CPU 201 executes step S1303 when all of the acquired intermediate page paper sizes are the same and the intermediate page orientations are the same. On the other hand, the CPU 201 determines that the document that is the source of the image data is a normal document (step S1308), and ends this process.

ステップS1303において、CPU201は、先頭ページの用紙サイズ及び向きを取得する。次に、ステップS1304において、CPU201は、最終ページの用紙サイズ及び向きを取得する。用紙サイズ及び向きを取得する際には、CPU201は、上述した用紙サイズマスタ901及び用紙向きマスタ1001を参照し、取得した用紙サイズ及び向きをそれぞれのマスタ901,1001に登録された数値に置き換える。   In step S1303, the CPU 201 acquires the paper size and orientation of the first page. Next, in step S1304, the CPU 201 acquires the paper size and orientation of the last page. When acquiring the paper size and orientation, the CPU 201 refers to the paper size master 901 and the paper orientation master 1001 described above, and replaces the obtained paper size and orientation with numerical values registered in the respective masters 901 and 1001.

全てのページの用紙サイズ及び向きの数値化を終えた後、CPU201は、数値に置き換えられた先頭ページ、中間ページ、最終ページの用紙サイズの組合せと製本ページ組合せマスタ1101とを比較し(ステップS1305)、数値に置き換えられた組合せに一致する組合せがマスタ1101に存在するか否かを判断する(ステップS1306)。この結果、数値に置き換えられた用紙サイズと向きの組合せに一致する組合せがマスタ1101に存在する場合は、CPU201は、画像データの元となる原稿を製本文書と判断する(ステップS1307)。一方、存在しない場合は、画像データの元となる原稿を通常文書と判断する(ステップS1308)。   After the digitization of the paper sizes and orientations of all pages, the CPU 201 compares the combination of the paper sizes of the first page, intermediate page, and last page replaced with the numerical values with the bookbinding page combination master 1101 (step S1305). ), It is determined whether or not there is a combination in the master 1101 that matches the combination replaced with a numerical value (step S1306). As a result, if there is a combination in the master 1101 that matches the combination of the paper size and orientation replaced with numerical values, the CPU 201 determines that the original document that is the source of the image data is a bookbinding document (step S1307). On the other hand, if it does not exist, it is determined that the document that is the source of the image data is a normal document (step S1308).

なお、本実施形態では、1つの製本文書を対象にしているが、これに限定されることなく、複数の製本文書にも対応することが可能である。対応の方法は以下のとおりである。   In the present embodiment, one bookbinding document is targeted. However, the present invention is not limited to this, and a plurality of bookbinding documents can be handled. The correspondence method is as follows.

複数の製本文書をスキャンすると、図15に示す製本ページ組合せマスタ1101に登録されている組合せが連続することとなる。これを文書処理装置100が認識し、複合機112のUI上にその旨を表示してユーザに通知し、製本文書としての製本設定を反映させるか否かを選択させる。そこで、製本設定をすることをユーザが選択した場合、製本設定が反映される。また、ユーザに1つの文書として結合するか否かをUI上で選択させて、結合するとユーザが選択した場合に、スキャンした各製本文書を結合し、1つの文書データと捉えて、製本設定を反映させてもよい。このように、製本文書として認識した画像データをパーソナルコンピュータ等の文書処理装置に取り込んで、画像処理等の編集作業や一般アプリケーションで作成したデータと結合することができる。   When a plurality of bookbinding documents are scanned, the combinations registered in the bookbinding page combination master 1101 shown in FIG. The document processing apparatus 100 recognizes this, displays it on the UI of the multi-function peripheral 112, notifies the user, and selects whether to reflect the bookbinding setting as a bookbinding document. Therefore, when the user selects to make bookbinding settings, the bookbinding settings are reflected. Further, when the user selects on the UI whether or not to combine as one document, and the user selects to combine, the scanned bookbinding documents are combined and regarded as one document data, and the bookbinding setting is set. It may be reflected. In this way, image data recognized as a bookbinding document can be taken into a document processing apparatus such as a personal computer and combined with data created by an editing operation such as image processing or a general application.

次に、画像データの元となる原稿がZ折り文書か否かの判断方法について図17を参照して説明する。   Next, a method for determining whether or not a document as a source of image data is a Z-fold document will be described with reference to FIG.

図17は、画像データの元となる原稿がZ折り文書と判断される用紙サイズと向きの組合せの一例を示す図である。   FIG. 17 is a diagram illustrating an example of a combination of paper size and orientation in which a document as a source of image data is determined to be a Z-fold document.

本実施形態において、Z折り文書と判断する基準は、用紙のサイズと向きの組合せである。例えば、図17に示す1701は、先頭ページの2倍の用紙サイズを有するページが含まれている場合はZ折り文書と判断する(同一サイズであればZ折り文書が1つの文書データ(ジョブ)中に複数存在しても可)。   In the present embodiment, the criterion for determining a Z-fold document is a combination of the paper size and orientation. For example, 1701 shown in FIG. 17 is determined as a Z-folded document when a page having a paper size twice that of the first page is included (if the size is the same, a Z-folded document has one document data (job). It is possible to have more than one inside.)

具体的には、画像データを構成するページの用紙サイズ及び向きを図13に示す用紙サイズマスタ(用紙サイズ表)901と図14に示す用紙向きマスタ(用紙向き表)1001に基づいて数値に置き換え、数値に置き換えられた用紙サイズ及び向きの組合せに一致する組合せが、図18に示すZ折りページ組合せマスタ(Z折りページ組合せ表)1201に存在する場合は、Z折り文書と判断する。   Specifically, the paper size and orientation of the pages constituting the image data are replaced with numerical values based on the paper size master (paper size table) 901 shown in FIG. 13 and the paper orientation master (paper orientation table) 1001 shown in FIG. When a combination that matches the combination of the paper size and orientation replaced with numerical values exists in the Z-fold page combination master (Z-fold page combination table) 1201 shown in FIG. 18, it is determined as a Z-fold document.

例えば、図17の1701に示すように、用紙サイズ及び向きが「A4縦、A3横、A4縦、A4縦、A3横」という組合せだった場合は、用紙サイズ1、用紙向き1、用紙サイズ2、用紙向き2の組合せは「9、1、8、2」という数値の組合せになる。これがZ折りページ組合せマスタ1201に存在することからZ折り文書と判断される。   For example, as indicated by 1701 in FIG. 17, when the paper size and orientation are a combination of “A4 portrait, A3 landscape, A4 portrait, A4 portrait, A3 landscape”, the paper size 1, the paper orientation 1, and the paper size 2 The combination of paper orientation 2 is a numerical combination of “9, 1, 8, 2”. Since this exists in the Z-fold page combination master 1201, it is determined as a Z-fold document.

なお、本実施形態では、片面印刷のZ折り文書について説明したが、Z折りページ組合せマスタ1201に両面印刷のパターンを登録することにより、両面印刷原稿にも対応することが可能である。   In this embodiment, a single-sided printing Z-fold document has been described. However, by registering a double-sided printing pattern in the Z-folding page combination master 1201, it is possible to deal with double-sided printing originals.

次に、文書処理装置100内のホットフォルダ108に格納された画像データの元となる原稿がZ折り文書かをチェックする処理の流れを説明する。   Next, a flow of processing for checking whether a document as a source of image data stored in the hot folder 108 in the document processing apparatus 100 is a Z-fold document will be described.

図19は、図8のステップS507におけるZ折り文書チェック処理の詳細を示すフローチャートである。本処理は、CPU201が後処理判別アプリケーション109を実行することにより実現される処理である。   FIG. 19 is a flowchart showing details of the Z-fold document check process in step S507 of FIG. This process is a process realized by the CPU 201 executing the post-processing determination application 109.

まず、ステップS1401において、CPU201は、図8のステップ504で取得した全ページの用紙サイズ及び向きを取得し、図13に示す用紙サイズマスタ901及び図14に示す用紙向きマスタ1001を参照し、取得した用紙サイズ及び向きをそれぞれのマスタ901,1001に登録された数値に置き換える。次に、ステップS1402において、CPU201は、用紙サイズと向きの組合せが2種類以外の場合は、画像データの元となる原稿を通常文書と判断して(ステップS1405)、本処理を終了する。   First, in step S1401, the CPU 201 acquires the paper sizes and orientations of all pages acquired in step 504 of FIG. 8, and acquires them by referring to the paper size master 901 shown in FIG. 13 and the paper orientation master 1001 shown in FIG. The paper size and orientation are replaced with numerical values registered in the respective masters 901 and 1001. Next, in step S1402, if the combination of the paper size and orientation is not two types, the CPU 201 determines that the document that is the source of the image data is a normal document (step S1405), and ends this processing.

一方、用紙サイズと向きの組合せが2種類の場合、CPU201は、数値に置き換えられた用紙サイズと向きの組合せと図18に示すZ折りページ組合せマスタ1201とを比較し、数値に置き換えられた用紙サイズと向きの組合せがマスタ1201に存在するか否かを判断する(ステップS1403)。この結果、数値に置き換えられた用紙サイズと向きの組合せに一致する数値の組合せがマスタ1201に存在する場合は、CPU201は、画像データの元となる原稿をZ折り文書と判断する(ステップS1404)。一方、存在しない場合は、画像データの元となる原稿を通常文書と判断する(ステップS1405)。   On the other hand, when there are two types of combinations of paper size and orientation, the CPU 201 compares the paper size and orientation combination replaced with numerical values with the Z-fold page combination master 1201 shown in FIG. It is determined whether a combination of size and orientation exists in the master 1201 (step S1403). As a result, if there is a combination of numerical values that matches the combination of the paper size and orientation replaced with the numerical values in the master 1201, the CPU 201 determines that the document that is the source of the image data is a Z-folded document (step S1404). . On the other hand, if it does not exist, it is determined that the document that is the source of the image data is a normal document (step S1405).

以上のように、画像データを構成するページの用紙サイズと向きを解析することで、画像データの元となる原稿の印刷折り設定(体裁)を認識し、特定することができ、製本印刷だけでなく、Z折り印刷など様々な出力体裁の原稿(印刷折り設定の施された原稿)に対応することが可能である。また、スキャン画像に製本跡がなくても、原稿の出力体裁を認識することが可能となる。   As described above, by analyzing the paper size and orientation of the pages that make up the image data, it is possible to recognize and specify the print folding setting (format) of the original document that is the source of the image data, and only by bookbinding printing. In addition, it is possible to deal with documents in various output forms such as Z-fold printing (documents with print folding settings). Further, it is possible to recognize the output format of the original even if there is no bookbinding trace in the scanned image.

上記実施形態によれば、製本文書やZ折り文書、パンフレット等を含む原稿を電子化する際、当該原稿に設定されていた後処理情報(印刷折り設定)を、当該原稿を電子化した電子原稿ファイルの文書設定へ反映することが可能になる。これにより、原稿の画像を読み取ってからユーザが手作業で個別の印刷折り設定を含む印刷設定を行うという負担が不要になる。   According to the above embodiment, when digitizing a manuscript including a bookbinding document, a Z-fold document, a pamphlet, etc., post-processing information (print folding setting) set for the manuscript is converted into an electronic manuscript obtained by digitizing the manuscript. It becomes possible to reflect in the document settings of the file. This eliminates the burden of the user manually performing print settings including individual print folding settings after reading the document image.

本実施の形態では、編集情報ファイルという、製本アプリケ-ションで電子原稿ファイルを解凍して編集するための一時的な領域を設けたが、編集情報ファイルがなく、直接製本アプリケーションから、電子原稿ファイルを編集してもよい。   In the present embodiment, a temporary area for decompressing and editing an electronic manuscript file with a bookbinding application, which is called an editing information file, is provided. May be edited.

なお、上述した各処理における各ステップについては、その前後の流れが矛盾しない限り、入れ替えても同一の機能を発揮し、同一の効果が得られることは云うまでもない。また、本発明は、複数の機器(例えばホストコンピュータ、インターフェース機器、リーダ、プリンタなど)から構成されるシステムに適用しても、一つの機器からなる装置(複写機、プリンタ、ファクシミリ装置など)に適用してもよい。   In addition, as for each step in each process mentioned above, as long as the flow before and behind does not contradict, even if it replaces, it cannot be overemphasized that the same function is exhibited and the same effect is acquired. Further, the present invention can be applied to a system (copier, printer, facsimile machine, etc.) consisting of a single device even if it is applied to a system consisting of a plurality of devices (eg, host computer, interface device, reader, printer, etc.). You may apply.

また、本発明の目的は、以下の処理を実行することによって達成される。即ち、上述した実施形態の機能を実現するソフトウェアのプログラムコードを記録した記憶媒体を、システム或いは装置に供給し、そのシステム或いは装置のコンピュータ(またはCPUやMPU等)が記憶媒体に格納されたプログラムコードを読み出す処理である。この場合、記憶媒体から読み出されたプログラムコード自体が前述した実施の形態の機能を実現することになり、そのプログラムコード及び該プログラムコードを記憶した記憶媒体は本発明を構成することになる。   The object of the present invention is achieved by executing the following processing. That is, a storage medium that records a program code of software that realizes the functions of the above-described embodiments is supplied to a system or apparatus, and a computer (or CPU, MPU, etc.) of the system or apparatus is stored in the storage medium. This is the process of reading the code. In this case, the program code itself read from the storage medium realizes the functions of the above-described embodiments, and the program code and the storage medium storing the program code constitute the present invention.

また、プログラムコードを供給するための記憶媒体としては、次のものを用いることができる。例えば、フロッピー(登録商標)ディスク、ハードディスク、光磁気ディスク、CD−ROM、CD−R、CD−RW、DVD−ROM、DVD−RAM、DVD−RW、DVD+RW、磁気テープ、不揮発性のメモリカード、ROM等である。または、プログラムコードをネットワークを介してダウンロードしてもよい。   Moreover, the following can be used as a storage medium for supplying the program code. For example, floppy (registered trademark) disk, hard disk, magneto-optical disk, CD-ROM, CD-R, CD-RW, DVD-ROM, DVD-RAM, DVD-RW, DVD + RW, magnetic tape, nonvolatile memory card, ROM or the like. Alternatively, the program code may be downloaded via a network.

また、コンピュータが読み出したプログラムコードを実行することにより、上記実施の形態の機能が実現される場合も本発明に含まれる。加えて、そのプログラムコードの指示に基づき、コンピュータ上で稼動しているOS(オペレーティングシステム)等が実際の処理の一部または全部を行い、その処理によって前述した実施形態の機能が実現される場合も含まれる。   Further, the present invention includes a case where the function of the above-described embodiment is realized by executing the program code read by the computer. In addition, an OS (operating system) running on the computer performs part or all of the actual processing based on an instruction of the program code, and the functions of the above-described embodiments are realized by the processing. Is also included.

更に、前述した実施形態の機能が以下の処理によって実現される場合も本発明に含まれる。即ち、記憶媒体から読み出されたプログラムコードが、コンピュータに挿入された機能拡張ボードやコンピュータに接続された機能拡張ユニットに備わるメモリに書き込まれる。その後、そのプログラムコードの指示に基づき、その機能拡張ボードや機能拡張ユニットに備わるCPU等が実際の処理の一部または全部を行う場合である。   Furthermore, a case where the functions of the above-described embodiment are realized by the following processing is also included in the present invention. That is, the program code read from the storage medium is written in a memory provided in a function expansion board inserted into the computer or a function expansion unit connected to the computer. Thereafter, based on the instruction of the program code, the CPU or the like provided in the function expansion board or function expansion unit performs part or all of the actual processing.

また、コンピュータが読み出したプログラムコードを実行することにより、前述した各実施の形態の機能が実現される場合も本発明に含まれる。加えて、そのプログラムコードの指示に基づき、コンピュータ上で稼働しているOSなどが実際の処理の一部または全部を行い、その処理によって前述した実施の形態の機能が実現する場合も含まれる。この場合、上記プログラムは、該プログラムを記憶した記憶媒体から直接、またはインターネット、商用ネットワーク、若しくはローカルエリアネットワーク等に接続された不図示の他のコンピュータやデータベース等からダウンロードすることにより供給される。   Further, the present invention includes a case where the functions of the above-described embodiments are realized by executing the program code read by the computer. In addition, there is a case where the OS running on the computer performs part or all of the actual processing based on the instruction of the program code, and the functions of the above-described embodiments are realized by the processing. In this case, the program is supplied by downloading directly from a storage medium storing the program or from another computer or database (not shown) connected to the Internet, a commercial network, a local area network, or the like.

本発明の実施形態に係る文書処理装置を含む文書処理システムのソフトウェア構成例を示すブロック図である。It is a block diagram which shows the software structural example of the document processing system containing the document processing apparatus which concerns on embodiment of this invention. 図1の文書処理システムのハードウェア構成例を示すブロック図である。It is a block diagram which shows the hardware structural example of the document processing system of FIG. ブックファイル形式の電子原稿ファイルの構造を模式的に示した図である。It is the figure which showed typically the structure of the electronic document file of a book file format. 図3の文書設定情報に相当するブックの属性情報の一例を示す図である。It is a figure which shows an example of the attribute information of the book corresponded to the document setting information of FIG. 図1の文書処理システムにおける文書処理の一例を示すフローチャートである。3 is a flowchart illustrating an example of document processing in the document processing system of FIG. 1. 製本文書をスキャンして取り込んだ際の電子原稿ファイルのUI画面の一例を示す図である。6 is a diagram illustrating an example of a UI screen of an electronic document file when a bookbinding document is scanned and captured. FIG. Z折り文書をスキャンして取り込んだ際の電子原稿ファイルのUI画面の一例を示す図である。FIG. 6 is a diagram illustrating an example of a UI screen of an electronic document file when a Z-fold document is scanned and captured. 図5のステップS1803における後処理自動認識処理の詳細を示すフローチャートである。It is a flowchart which shows the detail of the post-process automatic recognition process in FIG.5 S1803. ユーザが後処理情報を文書設定に反映するかどうかを選択させるためのダイアログの一例を示す図である。It is a figure which shows an example of the dialog for a user to select whether post-processing information is reflected in a document setting. 図8のステップS510における出力デバイスの適合性判断処理の詳細を示すフローチャートである。10 is a flowchart showing details of output device suitability determination processing in step S510 of FIG. 8. ジョブチケットのデータ構造の一例を示す図である。It is a figure which shows an example of the data structure of a job ticket. 画像データが製本文書と判断される用紙サイズと向きの組合せの一例を示す図である。6 is a diagram illustrating an example of a combination of paper size and orientation in which image data is determined to be a bookbinding document. FIG. 用紙サイズマスタの一例を表す図である。FIG. 4 is a diagram illustrating an example of a paper size master. 用紙向きマスタの一例を表す図である。6 is a diagram illustrating an example of a sheet orientation master. FIG. 製本ページ組合せマスタの一例を表す図である。It is a figure showing an example of a bookbinding page combination master. 図8のステップS505における製本文書チェック処理の詳細を示すフローチャートである。10 is a flowchart showing details of a bookbinding document check process in step S505 of FIG. 画像データがZ折り文書と判断される用紙サイズと向きの組合せの一例を示す図である。6 is a diagram illustrating an example of a combination of paper size and orientation in which image data is determined to be a Z-fold document. FIG. Z折りページ組合せマスタの一例を表す図である。It is a figure showing an example of a Z folding page combination master. 図8のステップS507におけるZ折り文書チェック処理の詳細を示すフローチャートである。10 is a flowchart showing details of Z-fold document check processing in step S507 of FIG.

符号の説明Explanation of symbols

100 文書処理装置
112 複合機
114 スキャナ
102 電子原稿ライタ
103 電子原稿ファイル
104 製本アプリケーション
106 プリンタドライバ
109 後処理判別アプリケーション
110 編集情報ファイル
201 CPU
211 外部メモリ
DESCRIPTION OF SYMBOLS 100 Document processing apparatus 112 Multifunction machine 114 Scanner 102 Electronic original writer 103 Electronic original file 104 Bookbinding application 106 Printer driver 109 Post-processing discrimination application 110 Editing information file 201 CPU
211 External memory

Claims (8)

原稿を読み取る読取手段を備える画像処理装置と通信可能な文書処理装置であって、
前記読取手段によって読み取られた原稿の画像データを前記画像処理装置から受信する画像データ受信手段と、
前記受信した画像データの各ページの用紙サイズと向きを取得する取得手段と、
前記原稿の画像データに施された印刷折り設定を認識するために、前記取得手段で取得した用紙サイズ及び向きと、予め記憶されている用紙サイズ及び向きを組合せた情報とを比較する比較手段と、
前記比較手段により、前記取得した用紙サイズ及び向きと一致するものが前記情報にあった場合は、当該情報に関連づく印刷折り設定を、前記原稿の画像データの印刷折り設定と特定する印刷折り設定特定手段と、
前記印刷折り設定特定手段により特定された印刷折り設定を前記画像データの印刷折り設定として登録する登録手段とを備えることを特徴とする文書処理装置。
A document processing apparatus capable of communicating with an image processing apparatus including a reading unit that reads a document,
Image data receiving means for receiving image data of a document read by the reading means from the image processing apparatus;
Obtaining means for obtaining the paper size and orientation of each page of the received image data;
A comparison unit that compares the paper size and orientation acquired by the acquisition unit with information stored in combination with the paper size and orientation stored in advance in order to recognize the print folding setting applied to the image data of the document; ,
When the information that matches the acquired paper size and orientation is found in the information by the comparison unit, the print folding setting that identifies the print folding setting related to the information as the print folding setting of the image data of the document Specific means,
A document processing apparatus comprising: registration means for registering the print folding setting specified by the print folding setting specifying means as the print folding setting of the image data.
前記印刷折り設定は、少なくとも製本印刷とZ折り印刷を含むことを特徴とする請求項1記載の文書処理装置。   The document processing apparatus according to claim 1, wherein the print folding setting includes at least bookbinding printing and Z folding printing. 前記特定された印刷折り設定が反映された画像データを印刷する際には、前記印刷折り設定と前記画像データをプリンタドライバに送信する送信手段を更に備えることを特徴とする請求項1又は2記載の文書処理装置。   3. The printing apparatus according to claim 1, further comprising: a transmission unit configured to transmit the print folding setting and the image data to a printer driver when printing the image data in which the specified print folding setting is reflected. Document processing device. 前記特定された印刷折り設定が反映された画像データの印刷時のレイアウトを表示する表示手段を更に備えることを特徴とする請求項1乃至3のいずれか1項に記載の文書処理装置。   4. The document processing apparatus according to claim 1, further comprising display means for displaying a layout at the time of printing of the image data in which the specified print folding setting is reflected. 前記特定された印刷折り設定を前記画像データの印刷折り設定情報に反映するか否かの選択を受け付ける受付手段を更に備えることを特徴とする請求項1乃至4のいずれか1項に記載の文書処理装置。   5. The document according to claim 1, further comprising a reception unit configured to receive a selection as to whether or not the specified print folding setting is reflected in the print folding setting information of the image data. Processing equipment. 前記印刷折り設定手段は、印刷時に出力先として指定されている前記画像処理装置が前記印刷折り設定を反映して印刷可能かを判断し、印刷可能である場合に、前記印刷折り設定を前記画像データの印刷設定情報に反映することを特徴とする請求項1乃至5のいずれか1項に記載の文書処理装置。   The print folding setting unit determines whether the image processing apparatus specified as an output destination at the time of printing reflects the print folding setting and can perform printing. 6. The document processing apparatus according to claim 1, wherein the document processing apparatus reflects the data in print setting information. 原稿を読み取る読取手段を備える画像処理装置と通信可能な文書処理装置の文書処理方法であって、
前記読取手段により読み取られた原稿の画像データを前記画像処理装置から受信する画像データ受信工程と、
前記受信した画像データの各ページの用紙サイズと向きを取得する取得工程と、
前記原稿の画像データに施された印刷折り設定を認識するために、前記取得工程で取得した用紙サイズ及び向きと、予め記憶されている用紙サイズ及び向きを組合せた情報とを比較する比較工程と、
前記比較工程により、前記取得した用紙サイズ及び向きと一致するものが前記情報にあった場合は、前記原稿に施された印刷折り設定を、前記原稿の画像データの印刷折り設定と特定する印刷折り設定特定工程と、
前記印刷折り設定特定工程で特定された印刷折り設定を前記画像データの印刷折り設定として登録する登録工程とを備えることを特徴とする文書処理方法。
A document processing method of a document processing apparatus capable of communicating with an image processing apparatus including a reading unit that reads a document,
An image data receiving step of receiving image data of a document read by the reading unit from the image processing apparatus;
An acquisition step of acquiring the paper size and orientation of each page of the received image data;
A comparison step for comparing the paper size and orientation acquired in the acquisition step with information stored in advance combining the paper size and orientation in order to recognize the print folding setting applied to the image data of the document; ,
If the information in the comparison step matches the acquired paper size and orientation, the print folding setting applied to the document is identified as the print folding setting of the image data of the document. Setting identification process;
A document processing method comprising: a registration step of registering the print folding setting specified in the print folding setting specifying step as the print folding setting of the image data.
原稿を読み取る読取手段を備える画像処理装置と通信可能な文書処理装置の文書処理方法をコンピュータに実行させるためのコンピュータに読み取り可能なプログラムであって、
前記読取手段により読み取られた原稿の画像データを前記画像処理装置から受信する画像データ受信ステップと、
前記受信した画像データの各ページの用紙サイズと向きを取得する取得ステップと、
前記原稿の画像データに施された印刷折り設定を認識するために、前記取得ステップで取得した用紙サイズ及び向きと、予め記憶されている用紙サイズ及び向きを組合せた情報とを比較する比較ステップと、
前記比較ステップにより、前記取得した用紙サイズ及び向きと一致するものが前記情報にあった場合は、当該情報に関連づく印刷折り設定を、前記原稿の画像データの印刷折り設定と特定する印刷折り設定特定ステップと、
前記印刷折り設定特定ステップで特定された印刷折り設定を前記画像データの印刷折り設定として登録する登録ステップとを備えることを特徴とするプログラム。
A computer-readable program for causing a computer to execute a document processing method of a document processing apparatus capable of communicating with an image processing apparatus including a reading unit that reads an original,
An image data receiving step of receiving image data of a document read by the reading unit from the image processing apparatus;
An acquisition step of acquiring the paper size and orientation of each page of the received image data;
A comparison step of comparing the paper size and orientation acquired in the acquisition step with information stored in advance in combination with the paper size and orientation in order to recognize the print folding setting applied to the image data of the document; ,
If the information that matches the acquired paper size and orientation is found in the comparison step, the print fold setting that identifies the print fold setting associated with the information as the print fold setting for the image data of the document. Specific steps,
And a registration step of registering the print folding setting specified in the print folding setting specifying step as the print folding setting of the image data.
JP2007340571A 2007-12-28 2007-12-28 Document processing apparatus and method, and program Pending JP2009164792A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2007340571A JP2009164792A (en) 2007-12-28 2007-12-28 Document processing apparatus and method, and program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2007340571A JP2009164792A (en) 2007-12-28 2007-12-28 Document processing apparatus and method, and program

Publications (1)

Publication Number Publication Date
JP2009164792A true JP2009164792A (en) 2009-07-23

Family

ID=40966905

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2007340571A Pending JP2009164792A (en) 2007-12-28 2007-12-28 Document processing apparatus and method, and program

Country Status (1)

Country Link
JP (1) JP2009164792A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011053754A (en) * 2009-08-31 2011-03-17 Konica Minolta Business Technologies Inc Printer driver and controller

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011053754A (en) * 2009-08-31 2011-03-17 Konica Minolta Business Technologies Inc Printer driver and controller

Similar Documents

Publication Publication Date Title
US7791755B2 (en) Document creation method and document creation apparatus for reflecting a document structure of a paper document in an electronic document
US20050105116A1 (en) Document processing apparatus and document processing method
US7268909B2 (en) Document processing method and apparatus
US7184165B2 (en) Information processing apparatus and method for generating print data to be printed in a printer that inputs document data containing page data of first and second sizes, and storage medium embodying a program for executing the method
JP3962721B2 (en) Document processing apparatus and document processing method
US8218190B2 (en) Document processing apparatus and method
US8724158B2 (en) Preview display for multiple-sided printing
US8631320B2 (en) Information processing apparatus and information processing method
KR100987909B1 (en) Information processing apparatus and control method, and computer-readable medium
JP4564693B2 (en) Document processing apparatus and method
EP2017744A1 (en) Document processing apparatus and method
JP5173246B2 (en) Information processing apparatus, information processing method, and program
US20070121144A1 (en) Information processing apparatus and information processing method
US20060262347A1 (en) Information processing apparatus and device selection method
US8531682B2 (en) Information processing apparatus, control method, and computer-readable storage medium
US8654408B2 (en) Document processing apparatus, document processing method, and storage medium
JP2006293598A (en) Document processing system
US20100232910A1 (en) Information processing apparatus, information processing method, program, and storage medium
JP2010009219A (en) Information processor, information processing method and program
JP3903037B2 (en) Document creation method and document creation apparatus
JP2009164792A (en) Document processing apparatus and method, and program
JP5288990B2 (en) Information processing apparatus and staple attribute setting method
JP3903036B2 (en) Document creation method and document creation apparatus
JP4328666B2 (en) Document processing device
JP3991028B2 (en) Document processing method and information processing apparatus