JP6857277B1 - Information processing device, PDF file generation method, and PDF file generation program - Google Patents

Information processing device, PDF file generation method, and PDF file generation program Download PDF

Info

Publication number
JP6857277B1
JP6857277B1 JP2020171105A JP2020171105A JP6857277B1 JP 6857277 B1 JP6857277 B1 JP 6857277B1 JP 2020171105 A JP2020171105 A JP 2020171105A JP 2020171105 A JP2020171105 A JP 2020171105A JP 6857277 B1 JP6857277 B1 JP 6857277B1
Authority
JP
Japan
Prior art keywords
file
pdf
pdf file
document
size
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
JP2020171105A
Other languages
Japanese (ja)
Other versions
JP2022062910A (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.)
Skycom Corp
Original Assignee
Skycom Corp
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 Skycom Corp filed Critical Skycom Corp
Priority to JP2020171105A priority Critical patent/JP6857277B1/en
Application granted granted Critical
Publication of JP6857277B1 publication Critical patent/JP6857277B1/en
Publication of JP2022062910A publication Critical patent/JP2022062910A/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Editing Of Facsimile Originals (AREA)
  • Processing Or Creating Images (AREA)

Abstract

【課題】文書ファイルに含まれる所定種別のオブジェクトを他の種別のオブジェクトとの関係においてユーザが意図する位置に配置する。【解決手段】領域オブジェクト配置部104は所定種別のオブジェクトを削除した文書ファイルに領域オブジェクトを配置し、文書サイズ算出部105は文書ファイルのサイズを算出し、PDFファイル生成部106は所定種別のオブジェクトを削除した文書ファイルから第1のPDFファイルを生成し、領域オブジェクトを配置した文書ファイルから第2のPDFファイルを生成し、PDFサイズ算出部107は、第2のPDFファイルのサイズを算出し、変換率算出部108は、文書ファイルのサイズと第2のPDFファイルのサイズから変換率を算出し、位置情報算出部109は、変換率を用いてオブジェクトの位置情報を算出し、オブジェクト配置部110は、所定種別のオブジェクトを第1のPDFファイルに位置情報に基づき配置する。【選択図】図1PROBLEM TO BE SOLVED: To arrange an object of a predetermined type included in a document file at a position intended by a user in relation to an object of another type. SOLUTION: An area object arranging unit 104 arranges an area object in a document file in which an object of a predetermined type is deleted, a document size calculation unit 105 calculates the size of the document file, and a PDF file generation unit 106 is an object of a predetermined type. The first PDF file is generated from the document file in which the above is deleted, the second PDF file is generated from the document file in which the area object is arranged, and the PDF size calculation unit 107 calculates the size of the second PDF file. The conversion rate calculation unit 108 calculates the conversion rate from the size of the document file and the size of the second PDF file, and the position information calculation unit 109 calculates the position information of the object using the conversion rate, and the object placement unit 110 Places a predetermined type of object in the first PDF file based on the position information. [Selection diagram] Fig. 1

Description

本発明は、情報処理装置、PDFファイル生成方法、およびPDFファイル生成プログラムに関する。 The present invention relates to an information processing apparatus, a PDF file generation method, and a PDF file generation program.

PDF(Portable Document Format)ファイルは、ユーザが操作する情報端末装置の使用環境に影響されることが少なく、文書をページごとに印刷または画面表示することができ、レイアウトが崩れることもないため、ビジネス文書として広く利用されている。PDFファイルを作成する際には、表計算プログラムや文書作成プログラム等のアプリケーションプログラムで文書の内容を記述した文書ファイルを作成し、それぞれのプログラムによって提供された、文書ファイルをPDF形式に変換する機能によってPDFファイルを生成することが一般的である。 PDF (Portable Document Format) files are less affected by the usage environment of the information terminal device operated by the user, documents can be printed or displayed on the screen page by page, and the layout is not disrupted. Widely used as a document. When creating a PDF file, a function to create a document file that describes the contents of the document with an application program such as a table calculation program or a document creation program, and to convert the document file provided by each program to PDF format. It is common to generate a PDF file by.

しかし、アプリケーションプログラムがPDF変換ドライバにどのような印刷コマンドを渡すかが明確でないため、例えば元の原稿において文字と文字の間が空いた文字列を、文字と文字との間に空白を加えたPDFファイルを生成するか空白を加えず文字間隔を広げてPDFファイルを生成するかが場合によって異なり、文字列を検索した際に対象の文字列を検索できる場合とできない場合が発生し、ユーザが困惑するという事態が生じていた。このような問題を解決するために、PDFを生成する際に、文字間にスペースが挿入されない文字幅を設定し、設定された文字幅で文字列を描画する技術が開示されている。(特許文献1参照)。 However, since it is not clear what kind of print command the application program passes to the PDF conversion driver, for example, in the original manuscript, a character string with a space between characters is added with a space between characters. Whether to generate a PDF file or to generate a PDF file by widening the character spacing without adding spaces depends on the case, and when searching for a character string, the target character string may or may not be searched, and the user may or may not be able to search for the target character string. There was a situation of confusion. In order to solve such a problem, a technique of setting a character width in which a space is not inserted between characters when generating a PDF and drawing a character string with the set character width is disclosed. (See Patent Document 1).

特開2018-36908号公報Japanese Unexamined Patent Publication No. 2018-36908

しかしながら、文書ファイルを生成する際には、上述した問題のほかにも、複数種別のオブジェクトを含む文書ファイルからPDFファイルを生成する場合に、オブジェクトの種別によってPDFファイルに配置される位置が微妙なずれが生じる場合があった。このように、オブジェクトの種別によって位置がずれてオブジェクトが配置された場合、PDFファイル生成後に、PDFファイル編集プログラムを起動しオブジェクトの配置位置を1つ1つ確認し修正する必要があり、多大な労力がかかっていた。 However, when generating a document file, in addition to the above-mentioned problems, when a PDF file is generated from a document file containing multiple types of objects, the position where the PDF file is placed in the PDF file is delicate depending on the type of object. There was a case of deviation. In this way, if the objects are placed out of position depending on the type of object, it is necessary to start the PDF file editing program after generating the PDF file, check the placement positions of the objects one by one, and correct them. It took a lot of effort.

本発明は、上記に鑑みてなされたものであり、文書ファイルに含まれる所定種別のオブジェクトを他の種別のオブジェクトとの関係においてユーザが意図する位置に配置するPDFファイルを生成することができる情報処理装置、PDFファイル生成方法、およびPDFファイル生成プログラムを提供することを目的とする。 The present invention has been made in view of the above, and information capable of generating a PDF file in which an object of a predetermined type included in a document file is arranged at a position intended by the user in relation to an object of another type. It is an object of the present invention to provide a processing apparatus, a PDF file generation method, and a PDF file generation program.

上述した課題を解決するために、本発明では、文書ファイルのページ領域における所定種別のオブジェクトの位置情報を取得し、文書ファイルから所定種別のオブジェクトを削除し、所定種別のオブジェクトを削除した文書ファイルに、文書ファイルのページ領域の境界部を示す領域オブジェクトを配置し、文書ファイルに含まれる領域オブジェクトから文書ファイルのサイズを算出し、所定種別のオブジェクトを削除した文書ファイルから第1のPDFファイルを生成し、領域オブジェクトを配置した文書ファイルから第2のPDFファイルを生成し、第2のPDFファイルに含まれる領域オブジェクトから第2のPDFファイルのサイズを算出し、文書ファイルのサイズと、第2のPDFファイルのサイズとに基づいて、変換率を算出し、算出した変換率を用いて第2のPDFファイルにおける所定種別のオブジェクトの位置情報を算出し、所定種別のオブジェクトを、第1のPDFファイルに、位置情報に基づき配置することを特徴とする。 In order to solve the above-mentioned problems, in the present invention, the position information of a predetermined type of object in the page area of the document file is acquired, the predetermined type of object is deleted from the document file, and the predetermined type of object is deleted. Place an area object that indicates the boundary of the page area of the document file, calculate the size of the document file from the area object included in the document file, and delete the first PDF file from the document file with the specified type of object deleted. Generate a second PDF file from the generated document file in which the area object is placed, calculate the size of the second PDF file from the area object included in the second PDF file, and calculate the size of the document file and the second PDF file. The conversion rate is calculated based on the size of the PDF file of the above, the position information of the object of the predetermined type in the second PDF file is calculated using the calculated conversion rate, and the object of the predetermined type is used as the first PDF. It is characterized in that it is placed in a file based on position information.

上述したように構成した本発明によれば、文書ファイルに含まれる所定種別のオブジェクトを他の種別のオブジェクトとの関係においてユーザが意図する位置に配置するPDFファイルを生成することができるという効果を奏する。 According to the present invention configured as described above, it is possible to generate a PDF file in which objects of a predetermined type included in a document file are arranged at positions intended by the user in relation to objects of other types. Play.

本実施例にかかる情報処理装置100の構成を示すブロック図である。It is a block diagram which shows the structure of the information processing apparatus 100 which concerns on this Example. 情報処理装置100で実行されるアプリケーションプログラム101の操作手順を示すフローチャートである。It is a flowchart which shows the operation procedure of the application program 101 executed by the information processing apparatus 100. 情報処理装置100が実行するPDFファイル生成処理手順を示すフローチャートである。It is a flowchart which shows the PDF file generation processing procedure which the information processing apparatus 100 executes. PDFファイルのオブジェクトの位置を調整する処理の流れを示す説明図である。It is explanatory drawing which shows the flow of the process which adjusts the position of the object of a PDF file. 情報処理装置100が実行するPDFファイル生成処理手順を示すフローチャートである。It is a flowchart which shows the PDF file generation processing procedure which the information processing apparatus 100 executes. PDFファイルのオブジェクトの位置を調整する処理の流れを示す説明図である。It is explanatory drawing which shows the flow of the process which adjusts the position of the object of a PDF file.

以下、添付図面を参照し本開示にかかる実施例を説明する。なお、以下の説明は、実施の形態の一例であり、本開示は、これらの実施例に限定されるものではない。 Hereinafter, examples relating to the present disclosure will be described with reference to the accompanying drawings. The following description is an example of the embodiment, and the present disclosure is not limited to these examples.

図1は、本実施例にかかる情報処理装置100の構成を示すブロック図である。情報処理装置100は、パーソナルコンピュータ(以下、PCという)等のコンピュータ装置、スマートフォンやタブレットなどの携帯端末装置等であり、表計算プログラムや文書作成プログラム等のアプリケーションプログラムが動作するとともに、文書ファイルをPDFファイルに変換する際に、複数のオブジェクトの位置関係において位置ずれの生じないPDFファイルを生成するプログラムが動作する装置である。情報処理装置100は、図1(a)に示すように、制御部11、記憶部12、ネットワークI/F部13、操作表示部14等で構成される。 FIG. 1 is a block diagram showing a configuration of an information processing device 100 according to this embodiment. The information processing device 100 is a computer device such as a personal computer (hereinafter referred to as a PC), a portable terminal device such as a smartphone or a tablet, and an application program such as a table calculation program or a document creation program operates and a document file is stored. This is a device that operates a program that generates a PDF file that does not cause misalignment in the positional relationship of a plurality of objects when converting to a PDF file. As shown in FIG. 1A, the information processing device 100 includes a control unit 11, a storage unit 12, a network I / F unit 13, an operation display unit 14, and the like.

制御部11は、CPU(Central Processing Unit)11aと、ROM(Read Only Memory)11bやRAM(Random Access Memory)11c等のメモリとで構成され、CPU11aは、ROM11bや記憶部12に記憶した種々のプログラムをRAM11cに展開して実行することにより、情報処理装置100全体の動作を制御する。なお、制御部11は、ASIC(Application Specific Integrated Circuit)やPLD(Programmable Logic Device)等の電子回路で構成してもよい。 The control unit 11 is composed of a CPU (Central Processing Unit) 11a and a memory such as a ROM (Read Only Memory) 11b or a RAM (Random Access Memory) 11c. The CPU 11a includes various types of memories stored in the ROM 11b and the storage unit 12. By expanding the program into the RAM 11c and executing it, the operation of the entire information processing device 100 is controlled. The control unit 11 may be configured by an electronic circuit such as an ASIC (Application Specific Integrated Circuit) or a PLD (Programmable Logic Device).

制御部11は、種々のプログラムをRAM11cに展開し実行することによって、図1(b)に示すように、アプリケーションプログラム101、オブジェクト位置情報取得部102、オブジェクト削除部103、領域オブジェクト配置部104、文書サイズ算出部105、PDFファイル生成部106、PDFサイズ算出部107、変換率算出部108、位置情報算出部109、オブジェクト配置部110、画像ファイル生成部111、画像サイズ算出部112等として機能する。 As shown in FIG. 1B, the control unit 11 expands and executes various programs in the RAM 11c, and as shown in FIG. 1B, the application program 101, the object position information acquisition unit 102, the object deletion unit 103, the area object arrangement unit 104, It functions as a document size calculation unit 105, a PDF file generation unit 106, a PDF size calculation unit 107, a conversion rate calculation unit 108, a position information calculation unit 109, an object placement unit 110, an image file generation unit 111, an image size calculation unit 112, and the like. ..

アプリケーションプログラム101は、文書や表を作成する表計算プログラムや文書作成プロブラム等のアプリケーションプログラム(例えば、Microsoft Excel(登録商標)やMicrosoft Word(登録商標)やMicrosoft PowerPoint(登録商標)等)であり、操作表示部14からデータの入力や編集等を受付けることによって文書ファイルの作成や編集、削除等を実行する。アプリケーションプログラム101は、作成した文書ファイルをRAM11c、または記憶部12に格納する。 The application program 101 is an application program such as a spreadsheet program for creating a document or a table or a document creation program (for example, Microsoft Excel (registered trademark), Microsoft Word (registered trademark), Microsoft PowerPoint (registered trademark), etc.). Document files are created, edited, deleted, etc. by accepting data input, editing, etc. from the operation display unit 14. The application program 101 stores the created document file in the RAM 11c or the storage unit 12.

オブジェクト位置情報取得部102は、アプリケーションプログラム101で生成した文書ファイルに含まれるオブジェクトのうちの所定種別のオブジェクトの位置情報を取得する。位置情報とは、文書ファイルのページ領域における、原点(0,0)を基準としたオブジェクトの基準点の座標である。 The object position information acquisition unit 102 acquires the position information of a predetermined type of object among the objects included in the document file generated by the application program 101. The position information is the coordinates of the reference point of the object with respect to the origin (0,0) in the page area of the document file.

文書ファイルに含まれるオブジェクトとは、文書を構成するテキストデータや画像データ、図形データ、フォーム情報等のさまざまな種別のデータである。テキストデータであれば、文字列に加え、属性情報として文字サイズや文字フォント、色情報等を保持している。画像データであれば、画像データ本体に加え、属性情報としてサイズやデータ形式、色数、種別、メタデータ等を保持している。図形データの場合は、図形の種別や座標、塗り潰しの有無、色情報等を保持している。フォーム情報の場合は、位置およびサイズに加え、属性情報としてフォーム種別やフォーム名称、初期値等を保持している。 The objects included in the document file are various types of data such as text data, image data, graphic data, and form information that compose the document. In the case of text data, in addition to the character string, character size, character font, color information, etc. are stored as attribute information. In the case of image data, in addition to the image data body, size, data format, number of colors, type, metadata, etc. are held as attribute information. In the case of graphic data, the type and coordinates of the graphic, the presence or absence of filling, color information, etc. are retained. In the case of form information, in addition to the position and size, the form type, form name, initial value, etc. are held as attribute information.

所定種別のオブジェクトとは、文書ファイルからPDFファイルに変換した場合に、PDFファイルにおける配置位置が他のオブジェクト配置位置との関係でずれが生じるオブジェクトであり、文書ファイルに含まれるオブジェクトのうちの一部のオブジェクトである。例えば、ラジオボタンやチェックボックス、プルダウンメニュー、テキストボックス、手書き入力領域等のユーザの操作によるデータの入力を受付ける入力領域やアプリケーションプログラム101で提供しているオブジェクト(例えば、Microsoft Excelの機能であるフォームコントロールやActiveX コントロール等)、ユーザが定義したオブジェクト(例えば、Microsoft Excelのオートシェイプ機能等)、その他の文書ファイルに含まれるオブジェクトであれば、どのようなオブジェクトであってもよい。また、文書ファイルを作成するアプリケーションプログラムごとに、異なる種別のオブジェクトとしてもよい。 A predetermined type of object is an object in which the placement position in the PDF file shifts in relation to the placement position of other objects when the document file is converted to a PDF file, and is one of the objects included in the document file. It is a part object. For example, an input area that accepts data input by user operations such as radio buttons, check boxes, pull-down menus, text boxes, and handwritten input areas, and objects provided by the application program 101 (for example, a form that is a function of Microsoft Excel). It can be any object contained in controls, ActiveX controls, etc.), user-defined objects (eg, Microsoft Excel's AutoShape feature, etc.), and other document files. In addition, different types of objects may be used for each application program that creates a document file.

オブジェクト削除部103は、文書ファイルに含まれるオブジェクトのうち、所定種別のオブジェクトを削除する。オブジェクト削除部103は、文書ファイルに含まれる、すべてのオブジェクトを削除する。オブジェクト削除部103は、文書ファイルのページごとに、削除したオブジェクトの文書ファイルにおける位置情報とオブジェクトに関する情報を記憶部12に格納する。 The object deletion unit 103 deletes a predetermined type of object among the objects included in the document file. The object deletion unit 103 deletes all the objects included in the document file. The object deletion unit 103 stores the position information of the deleted object in the document file and the information about the object in the storage unit 12 for each page of the document file.

領域オブジェクト配置部104は、文書ファイルのページ領域の境界部を示す領域オブジェクトを文書ファイルに配置する。領域オブジェクトとは、文書ファイルにおけるオブジェクトを配置できる範囲(すなわち、文書ファイルのページ領域の境界部)を示すために配置するオブジェクトであり、具体的には、線分や点等である。 The area object arrangement unit 104 arranges an area object indicating the boundary portion of the page area of the document file in the document file. The area object is an object to be arranged to indicate the range in which the object can be arranged in the document file (that is, the boundary portion of the page area of the document file), and specifically, a line segment, a point, or the like.

文書サイズ算出部105は、文書ファイルに配置した領域オブジェクトから文書ファイルを画面に表示、または印刷した際のページごとのサイズを算出する。より具体的には、文書サイズ算出部105は、文書ファイルの各ページのサイズとして、X軸方向の長さ、Y軸方向の長さを算出する。なお、文書ファイルの各ページが同一のサイズである場合は、1ページのサイズのみ算出してもよい。 The document size calculation unit 105 calculates the size of each page when the document file is displayed or printed on the screen from the area object arranged in the document file. More specifically, the document size calculation unit 105 calculates the length in the X-axis direction and the length in the Y-axis direction as the size of each page of the document file. If each page of the document file has the same size, only the size of one page may be calculated.

PDFファイル生成部106は、文書ファイルをPDF形式に変換してPDFファイルを生成する。PDFファイル生成部106は、アプリケーションプログラム101が提供する文書ファイルからPDFファイルに変換する機能を実行し、PDFファイルを生成する。アプリケーションプログラム101で作成される文書ファイルのデータ構造は、公開されていないことが一般的であるため、アプリケーションプログラム101が提供する機能を用いてPDFファイルを生成する。 The PDF file generation unit 106 converts a document file into a PDF format and generates a PDF file. The PDF file generation unit 106 executes a function of converting a document file provided by the application program 101 into a PDF file, and generates a PDF file. Since the data structure of the document file created by the application program 101 is generally not open to the public, the PDF file is generated by using the function provided by the application program 101.

PDFサイズ算出部107は、領域オブジェクトを含むPDFファイルからPDFファイルを画面に表示または印刷した際のページのサイズを算出する。より具体的には、PDFサイズ算出部107は、PDFファイルの各ページのサイズとして、X軸方向の長さ、Y軸方向の長さを算出する。なお、PDFファイルの各ページが同一のサイズである場合は、1ページのサイズのみ算出してもよい。 The PDF size calculation unit 107 calculates the size of the page when the PDF file is displayed or printed on the screen from the PDF file including the area object. More specifically, the PDF size calculation unit 107 calculates the length in the X-axis direction and the length in the Y-axis direction as the size of each page of the PDF file. If each page of the PDF file has the same size, only the size of one page may be calculated.

変換率算出部108は、文書ファイルにおけるページごとのサイズと、PDFファイルにおけるページごとのサイズに基づいて、文書ファイルからPDFファイルに変換した場合に、PDFファイルのサイズがどの程度拡大または縮小したかを示す変換率を算出する。 The conversion rate calculation unit 108 shows how much the size of the PDF file is enlarged or reduced when the document file is converted to the PDF file based on the size of each page in the document file and the size of each page in the PDF file. Calculate the conversion rate indicating.

位置情報算出部109は、変換率を用いて、記憶部12に記憶するオブジェクトごとの文書ファイルの各ページにおける位置情報から、PDFファイルの各ページにおける位置情報を算出する。また、位置情報算出部109は、オブジェクト自体の大きさを変換率を用いて算出する。 The position information calculation unit 109 calculates the position information on each page of the PDF file from the position information on each page of the document file for each object stored in the storage unit 12 by using the conversion rate. Further, the position information calculation unit 109 calculates the size of the object itself by using the conversion rate.

オブジェクト配置部110は、位置情報算出部109によって算出した位置情報に基づいて文書ファイルから削除したオブジェクトそれぞれをPDFファイル上に配置する。 The object arrangement unit 110 arranges each object deleted from the document file on the PDF file based on the position information calculated by the position information calculation unit 109.

画像ファイル生成部111は、PDFファイルから画像ファイルを生成する。画像ファイルは、例えばBMP、PNG、JPG、GIF、TIF形式等の画像ファイルである。 The image file generation unit 111 generates an image file from the PDF file. The image file is, for example, an image file in BMP, PNG, JPG, GIF, TIF format or the like.

画像サイズ算出部112は、領域オブジェクトを含む画像ファイルから画像ファイルを画面に表示または印刷した際のページごとのサイズを算出する。より具体的には、画像サイズ算出部112は、画像ファイルの各ページのサイズとして、X軸方向の長さ、Y軸方向の長さを算出する。 The image size calculation unit 112 calculates the size of each page when the image file is displayed or printed on the screen from the image file including the area object. More specifically, the image size calculation unit 112 calculates the length in the X-axis direction and the length in the Y-axis direction as the size of each page of the image file.

記憶部12は、HDD(Hard Disk Drive)やSSD(Solid State Drive)等で構成され、CPU11aが各部を制御するためのプログラム、各種制御情報、アプリケーションプログラム101、アプリケーションプログラム101で作成した文書ファイル、文書ファイルから削除したオブジェクトごとの位置情報やオブジェクトに関する情報、文書ファイルをPDF形式に変換したPDFファイル、画像ファイル、中間ファイル等を記憶する。 The storage unit 12 is composed of an HDD (Hard Disk Drive), an SSD (Solid State Drive), or the like, and includes a program for the CPU 11a to control each unit, various control information, an application program 101, and a document file created by the application program 101. Stores position information for each object deleted from the document file, information about the object, PDF file converted from the document file to PDF format, image file, intermediate file, and the like.

ネットワークI/F部13は、NIC(Network Interface Card)やモデム等で構成され、ネットワークを介して他の装置と互いに通信可能に接続し、他の装置とデータを送受信する。ネットワークは、インターネット、イントラネット、LAN(Local Area Network)やVPN(Virtual Private Network)、移動体通信網等の任意の通信ネットワークおよびその組合せであり、その一部または全部が有線または無線であってもよい。 The network I / F unit 13 is composed of a NIC (Network Interface Card), a modem, or the like, is connected to another device via a network so as to be able to communicate with each other, and transmits / receives data to / from another device. The network is an arbitrary communication network such as the Internet, an intranet, a LAN (Local Area Network), a VPN (Virtual Private Network), and a mobile communication network, and a combination thereof, even if a part or all of them are wired or wireless. Good.

操作表示部14は、アプリケーションプログラム101、およびその他のプログラムでの操作等を受付け、操作等に対する結果を表示する。操作表示部14は、アプリケーションプログラム101で作成した文書ファイルやPDFファイルの表示画像等を表示する。操作表示部14は、例えばPCの場合は、液晶ディスプレイ(LCD:Liquid Crystal Display)や有機EL(electroluminescence)ディスプレイ等の表示装置やキーボード、マウス等の入力装置であり、タブレット端末、スマートフォンの場合は、液晶ディスプレイとタッチセンサを重畳して構成するタッチパネル等である。 The operation display unit 14 receives operations and the like in the application program 101 and other programs, and displays the results for the operations and the like. The operation display unit 14 displays a display image of a document file or a PDF file created by the application program 101. The operation display unit 14 is, for example, a display device such as a liquid crystal display (LCD) or an organic EL (electroluminescence) display in the case of a PC, or an input device such as a keyboard or a mouse in the case of a tablet terminal or a smartphone. , A touch panel or the like configured by superimposing a liquid crystal display and a touch sensor.

上述のように構成された情報処理装置100で実行するPDFファイル生成処理について説明する。図2は、情報処理装置100で実行されるアプリケーションプログラム101の操作手順を示すフローチャートである。 The PDF file generation process executed by the information processing apparatus 100 configured as described above will be described. FIG. 2 is a flowchart showing an operation procedure of the application program 101 executed by the information processing apparatus 100.

操作表示部14は、アプリケーションプログラム101上での操作を受付け、アプリケーションプログラム101は操作に応じた処理を実行する(ステップS201)。アプリケーションプログラム101は、アプリケーションプログラム101を終了するか否かを判断する(ステップS202)。具体的には、アプリケーションプログラム101の終了指示を受付けたか否かを判断する。アプリケーションプログラム101を終了すると判断した場合は(ステップS202:Yes)、アプリケーションプログラム101を終了する。 The operation display unit 14 receives an operation on the application program 101, and the application program 101 executes a process according to the operation (step S201). The application program 101 determines whether or not to terminate the application program 101 (step S202). Specifically, it is determined whether or not the end instruction of the application program 101 has been accepted. If it is determined that the application program 101 is to be terminated (step S202: Yes), the application program 101 is terminated.

アプリケーションプログラム101を終了しないと判断した場合は(ステップS202:No)、アプリケーションプログラム101は、文書ファイルに対するPDFファイルの生成指示を受付けたか否かを判断する(ステップS203)。ここでのPDFファイルの生成指示は、アプリケーションプログラム101の1機能としての指示である。 If it is determined that the application program 101 is not terminated (step S202: No), the application program 101 determines whether or not the instruction to generate the PDF file for the document file has been accepted (step S203). The PDF file generation instruction here is an instruction as one function of the application program 101.

PDFファイルの生成指示を受付けた場合(ステップS203:Yes)、PDFファイル生成処理を実行する(ステップS204)。詳細は後述する。PDFファイルの生成指示を受付けない場合(ステップS203:No)には、ステップS201に戻り、アプリケーションプログラム101の他の操作を受付け実行する。 When the PDF file generation instruction is received (step S203: Yes), the PDF file generation process is executed (step S204). Details will be described later. If the PDF file generation instruction is not accepted (step S203: No), the process returns to step S201, and another operation of the application program 101 is accepted and executed.

なお、上述した説明では、アプリケーションプログラム101の1機能としてのPDFファイルの生成指示を受付け、PDFファイル生成処理を実行したが、それに代えて、ファイルマネージャーから文書ファイルを選択し、文書ファイルに対するPDFファイルの生成指示を受付け、PDFファイル生成処理を実行してもよい。 In the above description, the PDF file generation instruction as one function of the application program 101 is accepted and the PDF file generation process is executed. Instead, the document file is selected from the file manager and the PDF file for the document file is selected. The PDF file generation process may be executed by accepting the generation instruction of.

次に、ステップS204のPDFファイル生成処理の詳細について説明する。図3は、情報処理装置100が実行するPDFファイル生成処理手順を示すフローチャートである。 Next, the details of the PDF file generation process in step S204 will be described. FIG. 3 is a flowchart showing a PDF file generation processing procedure executed by the information processing apparatus 100.

オブジェクト位置情報取得部102は、文書ファイルに含まれる所定種別のオブジェクトの位置情報を取得する(ステップS301)。図4は、PDFファイルのオブジェクトの位置を調整する処理の流れを示す説明図である。図4(a)に示す文書ファイルにおいて、文書ファイルの原点41の座標(0,0)を基準としたオブジェクト42の位置情報(Xa,Ya)を取得する。なお、水平方向(左→右)をX軸方向、垂直方向(上→下)をY軸方向とする。オブジェクト位置情報取得部102は、文書ファイルにおける位置情報をオブジェクトの種別、オブジェクトに関する情報とともに記憶部12に格納する。対象となるオブジェクトの種別が複数ある場合や同一の種別のオブジェクトが複数ある場合は、オブジェクトを識別する情報とオブジェクトそれぞれの位置情報とオブジェクトに関する情報とを対応付けて記憶部12に格納する。 The object position information acquisition unit 102 acquires the position information of a predetermined type of object included in the document file (step S301). FIG. 4 is an explanatory diagram showing a flow of processing for adjusting the position of an object in the PDF file. In the document file shown in FIG. 4A, the position information (Xa, Ya) of the object 42 with reference to the coordinates (0,0) of the origin 41 of the document file is acquired. The horizontal direction (left → right) is the X-axis direction, and the vertical direction (up → bottom) is the Y-axis direction. The object position information acquisition unit 102 stores the position information in the document file in the storage unit 12 together with the object type and the information about the object. When there are a plurality of target object types or a plurality of objects of the same type, the information for identifying the objects, the position information of each object, and the information about the objects are stored in the storage unit 12 in association with each other.

オブジェクト削除部103は、所定種別のオブジェクト、すなわちオブジェクト位置情報取得部102によって位置情報を取得したオブジェクトを削除する(ステップS302)。図4(b)は、所定種別のオブジェクトを削除した文書ファイルを示す。PDFファイル生成部106は、所定種別のオブジェクトを削除した文書ファイルからPDFファイル(以下、第1のPDFファイルという)を生成する(ステップS303)。図4(c)は、文書ファイルをPDF形式に変換したPDFファイルを示す。この例では、PDFファイルは、文書ファイルよりX軸方向、Y軸方向のいずれにも縮小している。 The object deletion unit 103 deletes an object of a predetermined type, that is, an object whose position information has been acquired by the object position information acquisition unit 102 (step S302). FIG. 4B shows a document file in which a predetermined type of object is deleted. The PDF file generation unit 106 generates a PDF file (hereinafter, referred to as a first PDF file) from a document file in which an object of a predetermined type is deleted (step S303). FIG. 4C shows a PDF file obtained by converting a document file into a PDF format. In this example, the PDF file is reduced in both the X-axis direction and the Y-axis direction from the document file.

領域オブジェクト配置部104は、文書ファイルにページ領域の境界部を示す領域オブジェクトを配置する(ステップS304)。ページ領域とは、文書1ページとして設定された領域であり、文書が複数ページある場合は、ページごとに設定された領域である。図4(d)は、ページ領域の境界部に領域オブジェクト43(具体的には、4本の線分)を配置した文書ファイルである。 The area object arrangement unit 104 arranges an area object indicating the boundary portion of the page area in the document file (step S304). The page area is an area set as one page of the document, and when the document has a plurality of pages, it is an area set for each page. FIG. 4D is a document file in which the area object 43 (specifically, four line segments) is arranged at the boundary portion of the page area.

文書サイズ算出部105は、文書ファイルのサイズを算出する(ステップS305)。より具体的には、文書ファイルに配置された領域オブジェクトの位置情報から文書1ページのX軸方向およびY軸方向の長さを算出する。図4(d)に示すように、領域オブジェクト43のX軸方向の長さLxaとY軸方向の長さLyaを算出する。PDFファイル生成部106は、領域オブジェクトを含む文書ファイルからPDFファイル(以下、第2のPDFファイルという)を生成する(ステップS306)。図4(e)は、文書ファイルをPDF形式に変換したPDFファイルである。 The document size calculation unit 105 calculates the size of the document file (step S305). More specifically, the length of one page of the document in the X-axis direction and the Y-axis direction is calculated from the position information of the area object arranged in the document file. As shown in FIG. 4D, the length Lxa in the X-axis direction and the length Lya in the Y-axis direction of the area object 43 are calculated. The PDF file generation unit 106 generates a PDF file (hereinafter, referred to as a second PDF file) from a document file including an area object (step S306). FIG. 4E is a PDF file obtained by converting a document file into a PDF format.

PDFサイズ算出部107は、第2のPDFファイルのサイズを算出する(ステップS307)。より具体的には、第2のPDFファイルに配置された領域オブジェクトの位置情報からX軸方向およびY軸方向の長さを算出する。図4(e)に示すように、領域オブジェクト43のX軸方向の長さLxbとY軸方向の長さLybを取得する。なお、第1のPDFファイルのサイズと第2のPDFファイルのサイズは、当然同一となる。 The PDF size calculation unit 107 calculates the size of the second PDF file (step S307). More specifically, the lengths in the X-axis direction and the Y-axis direction are calculated from the position information of the area objects arranged in the second PDF file. As shown in FIG. 4 (e), the length Lxb in the X-axis direction and the length Lyb in the Y-axis direction of the area object 43 are acquired. The size of the first PDF file and the size of the second PDF file are naturally the same.

変換率算出部108は、文書1ページのサイズとPDF1ページのサイズから変換率を算出する(ステップS308)。具体的には、X軸方向の変換率CRx、Y軸方向の変換率CRxを下記のように算出する。
CRx=Lxb/Lxa
CRy=Lyb/Lya
The conversion rate calculation unit 108 calculates the conversion rate from the size of one page of the document and the size of one page of PDF (step S308). Specifically, the conversion rate CRx in the X-axis direction and the conversion rate CRx in the Y-axis direction are calculated as follows.
CRx = Lxb / Lxa
CRy = Lyb / Lya

位置情報算出部109は、変換率を用いてPDFファイル上のオブジェクトの位置情報を算出する(ステップS309)。図4(f)は、オブジェクト42の位置情報を示したPDFファイルである。具体的には、オブジェクト42の位置情報(Xb,Yb)は、下記の式を用いて算出する。なお、オブジェクトのサイズも変換率を用いて算出してもよい。
Xb=Xa*CRx
Yb=Ya*CRy
The position information calculation unit 109 calculates the position information of the object on the PDF file using the conversion rate (step S309). FIG. 4 (f) is a PDF file showing the position information of the object 42. Specifically, the position information (Xb, Yb) of the object 42 is calculated using the following formula. The size of the object may also be calculated using the conversion rate.
Xb = Xa * CRx
Yb = Ya * CRy

オブジェクト配置部110は、第1のPDFファイルに、オブジェクトを算出した位置情報に基づいて配置する(ステップS310)。図4(g)は、PDFファイルのサイズに応じた位置情報にオブジェクト42を配置したPDFファイルを示す。 The object arranging unit 110 arranges the object in the first PDF file based on the calculated position information (step S310). FIG. 4 (g) shows a PDF file in which the object 42 is arranged in the position information according to the size of the PDF file.

このように、文書ファイルをPDF形式に変換してPDFファイルを生成する際に、位置ずれが生じるオブジェクトがあっても、文書ファイルからPDFファイルに変換する変換率を算出し、変換したPDFファイルに応じた位置情報でオブジェクトを配置することができるため、オブジェクトの位置ずれを解消することができる。これにより、ユーザが文書を作成する際に意図した位置にオブジェクトが配置することができ、位置ずれによって生じていた修正作業を削減することができる。なお、PDFファイルから削除する、所定種別のオブジェクトは、PDFに含まれるすべてのオブジェクトであってもよい。 In this way, when converting a document file to PDF format and generating a PDF file, even if there is an object that is misaligned, the conversion rate for converting the document file to a PDF file is calculated, and the converted PDF file is converted. Since the object can be arranged with the corresponding position information, the misalignment of the object can be eliminated. As a result, the object can be placed at the position intended when the user creates the document, and the correction work caused by the misalignment can be reduced. The object of the predetermined type to be deleted from the PDF file may be all the objects included in the PDF.

上述した実施例では、領域オブジェクトとして、線分をPDFファイルに配置したが、線分に代えて、点やその他の図形であってもよい。点の場合は、ページ領域の4隅に4つの点を配置しても、対角する2点を配置してもよい。 In the above-described embodiment, the line segment is arranged in the PDF file as the area object, but instead of the line segment, a point or other figure may be used. In the case of points, four points may be arranged at the four corners of the page area, or two diagonal points may be arranged.

他の実施例として、ステップS303の第1のPDFファイルを生成せず、領域オブジェクトを含む第2のPDFファイルを生成し、第2のPDFファイルに文書ファイルから削除したオブジェクトをPDFファイルに応じた位置情報に配置したうえで、領域オブジェクトを削除して最終的なPDFファイルを生成してもよい。また、領域オブジェクトを透明なオブジェクトとし、PDFファイルから削除することなく、最終的なPDFファイルとしてもよい。 As another embodiment, the first PDF file of step S303 is not generated, the second PDF file including the area object is generated, and the object deleted from the document file is added to the second PDF file according to the PDF file. After arranging it in the position information, the area object may be deleted to generate the final PDF file. Further, the area object may be a transparent object and may be used as the final PDF file without being deleted from the PDF file.

さらに、他の実施例として、第2のPDFファイルから画像ファイルを生成し、画像ファイルのサイズからPDFファイルに配置すべきオブジェクトの位置を算出する場合について説明する。上述した実施例の図2の処理は共通するため、図2の処理は、上述した説明を参照する。ここでは、図2のステップS204のPDFファイル生成処理について説明する。 Further, as another embodiment, a case where an image file is generated from the second PDF file and the position of the object to be placed in the PDF file is calculated from the size of the image file will be described. Since the process of FIG. 2 of the above-described embodiment is common, the process of FIG. 2 refers to the above-described description. Here, the PDF file generation process of step S204 of FIG. 2 will be described.

図5は、情報処理装置100が実行するPDFファイル生成処理手順を示すフローチャートである。図5のステップS501〜S506は、図3のステップS301〜S306と共通するため、上述した説明を参照し、ここでの説明を省略する。 FIG. 5 is a flowchart showing a PDF file generation processing procedure executed by the information processing apparatus 100. Since steps S501 to S506 of FIG. 5 are common to steps S301 to S306 of FIG. 3, the above description will be referred to, and the description thereof will be omitted here.

ステップS507において、画像ファイル生成部111は、第2のPDFファイルから画像ファイルを生成する(ステップS507)。図6は、PDFファイルのオブジェクトの位置を調整する処理の流れを示す説明図である。図6(a)〜(e)は、図4での説明と同様であり、図4での説明を参照する。図6(f)に示すように、図6(e)のPDFファイルから画像ファイルを生成する。 In step S507, the image file generation unit 111 generates an image file from the second PDF file (step S507). FIG. 6 is an explanatory diagram showing a flow of processing for adjusting the position of an object in the PDF file. 6 (a) to 6 (e) are the same as the description in FIG. 4, and the description in FIG. 4 is referred to. As shown in FIG. 6 (f), an image file is generated from the PDF file of FIG. 6 (e).

画像サイズ算出部112は、画像ファイルのサイズを算出する(ステップS508)。より具体的には、画像ファイルに配置された領域オブジェクトからページごとのX軸方向およびY軸方向の長さを算出する。図6(f)に示すように、領域オブジェクト63のX軸方向の長さLxbとY軸方向の長さLybを取得する。より具体的には、画像ファイルのデータにおける領域オブジェクトの色と背景の色の違いによって領域オブジェクトの配置位置を認識し、認識した領域オブジェクトの配置位置から、領域オブジェクト63のX軸方向の長さLxbとY軸方向の長さLybを取得する。なお、第1のPDFファイルのサイズと画像ファイルのサイズは同一である。 The image size calculation unit 112 calculates the size of the image file (step S508). More specifically, the lengths in the X-axis direction and the Y-axis direction for each page are calculated from the area objects arranged in the image file. As shown in FIG. 6 (f), the length Lxb in the X-axis direction and the length Lyb in the Y-axis direction of the area object 63 are acquired. More specifically, the position of the area object is recognized by the difference between the color of the area object and the color of the background in the data of the image file, and the length of the area object 63 in the X-axis direction from the recognized position of the area object. Lxb and the length Lyb in the Y-axis direction are acquired. The size of the first PDF file and the size of the image file are the same.

変換率算出部108は、文書1ページのサイズと画像1ページのサイズから変換率を算出する(ステップS509)。具体的には、X軸方向の変換率CRx、Y軸方向の変換率CRxを下記のように算出する。
CRx=Lxb/Lxa
CRy=Lyb/Lya
The conversion rate calculation unit 108 calculates the conversion rate from the size of one page of the document and the size of one page of the image (step S509). Specifically, the conversion rate CRx in the X-axis direction and the conversion rate CRx in the Y-axis direction are calculated as follows.
CRx = Lxb / Lxa
CRy = Lyb / Lya

位置情報算出部109は、変換率を用いてPDFファイル上のオブジェクトの位置情報を算出する(ステップS510)。図6(f)は、オブジェクト62の位置情報を示した画像ファイルである。具体的には、オブジェクト62の位置情報(Xb,Yb)は、下記の式を用いて算出する。なお、オブジェクトのサイズも変換率を用いて算出してもよい。
Xb=Xa*CRx
Yb=Ya*CRy
The position information calculation unit 109 calculates the position information of the object on the PDF file using the conversion rate (step S510). FIG. 6 (f) is an image file showing the position information of the object 62. Specifically, the position information (Xb, Yb) of the object 62 is calculated using the following formula. The size of the object may also be calculated using the conversion rate.
Xb = Xa * CRx
Yb = Ya * CRy

オブジェクト配置部110は、第1のPDFファイルに、オブジェクトを算出した位置情報に基づいて配置する(ステップS511)。図6(g)は、PDFファイルのサイズに応じた位置情報でオブジェクト62を配置したPDFファイルを示す。 The object arranging unit 110 arranges the object in the first PDF file based on the calculated position information (step S511). FIG. 6 (g) shows a PDF file in which the object 62 is arranged with position information according to the size of the PDF file.

このように、文書ファイルをPDF形式に変換し、さらに画像ファイルを変換しても、文書ファイルから画像ファイルに変換する変換率を算出し、変換したPDFファイルに応じた位置情報でオブジェクトを配置することができるため、オブジェクトの位置ずれを解消することができる。これにより、ユーザが文書を作成する際に意図した位置にオブジェクトが配置することができ、位置ずれによって生じていた修正作業を削減することができる。なお、PDFファイルから削除する、所定種別のオブジェクトは、PDFに含まれるすべてのオブジェクトであってもよい。 In this way, even if the document file is converted to PDF format and the image file is further converted, the conversion rate for converting the document file to the image file is calculated, and the object is arranged with the position information according to the converted PDF file. Therefore, it is possible to eliminate the misalignment of the object. As a result, the object can be placed at the position intended when the user creates the document, and the correction work caused by the misalignment can be reduced. The object of the predetermined type to be deleted from the PDF file may be all the objects included in the PDF.

上述した実施例のいずれも、ユーザの操作するPC等でアプリケーションプログラム101が動作する場合だけではなく、ユーザの操作するPC等からネットワークを介して接続するウェブサーバ等で動作するアプリケーションプログラムで文書ファイルを作成する場合にも上述した機能を実行させることができる。 In any of the above-described examples, not only the case where the application program 101 operates on the PC or the like operated by the user, but also the document file in the application program which operates on the web server or the like connected from the PC or the like operated by the user via the network. The above-mentioned functions can be executed even when the above-mentioned functions are created.

情報処理装置100で動作するプログラムは、インターネット等のネットワークに接続されたコンピュータ上に格納しておき、ネットワーク経由でダウンロードさせることにより提供したり、インストール可能な形式又は実行可能な形式のファイルでCD−ROM、DVD、USBメモリ、SDカード等のコンピュータで読取り可能な記録媒体に記録し提供してもよい。また、上述した機能や処理を実現するプログラムは、API(Application Programming Interface)での提供やSaaS(Software as a Service)、クラウドコンピューティングという利用形態で提供してもよい。 The program that operates in the information processing device 100 is stored on a computer connected to a network such as the Internet, and is provided by downloading via the network, or is a CD in an installable format or an executable format file. -It may be recorded and provided on a computer-readable recording medium such as a ROM, a DVD, a USB memory, or an SD card. Further, the program that realizes the above-mentioned functions and processes may be provided by API (Application Programming Interface), SaaS (Software as a Service), or cloud computing.

なお、本発明は、上述した実施例そのままに限定されるものではなく、必ずしも物理的に図示のように構成されている必要はない。また、本発明は、実施例で説明した構成の全部または一部を、各種の負荷や使用状況などに応じ、任意の単位で機能的または物理的に分割、統合、入替、変形または削除して構成することができる。 The present invention is not limited to the above-described embodiment as it is, and does not necessarily have to be physically configured as shown in the figure. In addition, the present invention functionally or physically divides, integrates, replaces, transforms, or deletes all or a part of the configuration described in the examples in arbitrary units according to various loads, usage conditions, and the like. Can be configured.

100…情報処理装置、11…制御部、11a…CPU、11b…ROM、11c…RAM、12…記憶部、13…ネットワークI/F部、14…操作表示部、101…アプリケーションプログラム、102…オブジェクト位置情報取得部、103…オブジェクト削除部、104…領域オブジェクト配置部、105…文書サイズ算出部、106…PDFファイル生成部、107…PDFサイズ算出部、108…変換率算出部、109…位置情報算出部、110…オブジェクト配置部、111…画像ファイル生成部、112…画像サイズ算出部
100 ... Information processing device, 11 ... Control unit, 11a ... CPU, 11b ... ROM, 11c ... RAM, 12 ... Storage unit, 13 ... Network I / F unit, 14 ... Operation display unit, 101 ... Application program, 102 ... Object Position information acquisition unit, 103 ... object deletion unit, 104 ... area object placement unit, 105 ... document size calculation unit, 106 ... PDF file generation unit, 107 ... PDF size calculation unit, 108 ... conversion rate calculation unit, 109 ... position information Calculation unit, 110 ... Object placement unit, 111 ... Image file generation unit, 112 ... Image size calculation unit

Claims (9)

文書ファイルのページ領域におけるフォーム情報の位置情報を取得する位置情報取得手段と、
前記文書ファイルから前記フォーム情報を削除するオブジェクト削除手段と、
前記オブジェクト削除手段によって前記フォーム情報を削除した文書ファイルに、前記文書ファイルのページ領域の境界部を示す領域オブジェクトを配置する領域オブジェクト配置手段と、
前記文書ファイルに含まれる前記領域オブジェクトから前記文書ファイルのサイズを算出する文書サイズ算出手段と、
前記オブジェクト削除手段によって前記フォーム情報を削除した前記文書ファイルから第1のPDFファイルを生成し、前記領域オブジェクト配置手段によって前記領域オブジェクトを配置した文書ファイルから第2のPDFファイルを生成するPDFファイル生成手段と、
前記PDFファイル生成手段によって生成した前記第2のPDFファイルに含まれる前記領域オブジェクトから前記第2のPDFファイルのサイズを算出するPDFサイズ算出手段と、
前記文書サイズ算出手段によって算出した前記文書ファイルのサイズと、前記PDFサイズ算出手段によって算出した前記第2のPDFファイルのサイズとに基づいて、変換率を算出する変換率算出手段と、
前記変換率算出手段によって算出した前記変換率を用いて前記第2のPDFファイルにおける前記フォーム情報の位置情報を算出する位置情報算出手段と、
前記オブジェクト削除手段によって削除した前記フォーム情報を、前記第1のPDFファイルに、前記位置情報算出手段によって算出した前記位置情報に基づき配置するオブジェクト配置手段と、
を備えることを特徴とする情報処理装置。
A location information acquisition means for acquiring the location information of form information in the page area of a document file, and
An object deletion means for deleting the form information from the document file, and
An area object arranging means for arranging an area object indicating a boundary portion of a page area of the document file in a document file whose form information has been deleted by the object deleting means.
A document size calculation means for calculating the size of the document file from the area object included in the document file, and
PDF file generation that generates a first PDF file from the document file in which the form information is deleted by the object deletion means, and generates a second PDF file from the document file in which the area object is arranged by the area object arrangement means. Means and
A PDF size calculating means for calculating the size of the second PDF file from the area object included in the second PDF file generated by the PDF file generating means, and a PDF size calculating means.
A conversion rate calculation means for calculating a conversion rate based on the size of the document file calculated by the document size calculation means and the size of the second PDF file calculated by the PDF size calculation means.
A position information calculation means for calculating the position information of the form information in the second PDF file using the conversion rate calculated by the conversion rate calculation means, and a position information calculation means.
An object arranging means for arranging the form information deleted by the object deleting means in the first PDF file based on the position information calculated by the position information calculating means, and an object arranging means.
An information processing device characterized by being equipped with.
文書ファイルのページ領域におけるフォーム情報の位置情報を取得する位置情報取得手段と、
前記文書ファイルから前記フォーム情報を削除するオブジェクト削除手段と、
前記オブジェクト削除手段によって前記フォーム情報を削除した文書ファイルに、前記文書ファイルのページ領域の境界部を示す領域オブジェクトを配置する領域オブジェクト配置手段と、
前記文書ファイルに含まれる前記領域オブジェクトから前記文書ファイルのサイズを算出する文書サイズ算出手段と、
前記オブジェクト削除手段によって前記フォーム情報を削除した前記文書ファイルから第1のPDFファイルを生成し、前記領域オブジェクト配置手段によって前記領域オブジェクトを配置した文書ファイルから第2のPDFファイルを生成するPDFファイル生成手段と、
前記PDFファイル生成手段によって生成した前記第2のPDFファイルから画像ファイルを生成する画像ファイル生成手段と、
前記画像ファイル生成手段によって生成した前記画像ファイルに含まれる前記領域オブジェクトから、前記画像ファイルのサイズを算出する画像サイズ取得手段と、
前記文書ファイルのサイズと、前記画像ファイルのサイズとに基づいて、変換率を算出する変換率算出手段と、
前記変換率算出手段によって算出した前記変換率を用いて前記画像ファイルにおける前記フォーム情報の位置情報を算出する位置情報算出手段と、
前記オブジェクト削除手段によって削除した前記フォーム情報を、前記第1のPDFファイルに、前記位置情報算出手段によって算出した前記位置情報に基づき配置するオブジェクト配置手段と、
を備えること、を特徴とする情報処理装置。
A location information acquisition means for acquiring the location information of form information in the page area of a document file, and
An object deletion means for deleting the form information from the document file, and
An area object arranging means for arranging an area object indicating a boundary portion of a page area of the document file in a document file whose form information has been deleted by the object deleting means.
A document size calculation means for calculating the size of the document file from the area object included in the document file, and
PDF file generation that generates a first PDF file from the document file in which the form information is deleted by the object deletion means, and generates a second PDF file from the document file in which the area object is arranged by the area object arrangement means. Means and
An image file generation means for generating an image file from the second PDF file generated by the PDF file generation means, and an image file generation means.
An image size acquisition means for calculating the size of the image file from the area object included in the image file generated by the image file generation means, and an image size acquisition means .
The size of the document file, based on the size of the image file, and the conversion rate calculating means for calculating the conversion rate,
A position information calculation means for calculating the position information of the form information in the image file using the conversion rate calculated by the conversion rate calculation means, and a position information calculation means.
An object arranging means for arranging the form information deleted by the object deleting means in the first PDF file based on the position information calculated by the position information calculating means, and an object arranging means.
Providing the, information processing apparatus it said.
前記PDFファイル生成手段は、前記第1のPDFファイルを生成せず、前記領域オブジェクト配置手段によって前記領域オブジェクトを配置した文書ファイルから第2のPDFファイルを生成し、
前記オブジェクト配置手段は、前記第2のPDFファイルから前記領域オブジェクトを削除し、前記オブジェクト削除手段によって削除した前記フォーム情報を、前記第2のPDFファイルに、前記位置算出手段によって算出した前記位置情報に基づき配置すること、を特徴とする請求項1に記載の情報処理装置。
The PDF file generation means does not generate the first PDF file, but generates a second PDF file from a document file in which the area object is arranged by the area object arrangement means.
The object arranging means deletes the area object from the second PDF file, and the form information deleted by the object deleting means is converted into the second PDF file by the position calculating means. The information processing apparatus according to claim 1, wherein the information processing device is arranged based on the above.
前記領域オブジェクト配置手段は、前記オブジェクト削除手段によって前記フォーム情報を削除した前記文書ファイルに、前記文書ファイルのページ領域の境界部を示す、透明な領域オブジェクトを配置し、
前記PDFファイル生成手段は、前記第1のPDFファイルを生成せず、前記領域オブジェクト配置手段によって前記透明な領域オブジェクトを配置した文書ファイルから第2のPDFファイルを生成し、
前記オブジェクト配置手段は、前記オブジェクト削除手段によって削除した前記フォーム情報を、前記第2のPDFファイルに、前記位置算出手段によって算出した前記位置情報に基づき配置すること、を特徴とする請求項1に記載の情報処理装置。
The area object arranging means arranges a transparent area object indicating a boundary portion of a page area of the document file in the document file whose form information has been deleted by the object deleting means.
The PDF file generation means does not generate the first PDF file, but generates a second PDF file from a document file in which the transparent area object is arranged by the area object arrangement means.
The first aspect of the present invention is that the object arranging means arranges the form information deleted by the object deleting means in the second PDF file based on the position information calculated by the position calculating means. The information processing device described.
コンピュータで実行されるPDFファイル生成方法であって、
文書ファイルのページ領域におけるフォーム情報の位置情報を取得する位置情報取得ステップと、
前記文書ファイルから前記フォーム情報を削除するオブジェクト削除ステップと、
前記オブジェクト削除ステップによって前記フォーム情報を削除した文書ファイルに、前記文書ファイルのページ領域の境界部を示す領域オブジェクトを配置する領域オブジェクト配置ステップと、
前記文書ファイルに含まれる前記領域オブジェクトから前記文書ファイルのサイズを算出する文書サイズ算出ステップと、
前記オブジェクト削除ステップによって前記フォーム情報を削除した前記文書ファイルから第1のPDFファイルを生成し、前記領域オブジェクト配置ステップによって前記領域オブジェクトを配置した文書ファイルから第2のPDFファイルを生成するPDFファイル生成ステップと、
前記PDFファイル生成ステップによって生成した前記第2のPDFファイルに含まれる前記領域オブジェクトから前記第2のPDFファイルのサイズを算出するPDFサイズ算出ステップと、
前記文書サイズ算出ステップによって算出した前記文書ファイルのサイズと、前記PDFサイズ算出ステップによって算出した前記第2のPDFファイルのサイズとに基づいて、変換率を算出する変換率算出ステップと、
前記変換率算出ステップによって算出した前記変換率を用いて前記第2のPDFファイルにおける前記フォーム情報の位置情報を算出する位置情報算出ステップと、
前記オブジェクト削除ステップによって削除した前記フォーム情報を、前記第1のPDFファイルに、前記位置情報算出ステップによって算出した前記位置情報に基づき配置するオブジェクト配置ステップと、
を含むことを特徴とするPDFファイル生成方法。
A PDF file generation method that is executed on a computer.
The location information acquisition step to acquire the location information of the form information in the page area of the document file, and
An object deletion step that deletes the form information from the document file, and
An area object placement step for arranging an area object indicating a boundary portion of a page area of the document file in a document file whose form information has been deleted by the object deletion step.
A document size calculation step for calculating the size of the document file from the area object included in the document file, and
PDF file generation that generates a first PDF file from the document file from which the form information has been deleted by the object deletion step, and generates a second PDF file from the document file in which the area object is arranged by the area object placement step. Steps and
A PDF size calculation step for calculating the size of the second PDF file from the area object included in the second PDF file generated by the PDF file generation step, and a PDF size calculation step.
A conversion rate calculation step for calculating a conversion rate based on the size of the document file calculated by the document size calculation step and the size of the second PDF file calculated by the PDF size calculation step.
A position information calculation step for calculating the position information of the form information in the second PDF file using the conversion rate calculated by the conversion rate calculation step, and a position information calculation step.
An object placement step in which the form information deleted by the object deletion step is placed in the first PDF file based on the position information calculated by the position information calculation step, and an object placement step.
A PDF file generation method comprising.
コンピュータで実行されるPDFファイル生成方法であって、
文書ファイルのページ領域におけるフォーム情報の位置情報を取得する位置情報取得ステップと、
前記文書ファイルから前記フォーム情報を削除するオブジェクト削除ステップと、
前記オブジェクト削除ステップによって前記フォーム情報を削除した文書ファイルに、前記文書ファイルのページ領域の境界部を示す領域オブジェクトを配置する領域オブジェクト配置ステップと、
前記文書ファイルに含まれる前記領域オブジェクトから前記文書ファイルのサイズを算出する文書サイズ算出ステップと、
前記オブジェクト削除ステップによって前記フォーム情報を削除した前記文書ファイルから第1のPDFファイルを生成し、前記領域オブジェクト配置ステップによって前記領域オブジェクトを配置した文書ファイルから第2のPDFファイルを生成するPDFファイル生成ステップと、
前記PDFファイル生成ステップによって生成した前記第2のPDFファイルから画像ファイルを生成する画像ファイル生成ステップと、
前記画像ファイル生成ステップによって生成した前記画像ファイルに含まれる前記領域オブジェクトから、前記画像ファイルのサイズを算出する画像サイズ取得ステップと、
前記文書ファイルのサイズと、前記画像ファイルのサイズとに基づいて、変換率を算出する変換率算出ステップと、
前記変換率算出ステップによって算出した前記変換率を用いて前記画像ファイルにおける前記フォーム情報の位置情報を算出する位置情報算出ステップと、
前記オブジェクト削除ステップによって削除した前記フォーム情報を、前記第1のPDFファイルに、前記位置情報算出ステップによって算出した前記位置情報に基づき配置するオブジェクト配置ステップと、
を含むことを特徴とするPDFファイル生成方法。
A PDF file generation method that is executed on a computer.
The location information acquisition step to acquire the location information of the form information in the page area of the document file, and
An object deletion step that deletes the form information from the document file, and
An area object placement step for arranging an area object indicating a boundary portion of a page area of the document file in a document file whose form information has been deleted by the object deletion step.
A document size calculation step for calculating the size of the document file from the area object included in the document file, and
PDF file generation that generates a first PDF file from the document file from which the form information has been deleted by the object deletion step, and generates a second PDF file from the document file in which the area object is arranged by the area object placement step. Steps and
An image file generation step of generating an image file from the second PDF file generated by the PDF file generation step, and an image file generation step.
An image size acquisition step of calculating the size of the image file from the area object included in the image file generated by the image file generation step, and an image size acquisition step .
The size of the document file, based on the size of the image file, a conversion rate calculation step of calculating the conversion rate,
A position information calculation step for calculating the position information of the form information in the image file using the conversion rate calculated by the conversion rate calculation step, and a position information calculation step.
An object placement step in which the form information deleted by the object deletion step is placed in the first PDF file based on the position information calculated by the position information calculation step, and an object placement step.
P DF file generation how to comprising a.
前記PDFファイル生成ステップは、前記第1のPDFファイルを生成せず、前記領域オブジェクト配置ステップによって前記領域オブジェクトを配置した文書ファイルから第2のPDFファイルを生成し、
前記オブジェクト配置ステップは、前記第2のPDFファイルから前記領域オブジェクトを削除し、前記オブジェクト削除ステップによって削除した前記フォーム情報を、前記第2のPDFファイルに、前記位置算出ステップによって算出した前記位置情報に基づき配置すること、を特徴とする請求項5に記載のPDFファイル生成方法。
The PDF file generation step does not generate the first PDF file, but generates a second PDF file from the document file in which the area object is arranged by the area object arrangement step.
The object placement step deletes the area object from the second PDF file, and the form information deleted by the object deletion step is added to the second PDF file and the position information calculated by the position calculation step. The PDF file generation method according to claim 5, wherein the PDF file is arranged based on the above.
前記領域オブジェクト配置ステップは、前記オブジェクト削除ステップによって前記フォーム情報を削除した文書ファイルに、前記文書ファイルのページ領域の境界部を示す、透明な領域オブジェクトを配置し、
前記PDFファイル生成ステップは、前記第1のPDFファイルを生成せず、前記領域オブジェクト配置ステップによって前記透明な領域オブジェクトを配置した文書ファイルから第2のPDFファイルを生成し、
前記オブジェクト配置ステップは、前記オブジェクト削除ステップによって削除した前記フォーム情報を、前記第2のPDFファイルに、前記位置算出ステップによって算出した前記位置情報に基づき配置すること、を特徴とする請求項5に記載のPDFファイル生成方法。
In the area object placement step, a transparent area object indicating the boundary portion of the page area of the document file is placed in the document file from which the form information has been deleted by the object deletion step.
The PDF file generation step does not generate the first PDF file, but generates a second PDF file from the document file in which the transparent area object is arranged by the area object arrangement step.
5. The object arrangement step is characterized in that the form information deleted by the object deletion step is arranged in the second PDF file based on the position information calculated by the position calculation step. The described PDF file generation method.
請求項5〜8のいずれか1つに記載のPDFファイル生成方法をコンピュータで実行させるPDFファイル生成プログラム。 A PDF file generation program that causes a computer to execute the PDF file generation method according to any one of claims 5 to 8.
JP2020171105A 2020-10-09 2020-10-09 Information processing device, PDF file generation method, and PDF file generation program Active JP6857277B1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2020171105A JP6857277B1 (en) 2020-10-09 2020-10-09 Information processing device, PDF file generation method, and PDF file generation program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2020171105A JP6857277B1 (en) 2020-10-09 2020-10-09 Information processing device, PDF file generation method, and PDF file generation program

Publications (2)

Publication Number Publication Date
JP6857277B1 true JP6857277B1 (en) 2021-04-14
JP2022062910A JP2022062910A (en) 2022-04-21

Family

ID=75378121

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2020171105A Active JP6857277B1 (en) 2020-10-09 2020-10-09 Information processing device, PDF file generation method, and PDF file generation program

Country Status (1)

Country Link
JP (1) JP6857277B1 (en)

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004287907A (en) * 2003-03-24 2004-10-14 Ns Solutions Corp Disclosure document creation device
JP4844354B2 (en) * 2006-11-07 2011-12-28 富士ゼロックス株式会社 Document management apparatus and program
JP5842590B2 (en) * 2011-12-15 2016-01-13 コニカミノルタ株式会社 Image processing apparatus and control program for image processing apparatus

Also Published As

Publication number Publication date
JP2022062910A (en) 2022-04-21

Similar Documents

Publication Publication Date Title
CN100356372C (en) Generating method of computer format document and opening method
JP4574467B2 (en) Data processing apparatus, data processing method, and computer program
JP2006074592A (en) Electronic album edit apparatus, control method thereof, program thereof, and computer readable storage medium with program stored
US20080018917A1 (en) Document editing systems and methods
JP2005044279A (en) Method, program and apparatus for business form processing
JP2007017945A (en) Information processing apparatus and method
US20090204893A1 (en) Dynamically configurable page numbering system
JP2007156619A (en) Print processing system, print processing method and program
US20130238984A1 (en) Display control device, display control method, and computer program product
JP6679828B2 (en) Information processing device, information processing program, and recording medium
JP6128898B2 (en) Information processing apparatus, control method for information processing apparatus, and program
JP6799700B1 (en) Information processing device, PDF file generation method, and PDF file generation program
JP6857277B1 (en) Information processing device, PDF file generation method, and PDF file generation program
JP2008134859A (en) Output document preparation device, output document preparation program, output document preparation server, and output document preparation method
US20170060511A1 (en) Portable drawing display device and drawing display system
JP2015135665A (en) Document system, information processor, and processing method and program of the same
JP2021103366A (en) Document display system, server device, information terminal device, document display method, and document display program
WO2023120052A1 (en) Information processing device, pdf file display method, pdf file creation method, pdf file display program, and pdf file creation program
JP6256138B2 (en) Information processing apparatus, information processing method, and information processing program
JP5569367B2 (en) Image processing apparatus, image processing method, and program
US20170046027A1 (en) Electronic document management device, electronic document management system, and electronic document management program
JP6108106B2 (en) Information embedding device for document files
JP2007179203A (en) Slip retrieval device, slip retrieval method, program and computer-readable storage medium
JP2006135864A (en) Electronic album editor, its control method, its program and storage medium storing the program in computer readable manner
JP5858124B2 (en) Image forming apparatus

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20201021

A871 Explanation of circumstances concerning accelerated examination

Free format text: JAPANESE INTERMEDIATE CODE: A871

Effective date: 20201021

A975 Report on accelerated examination

Free format text: JAPANESE INTERMEDIATE CODE: A971005

Effective date: 20201027

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20201215

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20210129

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: 20210316

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20210319

R150 Certificate of patent or registration of utility model

Ref document number: 6857277

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250