Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JP6089738B2 - Electronic document file compression device - Google Patents
[go: Go Back, main page]

JP6089738B2 - Electronic document file compression device - Google Patents

Electronic document file compression device Download PDF

Info

Publication number
JP6089738B2
JP6089738B2 JP2013017632A JP2013017632A JP6089738B2 JP 6089738 B2 JP6089738 B2 JP 6089738B2 JP 2013017632 A JP2013017632 A JP 2013017632A JP 2013017632 A JP2013017632 A JP 2013017632A JP 6089738 B2 JP6089738 B2 JP 6089738B2
Authority
JP
Japan
Prior art keywords
resolution
image data
file
image
page
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.)
Expired - Fee Related
Application number
JP2013017632A
Other languages
Japanese (ja)
Other versions
JP2014150385A (en
Inventor
茂出木 敏雄
敏雄 茂出木
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Dai Nippon Printing Co Ltd
Original Assignee
Dai Nippon Printing Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Dai Nippon Printing Co Ltd filed Critical Dai Nippon Printing Co Ltd
Priority to JP2013017632A priority Critical patent/JP6089738B2/en
Publication of JP2014150385A publication Critical patent/JP2014150385A/en
Application granted granted Critical
Publication of JP6089738B2 publication Critical patent/JP6089738B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Image Processing (AREA)
  • Document Processing Apparatus (AREA)
  • Editing Of Facsimile Originals (AREA)
  • Compression Of Band Width Or Redundancy In Fax (AREA)

Description

本発明は、電子文書ファイルの圧縮に関し、特に、鮮明さが必要な部分の解像度を落とさずに効率的な圧縮を行うための技術に関する。   The present invention relates to compression of an electronic document file, and more particularly to a technique for performing efficient compression without reducing the resolution of a portion that requires sharpness.

電子文書の標準的な方式としてAdobe Systemsが提案したPDF (Portable Document Format:登録商標)は、ISO標準になり、当初のプリント出力物を画面で閲覧できるようにするといった用途を超えて、ハイエンドでは印刷製版分野でのデータ交換からローエンドでは携帯情報端末での文書閲覧に至るまで広範な分野に普及した。印刷製版分野では、データ量の制約等は考慮せず、できるだけ高精細な画像や文字フォントを埋め込んでデータ交換すれば良い。しかし、PCに比べ画面や処理能力が小さい電子書籍端末やタブレット端末で閲覧される用途においては、データ量をあまり大きくすることができず、表示品質面で新規な問題が生じてきた。   PDF (Portable Document Format (registered trademark)) proposed by Adobe Systems as a standard method for electronic documents has become an ISO standard, and beyond the use of enabling the original printed output to be viewed on the screen, at the high end It has become widespread in a wide range of fields, from data exchange in the printing plate making field to document browsing on a portable information terminal at the low end. In the printing plate making field, data exchange may be performed by embedding a high-definition image or character font as much as possible without considering restrictions on the amount of data. However, in applications where browsing is performed on an electronic book terminal or tablet terminal that has a smaller screen and processing capability than a PC, the amount of data cannot be increased so much that a new problem has arisen in terms of display quality.

印刷物の画像には本文のテキストとは別にキャプション文字が含まれることがあり、近年は画像としてコンピュータ画面をキャプチャしたものが多用され、メニュー画面など小さな文字が付加されていることが多い。このような画像中のキャプション文字に対して、印刷物ではルーペで拡大すれば大抵判読できるが、ディスプレイ画面ではルーペに相当するズーム処理を行うと画素がモザイク状になり、読めないケースが目立つようになった。これは画像のデータ量を大きくすると、ネットでのダウンロードに時間がかかり、表示やスクロール速度が遅くなるため、画面の標準的な解像度(75ppi, 印刷物では300ppi)に合せて画像を間引く方法がとられているためである。この操作は目標とするデータ量に削減されるように、全画像一律に行われるため、キャプション文字が多く高画像度が要求される画像では判読困難になるという問題がある。 The printed image may include caption characters in addition to the text of the body, and recently, a computer screen captured as an image is often used, and a small character such as a menu screen is often added. For captions in such images, the printed material can often be read by enlarging with a loupe, but on the display screen, if zoom processing equivalent to a loupe is performed, the pixels become mosaic and the case where it cannot be read stands out. became. This is because if the amount of image data is increased, it will take time to download over the Internet, and the display and scrolling speed will slow down. Therefore, the method of thinning out the image to match the standard resolution of the screen (75ppi, 300ppi for printed materials) It is because it has been. Since this operation is performed uniformly for all images so as to reduce the target data amount, there is a problem that it is difficult to read in an image that has many caption characters and requires high image quality.

図13に、PDF形式電子文書の作成の流れを示す。MS-Word(登録商標) .doc, PowerPoint(登録商標).ppt、Illustrator(登録商標).ai、 InDesign(登録商標).ind等の形式で作成された文書ファイルは、幾つかの方法でPDF形式のファイルに変換され、図13に示されるAdobe社のAcrobatアプリケーションでは2通りの作成手段を提供している。第1の方法は、MS-office等の文書作成アプリケーションで編集されて、GDI(Windows) 、QuickDraw(Apple)等(GDI、Windows 、QuickDraw、Appleはいずれも登録商標)のグラフィック画面描画形式に変換された後、Acrobat(登録商標)のPDF Maker(図13左側の流れ)と呼ばれるアプリケーションにより、PDF形式のファイルに変換される方法である。この方法は端末で閲覧目的のPDF形式ファイルを作成するのに好適で、ハイパーリンクなど高次な機能をPDF形式ファイルでも維持できる特徴があり、オリジナルの.docなどの文書ファイル逆変換する機能をもたせることもできる(最新版のAcrobatではサポートされている)。   FIG. 13 shows a flow of creating a PDF electronic document. Document files created in MS-Word (registered trademark) .doc, PowerPoint (registered trademark) .ppt, Illustrator (registered trademark) .ai, InDesign (registered trademark) .ind, etc. The Adobe Acrobat application shown in FIG. 13 provides two types of creation means. The first method is edited by a document creation application such as MS-office and converted to a graphic screen drawing format such as GDI (Windows), QuickDraw (Apple), etc. (GDI, Windows, QuickDraw, and Apple are registered trademarks). After that, it is converted into a PDF format file by an application called PDF Maker (flow on the left side of FIG. 13) of Acrobat (registered trademark). This method is suitable for creating a PDF file for viewing purposes on a terminal, and has the feature that high-level functions such as hyperlinks can be maintained even in a PDF file, and has the function to reversely convert document files such as original .doc files. It can also be used (supported in the latest version of Acrobat).

もう1つの方法は、MS-office等の文書作成アプリケーションで編集されたものを、PostScript .PS/EPS(登録商標)で代表されるプリンター出力形式に変換された後、Acrobat Distiller(登録商標)と呼ばれる(図13右側の流れ)PDF変換アプリケーションによりPDF形式のファイルに変換される方法である。この方法は印刷物など解像度や高品質が要求されるPDF形式ファイルを作成するのに好適で、出力デバイスの能力に合せて解像度などを変更できる特徴をもつ。いずれの方法で作成されたPDF形式でも本文テキストは文字コード、アウトライン(Adobe Illustrator, InDesignのみ)、ビットマップの3種の形態で表現できるが、画像および画像中のキャプション文字についてはビットマップ表現に限定される。そのため、文字を鮮明にするためには、印刷製版用途レベルに解像度を上げる必要があり、一方、処理能力が小さい電子書籍端末やタブレット端末に対応させるためには、データ量をできるだけ削減する必要がある。   Another method is that after editing with a document creation application such as MS-office is converted to a printer output format represented by PostScript .PS / EPS (registered trademark), Acrobat Distiller (registered trademark) This is a method of conversion into a PDF file by a PDF conversion application called (flow on the right side of FIG. 13). This method is suitable for creating a PDF format file that requires high resolution and high quality such as printed matter, and has a feature that the resolution can be changed in accordance with the capability of the output device. In any PDF format created by either method, the body text can be expressed in three forms: character code, outline (Adobe Illustrator, InDesign only), and bitmap. However, the caption text in the image and the image can be expressed in bitmap format. Limited. Therefore, in order to make the characters clear, it is necessary to increase the resolution to the printing plate making application level. On the other hand, in order to correspond to an electronic book terminal or a tablet terminal having a small processing capacity, it is necessary to reduce the data amount as much as possible. is there.

PDFやPS等のページ記述言語ファイルを圧縮する手法として、配置されている図形データに対してイメージデータに変換し、後者の方が小さい場合、イメージデータに差し替える手法が提案されている(特許文献1参照)。   As a method for compressing a page description language file such as PDF or PS, a method is proposed in which graphic data arranged is converted into image data, and if the latter is smaller, it is replaced with image data (Patent Literature). 1).

特開2006-166177号公報JP 2006-166177 A

しかしながら、特許文献1に記載の技術は、拡大しても品質が劣化しないというPDL(Page Description Language)の思想に反し、写真データには適用できないという問題がある。   However, the technique described in Patent Document 1 has a problem that it cannot be applied to photographic data, contrary to the idea of PDL (Page Description Language) that quality does not deteriorate even if it is enlarged.

そこで、本発明は、高い解像度が要求されるページの品質を維持しながら、文書ファイル全体のデータ量を削減することが可能な電子文書ファイルの圧縮装置を提供することを課題とする。   Therefore, an object of the present invention is to provide an electronic document file compression apparatus capable of reducing the data amount of the entire document file while maintaining the quality of a page requiring high resolution.

上記課題を解決するため、本発明第1の態様では、複数のページで構成される文書ファイルに貼り込まれている画像データの解像度をページごとに変化させることにより、文書ファイルのデータ量を削減する電子文書ファイルの圧縮装置であって、前記文書ファイルを構成する各ページに対して解像度を定義したジョブ定義ファイルを読み込み、前記文書ファイルを構成する各ページにおいて、前記ジョブ定義ファイルに定義された定義解像度に基づいて設定された上限解像度を超える解像度の画像データが存在する場合、当該画像データに対して前記ジョブ定義ファイルに定義された前記定義解像度になるように解像度変換を行う画像解像度変換手段と、前記画像解像度変換手段により解像度変換された画像データおよび前記画像解像度変換手段により解像度変換されなかった画像データの双方に対して、所定の圧縮強度に基づいて圧縮を施す画像圧縮手段と、前記画像圧縮手段により圧縮された画像データを含む前記文書ファイルを構成する各ページの画像以外の要素に対して形式変換を施し、単一ページデータを作成する単一ページ変換手段と、前記単一ページ変換手段により変換された前記文書ファイルを構成する全てのページに対応する単一ページデータの総データ量を算出するデータ量算出手段と、前記文書ファイルを構成する全てのページに対応する単一ページデータを単一のファイルに統合するファイル統合手段と、を有し、前記データ量算出手段により算出された総データ量が所定の値を超えている場合、前記ジョブ定義ファイル作成手段、前記画像解像度変換手段、前記画像圧縮手段および前記単一ページ変換手段により、前記総データ量が所定の値に収まるまで再度単一ページデータを作成する処理が行われ、前記ファイル統合手段は、前記総データ量が所定の値に収まっている場合に、前記ファイル統合手段により、単一のファイルに統合する処理がなされるようにしていることを特徴とする電子文書ファイルの圧縮装置を提供する。   In order to solve the above problems, in the first aspect of the present invention, the data amount of a document file is reduced by changing the resolution of image data pasted in a document file composed of a plurality of pages for each page. An electronic document file compression apparatus that reads a job definition file that defines resolution for each page that constitutes the document file, and that is defined in the job definition file for each page that constitutes the document file. When there is image data having a resolution that exceeds the upper limit resolution set based on the definition resolution, an image resolution conversion unit that performs resolution conversion on the image data so as to have the definition resolution defined in the job definition file Image data converted by the image resolution conversion means and the image resolution conversion Image compression means for compressing both image data whose resolution has not been converted by the means based on a predetermined compression strength, and each page constituting the document file containing the image data compressed by the image compression means A single page conversion unit that performs format conversion on elements other than the image to create single page data, and a single page that corresponds to all pages constituting the document file converted by the single page conversion unit. Data amount calculating means for calculating the total data amount of one page data, and file integration means for integrating single page data corresponding to all pages constituting the document file into a single file, When the total amount of data calculated by the data amount calculation means exceeds a predetermined value, the job definition file creation means, the image resolution conversion The image compression unit and the single page conversion unit perform processing for creating single page data again until the total data amount falls within a predetermined value, and the file integration unit determines that the total data amount is Provided is an electronic document file compression device characterized in that when it falls within a predetermined value, the file integration means performs processing for integration into a single file.

本発明第1の態様によれば、文書ファイルの各ページに対して、解像度を定義したジョブ定義ファイルを作成し、各ページに対して、ジョブ定義ファイルに定義された解像度を上回る画像データが存在する場合、その画像データに対してジョブ定義ファイルに定義された解像度になるように解像度変換を行い、解像度変換された画像および解像度変換されなかった画像データの双方に対して、JPEG圧縮等の圧縮を施し、圧縮された画像データを含む文書ファイルの各ページの画像データ以外の文字・図形等の全ての要素に対してPDF形式等の所定の形式に変換し、単一ページデータを作成し、全てのページに対応する単一ページデータの総データ量を算出し、総データ量が所定の値を超えている場合、上記処理を繰り返して行い、総データ量が所定の値に収まっている場合、文書ファイルの全ページに対応する単一ページデータを単一のファイルに統合するようにしたので、高い解像度が要求されるページの品質を維持しながら、文書ファイル全体のデータ量を削減することが可能となる。   According to the first aspect of the present invention, a job definition file in which a resolution is defined is created for each page of a document file, and image data that exceeds the resolution defined in the job definition file exists for each page. In this case, resolution conversion is performed on the image data so as to have the resolution defined in the job definition file, and compression such as JPEG compression is performed on both the resolution-converted image and the image data not subjected to resolution conversion. To convert all elements such as characters and figures other than the image data of each page of the document file including the compressed image data into a predetermined format such as PDF format, and create single page data, The total data amount of single page data corresponding to all pages is calculated, and when the total data amount exceeds a predetermined value, the above process is repeated, and the total data amount is calculated. When the amount of data falls within a predetermined value, single page data corresponding to all pages of the document file is integrated into a single file, while maintaining the quality of pages that require high resolution. It is possible to reduce the data amount of the entire document file.

また、本発明第2の態様では、前記ジョブ定義ファイルは、前記文書ファイルを構成する各ページに対して、前記解像度に加え圧縮強度も定義されており、前記画像圧縮手段は、前記所定の圧縮強度として、各ページに対して、前記ジョブ定義ファイルに定義された圧縮強度を用いて圧縮を施すようにしていることを特徴とする。   In the second aspect of the present invention, the job definition file defines a compression strength in addition to the resolution for each page constituting the document file, and the image compression means is configured to perform the predetermined compression. As the strength, each page is compressed using the compression strength defined in the job definition file.

本発明第2の態様によれば、文書ファイルの各ページに対して、解像度に加えJPEG圧縮等の圧縮強度も定義するようにし、各ページに対して、ジョブ定義ファイルに定義された圧縮強度を用いて圧縮を施すようにしたので、解像度と圧縮強度の2つの要素によりデータ量削減の程度を定めることが可能となる。   According to the second aspect of the present invention, the compression strength such as JPEG compression is defined in addition to the resolution for each page of the document file, and the compression strength defined in the job definition file is defined for each page. Since the compression is performed by using the data, it is possible to determine the degree of data amount reduction by the two factors of resolution and compression strength.

また、本発明第3の態様では、前記上限解像度は、前記ジョブ定義ファイルに定義された定義解像度に1以上の所定の係数を乗じて設定されていることを特徴とする。   In the third aspect of the present invention, the upper limit resolution is set by multiplying the definition resolution defined in the job definition file by a predetermined coefficient of 1 or more.

本発明第3の態様によれば、文書ファイルの各ページに対して、上限解像度として、定義解像度に1以上の所定の係数を乗じて設定するようにしたので、ジョブ定義ファイルに定義された定義解像度より若干高く、上限解像度より低い境界解像度をもつ画像が存在する場合(頻度が多い)、当該境界解像度をもつ画像に対しては処理を行わないようにしたので、解像度変換が実行される画像が少なくなり解像度変換に伴う画質劣化を抑えることができる。   According to the third aspect of the present invention, the definition defined in the job definition file is set as the upper limit resolution by multiplying the definition resolution by a predetermined coefficient of 1 or more for each page of the document file. When there is an image with a boundary resolution slightly higher than the resolution and lower than the upper limit resolution (frequently), processing is not performed on the image having the boundary resolution, so that the resolution conversion is executed. Image quality can be reduced and image quality deterioration due to resolution conversion can be suppressed.

また、本発明第4の態様では、前記文書ファイルを構成する各ページより単一の画像データを抽出し、抽出された画像データ全体または一部の領域に対して、解像度をN(N>1)個の値に変化させたN個の解像度に対応する解像度変換画像データを作成して表示し、表示された解像度変換画像データから選択された解像度変換画像データに対応する解像度を、各ページの解像度として定義することにより前記ジョブ定義ファイルを作成するジョブ定義ファイル作成手段を有することを特徴とする。   In the fourth aspect of the present invention, single image data is extracted from each page constituting the document file, and the resolution is set to N (N> 1) for the entire extracted image data or a partial area. ) Create and display resolution-converted image data corresponding to N resolutions that have been changed to a number of values, and specify the resolution corresponding to the resolution-converted image data selected from the displayed resolution-converted image data for each page. It has job definition file creation means for creating the job definition file by defining the resolution.

本発明第4の態様によれば、文書ファイルを構成する各ページより単一の画像データを抽出し、抽出された画像データ全体または一部の領域に対して、解像度をN(N>1)個の値に変化させたN個の解像度に対応する解像度変換画像データを作成して表示し、表示された解像度変換画像データから選択された解像度変換画像データに対応する解像度を、各ページの解像度として定義することによりジョブ定義ファイルを作成するようにしたので、複数段階の解像度に応じた画像の品質を確認しながら最適な解像度を容易に選定でき、ジョブ定義ファイルを効率的に作成することができる。   According to the fourth aspect of the present invention, single image data is extracted from each page constituting the document file, and the resolution is set to N (N> 1) for the entire extracted image data or a partial area. The resolution conversion image data corresponding to the N resolutions changed to the individual values is created and displayed, and the resolution corresponding to the resolution conversion image data selected from the displayed resolution conversion image data is set to the resolution of each page. Since the job definition file is created by defining as, the optimum resolution can be easily selected while checking the image quality according to the resolution of multiple stages, and the job definition file can be created efficiently. it can.

本発明第5の態様では、前記ジョブ定義ファイル作成手段は、前記抽出された画像データ全体または一部の領域および前記作成されたN個の解像度変換画像データの各々に対して、更に、M(M>1)個の圧縮強度によりJPEG圧縮等の圧縮を施してM個の圧縮強度に対応した圧縮画像データを作成し、作成された圧縮画像データおよび圧縮画像データのデータ量を表示し、表示された圧縮画像データから選択された圧縮画像データに対応する圧縮強度を、各ページの圧縮強度として定義するようにしていることを特徴とする。   In the fifth aspect of the present invention, the job definition file creation means further applies M () to each of the whole or a part of the extracted image data and the created N resolution conversion image data. M> 1) Compressed data such as JPEG compression is performed with the number of compression strengths to create compressed image data corresponding to the number of compression strengths, and the created compressed image data and the data amount of the compressed image data are displayed and displayed. The compression strength corresponding to the compressed image data selected from the compressed image data is defined as the compression strength of each page.

本発明第5の態様によれば、抽出された画像データ全体または一部の領域および前記作成されたN個の解像度変換画像データの各々に対して、更に、M(M>1)個の圧縮強度により圧縮を施してM個の圧縮強度に対応した圧縮画像データを作成し、作成された圧縮画像データおよび圧縮画像データのデータ量を表示し、表示された圧縮画像データから選択された圧縮画像データに対応する圧縮強度を、各ページの圧縮強度として定義するようにしたので、解像度に加えて複数段階の圧縮強度に応じた画像の品質を確認しながら最適な解像度と圧縮強度の組み合わせを容易に選定でき、ジョブ定義ファイルを効率的に作成することができる。   According to the fifth aspect of the present invention, M (M> 1) compressions are further performed on the whole or a part of the extracted image data and each of the generated N resolution conversion image data. The compressed image data corresponding to the M compression intensities is generated by compression according to the intensity, the generated compressed image data and the data amount of the compressed image data are displayed, and the compressed image selected from the displayed compressed image data Since the compression strength corresponding to the data is defined as the compression strength of each page, it is easy to combine the optimal resolution and compression strength while checking the image quality according to multiple levels of compression strength in addition to the resolution. The job definition file can be created efficiently.

本発明によれば、高い解像度が要求されるページの品質を維持しながら、文書ファイル全体のデータ量を削減することが可能となる。   According to the present invention, it is possible to reduce the data amount of the entire document file while maintaining the quality of a page that requires a high resolution.

本発明の一実施形態に係る電子文書ファイルの圧縮装置のハードウェア構成図である。It is a hardware block diagram of the compression apparatus of the electronic document file which concerns on one Embodiment of this invention. 本発明の一実施形態に係る電子文書ファイルの圧縮装置の構成を示す機能ブロック図である。It is a functional block diagram which shows the structure of the compression apparatus of the electronic document file which concerns on one Embodiment of this invention. 電子文書ファイルの圧縮処理に必要なバリエーションチャートを作成するためのフローチャートである。It is a flowchart for producing the variation chart required for the compression process of an electronic document file. 本発明の一実施形態に係る電子文書ファイルの圧縮装置の処理概要を示すフローチャートである。It is a flowchart which shows the process outline | summary of the compression apparatus of the electronic document file which concerns on one Embodiment of this invention. α=2として、比率1/2で画像を縮小する例を示す図である。It is a figure which shows the example which reduces an image by the ratio 1/2 with (alpha) = 2. αを一般化して、比率1/αで縮小する例を示す図である。It is a figure which shows the example which generalizes (alpha) and reduces by ratio 1 / alpha. α=2として、比率2で拡大する例を示す図である。It is a figure which shows the example expanded by ratio 2 as (alpha) = 2. αを一般化して、比率αで拡大する例を示す図である。It is a figure which shows the example which generalizes (alpha) and expands by the ratio (alpha). バリエーションチャートの割り付け位置を示す図である。It is a figure which shows the allocation position of a variation chart. バリエーションチャートの具体例を示す図である。It is a figure which shows the specific example of a variation chart. 図10に示したバリエーションチャートにおける各圧縮画像データの、原画像データに対するデータ量の比率を示す図である。It is a figure which shows the ratio of the data amount with respect to original image data of each compression image data in the variation chart shown in FIG. ジョブ定義ファイルの一例を示す図である。It is a figure which shows an example of a job definition file. PDF形式電子文書の作成の流れを示す図である。It is a figure which shows the flow of preparation of a PDF format electronic document.

以下、本発明の好適な実施形態について図面を参照して詳細に説明する。
<1.1.装置構成>
図1は、本発明の一実施形態に係る電子文書ファイルの圧縮装置のハードウェア構成図である。本実施形態に係る電子文書ファイルの圧縮装置は、汎用のコンピュータで実現することができ、図1に示すように、CPU(Central Processing Unit)1と、コンピュータのメインメモリであるRAM(Random Access Memory)2と、CPU1が実行するプログラムやデータを記憶するための大容量の記憶装置(例えば、ハードディスク、フラッシュメモリ等)3と、キーボード、マウス等のキー入力I/F(インターフェース)4と、外部装置(データ記憶媒体等)とデータ通信するためのデータ入出力I/F(インターフェース)5と、液晶ディスプレイ等の表示デバイスである表示部6と、を備え、互いにバスを介して接続されている。
DESCRIPTION OF EXEMPLARY EMBODIMENTS Hereinafter, preferred embodiments of the invention will be described in detail with reference to the drawings.
<1.1. Device configuration>
FIG. 1 is a hardware configuration diagram of an electronic document file compression apparatus according to an embodiment of the present invention. The electronic document file compression apparatus according to this embodiment can be realized by a general-purpose computer. As shown in FIG. 1, a CPU (Central Processing Unit) 1 and a RAM (Random Access Memory) which is a main memory of the computer. ) 2, a large-capacity storage device (for example, a hard disk, a flash memory, etc.) 3 for storing programs and data executed by the CPU 1, a key input I / F (interface) 4 such as a keyboard and a mouse, and an external A data input / output I / F (interface) 5 for data communication with a device (data storage medium or the like) and a display unit 6 which is a display device such as a liquid crystal display are connected to each other via a bus. .

図2は、本実施形態に係る電子文書ファイルの圧縮装置の構成を示す機能ブロック図である。図2において、10はジョブ定義ファイル作成手段、20は画像解像度変換手段、30は画像圧縮手段、40は単一ページ変換手段、50はデータ量算出手段、55はファイル統合手段、60は文書ファイル記憶手段、70は圧縮文書ファイル記憶手段、80はジョブ定義ファイル記憶手段である。   FIG. 2 is a functional block diagram showing the configuration of the electronic document file compression apparatus according to this embodiment. In FIG. 2, 10 is a job definition file creation means, 20 is an image resolution conversion means, 30 is an image compression means, 40 is a single page conversion means, 50 is a data amount calculation means, 55 is a file integration means, and 60 is a document file. Storage means, 70 is a compressed document file storage means, and 80 is a job definition file storage means.

ジョブ定義ファイル作成手段10は、文書ファイル記憶手段60に記憶された文書ファイルを抽出し、文書ファイルの各ページに対して、ジョブ定義ファイルを作成する。画像解像度変換手段20は、ジョブ定義ファイルにより定義された解像度になるように画像データの解像度変換を行う。画像圧縮手段30は、画像解像度変換手段20により解像度変換された画像データと、解像度変換されなかった画像データの双方に対してJPEG圧縮等の圧縮を行う。単一ページ変換手段40は、画像圧縮手段30により圧縮された画像データを含む各ページの画像以外の要素をPDF形式等の形式に形式変換し、単一ページデータを作成する。データ量算出手段50は、作成された全ての単一ページデータの総データ量を算出し、算出された総データ量が所定の値を超えている場合、ジョブ定義ファイル作成手段10、画像解像度変換手段20、画像圧縮手段30および単一ページ変換手段40に対して、総データ量が所定の値に収まるまで単一ページデータを作成する処理を繰り返し行わせる手段である。ファイル統合手段55は、総データ量が所定の値に収まっている場合に、単一のファイルに統合する処理を行う。   The job definition file creation unit 10 extracts the document file stored in the document file storage unit 60 and creates a job definition file for each page of the document file. The image resolution conversion means 20 converts the resolution of the image data so that the resolution defined by the job definition file is obtained. The image compression means 30 performs compression such as JPEG compression on both the image data whose resolution has been converted by the image resolution conversion means 20 and the image data whose resolution has not been converted. The single page conversion unit 40 converts the elements other than the image of each page including the image data compressed by the image compression unit 30 into a format such as the PDF format, and creates single page data. The data amount calculation unit 50 calculates the total data amount of all created single page data. If the calculated total data amount exceeds a predetermined value, the job definition file generation unit 10, image resolution conversion The means 20, the image compression means 30, and the single page conversion means 40 are means for repeatedly performing the process of creating single page data until the total data amount falls within a predetermined value. The file integration unit 55 performs a process of integrating into a single file when the total data amount falls within a predetermined value.

文書ファイル記憶手段60は、コンピュータで処理可能な電子文書である文書ファイルを記憶した記憶手段であり、記憶装置3により実現される。文書ファイル記憶手段60に記憶された文書ファイルとしては、画像が貼付された電子文書であれば、MS-Word.doc, PowerPoint.ppt、Illustrator.ai、 InDesign.ind等、様々な形式のものが利用可能である。圧縮文書ファイル記憶手段70は、圧縮された文書ファイルである圧縮文書ファイルを記憶する記憶手段であり、記憶装置3により実現される。圧縮文書ファイルとしても、様々な形式のものが利用可能であるが、本実施形態では、汎用的なフォーマットであるPDF形式を用いている。ジョブ定義ファイル記憶手段80は、ジョブ定義ファイル作成手段10により作成されたジョブ定義ファイルを記憶する記憶手段であり、記憶装置3により実現される。ジョブ定義ファイル作成手段10、画像解像度変換手段20、画像圧縮手段30、単一ページ変換手段40、データ量算出手段50、ファイル統合手段55は、CPU1が、記憶装置3に記憶されているプログラムを実行することにより実現される。   The document file storage unit 60 is a storage unit that stores a document file that is an electronic document that can be processed by a computer, and is realized by the storage device 3. The document file stored in the document file storage means 60 is an electronic document with an image attached in various formats such as MS-Word.doc, PowerPoint.ppt, Illustrator.ai, and InDesign.ind. Is available. The compressed document file storage unit 70 is a storage unit that stores a compressed document file that is a compressed document file, and is realized by the storage device 3. Although various types of compressed document files can be used, the present embodiment uses the PDF format, which is a general-purpose format. The job definition file storage unit 80 is a storage unit that stores the job definition file created by the job definition file creation unit 10, and is realized by the storage device 3. The job definition file creation means 10, the image resolution conversion means 20, the image compression means 30, the single page conversion means 40, the data amount calculation means 50, and the file integration means 55 are programs that the CPU 1 stores in the storage device 3. It is realized by executing.

図2に示した各構成手段は、現実には図1に示したように、コンピュータおよびその周辺機器等のハードウェアに専用のプログラムを搭載することにより実現される。すなわち、コンピュータが、専用のプログラムに従って各手段の内容を実行することになる。なお、本明細書において、コンピュータとは、CPU等の演算処理部を有し、データ処理が可能な装置を意味し、画像品質の確認を行える画面サイズと解像度を備え、画像の解像度変換や圧縮処置などの大容量画像の演算を実用的な応答速度で処理可能な演算速度をもつCPUや記憶装置を備えたデスクトップまたはノート型のパーソナルコンピュータである。   Each component shown in FIG. 2 is actually realized by installing a dedicated program in hardware such as a computer and its peripheral devices as shown in FIG. That is, the computer executes the contents of each means according to a dedicated program. In this specification, a computer means a device that has an arithmetic processing unit such as a CPU and is capable of data processing, and has a screen size and a resolution that can confirm image quality, and performs image resolution conversion and compression. A desktop or notebook personal computer including a CPU and a storage device having a calculation speed capable of processing a large-capacity image calculation such as treatment at a practical response speed.

図1に示した記憶装置3には、CPU1を動作させ、コンピュータを、電子文書ファイルの圧縮装置として機能させるための専用のプログラムが実装されている。この専用のプログラムを実行することにより、CPU1は、ジョブ定義ファイル作成手段10、画像解像度変換手段20、画像圧縮手段30、単一ページ変換手段40、データ量算出手段50、ファイル統合手段55としての機能を実現することになる。また、記憶装置3は、文書ファイル記憶手段60、圧縮文書ファイル記憶手段70、ジョブ定義ファイル記憶手段80として機能するだけでなく、電子文書ファイルの圧縮装置としての処理に必要な様々なデータを記憶する。   The storage device 3 shown in FIG. 1 is mounted with a dedicated program for operating the CPU 1 and causing the computer to function as an electronic document file compression device. By executing this dedicated program, the CPU 1 functions as the job definition file creation unit 10, the image resolution conversion unit 20, the image compression unit 30, the single page conversion unit 40, the data amount calculation unit 50, and the file integration unit 55. The function will be realized. The storage device 3 not only functions as the document file storage unit 60, the compressed document file storage unit 70, and the job definition file storage unit 80, but also stores various data necessary for processing as an electronic document file compression unit. To do.

<1.2.ジョブ定義ファイルの作成>
次に、図1、図2に示した電子文書ファイルの圧縮装置の処理動作について説明する。まず、圧縮処理自体を行う前に、圧縮処理に用いるジョブ定義ファイルの作成を行う。ジョブ定義ファイルを効率的に作成するため、事前にバリエーションチャートをページごとに作成しておくと便利である(画像がないページや類似したレイアウトのページなどに対しては行わず、全てのページに対して行う必要はない)。図3は、バリエーションチャートの作成処理を示すフローチャートである。利用者が、キー入力I/F4を介して、圧縮対象の文書ファイルを選択すると、ジョブ定義ファイル作成手段10は、選択された文書ファイル内の複数のページの中から1つのページを取得し、そのページに貼り付けられている画像を表示部6に表示させる(ステップS1)。
<1.2. Creating a job definition file>
Next, the processing operation of the electronic document file compression apparatus shown in FIGS. 1 and 2 will be described. First, before performing the compression process itself, a job definition file used for the compression process is created. In order to create a job definition file efficiently, it is convenient to create a variation chart for each page in advance (not for pages with no images or pages with similar layouts. You don't have to do that). FIG. 3 is a flowchart showing a variation chart creation process. When the user selects a document file to be compressed via the key input I / F 4, the job definition file creation unit 10 acquires one page from a plurality of pages in the selected document file, The image pasted on the page is displayed on the display unit 6 (step S1).

利用者は、ページ単位で表示された複数の画像の中から1つの画像を代表画像として選択する。具体的には、表示された画像のうち1つを、キーボードやマウス等の入力機器を用いて指示する。指示された内容は、キー入力I/F4を介して、ジョブ定義ファイル作成手段10に伝達される。代表画像が選択されると、オプションでトリミング枠を指示でき(評価対象領域を切り取り、評価をしやすくする)、ジョブ定義ファイル作成手段10は、代表画像の解像度を割付解像度として算出する(ステップS2)。割付解像度は、ジョブ定義ファイル作成手段10が、以下の〔数式0〕に従った処理を実行することにより算出される。   The user selects one image as a representative image from a plurality of images displayed in units of pages. Specifically, one of the displayed images is instructed using an input device such as a keyboard or a mouse. The instructed content is transmitted to the job definition file creation means 10 via the key input I / F 4. When the representative image is selected, a trimming frame can be optionally designated (the evaluation target area is cut out for easy evaluation), and the job definition file creation means 10 calculates the resolution of the representative image as the assigned resolution (step S2). ). The allocation resolution is calculated by the job definition file creation means 10 executing a process according to the following [Equation 0].

〔数式0〕
割付解像度=画素数/割り付け実寸法
[Formula 0]
Allocation resolution = Number of pixels / Actual size of allocation

〔数式0〕に示すように、割付解像度は、画素数を割り付け実寸法で除算することにより算出される。割り付け実寸法は、各ページに貼り付けられた各画像について事前に設定された固定値であり、割付解像度の算出において変化しない。   As shown in [Equation 0], the allocation resolution is calculated by dividing the number of pixels by the actual allocation size. The actual allocation size is a fixed value set in advance for each image pasted on each page, and does not change in calculation of the allocation resolution.

次に、ジョブ定義ファイル作成手段10は、原画像データに対して指定解像度/割付解像度の比率で縮小処理を施し縮小画像データを作成する(ステップS3)。ステップS3における縮小画像データ作成処理を、図5、図6を用いて説明する。   Next, the job definition file creation means 10 performs reduction processing on the original image data at a ratio of designated resolution / allocation resolution to create reduced image data (step S3). The reduced image data creation process in step S3 will be described with reference to FIGS.

図5は、指定解像度/割付解像度=1/2(=1/α)として、比率1/2で縮小する例を示している。ただし、指定解像度は300PPI(Pixel Per Inch)など切れ良い整数値が設定されるが、割付解像度はデザイン上で個別に指定される値になるため、621PPIなど端数をもち、αは通常実数値になる。図5(a)には、原画像データ中の16画素が示されており、図5(b)には、バイリニア法による縮小画像データ中の4画素が示されている。本実施形態では、原画像データの各画素値をS(i,j,c)(0≦i≦Sx−1,0≦j≦Sy−1,c=0,1,2)、として表現し、縮小画像データの各画素値をT(i,j,c)(0≦i≦Sx/α−1,0≦j≦Sy/α−1,c=0,1,2)として表現する。したがって、原画像データの画像サイズ(画素数)は、Sx×Sy、縮小画像データの画像サイズ(画素数)は、Sx×Sy/α2となる。また、c=0,1,2は、それぞれ三原色のR(赤)、G(緑)、B(青)にそれぞれ対応している。 FIG. 5 shows an example in which the specified resolution / assigned resolution = 1/2 (= 1 / α) and the image is reduced at a ratio of 1/2. However, although a specified integer value such as 300 PPI (Pixel Per Inch) is set for the specified resolution, the allocation resolution is a value that is individually specified in the design, so it has a fraction such as 621 PPI, and α is usually a real value. Become. FIG. 5A shows 16 pixels in the original image data, and FIG. 5B shows 4 pixels in the reduced image data by the bilinear method. In the present embodiment, each pixel value of the original image data is expressed as S (i, j, c) (0 ≦ i ≦ Sx−1, 0 ≦ j ≦ Sy−1, c = 0, 1, 2). Each pixel value of the reduced image data is expressed as T (i, j, c) (0 ≦ i ≦ Sx / α−1, 0 ≦ j ≦ Sy / α−1, c = 0, 1, 2). Therefore, the image size (number of pixels) of the original image data is Sx × Sy, and the image size (number of pixels) of the reduced image data is Sx × Sy / α 2 . C = 0, 1, and 2 correspond to the three primary colors R (red), G (green), and B (blue), respectively.

原画像データを縮小する手法としては、ニアレストネイバー、バイリニア、バイキュービック等、公知の種々の技術を用いることができるが、本実施形態では、最も品質が良いバイキュービック法を採用することが多いが、以下は説明を簡単にするためバイリニア法に基づいて説明する。バイリニア法により、図5の例では、以下の〔数式1〕に従って、縮小画像データの各画素値T(i,j,c)を算出する。   As a method for reducing the original image data, various known techniques such as nearest neighbor, bilinear, and bicubic can be used. In this embodiment, the bicubic method having the best quality is often employed. However, the following will be described based on the bilinear method for the sake of simplicity. In the example of FIG. 5, each pixel value T (i, j, c) of the reduced image data is calculated by the bilinear method according to the following [Equation 1].

〔数式1〕
T(i,j,c)={S(i,j,c)+S(i+1,j,c)+S(i,j+1,c)+S(i+1,j+1,c)}/4
[Formula 1]
T (i, j, c) = {S (i, j, c) + S (i + 1, j, c) + S (i, j + 1, c) + S (i + 1, j + 1, c)} / 4

〔数式1〕における“4”はα=2の場合のα2を示している。図5の例では、図5(a)の左上に示した4つの画素の値S(i,j,c)、S(i+1,j,c)、S(i,j+1,c)、S(i+1,j+1,c)を用いて、上記〔数式1〕により、図5(b)の左上端に示した画素の値T(i,j,c)が得られることになる。したがって、図5(a)に示した16画素は、縮小されて図5(b)に示した4画素となる。 “4” in [Formula 1] indicates α 2 in the case of α = 2. In the example of FIG. 5, the four pixel values S (i, j, c), S (i + 1, j, c), S (i, j + 1, c), and S (shown in the upper left of FIG. Using i + 1, j + 1, c), the pixel value T (i, j, c) shown in the upper left corner of FIG. 5B is obtained by the above [Equation 1]. Accordingly, the 16 pixels shown in FIG. 5A are reduced to 4 pixels shown in FIG.

前述の通りαは実数値になることが一般的であるため、図6では、αを一般化して、比率1/αで縮小する例を説明する。図6(a)には、原画像データ中の画素が示されており、図6(b)には、縮小画像データ中の画素が示されている。バイリニア法により、図6の例では、以下の〔数式2〕に従って、縮小画像データの各画素値T(i,j,c)を算出する。   Since α is generally a real value as described above, FIG. 6 illustrates an example in which α is generalized and reduced by a ratio 1 / α. FIG. 6A shows the pixels in the original image data, and FIG. 6B shows the pixels in the reduced image data. In the example of FIG. 6, the pixel values T (i, j, c) of the reduced image data are calculated by the bilinear method according to the following [Equation 2].

〔数式2〕
T(i,j,c)=Σq=0,α-1Σk=0,α-1{S(i+k,j+q,c)}/α2
[Formula 2]
T (i, j, c) = Σq = 0, α−1 Σk = 0, α−1 {S (i + k, j + q, c)} / α 2

〔数式2〕において、kは、0≦k≦α−1の値をとり得る整数、qは、0≦q≦α−1の値をとり得る整数であり、Σq=0,α-1は、q=0〜α−1までの総和を示し、Σk=0,α-1
は、k=0〜α−1までの総和を示している。図6の例では、図6(a)の左上に示した複数の画素の値S(i,j,c)、・・・、S(i+α−1,j,c)、・・・、S(i,j+α−1,c)、・・・、S(i+α−1,j+α−1,c)を用いて、上記〔数式2〕により、図6(b)の左上端に示した画素の値T(i,j,c)が得られることになる。ステップS3における画像の縮小により画像の画素数が減少する。次回、ステップS2において割付解像度を算出する際には、この画素数を用いる。
In [Expression 2], k is an integer that can take a value of 0 ≦ k ≦ α−1, q is an integer that can take a value of 0 ≦ q ≦ α−1, and Σ q = 0, α−1. Indicates the sum from q = 0 to α-1, and Σ k = 0, α-1
Indicates the total from k = 0 to α-1. In the example of FIG. 6, the values S (i, j, c),..., S (i + α-1, j, c),. Using (i, j + α-1, c),..., S (i + α-1, j + α-1, c), the above-described [Equation 2] allows the pixels shown in the upper left corner of FIG. The value T (i, j, c) will be obtained. The number of pixels of the image is reduced by reducing the image in step S3. Next time, when calculating the allocation resolution in step S2, this number of pixels is used.

縮小画像データが作成されたら、次に、ジョブ定義ファイル作成手段10は、縮小画像データに対して所定の比率α(α>1)で拡大処理を施し割付用画像データを作成する(ステップS4)。ステップS4における割付用画像データ作成処理を、図7、図8を用いて説明する。   Once the reduced image data has been created, the job definition file creation means 10 next performs enlargement processing on the reduced image data at a predetermined ratio α (α> 1) to create image data for assignment (step S4). . The allocation image data creation process in step S4 will be described with reference to FIGS.

図7は、α=2として、比率2で拡大する例を示している。図7(a)には、原画像データ中の4画素が示されており、図7(b)には、割付用画像データ中の9画素が示されている。本実施形態では、割付用画像データの各画素値をR(i,j,c)(0≦i≦Sx−1,0≦j≦Sy−1,c=0,1,2)、として表現する。したがって、割付用画像データの画像サイズ(画素数)は、原画像データの画像サイズ(画素数)と同じくSx×Syとなる。また、c=0,1,2は、それぞれ三原色のR(赤)、G(緑)、B(青)にそれぞれ対応している。   FIG. 7 shows an example of enlargement at a ratio of 2 with α = 2. FIG. 7A shows four pixels in the original image data, and FIG. 7B shows nine pixels in the allocation image data. In the present embodiment, each pixel value of the image data for assignment is expressed as R (i, j, c) (0 ≦ i ≦ Sx−1, 0 ≦ j ≦ Sy−1, c = 0, 1, 2). To do. Therefore, the image size (number of pixels) of the allocation image data is Sx × Sy, similar to the image size (number of pixels) of the original image data. C = 0, 1, and 2 correspond to the three primary colors R (red), G (green), and B (blue), respectively.

縮小画像データを拡大する手法としては、ニアレストネイバー、バイリニア、バイキュービック等、公知の種々の技術を用いることができるが、当然のことながら、縮小に用いた手法と同一の手法を用いる。本実施形態では、縮小の際にバイキュービック法を用いているので、拡大の際にもバイキュービック法を用いることが多いが、以下は説明を簡単にするためバイリニア法に基づいて説明する。バイリニア法により、図7の例では、以下の〔数式3〕に従って、割付用画像データの各画素値R(i,j,c)を算出する。   As a technique for enlarging the reduced image data, various known techniques such as nearest neighbor, bilinear, and bicubic can be used. Of course, the same technique as that used for the reduction is used. In the present embodiment, since the bicubic method is used at the time of reduction, the bicubic method is often used also at the time of enlargement, but the following will be described based on the bilinear method for the sake of simplicity. According to the bilinear method, in the example of FIG. 7, each pixel value R (i, j, c) of the image data for allocation is calculated according to the following [Equation 3].

〔数式3〕
R(i,j,c)=T(i,j,c)
R(i+1,j,c)={T(i,j,c)+T(i+1,j,c)}/2
R(i+2,j,c)=T(i+1,j,c)
R(i,j+1,c)={T(i,j,c)+T(i,j+1,c)}/2
R(i+1,j+1,c)={T(i,j,c)+T(i+1,j,c)+T(i,j+1,c)+T(i+1,j+1,c)}/4
R(i+2,j+1,c)={T(i+1,j,c)+T(i+1,j+1,c)}/2
R(i,j+2,c)=T(i,j+1,c)
R(i+1,j+2,c)={T(i,j+1,c)+T(i+1,j+1,c)}/2
R(i+2,j+2,c)=T(i+1,j+1,c)
[Formula 3]
R (i, j, c) = T (i, j, c)
R (i + 1, j, c) = {T (i, j, c) + T (i + 1, j, c)} / 2
R (i + 2, j, c) = T (i + 1, j, c)
R (i, j + 1, c) = {T (i, j, c) + T (i, j + 1, c)} / 2
R (i + 1, j + 1, c) = {T (i, j, c) + T (i + 1, j, c) + T (i, j + 1, c) + T (i + 1, j + 1, c)} / 4
R (i + 2, j + 1, c) = {T (i + 1, j, c) + T (i + 1, j + 1, c)} / 2
R (i, j + 2, c) = T (i, j + 1, c)
R (i + 1, j + 2, c) = {T (i, j + 1, c) + T (i + 1, j + 1, c)} / 2
R (i + 2, j + 2, c) = T (i + 1, j + 1, c)

図7の例では、図7(a)の左上に示した4画素の値T(i,j,c)、T(i+1,j,c)、T(i,j+1,c)、T(i+1,j+1,c)を用いて、上記〔数式3〕により、図7(b)の左上に示した9画素の値R(i,j,c)、R(i+1,j,c)、R(i+2,j,c)、R(i,j+1,c)、R(i+1,j+1,c)、R(i+2,j+1,c)、R(i,j+2,c)、R(i+1,j+2,c)、R(i+2,j+2,c)が得られることになる。   In the example of FIG. 7, the values T (i, j, c), T (i + 1, j, c), T (i, j + 1, c), T (i + 1) of the four pixels shown in the upper left of FIG. , J + 1, c), and using the above [Equation 3], the nine pixel values R (i, j, c), R (i + 1, j, c), R ( i + 2, j, c), R (i, j + 1, c), R (i + 1, j + 1, c), R (i + 2, j + 1, c), R (i, j + 2, c), R (i + 1, j + 2, c) ), R (i + 2, j + 2, c).

前述の通りαは実数値になることが一般的であるため、図8では、αを一般化して、比率αで拡大する例を説明する。図8(a)には、縮小画像データ中の画素が示されており、図8(b)には、割付用画像データ中の画素が示されている。バイリニア法により、図8の例では、以下の〔数式4〕に従って、縮小画像データの各画素値R(i+k,j+q,c)を算出する。   Since α is generally a real value as described above, FIG. 8 illustrates an example in which α is generalized and enlarged by the ratio α. FIG. 8A shows pixels in the reduced image data, and FIG. 8B shows pixels in the allocation image data. In the example of FIG. 8, each pixel value R (i + k, j + q, c) of the reduced image data is calculated by the bilinear method according to the following [Equation 4].

〔数式4〕
R(i+k,j+q,c)=[(α−q)・{(α−k)・T(i,j,c)+k・T(i+1,j,c)}+q・{(α−k)・T(i,j+1,c)+k・T(i+1,j+1,c)}]/α2
[Formula 4]
R (i + k, j + q, c) = [(α−q) · {(α−k) · T (i, j, c) + k · T (i + 1, j, c)} + q · {(α−k) T (i, j + 1, c) + kT (i + 1, j + 1, c)}] / α 2

〔数式4〕においては、〔数式2〕と同様、kは0≦k≦α−1の値をとり得る整数、qは0≦q≦α−1の値をとり得る整数である。図8の例では、図8(a)の左上に示した複数の画素の値T(i,j,c)、T(i+1,j,c)、T(i,j+1,c)、T(i+1,j+1,c)を用いて、上記〔数式4〕により、図8(b)の左上に示した画素の値R(i,j,c)、・・・、R(i+α,j,c)、・・・、S(i+k,j+q,c)、・・・、S(i,j+α,c)、・・・、S(i+α,j+α,c)が得られることになる。 In [Formula 4], as in [Formula 2], k is an integer that can take a value of 0 ≦ k ≦ α−1, and q is an integer that can take a value of 0 ≦ q ≦ α−1. In the example of FIG. 8, the values T (i, j, c), T (i + 1, j, c), T (i, j + 1, c), T ( i + 1, j + 1, c), and using the above [Equation 4], the pixel values R (i, j, c),..., R (i + α, j, c) shown in the upper left of FIG. , ..., S (i + k, j + q, c), ..., S (i, j + α, c), ..., S (i + α, j + α, c).

割付用画像データが作成されたら、次に、ジョブ定義ファイル作成手段10は、全ての指定解像度n(n=1,2,・・・,N)について処理が終了したか否かを判断する(ステップS5)。具体的には、n=Nに達したか否かにより判断する。   Once the allocation image data has been created, the job definition file creation means 10 then determines whether or not the processing has been completed for all the designated resolutions n (n = 1, 2,..., N) ( Step S5). Specifically, the determination is made based on whether or not n = N.

n=Nに達していない場合は、n←n+1としてnをインクリメントし、指定解像度を新たなnに対応するものに変更する(ステップS6)。指定解像度を変更した後は、ステップS2に戻るが、上述のように、ステップS2においては、ステップS3において縮小された縮小画像データの画素数を用いて〔数式1〕に従った処理を実行して、割付解像度を算出する。   If n = N is not reached, n ← n + 1 is incremented, and the designated resolution is changed to one corresponding to the new n (step S6). After the designated resolution is changed, the process returns to step S2, but as described above, in step S2, the process according to [Equation 1] is executed using the number of pixels of the reduced image data reduced in step S3. To calculate the assigned resolution.

ステップS2〜S6の処理をn回繰り返して実行した後、全ての指定解像度について終了したら、ジョブ定義ファイル作成手段10は、代表画像データおよび各指定解像度nの割付用画像データの圧縮を行う(ステップS7)。したがって、N+1個の画像データの圧縮を行うことになる。画像データの圧縮方式としては、公知の種々の圧縮方式を用いることができるが、本実施形態では、JPEG方式を用いている。また、圧縮強度としては、事前に設定された圧縮強度を用いる。   After the processes of steps S2 to S6 are repeated n times and finished for all the designated resolutions, the job definition file creation means 10 compresses the representative image data and the image data for allocation of each designated resolution n (steps). S7). Therefore, N + 1 pieces of image data are compressed. Various known compression methods can be used as the compression method of the image data. In this embodiment, the JPEG method is used. As the compression strength, a preset compression strength is used.

次に、ジョブ定義ファイル作成手段10は、ステップS7において圧縮された画像データを伸張する処理を行う(ステップS8)。すなわち、代表画像データおよび各指定解像度nの割付用画像データを圧縮したN+1個の圧縮画像データの伸張を行うことになる。当然のことながら、圧縮した方式と同様の方式で伸張することになる。したがって、本実施形態では、JPEG方式で伸張を行う。   Next, the job definition file creation means 10 performs a process of expanding the image data compressed in step S7 (step S8). That is, N + 1 compressed image data obtained by compressing the representative image data and the image data for allocation with each designated resolution n is expanded. Naturally, the decompression is performed in the same manner as the compressed method. Therefore, in this embodiment, decompression is performed using the JPEG method.

次に、ジョブ定義ファイル作成手段10は、全ての圧縮強度m(m=1,2,・・・,M)について処理が終了したか否かを判断する(ステップS9)。具体的には、m=Mに達したか否かにより判断する。   Next, the job definition file creation means 10 determines whether or not the processing has been completed for all the compression strengths m (m = 1, 2,..., M) (step S9). Specifically, the determination is made based on whether m = M has been reached.

m=Mに達していない場合は、m←m+1としてmをインクリメントし、指定圧縮強度を新たなmに対応するものに変更する(ステップS10)。圧縮強度を変更した後は、変更後の圧縮強度により、ステップS7における画像データの圧縮、ステップS8における画像データの伸張を繰り返して行う。   If m = M has not been reached, m is incremented as m ← m + 1, and the designated compression strength is changed to that corresponding to the new m (step S10). After changing the compression strength, the compression of the image data in step S7 and the expansion of the image data in step S8 are repeatedly performed according to the compression strength after the change.

ステップS7〜S10の処理をm回繰り返して実行した後、全ての圧縮強度について終了したら、ジョブ定義ファイル作成手段10は、全ての伸張画像の割り付けを行う(ステップS11)。したがって、(N+1)×M個の伸張画像の割り付けを行うことになる。割り付けは、縦横の一方の軸を圧縮強度、他方の軸を指定解像度として行い、この結果、対象とするページのバリエーションチャートが得られる。同様にして、文書ファイル内のページ数だけ図3の処理を実行し、文書ファイル内の全ページのバリエーションチャートが得られる。   After the processes of steps S7 to S10 are repeated m times, and when all the compression strengths are completed, the job definition file creation unit 10 assigns all the decompressed images (step S11). Therefore, (N + 1) × M expanded images are allocated. Allocation is performed using one of the vertical and horizontal axes as the compression strength and the other axis as the designated resolution. As a result, a variation chart of the target page is obtained. Similarly, the process of FIG. 3 is executed for the number of pages in the document file, and a variation chart of all pages in the document file is obtained.

図9は、作成されたバリエーションチャートの割り付け位置を示す図である。図9に示すように、バリエーションチャートは、ページ単位で構成される。図9(a)は、ページ1のバリエーションチャート、図9(b)は、ページPのバリエーションチャートを示している。図9(a)(b)に示すように、各ページのバリエーションチャートには、横軸を指定解像度、縦軸を圧縮強度として、指定解像度および圧縮強度を変化させた伸張画像データが割り付けられている。   FIG. 9 is a diagram showing the allocation position of the created variation chart. As shown in FIG. 9, the variation chart is configured in units of pages. 9A shows a variation chart for page 1 and FIG. 9B shows a variation chart for page P. FIG. As shown in FIGS. 9A and 9B, the variation chart of each page is allocated with the expanded image data in which the designated resolution and the compression strength are changed with the designated resolution on the horizontal axis and the compression strength on the vertical axis. Yes.

図10は、あるページにおけるバリエーションチャートの具体例を示す図である。図10は、指定解像度の数N=4、圧縮強度の数M=5の場合を示しており、全部で(N+1)×M=25個の伸張画像が表示されている。図10から明らかなように、傾向としては、左上から右下方向に向かって徐々に伸張画像が不鮮明になっていく。   FIG. 10 is a diagram showing a specific example of a variation chart on a certain page. FIG. 10 shows the case where the number of designated resolutions N = 4 and the number of compression strengths M = 5, and (N + 1) × M = 25 decompressed images are displayed in total. As is apparent from FIG. 10, as a tendency, the stretched image gradually becomes unclear from the upper left toward the lower right.

図11は、図10に示したバリエーションチャートにおける各圧縮画像データの、原画像データに対するデータ量の比率を示す図である。図11に示すように、指定解像度が低くなるに従ってデータ量が小さくなり、圧縮強度が強くなるに従ってデータ量が小さくなることがわかる。ジョブ定義ファイル作成手段10は、バリエーションチャート作成後、図10に示したバリエーションチャートと、図11に示したバリエーションチャートの2つを表示部6に表示し、利用者に対して選択を促す。圧縮強度の設定の手法としては、様々な手法があるが、本実施形態では、図10、図11に示すように、最高画質、高画質、中画質、低画質、最低画質の5段階で設定している。最高画質の場合、非圧縮であるため圧縮を行わない。圧縮強度を高める程、画質は低下していく。図10、図11のバリエーションチャートにおいて、太枠で囲まれた代表画像(オリジナルの解像度)・中画質と、指定解像度4・高画質を比較すると、代表画像・中画質の方がデータ量が小さく、画像が鮮明であることがわかる。この場合、代表画像・中画質の画像を選択することが好ましい(具体的には、オリジナルの解像度を維持し解像度変換を行わず、中画質でJPEG圧縮のみを行うという指示になる)。利用者は、このように2つのバリエーションチャートを見比べて、バリエーションチャートの中から1つの枠を選択する。ジョブ定義ファイル作成手段10は、選択された枠に対応する指定解像度および圧縮強度を、そのページの定義値(定義解像度および圧縮強度)としてジョブ定義ファイルに記録する。   FIG. 11 is a diagram showing the ratio of the data amount of each compressed image data to the original image data in the variation chart shown in FIG. As shown in FIG. 11, it can be seen that the data amount decreases as the specified resolution decreases, and the data amount decreases as the compression strength increases. After creating the variation chart, the job definition file creation means 10 displays the variation chart shown in FIG. 10 and the variation chart shown in FIG. 11 on the display unit 6 to prompt the user to select. There are various methods for setting the compression strength. In this embodiment, as shown in FIGS. 10 and 11, the compression strength is set in five stages of the highest image quality, high image quality, medium image quality, low image quality, and lowest image quality. doing. In the case of the highest image quality, compression is not performed because it is uncompressed. The higher the compression strength, the lower the image quality. In the variation charts of FIGS. 10 and 11, when the representative image (original resolution) / medium image quality surrounded by a thick frame is compared with the designated resolution 4 / high image quality, the data amount of the representative image / medium image quality is smaller. It can be seen that the image is clear. In this case, it is preferable to select a representative image / medium image quality (specifically, the instruction is to maintain only the original resolution and not perform resolution conversion, and only perform JPEG compression with medium image quality). In this way, the user compares the two variation charts and selects one frame from the variation charts. The job definition file creation unit 10 records the designated resolution and compression strength corresponding to the selected frame in the job definition file as the definition values (definition resolution and compression strength) of the page.

同様にして、各ページについて、バリエーションチャートを表示し、指定解像度および圧縮強度の選択に基づいて、定義値(定義解像度および圧縮強度)を記録することにより、ジョブ定義ファイルが完成する。図12は、ジョブ定義ファイル作成手段10により作成されたジョブ定義ファイルの一例を示す図である。図12に示すように、ジョブ定義ファイルにおいては、ページごとに定義解像度と圧縮強度の組が記録されている。ジョブ定義ファイル作成手段10は、作成したジョブ定義ファイルをジョブ定義ファイル記憶手段80に記憶させる。また、定義解像度に基づいて上限解像度を定義する。定義解像度に基づいた上限解像度の定義規則としては、様々なものを用いることができるが、本実施形態では、定義解像度に1以上の係数を乗じた値を定義している。後述の例では、この係数を1.5に設定している。   Similarly, a variation chart is displayed for each page, and a definition value (definition resolution and compression strength) is recorded based on selection of a designated resolution and compression strength, thereby completing a job definition file. FIG. 12 is a diagram illustrating an example of a job definition file created by the job definition file creation unit 10. As shown in FIG. 12, in the job definition file, a set of definition resolution and compression strength is recorded for each page. The job definition file creation unit 10 stores the created job definition file in the job definition file storage unit 80. Also, an upper limit resolution is defined based on the definition resolution. Various rules can be used for defining the upper limit resolution based on the definition resolution. In this embodiment, a value obtained by multiplying the definition resolution by one or more coefficients is defined. In the example described later, this coefficient is set to 1.5.

<1.3.電子文書ファイルの圧縮>
ジョブ定義ファイルが作成され、ジョブ定義ファイル記憶手段80内に準備でできたら、電子文書ファイルの圧縮を行う。図4は、電子文書ファイルの圧縮処理を示すフローチャートである。電子文書ファイルの圧縮装置では、まず、画像解像度変換手段20が、ジョブ定義ファイル記憶手段80からジョブ定義ファイルを読み込んだ後、ジョブ定義ファイルからページp(p=1,2,・・・,P:初期値p=1)の定義値(定義解像度および圧縮強度)を読み込む(ステップS21)。
<1.3. Compression of electronic document files>
When the job definition file is created and ready in the job definition file storage unit 80, the electronic document file is compressed. FIG. 4 is a flowchart showing compression processing of an electronic document file. In the electronic document file compression apparatus, first, the image resolution conversion means 20 reads a job definition file from the job definition file storage means 80 and then pages p (p = 1, 2,..., P from the job definition file. : The definition value (definition resolution and compression strength) of the initial value p = 1) is read (step S21).

次に、画像解像度変換手段20は、文書ファイル記憶手段60から文書ファイルを読み込み、ページpに貼り込まれている画像データを読み込む(ステップS22)。続いて、画像解像度変換手段20は、ステップS21においてジョブ定義ファイルから読み込んだ定義解像度に基づいて設定された上限解像度と、ステップS22において読み込んだ画像データの解像度の比較を行う(ステップS23)。ここで、上限解像度としては、ジョブ定義ファイルから読み込んだ定義解像度そのものではなく、1.5倍した値とし、ステップS23で参照する上限解像度として使用する。その理由は、読み込んだ画像データの解像度は例えば301PPIなど端数をもち、定義解像度が300PPIの場合、ステップS24に進み解像度変換処理が行われてしまう。解像度変換処理は、たとえバイキュービック法を用いても画質の劣化が避けられず、可能な限り実行されないことが望ましい。そこで、読み込んだ画像データの解像度が301〜450PPIの境界範囲であれば、ステップS24に進まないように上限解像度の値を定義解像度より若干大きくする。450PPIを超える場合は、ステップS24で300PPIに縮小され、この場合の変更先の解像度は定義解像度そのものを使用する。画像データの解像度は、画像解像度変換手段20が読み込んだ画像の画素数を認識し、その画素数を、事前に設定された割り付け実寸法で除算することにより算出する。   Next, the image resolution conversion unit 20 reads the document file from the document file storage unit 60 and reads the image data pasted on the page p (step S22). Subsequently, the image resolution conversion means 20 compares the upper limit resolution set based on the definition resolution read from the job definition file in step S21 and the resolution of the image data read in step S22 (step S23). Here, the upper limit resolution is not the definition resolution itself read from the job definition file, but a value multiplied by 1.5 and used as the upper limit resolution referred to in step S23. The reason is that if the resolution of the read image data has a fraction such as 301 PPI and the definition resolution is 300 PPI, the process proceeds to step S24 and resolution conversion processing is performed. Even if the bicubic method is used, the resolution conversion process cannot avoid deterioration of the image quality, and is preferably not performed as much as possible. Therefore, if the resolution of the read image data is within the boundary range of 301 to 450 PPI, the value of the upper limit resolution is made slightly larger than the definition resolution so as not to proceed to step S24. If it exceeds 450 PPI, it is reduced to 300 PPI in step S24, and the definition resolution in this case uses the definition resolution itself. The resolution of the image data is calculated by recognizing the number of pixels of the image read by the image resolution conversion means 20 and dividing the number of pixels by a preset actual size.

ステップS23における比較の結果、読み込んだ画像の解像度が上限解像度以下である場合は、解像度の変換を行わず、ステップS25へ進む。読み込んだ画像の解像度が上限解像度以下の場合、これ以上解像度を落とす必要がないためである。一方、ステップS23における比較の結果、読み込んだ画像の解像度が上限解像度より大きい場合は、解像度を変換する処理を行う(ステップS24)。具体的には、(定義解像度)/(読み込んだ画像の解像度)の比率で画像を縮小する処理を行う。これにより、画素数が減少した縮小画像データが得られる。   As a result of the comparison in step S23, if the resolution of the read image is less than or equal to the upper limit resolution, resolution conversion is not performed and the process proceeds to step S25. This is because when the resolution of the read image is lower than the upper limit resolution, it is not necessary to lower the resolution any more. On the other hand, if the result of comparison in step S23 is that the resolution of the read image is greater than the upper limit resolution, processing for converting the resolution is performed (step S24). Specifically, a process of reducing the image at a ratio of (definition resolution) / (resolution of the read image) is performed. Thereby, reduced image data with a reduced number of pixels is obtained.

次に、画像圧縮手段30が、画像の圧縮を行う(ステップS25)。ステップS25では、画像解像度変換手段20により解像度が変換された画像データ、変換されなかった画像データのいずれについても圧縮を行う。圧縮強度は、ジョブ定義ファイルのページごとに設定された5段階のうちのいずれかの圧縮強度で行う。1つのページに複数の画像が貼り込まれている場合、それらの画像は、共通の圧縮強度で圧縮されることになる。圧縮方式については、公知の種々の方式を用いることができるが、ジョブ定義ファイル作成の際に用いた方式である必要がある。従って、本実施形態では、JPEG方式を用いている。ステップS22〜S25の処理は、ステップS21において読み込まれたページpに対応する全ての画像データに対して行う。   Next, the image compression means 30 compresses the image (step S25). In step S25, both the image data whose resolution has been converted by the image resolution conversion means 20 and the image data that has not been converted are compressed. The compression strength is set at any one of the five levels set for each page of the job definition file. When a plurality of images are pasted on one page, the images are compressed with a common compression strength. Various known methods can be used as the compression method, but it is necessary to use the method used when creating the job definition file. Therefore, in this embodiment, the JPEG method is used. The processes in steps S22 to S25 are performed on all image data corresponding to the page p read in step S21.

ページpにおける全ての画像データを圧縮したら、次に、単一ページ変換手段40が、ページデータの作成を行う(ステップS26)。ページデータの形式については、公知の種々の形式を用いることができるが、本実施形態では、PDF形式を用いている。具体的には、圧縮画像データを文書ファイルに貼り込み、貼り込みされたページの文書をPDF形式のページデータに変換する。この処理は、Acrobat(登録商標)等の公知のPDF変換アプリケーションと同様のアルゴリズムを用いて、行われる。   After all the image data on the page p is compressed, the single page conversion means 40 creates page data (step S26). As the page data format, various known formats can be used, but in this embodiment, the PDF format is used. Specifically, the compressed image data is pasted into a document file, and the pasted page document is converted into PDF page data. This process is performed using an algorithm similar to a known PDF conversion application such as Acrobat (registered trademark).

続いて、データ量算出手段50が、文書ファイル内の全てのページについてページデータ作成までの処理を終えたか否かの判断を行う(ステップS27)。具体的には、Pページを有する文書ファイルの場合、p=Pとなったか否かにより判断する。全てのページについて処理を終えていない場合(p<Pである場合)、データ量算出手段50は、次のページに処理対象を変更する(ステップS28)。具体的には、p←p+1としてpをインクリメントし、新たなページpに対して、ステップS21からの処理を行う。   Subsequently, the data amount calculation unit 50 determines whether or not the processing up to the creation of page data has been completed for all pages in the document file (step S27). Specifically, in the case of a document file having P pages, the determination is made based on whether or not p = P. When the processing has not been completed for all pages (when p <P), the data amount calculation unit 50 changes the processing target to the next page (step S28). Specifically, p is incremented as p ← p + 1, and the process from step S21 is performed on the new page p.

ステップS27において、文書ファイル内の全てのページに対して処理を行ったと判断された場合には、データ量算出手段50が、全ページの総データ量算出を行う(ステップS29)。具体的には、圧縮画像を含んだページデータのデータ量の総和を求めることにより算出する。   If it is determined in step S27 that processing has been performed for all pages in the document file, the data amount calculation unit 50 calculates the total data amount of all pages (step S29). Specifically, the calculation is performed by obtaining the sum of the data amount of the page data including the compressed image.

そして、データ量算出手段50は、事前に設定されたデータ量の上限値との比較を行う(ステップS30)。比較の結果、ステップS29において算出された総データ量が上限値を超える場合には、データ量算出手段50は、ジョブ定義ファイルの修正を行う(ステップS31)。具体的には、各ページの定義解像度、圧縮強度を1段階低いものに変更する。そして、p=1とした後、ステップS21に戻って、1ページ目から再度文書ファイルに対して処理を行う。   Then, the data amount calculation unit 50 compares the data amount with the upper limit value set in advance (step S30). As a result of the comparison, when the total data amount calculated in step S29 exceeds the upper limit value, the data amount calculation unit 50 corrects the job definition file (step S31). More specifically, the definition resolution and compression strength of each page are changed to one level lower. After setting p = 1, the process returns to step S21, and the document file is processed again from the first page.

ステップS30における比較の結果、総データ量が上限値以下となった場合には、ファイル統合手段55は、全てのページを1つの圧縮文書ファイルに統合する(ステップS32)。この処理は、Acrobat等の公知のPDF変換アプリケーションと同様のアルゴリズムを用いて、行われる。   As a result of the comparison in step S30, when the total data amount is equal to or less than the upper limit value, the file integration unit 55 integrates all pages into one compressed document file (step S32). This processing is performed using an algorithm similar to a known PDF conversion application such as Acrobat.

<2.変形例等>
以上、本発明の好適な実施形態について限定したが、本発明は上記実施形態に限定されず、種々の変形が可能である。例えば、上記実施形態では、ジョブ定義ファイルにおいて、文書ファイルを構成する各ページに対して、解像度と圧縮強度を定義するようにしたが、JPEG圧縮強度は定義せず、解像度のみ定義するようにしても良い。
<2. Modified example>
As mentioned above, although it limited about the suitable embodiment of the present invention, the present invention is not limited to the above-mentioned embodiment, and various modifications are possible. For example, in the above embodiment, the resolution and the compression strength are defined for each page constituting the document file in the job definition file, but the JPEG compression strength is not defined, and only the resolution is defined. Also good.

また、上記実施形態では、電子文書である文書ファイルとしてPDFを用いた場合を例にとって説明したが、所定の画素ブロック単位で圧縮処理を行う画像を貼付した電子文書であれば、文書形式に関わらず、対応することが可能である。   In the above embodiment, the case where PDF is used as a document file that is an electronic document has been described as an example. However, an electronic document to which an image to be compressed in a predetermined pixel block unit is attached is related to the document format. It is possible to respond.

1・・・CPU(Central Processing Unit)
2・・・RAM(Random Access Memory)
3・・・記憶装置
4・・・キー入力I/F
5・・・データ入出力I/F
6・・・表示部
10・・・ジョブ定義ファイル作成手段
20・・・画像解像度変換手段
30・・・画像圧縮手段
40・・・単一ページ変換手段
50・・・データ量算出手段
55・・・ファイル統合手段
60・・・文書ファイル記憶手段
70・・・圧縮文書ファイル記憶手段
80・・・ジョブ定義ファイル記憶手段
1 ... CPU (Central Processing Unit)
2 ... RAM (Random Access Memory)
3 ... Storage device 4 ... Key input I / F
5. Data input / output I / F
6 ... Display section 10 ... Job definition file creation means 20 ... Image resolution conversion means 30 ... Image compression means 40 ... Single page conversion means 50 ... Data amount calculation means 55 ... File integration means 60 ... Document file storage means 70 ... Compressed document file storage means 80 ... Job definition file storage means

Claims (6)

複数のページで構成される文書ファイルに貼り込まれている画像データの解像度をページごとに変化させることにより、文書ファイルのデータ量を削減する電子文書ファイルの圧縮装置であって、
前記文書ファイルを構成する各ページに対して解像度を定義したジョブ定義ファイルを読み込み、前記文書ファイルを構成する各ページにおいて、前記ジョブ定義ファイルに定義された定義解像度に基づいて設定された上限解像度を超える解像度の画像データが存在する場合、当該画像データに対して前記ジョブ定義ファイルに定義された前記定義解像度になるように解像度変換を行う画像解像度変換手段と、
前記画像解像度変換手段により解像度変換された画像データおよび前記画像解像度変換手段により解像度変換されなかった画像データの双方に対して、所定の圧縮強度に基づいて圧縮を施す画像圧縮手段と、
前記画像圧縮手段により圧縮された画像データを含む前記文書ファイルを構成する各ページの画像以外の要素に対して形式変換を施し、単一ページデータを作成する単一ページ変換手段と、
前記単一ページ変換手段により変換された前記文書ファイルを構成する全てのページに対応する単一ページデータの総データ量を算出するデータ量算出手段と、
前記文書ファイルを構成する全てのページに対応する単一ページデータを単一のファイルに統合するファイル統合手段と、を有し、
前記データ量算出手段により算出された総データ量が所定の値を超えている場合、前記ジョブ定義ファイル作成手段、前記画像解像度変換手段、前記画像圧縮手段および前記単一ページ変換手段により、前記総データ量が所定の値に収まるまで再度単一ページデータを作成する処理が行われ、前記ファイル統合手段は、前記総データ量が所定の値に収まっている場合に、前記ファイル統合手段により、単一のファイルに統合する処理がなされるようにしていることを特徴とする電子文書ファイルの圧縮装置。
An electronic document file compression apparatus that reduces the data amount of a document file by changing the resolution of image data pasted in a document file composed of a plurality of pages for each page,
A job definition file in which resolution is defined for each page constituting the document file is read, and an upper limit resolution set based on the definition resolution defined in the job definition file is set for each page constituting the document file. Image resolution conversion means for performing resolution conversion so that the image data having the resolution exceeding the definition resolution defined in the job definition file is applied to the image data;
Image compression means for compressing both the image data converted by the image resolution conversion means and the image data not converted by the image resolution conversion means based on a predetermined compression strength;
Single page conversion means for performing format conversion on elements other than the images of each page constituting the document file including the image data compressed by the image compression means, and creating single page data;
A data amount calculating means for calculating a total data amount of single page data corresponding to all pages constituting the document file converted by the single page converting means;
File integration means for integrating single page data corresponding to all the pages constituting the document file into a single file,
When the total data amount calculated by the data amount calculation unit exceeds a predetermined value, the job definition file creation unit, the image resolution conversion unit, the image compression unit, and the single page conversion unit The process of creating single page data again is performed until the data amount falls within a predetermined value. When the total data amount falls within the predetermined value, the file integration unit uses the file integration unit to An apparatus for compressing an electronic document file, characterized in that processing for integration into one file is performed.
請求項1において、
前記ジョブ定義ファイルは、前記文書ファイルを構成する各ページに対して、前記解像度に加え圧縮強度も定義されており、
前記画像圧縮手段は、前記所定の圧縮強度として、各ページに対して、前記ジョブ定義ファイルに定義された圧縮強度を用いて圧縮を施すようにしていることを特徴とする電子文書ファイルの圧縮装置。
In claim 1,
The job definition file defines the compression strength in addition to the resolution for each page constituting the document file.
The image compression unit compresses each page using the compression strength defined in the job definition file as the predetermined compression strength. .
請求項1または請求項2において、
前記上限解像度は、前記ジョブ定義ファイルに定義された定義解像度に1以上の所定の係数を乗じて設定されていることを特徴とする電子文書ファイルの圧縮装置。
In claim 1 or claim 2,
The electronic document file compression apparatus, wherein the upper limit resolution is set by multiplying a definition resolution defined in the job definition file by a predetermined coefficient of 1 or more.
請求項1から請求項3のいずれか一項において、
前記文書ファイルを構成する各ページより単一の画像データを抽出し、抽出された画像データ全体または一部の領域に対して、解像度をN(N>1)個の値に変化させたN個の解像度に対応する解像度変換画像データを作成して表示し、表示された解像度変換画像データから選択された解像度変換画像データに対応する解像度を、各ページの解像度として定義することにより前記ジョブ定義ファイルを作成するジョブ定義ファイル作成手段を有することを特徴とする電子文書ファイルの圧縮装置。
In any one of Claims 1-3,
A single image data is extracted from each page constituting the document file, and the resolution is changed to N (N> 1) values for the whole or a part of the extracted image data. The job definition file is generated by generating and displaying resolution-converted image data corresponding to the resolution of the image, and defining the resolution corresponding to the resolution-converted image data selected from the displayed resolution-converted image data as the resolution of each page. An electronic document file compression apparatus comprising job definition file creation means for creating a file.
請求項4において、
前記ジョブ定義ファイル作成手段は、前記抽出された画像データ全体または一部の領域および前記作成されたN個の解像度変換画像データの各々に対して、更に、M(M>1)個の圧縮強度により圧縮を施してM個の圧縮強度に対応した圧縮画像データを作成し、作成された圧縮画像データおよび圧縮画像データのデータ量を表示し、表示された圧縮画像データから選択された圧縮画像データに対応する圧縮強度を、各ページの圧縮強度として定義するようにしていることを特徴とする電子文書ファイルの圧縮装置。
In claim 4,
The job definition file creation means further includes M (M> 1) compression intensities for the whole or a part of the extracted image data and each of the created N resolution conversion image data. To generate compressed image data corresponding to M compression intensities, display the generated compressed image data and the data amount of the compressed image data, and select compressed image data from the displayed compressed image data The electronic document file compression apparatus is characterized in that the compression strength corresponding to is defined as the compression strength of each page.
請求項1から請求項5のいずれか一項に記載の電子文書ファイルの圧縮装置として、コンピュータを機能させるためのプログラム。   A program for causing a computer to function as the electronic document file compression device according to any one of claims 1 to 5.
JP2013017632A 2013-01-31 2013-01-31 Electronic document file compression device Expired - Fee Related JP6089738B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2013017632A JP6089738B2 (en) 2013-01-31 2013-01-31 Electronic document file compression device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2013017632A JP6089738B2 (en) 2013-01-31 2013-01-31 Electronic document file compression device

Publications (2)

Publication Number Publication Date
JP2014150385A JP2014150385A (en) 2014-08-21
JP6089738B2 true JP6089738B2 (en) 2017-03-08

Family

ID=51573051

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2013017632A Expired - Fee Related JP6089738B2 (en) 2013-01-31 2013-01-31 Electronic document file compression device

Country Status (1)

Country Link
JP (1) JP6089738B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP6464973B2 (en) * 2015-09-25 2019-02-06 京セラドキュメントソリューションズ株式会社 Information processing apparatus, information processing method, and information processing program

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0832781A (en) * 1994-07-18 1996-02-02 Fuji Xerox Co Ltd Image processor
JP2004200893A (en) * 2002-12-17 2004-07-15 Fuji Xerox Co Ltd Encoder, encoding method, and encoding program
JP2008072624A (en) * 2006-09-15 2008-03-27 Canon Inc Image coding apparatus and control method thereof

Also Published As

Publication number Publication date
JP2014150385A (en) 2014-08-21

Similar Documents

Publication Publication Date Title
JP5290487B2 (en) System and method for digital document processing
JP5274305B2 (en) Image processing apparatus, image processing method, and computer program
US9619440B2 (en) Document conversion apparatus
JP2012022695A (en) Method for digital document processing
US20190361907A1 (en) Method for providing e-book service and computer program therefor
US7853873B2 (en) Data processing apparatus, data processing method, and computer program for generating electronic data from a paper document
JP2011136447A (en) Information processor, control method for information processor and computer program
JP2016107490A (en) Image forming apparatus, control method, and program
US9781300B1 (en) Method and system for removing objects from a print document
JP6089738B2 (en) Electronic document file compression device
JP6142549B2 (en) Electronic document image compression device
JP6206641B2 (en) Electronic document file compression device
JP2016115963A (en) Image processing apparatus, image processing method and program
JP2015139062A (en) Printing system, information processing apparatus, control method thereof and program
US9483443B2 (en) Tiled display list
JP5299469B2 (en) Image display device, image display system, and image display control program
JP5139779B2 (en) Image forming apparatus and image forming method
JP2006054817A (en) Document processor
JP4725597B2 (en) Document processing apparatus, program, and document management apparatus
KR20200025475A (en) Method for Producting E-Book and Computer Program Therefore
JP5142949B2 (en) Image processing apparatus and image processing method
WO2001080069A1 (en) Systems and methods for digital document processing
JP2011134035A (en) Image processing device, control method therefor and program
JP2015150763A (en) Printing apparatus, information processing apparatus, data processing method for printing apparatus, data processing method for information processing apparatus, and program
JPH11143863A (en) Document creation device and recording medium

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20151127

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20161226

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

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20170110

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20170123

R150 Certificate of patent or registration of utility model

Ref document number: 6089738

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

LAPS Cancellation because of no payment of annual fees