JP2017126230A - Method, device, and processing program for displaying and editing form document data - Google Patents

Method, device, and processing program for displaying and editing form document data Download PDF

Info

Publication number
JP2017126230A
JP2017126230A JP2016005649A JP2016005649A JP2017126230A JP 2017126230 A JP2017126230 A JP 2017126230A JP 2016005649 A JP2016005649 A JP 2016005649A JP 2016005649 A JP2016005649 A JP 2016005649A JP 2017126230 A JP2017126230 A JP 2017126230A
Authority
JP
Japan
Prior art keywords
data
format
font
page
file
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP2016005649A
Other languages
Japanese (ja)
Inventor
加藤 豊
Yutaka Kato
豊 加藤
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Canon Inc
Original Assignee
Canon Inc
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Canon Inc filed Critical Canon Inc
Priority to JP2016005649A priority Critical patent/JP2017126230A/en
Publication of JP2017126230A publication Critical patent/JP2017126230A/en
Pending legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To solve the problem in which: in an application that enables a user to browse and edit form document data on a web page, a font file is embedded in form data to prevent the garbling of characters during browsing; in this case, in creating the form data via a plurality of servers, an actual substance of the font file is required for each of the servers.SOLUTION: The format of form data is specified from a creation request, and the format is a specific format, all font files required for creating form data of a first format to be created in a first server are embedded in the form data. This eliminates the necessity of an actual substance of a font file for a second server.SELECTED DRAWING: Figure 5

Description

本発明は、フォーム情報ファイル(帳票の雛型となるフォームに関する情報)にフィールドデータ(フォーム内のフィールドに流し込まれるテキスト形式のデータ)をオーバレイ(重ね合わせ)することにより生成された帳票ページの生成方法に関する。   The present invention generates a form page generated by overlaying field data (text-format data flowed into a field in a form) on a form information file (information on a form as a form template). Regarding the method.

昨今、ペーパーレス化による業務の効率化や省資源化を目的に、紙媒体の情報を文書データに置き換える企業が増加している。例えば、社内で運用されている業務帳票もその対象となることが多く、特に基幹系システムが出力する帳票は大量のページ数を出力するため運用コストが莫大なものになることから、帳票の電子化が積極的に行われている。   In recent years, an increasing number of companies replace information on paper media with document data for the purpose of improving business efficiency and saving resources by making paperless. For example, business forms that are operated in-house are often the target, especially because the forms output by the core system output a large number of pages and the operation cost becomes enormous. Is being actively promoted.

帳票ページの作成方法としては、以下の方法があった。すなわち、帳票の雛型となるフォーム情報を、フォーム編集用の専用アプリケーションを用いて作成しておく。そして、次に当該フォーム情報に対して、フィールドデータをオーバレイする(フォーム内の各フィールドに、対応するフィールドデータを流し込んで適用する)ことにより、帳票文書データ(例えばPDF形式のファイル)を作成する方法である。   There were the following methods for creating a form page. That is, form information serving as a template of a form is created using a dedicated application for form editing. Next, form document data (for example, a file in PDF format) is created by overlaying field data with respect to the form information (flowing and applying the corresponding field data to each field in the form). Is the method.

また、サーバーコンピュータ側で業務データの管理や各種処理を行う形態として、クラウドコンピューティングシステムが普及し始めている。ユーザは、クライアントコンピュータのブラウザからインターネットを介してクラウドサーバコンピュータにアクセスし、そのクラウドサーバが提供するWebページ上で、電子化された帳票ページを閲覧することができる。将来の業務フローでは、帳票ページの閲覧や編集をPC以外の端末(タブレット等の携帯端末)から行う利用ケースの増加が予想される。   In addition, cloud computing systems have begun to spread as a form of managing business data and various processes on the server computer side. A user can access a cloud server computer from the browser of a client computer via the Internet, and browse an electronic form page on a Web page provided by the cloud server. In the future business flow, it is expected that the number of use cases in which a form page is viewed and edited from a terminal other than a PC (a portable terminal such as a tablet) will increase.

帳票文書データをタブレット等の携帯端末で閲覧する場合、フォント描画が問題になるケースが有る。通常、PDF等の帳票文書データを生成するドライバモジュールが動作するサーバ環境と、文書を閲覧するタブレットのOS(オペレーティング・システム)環境は異なる。OSが異なると、そのOSに搭載されたフォントが異なるため、特に考慮せず帳票文書データを作成した場合、タブレット上でフォントが代替されてしまう。フォーム情報ファイルは、サーバ環境と同等のPC環境で、専任の担当者により専用のエディタで設計および作成される。このため、フォントが代替されてしまうと、帳票設計時に担当者が意図した見栄えがタブレット上で再現できない。   When the form document data is viewed on a portable terminal such as a tablet, there are cases where font drawing becomes a problem. Normally, a server environment in which a driver module that generates form document data such as PDF operates and an OS (operating system) environment of a tablet that browses the document are different. If the OS is different, the font installed in the OS is different. Therefore, when form document data is created without particular consideration, the font is substituted on the tablet. The form information file is designed and created with a dedicated editor by a dedicated person in a PC environment equivalent to the server environment. For this reason, if the font is replaced, the appearance intended by the person in charge when designing the form cannot be reproduced on the tablet.

この問題に対処するため、特許文献1では、フォーム情報ファイルに、帳票文書データに埋め込むフォント名のリストを保持させる。帳票文書データ生成時には、前記埋め込まれたリストに記載のフォントをサブセットフォントとして帳票文書データに埋め込む。これにより、PC以外のタブレット環境等で閲覧する際にも意図した見栄えを再現できる。   In order to deal with this problem, in Patent Document 1, a list of font names to be embedded in form document data is held in the form information file. When generating the form document data, the fonts described in the embedded list are embedded in the form document data as a subset font. Thereby, the intended appearance can be reproduced even when browsing in a tablet environment other than the PC.

PDF形式は、帳票データの閲覧に適した形式である。しかしながら帳票データを編集するための形式としては最適ではない。PDF形式は基本的にバイナリ形式であり、内容としては描画命令の羅列である。表示されている矩形等がオブジェクトとして定義されているわけではないので、プログラムから編集する場合は、PDF編集用のツールキット等を用いるのが通常である。どの程度オブジェクトを自由に編集できるかはツールキットが提供する機能次第となる。ページごとの削除やテキスト追加といった機能は一般的であるが、全てのオブジェクトの追加、削除、変更、移動等の詳細な制御を行えるツールキットは一般的ではない。   The PDF format is a format suitable for browsing the form data. However, it is not optimal as a format for editing form data. The PDF format is basically a binary format, and the contents are a list of drawing commands. Since a displayed rectangle or the like is not defined as an object, a PDF editing tool kit or the like is usually used when editing from a program. The degree to which you can freely edit objects depends on the functionality provided by the toolkit. Functions such as page-by-page deletion and text addition are common, but toolkits that can perform detailed controls such as adding, deleting, changing, and moving all objects are not common.

このため、昨今では、編集可能な帳票データの形式として、SVG(スケーラブル・ベクター・グラフィックス)形式を用いる。PDF形式の帳票ページをSVG形式に変換し、そのSVGをブラウザ上でJavascript(登録商標)等のスクリプト言語で操作することで編集を実現する帳票システムが存在する。   For this reason, recently, the SVG (Scalable Vector Graphics) format is used as the format of editable form data. There is a form system that realizes editing by converting a PDF form page into an SVG format and operating the SVG in a script language such as Javascript (registered trademark) on a browser.

特開2015−005150号公報Japanese Patent Laying-Open No. 2015-005150

前述の帳票システムでは、SVG形式の帳票データをタブレット等で閲覧・編集することになるが、PDFの場合と同様、SVG形式であってもフォントファイルの埋め込みが必要になる。帳票設計者の意図を反映するためには、PC環境上のフォントをSVG形式の帳票データに埋め込む必要がある。   In the above-described form system, form data in the SVG format is browsed and edited on a tablet or the like. However, as in the case of the PDF, the font file must be embedded even in the SVG form. In order to reflect the intention of the form designer, it is necessary to embed fonts on the PC environment in the form data in the SVG format.

PDF形式からSVG形式へ帳票データを変換する際に、SVG内へフォントを埋め込むためには、SVG生成環境にPDFで指定されているフォントファイルの実体が存在する必要がある。ただし、PDFにフォントが埋め込まれている場合には、埋め込まれたものをそのままSVGに保存すれば良いので、フォントファイルの実体は不要である。   When the form data is converted from the PDF format to the SVG format, in order to embed the font in the SVG, the font file specified by the PDF needs to exist in the SVG generation environment. However, if the font is embedded in the PDF, the embedded file may be stored in the SVG as it is, so the font file entity is not necessary.

ここで、SVG形式の帳票データ閲覧・編集機能を提供するサービスの構成としては、PDF生成部(すなわち帳票生成部)とSVG生成部(すなわちデータ変換部)が異なる仮想OSとなる場合が多々ある。また、各生成部は、サービスへの負荷に応じてオートスケールするため、台数が増減する。   Here, as a configuration of a service that provides an SVG form data browsing / editing function, there are many cases where the PDF generation unit (ie, the form generation unit) and the SVG generation unit (ie, the data conversion unit) are different virtual OSs. . Moreover, since each production | generation part autoscales according to the load to a service, the number will increase / decrease.

このような前提のもとでは、PDF生成部とSVG生成部の両方の環境にフォントファイルの実体を配置しなければならず、ライセンス料が2倍になってしまうという課題があった。   Under such a premise, the font file entity must be arranged in both the PDF generation unit and the SVG generation unit, resulting in a problem that the license fee is doubled.

上記の課題を解決するために、本発明に係る情報処理装置は、
帳票文書を生成する情報処理装置であって、
受信したリクエストが、第2の形式の帳票データ生成リクエストかどうかを判定する手段(S802)と、フォーム情報ファイル内の埋め込みフォント指定を取得する手段(S803)と、フォーム情報ファイル内の使用フォントの一覧を取得する手段(S804)と、使用フォントの一覧から埋め込みフォント指定を生成する手段(S805)と、埋め込みフォント指定に従って第1の形式の帳票データにフォントを埋め込む手段(S806)と、を有することを特徴とする。
In order to solve the above problems, an information processing apparatus according to the present invention provides:
An information processing apparatus for generating a form document,
A means for determining whether or not the received request is a request for generating form data in the second format (S802), a means for obtaining an embedded font designation in the form information file (S803), and a font used in the form information file Means for obtaining a list (S804), means for generating an embedded font designation from the list of used fonts (S805), and means for embedding fonts in the form data of the first format in accordance with the embedded font designation (S806). It is characterized by that.

本発明に係る情報処理装置によれば、第二の形式の帳票データ生成リクエストの場合には、第一の形式の帳票データへのフォント埋め込み指定によらず、常に第一の帳票データにフォントを埋め込む。これにより、第二の形式へデータ変換処理を行うデータ変換サービス側にフォントファイルの実体を配置する必要がなくなり、コストが削減できる。   According to the information processing apparatus of the present invention, in the case of the second form of form data generation request, the font is always added to the first form data regardless of the font embedding specification in the first form of form data. Embed. As a result, it is not necessary to place the font file entity on the data conversion service side that performs the data conversion processing to the second format, and the cost can be reduced.

本実施形態のシステム構成例を示す図The figure which shows the system configuration example of this embodiment 本実施形態のハードウェア構成例を示す図The figure which shows the hardware structural example of this embodiment 本実施形態の帳票生成サーバ上で動作するソフトウェアモジュールの構成例を示す図The figure which shows the structural example of the software module which operate | moves on the form production | generation server of this embodiment 実施例1のフォーム情報、ならびにオーバレイ出力処理の結果を示す図The figure which shows the form information of Example 1, and the result of overlay output processing 実施例の編集可能な帳票閲覧画面を生成する処理のシーケンスを示す図The figure which shows the sequence of the process which produces | generates the editable form browsing screen of an Example. 実施例のログイン画面を示す図The figure which shows the login screen of execution example 実施例の帳票選択画面を示す図The figure which shows the form selection screen of an Example 実施例のオーバレイ出力処理フローを示す図The figure which shows the overlay output processing flow of an Example 実施例1の生成された編集可能な帳票閲覧画面を示す図The figure which shows the editable form browsing screen produced | generated of Example 1

以下、図面を参照して本発明に係る実施形態を説明する。   Embodiments according to the present invention will be described below with reference to the drawings.

最初に一般的なオーバレイ出力について説明する。   First, general overlay output will be described.

オーバレイ出力とは、原稿用紙形式の枠線などの情報を記録するフォーム情報とテキスト形式のデータ(フィールドデータ)を重ねあわせて印刷することである。オーバレイ出力の結果を紙ではなく、電子ファイルとして出力することも可能である。   Overlay output refers to printing by superimposing form information for recording information such as frame lines in document paper format and text format data (field data). It is also possible to output the overlay output result as an electronic file instead of paper.

図4は帳票生成サーバ101によるオーバレイ出力処理の概要について説明した図である。   FIG. 4 is a diagram for explaining the outline of overlay output processing by the form generation server 101.

フォーム情報は専用のフォーム情報設計システムを利用して作成することができる。フォーム情報はフィールドデータに依存しない固定的な図形(フォーム図形)と、受け取ったフィールドデータを指定した出力書式に従って表示する図形(フィールド図形)から構成されていることが一般的である。フィールド図形を作成するには、予めフィールドデータを受け取るための項目(フィールド)を作成する必要がある。フィールドはフォーム情報設計システムにて表示された専用の画面から作成することができる。フィールド図形を作成すると作成元であるフィールドとの関連付けが内部的におこなわれる。   Form information can be created using a dedicated form information design system. The form information is generally composed of a fixed figure (form figure) that does not depend on field data and a figure (field figure) that displays received field data in accordance with a specified output format. In order to create a field graphic, it is necessary to create an item (field) for receiving field data in advance. Fields can be created from a dedicated screen displayed in the form information design system. When a field graphic is created, it is internally associated with the field from which it was created.

表形式のフィールド図形(表図形)402の場合、フィールドデータをレコード単位に受け取る必要があるためレコードフィールド403を作成する必要がある。   In the case of a tabular field graphic (table graphic) 402, it is necessary to create a record field 403 because it is necessary to receive field data in record units.

他のフィールド図形のデータの演算結果からフィールドデータを生成する形式のフィールドは計算列フィールドと定義する。また、指定した集計方法で集計しフィールドデータを生成するフィールド形式は集計フィールドと定義する。フィールド図形404の場合、どのフィールドとどのような集計方法が指定されていることを表すために集計フィールド405を作成する必要がある。   A field of a format for generating field data from the operation result of data of other field figures is defined as a calculated column field. A field format for generating field data by counting with a specified counting method is defined as a total field. In the case of the field graphic 404, it is necessary to create a total field 405 to indicate which field and what total method are specified.

帳票生成サーバ101が、フィールド図形が定義されたフォーム情報ファイル401と、対応するフィールドデータファイル406とを読み込む。そして、帳票生成サーバ101が、読み込んだフォーム情報ファイル401とフィールドデータファイル406とを重ね合わせることでオーバレイ出力を実行する。図4の407はオーバレイ出力結果を表す。   The form generation server 101 reads a form information file 401 in which field graphics are defined and a corresponding field data file 406. Then, the form generation server 101 executes overlay output by superimposing the read form information file 401 and the field data file 406. 407 in FIG. 4 represents the overlay output result.

図1は本実施形態のシステム構成例を示す図である。   FIG. 1 is a diagram showing a system configuration example of the present embodiment.

図1に示すシステムは、帳票生成サーバ101とクライアント装置102とデータ変換サーバ104とを備える。帳票生成サーバ101は、本実施形態の情報処理装置であってオーバレイ出力処理、並びに電子帳票閲覧プログラムの生成処理を実行する。すなわち、帳票生成サーバ101はテキストデータであるフィールドデータファイルと所定のフォーム情報を含むフォーム情報ファイルとを重ね合わせて印刷ページを生成し、仮想プリンタに指示して上記生成された印刷ページを電子ファイルとして生成する。そして、上記生成された電子ファイル形式の帳票ファイルを用いてその帳票を閲覧及び編集できる帳票閲覧プログラムを生成する。   The system shown in FIG. 1 includes a form generation server 101, a client device 102, and a data conversion server 104. The form generation server 101 is an information processing apparatus according to the present embodiment, and executes overlay output processing and generation processing of an electronic form browsing program. That is, the form generation server 101 generates a print page by superimposing a field data file that is text data and a form information file including predetermined form information, and instructs the virtual printer to output the generated print page as an electronic file. Generate as Then, a form browsing program capable of browsing and editing the form is generated using the generated electronic file form file.

本実施例の帳票閲覧プログラムとは、ネットワークを介して配信できるウェブブラウザ上で動作するウェブアプリケーションである。多くの場合、これらのウェブアプリケーションは、ウェブページを表現するマッシュアップ言語(HTML)及びウェブブラウザ上で動作するプログラミング言語(JavaScript)により動作するアプリケーションである。前記帳票閲覧プログラムはウェブブラウザ上で表示するアプリケーションであるため、以下帳票閲覧画面にも呼ぶ。ウェブブラウザ上で動作するウェブアプリケーション以外、コンピュータシステム上で実行するアプリケーションでも良い。   The form browsing program of this embodiment is a web application that runs on a web browser that can be distributed via a network. In many cases, these web applications are applications that operate using a mashup language (HTML) that represents a web page and a programming language (JavaScript) that runs on a web browser. Since the form browsing program is an application displayed on a web browser, it will also be referred to as a form browsing screen hereinafter. In addition to a web application that runs on a web browser, an application that runs on a computer system may be used.

帳票生成サーバ101は、クライアント装置102からリクエストを受信して上記オーバレイ出力処理、帳票閲覧プログラム生成処理を行う。   The form generation server 101 receives a request from the client apparatus 102 and performs the overlay output process and the form browsing program generation process.

データ変換サーバ104は、帳票生成サーバ101等からリクエストを受信して、帳票データ形式の変換処理を行う。   The data conversion server 104 receives a request from the form generation server 101 or the like, and performs a form data format conversion process.

プリンタ103は、クライアント装置102からリクエストを受信して帳票文書データを紙に印字する処理を行う。   The printer 103 receives the request from the client apparatus 102 and performs processing for printing the form document data on paper.

また、上記各構成要素はネットワーク100により通信可能に接続されている。ネットワークは、例えば、インターネット等のLAN、WAN、電話回線、専用デジタル回線、ATMやフレームリレー回線、ケーブルテレビ回線、データ放送用無線回線等のいずれである。また、これらの組み合わせにより実現される、いわゆる通信ネットワークである。
ネットワークはデータの送受信が可能であればよい。
In addition, each of the above-described components is connected to be communicable via a network 100. The network is, for example, a LAN such as the Internet, a WAN, a telephone line, a dedicated digital line, an ATM, a frame relay line, a cable TV line, a data broadcasting wireless line, or the like. Moreover, it is what is called a communication network implement | achieved by these combination.
The network only needs to be able to transmit and receive data.

クライアント装置102から帳票生成サーバ101への通信手段とクライアント装置102からプリンタ103への通信手段が異なっていてもよい。   The communication means from the client apparatus 102 to the form generation server 101 and the communication means from the client apparatus 102 to the printer 103 may be different.

図2は図1の帳票生成サーバ101、クライアント装置102のハードウェア構成を示すブロック図である。   FIG. 2 is a block diagram illustrating a hardware configuration of the form generation server 101 and the client apparatus 102 in FIG.

201は内部バスで接続される各デバイス(後述のROM、RAM他)を直接或いは間接的に制御し、本発明を実現するためのプログラムを実行するCPUである。202はBIOSが格納してあるROMである。203はCPU201のワーク領域として利用されたり、本発明を実現するためのソフトウェアモジュールをロードするための一時記憶として利用されたりするRAM(直接記憶装置)である。   Reference numeral 201 denotes a CPU that directly or indirectly controls each device (ROM, RAM, etc. described later) connected by an internal bus and executes a program for realizing the present invention. A ROM 202 stores the BIOS. A RAM (direct storage device) 203 is used as a work area of the CPU 201 or used as temporary storage for loading software modules for realizing the present invention.

204は基本ソフトウェアであるOSやソフトウェアモジュールが記憶されているHDD(ハードディスクドライブ)、もしくはSSD(ソリッドステートドライブ)などの間接記憶装置である。205は入力装置であり不図示のキーボードやポインティングデバイスなどである。206は出力装置でありディスプレイが接続される。207はネットワーク100に接続するためのI/Fである。   Reference numeral 204 denotes an indirect storage device such as an HDD (hard disk drive) or an SSD (solid state drive) in which an OS or software module as basic software is stored. Reference numeral 205 denotes an input device such as a keyboard or pointing device (not shown). Reference numeral 206 denotes an output device to which a display is connected. Reference numeral 207 denotes an I / F for connecting to the network 100.

これらのハードウェアでは、起動後CPU201によりBIOSが実行されOSがHDD204からRAM203に実行可能にロードされる。CPU201はOSの動作に従って後述する各種ソフトウェアモジュールをHDD204からRAM203に随時、実行可能にロードする。各種ソフトウェアモジュールは上記各デバイスの協調によりCPU201によって実行され動作する。また、I/F207はネットワーク100に接続されており、OSの動作に従ってCPU201により制御され、上述した通信手段による通信を実現している。   In these hardware, after starting, the BIOS is executed by the CPU 201 and the OS is loaded from the HDD 204 to the RAM 203 so as to be executable. The CPU 201 loads various software modules (to be described later) from the HDD 204 to the RAM 203 in an executable manner according to the operation of the OS. Various software modules are executed and operated by the CPU 201 in cooperation with the above devices. The I / F 207 is connected to the network 100 and is controlled by the CPU 201 in accordance with the operation of the OS to realize communication by the communication means described above.

図3は帳票生成サーバ101上で動作するソフトウェアモジュールの構成例を示す図である。なお各ソフトウェアモジュールは図2で示したHDD204に記憶されており、前述したようにCPU201によってRAM203にロードされ実行される。   FIG. 3 is a diagram illustrating a configuration example of a software module that operates on the form generation server 101. Each software module is stored in the HDD 204 shown in FIG. 2, and is loaded into the RAM 203 and executed by the CPU 201 as described above.

アクセス制御部301は、クライアント装置102からのリクエストに応じてユーザ認証を行う。   The access control unit 301 performs user authentication in response to a request from the client device 102.

ページ生成部302は、クライアント装置102にレスポンスを返すためのWebページを生成する。上記帳票閲覧プログラムであるウェブアプリケーションに必要なHTML、JavaScriptなどのファイルもページ生成部302で生成され、クライアント装置102に返す。   The page generation unit 302 generates a Web page for returning a response to the client device 102. Files such as HTML and JavaScript required for the web application that is the form browsing program are also generated by the page generation unit 302 and returned to the client apparatus 102.

データアクセス部303は、各データベース305、306、307、308、309へのアクセス処理を行う。   The data access unit 303 performs access processing to the databases 305, 306, 307, 308, and 309.

帳票生成部304は、データアクセス部303に介して読み出したフォーム情報ファイル406が示すフォーム情報と、フィールドデータファイル407が示すフィールドデータとを重ね合わせて、印刷データを生成する。そして、帳票ページ生成部304が、上記生成した印刷データを仮想プリンタなどのソフトウェアを利用して電子ファイルとしての帳票ページを生成する。   The form generation unit 304 generates print data by superimposing the form information indicated by the form information file 406 read via the data access unit 303 and the field data indicated by the field data file 407. Then, the form page generation unit 304 generates a form page as an electronic file from the generated print data using software such as a virtual printer.

帳票印刷部310は、クライアント装置102からの印刷ファイル生成リクエストを受け取り、印刷可能なフォーマットに変換する。   The form printing unit 310 receives a print file generation request from the client apparatus 102 and converts it into a printable format.

データベース305は、帳票データを格納するデータベースである。帳票データは、帳票名、所有者などの情報を表すデータであり、当該帳票がどのフォーム情報ファイルとフィールドデータファイルから生成されることを表す情報を所有する。また、帳票データは、当該帳票のオーバレイ結果である帳票ページがどれであることを表す情報を所有する。   The database 305 is a database that stores form data. The form data is data representing information such as form name and owner, and possesses information representing from which form information file and field data file the form is generated. The form data has information indicating which form page is the overlay result of the form.

データベース306は、フォーム情報ファイルを格納するデータベースである。   The database 306 is a database that stores form information files.

データベース307は、フィールドデータファイルを格納するデータベースである。   The database 307 is a database that stores field data files.

データベース308は、帳票生成部304が生成した帳票ページを格納するデータベースである。   The database 308 is a database that stores form pages generated by the form generation unit 304.

データベース309は、下記帳票オーバレイ処理時に生成したオーバレイ情報ファイルを格納するデータベースである。   The database 309 is a database that stores an overlay information file generated during the following form overlay processing.

次に、本実施例1の具体的な動作について説明する。   Next, a specific operation of the first embodiment will be described.

図5は本発明の実施例における、編集可能な帳票閲覧画面を生成する処理のシーケンスを示す図である。   FIG. 5 is a diagram showing a sequence of processing for generating an editable form browsing screen in the embodiment of the present invention.

S501において、ユーザはクライアント装置102のウェブブラウザで表示されているのログイン画面601にて帳票生成サーバ101にログインのリクエストを送信する。ユーザは、ログイン画面601のユーザ名入力テキストボックス602とパスワード入力テキストボックス603にユーザ名とパスワードを入力し、ログインボタン604を押下することにより帳票生成サーバ101にログインのリクエストを送信する。   In step S <b> 501, the user transmits a login request to the form generation server 101 on the login screen 601 displayed on the web browser of the client apparatus 102. The user inputs a user name and a password in a user name input text box 602 and a password input text box 603 on the login screen 601, and transmits a login request to the form generation server 101 by pressing a login button 604.

S502において、帳票生成サーバ101のアクセス制御部301はクライアント装置101から受信したログインリクエストの内容により、ログイン処理を行う。アクセス制御部301は、Basic認証を行い、ユーザ名とパスワードが有効であることを判断された場合、S503を行う。Basic認証は一般的な認証処理のため、その説明を省略する。   In step S <b> 502, the access control unit 301 of the form generation server 101 performs login processing according to the content of the login request received from the client device 101. The access control unit 301 performs basic authentication, and when it is determined that the user name and password are valid, the access control unit 301 performs S503. Since Basic authentication is a general authentication process, its description is omitted.

S503において、帳票生成サーバ101のページ生成部302はログインしたユーザの情報に応じて帳票選択画面701を生成する。702は、現在ログインしたユーザのユーザ名を表示する領域である。703は、現在ログインしたユーザが所有する帳票一覧を表示するドロップダウンリストである。ドロップダウンリスト703の中に表示する内容は、ページ生成部302がデータアクセス部303に介して帳票データのデータベース305から抽出したログインしたユーザが所有する帳票の帳票名である。ボタン704、705、706は帳票操作ボタンであって、ドロップダウンリスト703で選択された帳票名に該当する帳票に対してプレビュー、編集可能なプレビューまたは印刷操作を実行するためのボタンである。編集可能プレビューボタン705が押下された後の処理は後述するが、プレビューボタン704と印刷ボタン706が押下された後の処理は省略する。   In step S <b> 503, the page generation unit 302 of the form generation server 101 generates a form selection screen 701 according to the logged-in user information. Reference numeral 702 denotes an area for displaying the user name of the currently logged-in user. A drop-down list 703 displays a list of forms owned by the currently logged-in user. The content displayed in the drop-down list 703 is a form name of the form owned by the logged-in user extracted by the page generation unit 302 from the form data database 305 via the data access unit 303. Buttons 704, 705, and 706 are form operation buttons, and are buttons for executing preview, editable preview, or print operation for the form corresponding to the form name selected in the drop-down list 703. Processing after the editable preview button 705 is pressed will be described later, but processing after the preview button 704 and the print button 706 are pressed is omitted.

図5の説明に戻す。   Returning to the description of FIG.

S504において、帳票生成サーバ101のアクセス制御部301はS503で生成された帳票選択画面701をネットワーク100に介してクライアント装置102に返す。   In step S <b> 504, the access control unit 301 of the form generation server 101 returns the form selection screen 701 generated in step S <b> 503 to the client apparatus 102 via the network 100.

S505において、クライアント装置102は帳票生成サーバ101からのレスポンスを受け取り、ウェブブラウザに表示する。   In step S <b> 505, the client apparatus 102 receives a response from the form generation server 101 and displays it on the web browser.

S506において、ユーザは帳票選択画面701内のドロップダウンリスト703から操作したい帳票の帳票名を選択する。   In step S <b> 506, the user selects the form name of the form to be operated from the drop-down list 703 in the form selection screen 701.

S507において、ユーザは帳票選択画面701内の編集可能プレビューボタン705を押下することにより帳票生成サーバ101に編集可能な帳票閲覧画面の生成リクエストを送信する。編集可能な帳票閲覧画面の生成リクエストの中に、閲覧対象帳票を特定できる情報を包含する。   In step S <b> 507, the user presses the editable preview button 705 in the form selection screen 701 to transmit a request to generate an editable form browsing screen to the form generation server 101. The information for identifying the browsing target form is included in the generation request for the editable form browsing screen.

S516において、帳票生成サーバ101のアクセス制御部301は、受信した生成リクエストの種別を判定する。リクエストの種別は、生成リクエストのURL文字列から判定可能である。例えば、帳票閲覧画面用の生成リクエストであればURLに「SVG」が含まれている。一方、保存用帳票の生成リクエストの場合「PDF」が含まれている。アクセス制御部301は、判定結果を、RAM203に書き込む。   In S516, the access control unit 301 of the form generation server 101 determines the type of the received generation request. The type of request can be determined from the URL character string of the generation request. For example, in the case of a generation request for a form browsing screen, “SVG” is included in the URL. On the other hand, “PDF” is included in the generation request for the storage form. The access control unit 301 writes the determination result in the RAM 203.

S508において、帳票生成サーバ101の帳票生成部304は、データアクセス部303に介して閲覧対象帳票に関連するフォーム情報ファイルとフィールドデータファイルを取得する。   In step S <b> 508, the form generation unit 304 of the form generation server 101 acquires a form information file and a field data file related to the browsing target form via the data access unit 303.

S509において、帳票生成サーバ101の帳票生成部304はS508で取得したフォーム情報ファイルとフィールドデータファイルを使用してオーバレイ出力処理を行う。   In step S509, the form generation unit 304 of the form generation server 101 performs overlay output processing using the form information file and field data file acquired in step S508.

以下はオーバレイ処理を説明する。   The following describes the overlay process.

図8は本発明の実施例の帳票生成サーバ101における、フォーム情報ファイルとフィールドデータファイルを指定しオーバレイ出力する動作を表したフローチャートである。   FIG. 8 is a flowchart showing an operation of designating a form information file and a field data file and outputting an overlay in the form generation server 101 according to the embodiment of the present invention.

S801において、帳票生成部304は、S508で取得したフォーム情報ファイルを読み込む。   In step S801, the form generation unit 304 reads the form information file acquired in step S508.

S802において、帳票生成部304は、S516においてアクセス制御部301がRAM203に書き込んだ判定結果をもとにリクエスト種別を判定する。帳票閲覧画面用のリクエストの場合、S804に進む。それ以外の場合S803に進む。   In step S <b> 802, the form generation unit 304 determines the request type based on the determination result written in the RAM 203 by the access control unit 301 in step S <b> 516. In the case of a request for a form browsing screen, the process proceeds to S804. Otherwise, the process proceeds to S803.

S803において、帳票生成部304は、フォーム情報ファイルからフォント埋め込み指示リストを取得する。フォント埋め込み指示リストは、フォーム情報ファイル作成時に、フォーム情報設計システムにより書き込まれたものである。フォント埋め込み指示リストには、通常の保存帳票データ(PDF形式)を生成する際に埋め込みたいフォントのフォント名がリストされている。例えば通常特定環境にしか存在しないバーコード用のフォント等がリストされる。   In step S803, the form generation unit 304 acquires a font embedding instruction list from the form information file. The font embedding instruction list is written by the form information design system when the form information file is created. In the font embedding instruction list, font names of fonts that are to be embedded when generating normal saved form data (PDF format) are listed. For example, barcode fonts that normally exist only in a specific environment are listed.

S804において、帳票生成部304は、フォーム情報ファイル内の情報を元に、使用フォント一覧を作成する。フォーム情報ファイルに定義されている各フィールド図形の属性として、フォント名が指定されている。本ステップで、帳票生成部304は、全てのフィールド図形に指定されたフォント名を集めリスト化する。リスト化の際、重複するフォント名は省かれる。   In step S804, the form generation unit 304 creates a list of fonts to be used based on information in the form information file. A font name is specified as an attribute of each field graphic defined in the form information file. In this step, the form generation unit 304 collects the font names designated for all the field figures and forms a list. Duplicate font names are omitted when listing.

S805において、帳票生成部304は、S804で作成した使用フォント一覧を元に、フォント埋め込み指示リストを作成する。単純に使用フォント一覧に記載されたフォントを埋め込み指示リストに記載する。この際、ライセンスにより埋め込みを禁止されているフォントについては、フォント埋め込み指示リストに記載しない。   In step S805, the form creation unit 304 creates a font embedding instruction list based on the used font list created in step S804. Simply list the fonts listed in the used font list in the embedding instruction list. At this time, fonts whose embedding is prohibited by the license are not listed in the font embedding instruction list.

S806において、帳票生成部304は、描画処理の結果であるPDL情報(プリンタに対して描画を指示するためのページ記述言語)を利用して、仮想プリンタを介してPDF形式の帳票ページを生成する。この際、フォント埋め込み指示リストに従って、その環境に存在するフォントファイルのサブセットをPDF形式の帳票ページに埋め込む。   In step S806, the form generation unit 304 uses the PDL information (page description language for instructing the printer to draw) as a result of the drawing process to generate a PDF form page via the virtual printer. . At this time, according to the font embedding instruction list, a subset of the font file existing in the environment is embedded in the form page of the PDF format.

図5の説明に戻す。   Returning to the description of FIG.

S510において、帳票生成部304は、SVG(スケーラブル・ベクター・グラフィックス)形式の帳票ページを受け取る。具体的には、まず帳票生成部304は、データ変換サーバ104に対して、S807で生成したPDF形式の帳票ページの変換を依頼する。データ変換サーバ104は、依頼を受けて、PDF形式の帳票ページをSVG形式に変換して帳票生成部304に返す。PDF形式の帳票ページは、ウェブブラウザ上で直接編集できないため、編集できる形式(本実施例の場合はSVG形式)に変更する。続いて、帳票生成部304は、データアクセス部303を介して前記取得したSVG形式の帳票ページを帳票ページデータベース308に格納する。そして、前記取得したSVG形式の帳票ページを特定できる情報を帳票データのデータベース305の中の該当帳票レコードに追加する。   In step S510, the form generation unit 304 receives a form page in the SVG (Scalable Vector Graphics) format. Specifically, the form generation unit 304 first requests the data conversion server 104 to convert the form page in the PDF format generated in S807. Upon receiving the request, the data conversion server 104 converts the PDF form page into the SVG format and returns it to the form generation unit 304. Since a PDF form page cannot be directly edited on a web browser, the form page is changed to an editable format (in the case of this embodiment, the SVG format). Subsequently, the form generation unit 304 stores the acquired SVG format form page in the form page database 308 via the data access unit 303. Then, information that can identify the obtained SVG form page is added to the corresponding form record in the form data database 305.

S511において、帳票生成サーバ101はS507のリクエストの対象帳票の編集可能な帳票閲覧画面のURLをクライアント装置102に返却する。返却するURLの中に、S510で生成したSVG形式の帳票ページを特定できる情報が含まれている。本実施例の場合、返却するURLの中に帳票ページと関連する帳票データの帳票名が含まれている。   In step S <b> 511, the form generation server 101 returns the URL of the editable form browsing screen of the target form requested in step S <b> 507 to the client apparatus 102. The URL to be returned includes information that can specify the SVG form page generated in S510. In this embodiment, the form name of the form data related to the form page is included in the URL to be returned.

S512において、クライアント装置102は、S511で返却されたURLを使用して編集可能な帳票閲覧画面にリダイレクトするリクエストを帳票生成サーバ101に送信する。   In step S <b> 512, the client apparatus 102 transmits a request to redirect to the editable form browsing screen using the URL returned in step S <b> 511 to the form generation server 101.

S513において、帳票生成サーバ101のページ生成部302は、S512のリダイレクトリクエストの内容に応じて編集可能な帳票閲覧画面を生成する。生成されている編集可能な帳票閲覧画面の中にリクエスト対象帳票の帳票ページ、帳票ページを閲覧、編集、印刷操作を制御するためのJavascriptプログラムが含まれている。ページ生成部302は、S512のダイレクトリクエスト中の帳票名情報を利用して、データアクセス部303に介してリクエスト対象帳票に関連する帳票ページ及びオーバレイ情報ファイルをデータベース308、309から取得する。   In step S513, the page generation unit 302 of the form generation server 101 generates a form browsing screen that can be edited according to the content of the redirect request in step S512. The generated editable form browsing screen includes a form page of the request target form and a Javascript program for controlling the browsing, editing, and printing operations of the form page. The page generation unit 302 uses the form name information in the direct request in S512 to acquire the form page and overlay information file related to the request target form from the databases 308 and 309 via the data access unit 303.

S514において、帳票生成サーバ101はS513で生成した編集可能な帳票閲覧画面をクライアント装置102に返却する。   In step S <b> 514, the form generation server 101 returns the editable form browsing screen generated in step S <b> 513 to the client apparatus 102.

S515において、クライアント装置102は、ウェブブラウザに、S514で返却された編集可能な帳票閲覧画面を表示する。表示された編集可能な帳票閲覧画面は図10のようになる。   In step S515, the client apparatus 102 displays the editable form browsing screen returned in step S514 on the web browser. The displayed editable form browsing screen is as shown in FIG.

以上が、図5を用いた編集可能な帳票閲覧画面を生成する処理のシーケンスの説明である。   The above is the description of the sequence of the process for generating the editable form browsing screen using FIG.

図10は本発明の実施例における編集可能な帳票閲覧画面1001を示す図である。   FIG. 10 is a view showing an editable form browsing screen 1001 in the embodiment of the present invention.

1002は、SVG形式の帳票ページを表示する領域である。1002の領域の中に横方向のフリック操作を行うと前後の帳票ページへの切り替えができる。   Reference numeral 1002 denotes an area for displaying an SVG form page. When a horizontal flick operation is performed in the area 1002, switching to the previous or next form page can be performed.

1003と1004の領域は、レコードフィールド「商品名」のフィールド図形描画結果である。ユーザが1002の領域内にクリック操作を行うと、編集可能な帳票閲覧画面内の編集プログラムが動作し、編集処理が行える。   Fields 1003 and 1004 are field graphic drawing results of the record field “product name”. When the user performs a click operation in the area 1002, the editing program in the editable document browsing screen operates and editing processing can be performed.

101 帳票生成サーバ、102 クライアント装置、104 データ変換サーバ 101 form generation server, 102 client device, 104 data conversion server

Claims (1)

帳票文書を生成する情報処理装置であって、
受信したリクエストが、第2の形式の帳票データ生成リクエストかどうかを判定する手段(S802)と、
フォーム情報ファイル内の埋め込みフォント指定を取得する手段(S803)と、
フォーム情報ファイル内の使用フォントの一覧を取得する手段(S804)と、
使用フォントの一覧から埋め込みフォント指定を生成する手段(S805)と、
埋め込みフォント指定に従って第1の形式の帳票データにフォントを埋め込む手段(S806)と、
を有することを特徴とする情報処理装置。
An information processing apparatus for generating a form document,
Means (S802) for determining whether the received request is a form data generation request of the second format;
Means for obtaining an embedded font designation in the form information file (S803);
Means for obtaining a list of fonts used in the form information file (S804);
Means for generating an embedded font designation from a list of used fonts (S805);
Means for embedding a font in the form data of the first format according to the embedding font designation (S806);
An information processing apparatus comprising:
JP2016005649A 2016-01-15 2016-01-15 Method, device, and processing program for displaying and editing form document data Pending JP2017126230A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2016005649A JP2017126230A (en) 2016-01-15 2016-01-15 Method, device, and processing program for displaying and editing form document data

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2016005649A JP2017126230A (en) 2016-01-15 2016-01-15 Method, device, and processing program for displaying and editing form document data

Publications (1)

Publication Number Publication Date
JP2017126230A true JP2017126230A (en) 2017-07-20

Family

ID=59365239

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2016005649A Pending JP2017126230A (en) 2016-01-15 2016-01-15 Method, device, and processing program for displaying and editing form document data

Country Status (1)

Country Link
JP (1) JP2017126230A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP6838669B1 (en) * 2020-03-02 2021-03-03 大日本印刷株式会社 Electronic form editing equipment, methods, and programs

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP6838669B1 (en) * 2020-03-02 2021-03-03 大日本印刷株式会社 Electronic form editing equipment, methods, and programs
JP2021140242A (en) * 2020-03-02 2021-09-16 大日本印刷株式会社 Electronic form editing apparatus, method and program

Similar Documents

Publication Publication Date Title
US10353999B2 (en) Information processing system, server apparatus, control method, and storage medium
JP5885527B2 (en) Printing system, printing server, control method, and computer program
US10839146B2 (en) Information processing system, information processing apparatus, control method, and storage medium
US10481776B2 (en) Server apparatus, client apparatus, information processing method, and storage medium
US10346531B2 (en) Information processing system, information processing apparatus, control method, and storage medium
US20170154022A1 (en) Information processing apparatus, method for controlling the same, and storage medium
US10353998B2 (en) Information processing apparatus with real time update related to data edited while form document data is browsed, control method, and storage medium
JP2017027319A (en) Display/editing/storage method, device, and processing program of document documentation data
JP2017126230A (en) Method, device, and processing program for displaying and editing form document data
JP5804678B2 (en) Information processing apparatus, Web browser control method, and program
JP2017027320A (en) Display, editing and printing method, device and processing program for document data
US10895958B2 (en) Electronic document management device, electronic document management system, and electronic document management program
JP7073070B2 (en) A server that provides client devices, methods, processing programs, and programs.
JP7096629B1 (en) Information processing equipment, information processing methods and programs
US20230305995A1 (en) Information processing apparatus, non-transitory computer readable medium storing program, and information processing method
JP2016170661A (en) Information processing system, server device, information processing device, control method and program
JP2018200577A (en) Information processing system, method for controlling information processing system, information processing apparatus, method for controlling information processing apparatus, and program
JP2018200575A (en) Information processing system, method for controlling information processing system, information processing apparatus, method for controlling information processing apparatus, and program
JP2017126229A (en) Method, device, and processing program for displaying, editing, and storing form document data
JP2010146254A (en) Form display system, information processor, information processing method and program
WO2014027411A1 (en) Electronic document generation device and electronic document generation program