Information processing device, PDF file display method, PDF file generation method, PDF file display program, and PDF file generation program
Patent Information
- Application Number
- JP2021207729
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Filing Date
- 2021-12-22
- Publication Date
- 2025-03-03
- Estimated Expiration
- 2041-12-22
AI Technical Summary
【0007】 上述したように構成した本発明によれば、PDFファイルの各ページの内容に応じたメニューを表示することができるという効果を奏する。
Smart Images

Figure 0007638203000001 
Figure 0007638203000002 
Figure 0007638203000003
Abstract
Description
[Technical field]
[0001] The present invention relates to an information processing device, a PDF file display method, a PDF file generating method, a PDF file display program, and a PDF file generating program. [Background technology]
[0002] As various transactions are increasingly digitized, PDF (Portable Document Format) files are often used for documents that need to be protected from rewriting (e.g., contracts, applications, quotations, etc.). PDF files are widely used for business documents because they are not affected by the operating environment of the terminal on which the user operates, can be displayed on screen or printed on a page-by-page basis, and the layout is not affected. In recent years, PDF files that allow data to be input have also been provided, and such PDF files accept data input from a specified area on the PDF file. Furthermore, the applicant has disclosed a technology for displaying PDF files according to device type (see Patent Document 1). [Prior art documents] [Patent documents]
[0003] [Patent Document 1] JP 2021-103366 A Summary of the Invention [Problem to be solved by the invention]
[0004] However, while this technology makes it possible to control the data entered into a PDF file and display a PDF file according to the device type, operations on the entire PDF file, such as saving or printing the PDF file, require a menu that is common to the entire PDF file, making it difficult to display a menu according to the content of each page of the PDF file.
[0005] The present invention has been made in consideration of the above, and aims to provide an information processing device, a PDF file display method, a PDF file generation method, a PDF file display program, and a PDF file generation program that are capable of displaying a menu according to the content of each page of a PDF file. [Means for solving the problem]
[0006] In order to solve the above-mentioned problems, the present invention is characterized by reading a PDF file including document data describing a document of one or more pages and menu data describing information relating to menus which are operations for the document, generating a document screen from the document data, generating a menu screen from the menu data, and displaying the document screen and the menu screen on a display screen. Effect of the Invention
[0007] According to the present invention configured as described above, it is possible to advantageously display a menu according to the contents of each page of a PDF file. [Brief description of the drawings]
[0008] [Figure 1] FIG. 1 is a block diagram showing configurations of an information processing device 100 and an information processing device 200 according to an embodiment of the present invention. [Diagram 2] FIG. 2 is an explanatory diagram showing an example of the data configuration of a PDF file displayed in the present embodiment. [Diagram 3] 13 is a flowchart showing the procedure of a PDF file display process executed by the information processing device 100. [Figure 4] 11 is an explanatory diagram showing an example in which a menu screen and a document screen generated from a PDF file are displayed on a display screen; FIG. [Diagram 5] 13 is an explanatory diagram showing another example in which a menu screen and a document screen are displayed on the display screen; FIG. [Figure 6] 13 is a flowchart showing the procedure of a process for generating a PDF file including menu data, which is executed by the information processing device 200. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0009] Hereinafter, examples of the information processing device, the PDF file display method, the PDF file generation method, the PDF file display program, and the PDF file generation program according to the present application will be described with reference to the attached drawings. Note that the following explanations are examples of the embodiments of the present application, and the information processing device, the PDF file display method, the PDF file generation method, the PDF file display program, and the PDF file generation program according to the present application are not limited to these examples.
[0010] 1 is a block diagram showing the configuration of an information processing device 100 and an information processing device 200 according to the present embodiment. The information processing device 100 is a computer that displays a PDF file including menu data, and the information processing device 200 is a computer that generates a PDF file including the menu data. The information processing device 100 and the information processing device 200 are, for example, a personal computer, a tablet terminal, a smartphone, etc.
[0011] As shown in FIG. 1, the information processing device 100 includes a control unit 110, a storage unit 120, an input / output control unit 130, and a communication unit 140.
[0012] The storage unit 120 stores PDF files in addition to programs for controlling each unit, application programs, various control information, intermediate files, etc. Fig. 2 is an explanatory diagram showing an example of the data structure of a PDF file displayed in this embodiment. As shown in Fig. 2, the PDF file includes document data, input form data, and menu data.
[0013] Document data is data that describes the contents of a document consisting of one or more pages. Document data can be read by a general PDF file reader, and can be displayed on screen or printed on a page-by-page basis without losing the layout. Input form data is written when accepting input of various data from a screen that displays a document (hereinafter referred to as a document screen), and describes coordinate information 22 that indicates the input area in the document, item names 23 that indicate the contents of the data, type 24 that is the data format that can be input, action attributes 25 that assist input, etc. As an example, the input form data is written in JSON format. In the example shown in FIG. 2 in which a handwritten signature is accepted in a document, the coordinate information 22 of “x1,y1”: “10.00,25.00”, “x2,y2”: “20.00,25.00”, “x3,y3”: “10.00,27.00”, and “x4,y4”: “20.00,27.00” is written when the input area is set to the upper left corner of the document as the origin x0,y0”: “0.00,0.00”, and “signature” is written as the item name 23, “TextBox” as the type 24, and “handwritten input” as the action attribute 25. This enables a handwritten signature to be entered at a specified position on a specified page on the document screen. In addition, by writing “calendar” or “numeric keypad” as the action attribute, a calendar, numeric keypad, or the like to assist input is displayed. The input form data does not have to be in JSON format and may be in any format as long as the input form can be defined.
[0014] The menu data describes information about a menu, which is an operation for a document described in the document data. As an example, the menu data is described in JSON format as shown in FIG. 2. The menu data describes coordinate information 26, an item name 27, a type 28, an action attribute 29, and the like for each menu. The menu item name may be any operation for a document, more specifically, an operation for a document screen or an operation for a PDF file, in addition to "save" for storing a PDF file in the storage unit 120 as shown in FIG. 2. The menu data does not have to be limited to the JSON format, and may be in any format as long as it can describe the contents of the menu.
[0015] In the example shown in FIG. 2, the area in which each menu is displayed on a screen displaying the menu (hereinafter referred to as the menu screen) is described as coordinate information 26, but instead of describing the coordinate information, the menus may be controlled to be displayed in order at predetermined positions on the menu screen according to the order in which the menu item names 27 are described.
[0016] The menu screen is displayed in an area of the document screen that does not overlap the top, bottom, right, or left side of the document screen according to the description of the menu data. The menu screen may also be displayed as a pop-up that is displayed over the document screen, or by a slide-in function that displays a menu when the user swipes from the top, bottom, left, or right edge of the document screen to the center.
[0017] The control unit 110 controls the operation of each unit of the information processing device 100 by expanding and executing various programs and control information stored in the storage unit 120. The control unit 110 includes a PDF file reading unit 111, a document screen generating unit 112, a menu screen generating unit 113, and a menu processing unit 114.
[0018] The PDF file reading unit 111 reads a PDF file stored in the storage unit 120 in response to an instruction for the PDF file received from a display screen displayed on the input device 131. More specifically, the PDF file reading unit 111 reads document data, input form data, and menu data included in the PDF file.
[0019] The document screen generating unit 112 generates a document screen from the document data of the PDF file read by the PDF file reading unit 111. When the PDF file read by the PDF file reading unit 111 includes input form data, the document screen generating unit 112 generates a document screen including an input form from the document data and the input form data.
[0020] Menu screen generating unit 113 generates a menu screen from the menu data of the PDF file read by PDF file reading unit 111. Menu processing unit 114 executes processing associated with the menu when an instruction for a menu to be displayed on the menu screen is received.
[0021] The input / output control unit 130 receives operations by a user from an input device 131, and performs control so as to display the results of the operations, document screens generated from PDF files, and menu screens on an output device 132. The input device 131 is, for example, a keyboard, a mouse, etc., and the output device 132 is a liquid crystal display (LCD: Liquid Crystal Display), an organic EL (electroluminescence) display, etc. In the case of a tablet terminal or a smartphone, the input device 131 and the output device 132 are, for example, a touch panel configured by overlapping a liquid crystal display and a touch sensor.
[0022] The communication unit 140 is connected to other devices via the network N so that they can communicate with each other, and transmits and receives data to and from the other devices. The network N is any communication network, such as the Internet, an intranet, a LAN (Local Area Network), a VPN (Virtual Private Network), or a mobile communication network, or a combination thereof, and a part or all of the network may be wired or wireless.
[0023] The information processing device 200 generates a PDF file including menu data from a PDF file. Also, the information processing device 200 edits the PDF file including the menu data to generate a PDF file including new menu data. The information processing device 200 includes a control unit 210, a storage unit 220, an input / output control unit 230, and a communication unit 240.
[0024] The storage unit 220 stores PDF files in addition to programs for controlling each unit, application programs, various control information, intermediate files, etc. The PDF files may be PDF files including document data, input form data, and menu data, PDF files including document data and input form data, or PDF files including only document data.
[0025] The control unit 210 controls the operation of each unit of the information processing device 200 by expanding and executing various programs and control information stored in the storage unit 220. The control unit 210 includes a PDF file reading unit 211, an editing screen generating unit 212, and a menu editing unit 213.
[0026] The PDF file reading unit 211 reads the PDF file stored in the storage unit 220 in response to an instruction from the PDF file. More specifically, the PDF file reading unit 211 reads document data included in the PDF file, and if input form data and menu data are included in the PDF file, reads the input form data and menu data.
[0027] Editing screen generating unit 212 generates a document screen from the document data of the PDF file read by PDF file reading unit 211. When the PDF file read by PDF file reading unit 211 includes input form data, editing screen generating unit 212 generates a document screen including an input form from the document data and the input form data.
[0028] If the PDF file read by PDF file reading unit 211 contains menu data, edit screen generating unit 212 generates a menu edit screen including a menu, and if the PDF file does not contain menu data, generates a blank menu edit screen.
[0029] The menu editing unit 213 edits the menu by operating the menu editing screen, and stores the menu data generated from the edited menu together with the document data (and the input form data) in a PDF file. More specifically, the menu editing unit 213 edits a menu that can be operated on the document page displayed on the document screen by pasting a button with a predetermined processing content at an arbitrary position on the menu editing screen, generates menu data from the menu arranged on the menu screen, and stores it in a PDF file.
[0030] Since the input / output control unit 230 and the communication unit 240 have the same functions and configurations as the input / output control unit 130 and the communication unit 140 described above, please refer to the explanation of the input / output control unit 130 and the communication unit 140 and the explanation here will be omitted.
[0031] A description will now be given of the PDF file display processing executed by the information processing device 100 configured as described above.
[0032] In the information processing device 100, the input / output control unit 130 receives an instruction for a PDF file from a display screen displayed on the input device 131 (step S301). For example, the PDF file is selected by instructing the PDF file from a list of files stored in the storage unit 120 displayed on the display screen. The PDF file reading unit 111 reads the specified PDF file (step S302).
[0033] Menu screen generating unit 113 generates a menu screen for each page from the menu data of the PDF file (step S303). More specifically, when generating a menu screen for each page, menu screen generating unit 113 determines whether or not the menu data contains a description for the page to be generated. If menu screen generating unit 113 determines that the menu data contains a description for the page, it generates a menu screen from the description for the page and the description of the common menu. If menu screen generating unit 113 determines that the menu data does not contain a description for the page, it generates a menu screen from the common menu.
[0034] The document screen generating unit 112 generates a document screen for each page from the document data of the PDF file (step S304). The input / output control unit 130 controls the document screen and the menu screen to be displayed on the display screen of the output device 132 (step S305).
[0035] FIG. 4 is an explanatory diagram showing an example of a menu screen and a document screen generated from a PDF file displayed on a display screen. The PDF file 41 shown in FIG. 4 is a *** contract document, and includes document data, an input form, and menu data. (a) Screen Example shows an example of a display screen displaying the first page of the document data. The display screen 42 displays a menu screen 43 generated from the menu data and common menu data of the first page, a document screen 44 generated from the first page of the document data, and an input form 45 and an input form 46 generated from the input form data of the first page. The menu screen 43 is the first page, so the "next page" button is displayed, but the "previous page" button is not displayed because it is not described in the menu data. If "calendar" is described as the action attribute in the input form 45 for the contract date, a calendar is displayed when the cursor enters the input form area or when the input form is specified, and a date can be selected from the displayed calendar. If "camera" is described as the action attribute in the input form 46 for the certificate side, an image capture function using the camera is activated.
[0036] When the "next page" button on the menu screen 43 is pressed, the document screen of the next page of the document data and the menu screen are successively displayed on the display screen. (b) Screen Example shows an example of a display screen displaying the last page of the document data. Display screen 47 displays menu screen 48 generated from menu data, document screen 49 generated from document data, and input form 50 generated from input form data. Menu screen 48 is the last page, so the "previous page" button is displayed, but since it is not described in the menu data, the "next page" button is not displayed. If "handwritten signature" is described as an action attribute in signature input form 50, a handwritten input screen is displayed when the cursor enters the input form area or when the input form is designated, and handwritten input can be accepted on the displayed handwritten input screen by inputting with a mouse, or by inputting with a finger or a stylus pen on a touch panel, etc.
[0037] FIG. 5 is an explanatory diagram showing another example in which a menu screen and a document screen are displayed on a display screen. (c) Screen example shows an example of a display screen 51 in which a menu screen 52 is displayed on the right side of a document screen 53. By describing the right side, which is the display position of the menu screen 52 on the display screen 51, and the display order of the menu buttons to be displayed on the menu screen 52 in the menu data, the menu screen 52 can be displayed on the right side of the document screen 53. The display position of the menu screen 52 on the display screen 51 can be specified to be either up, down, left, or right. (d) Screen example shows an example of a display screen 54 in which a menu screen 55 is displayed as a pop-up on a document screen 56. The pop-up of the menu screen 55 is displayed or hidden by specifying a predetermined position on the display screen 54 or by executing a predetermined action. Normally, only the document screen 56 is displayed on the display screen 54, and the menu screen 55 is displayed only when necessary, so that the document screen 56 can be displayed in a wide area. Also, instead of a pop-up display, the menu screen 55 may be slid in and displayed by sliding a finger from the top, bottom, left, or right edge of the display screen 54 to the center, and the menu screen 55 may be hidden by sliding in the opposite direction.
[0038] The input / output control unit 130 accepts input from the document screen and the menu screen (step S306). More specifically, the input / output control unit 130 accepts input of various data from the input form of the document screen. The input / output control unit 130 accepts input of various menus from the menu screen. The menu processing unit 114 executes processing according to the menu accepted from the menu screen (step S307). More specifically, when the menu processing unit 114 accepts an instruction of "enlarge" or "reduce", it enlarges or reduces the document displayed on the document screen. When the menu processing unit 114 accepts an instruction of "print", it prints the document displayed on the document screen, and when the menu processing unit 114 accepts an instruction of "save", it stores the document data of the document displayed on the document screen and the data input from the input form in the storage unit 120 as a PDF file. It is to be noted that the data may be stored in the storage unit 120 as a PDF file to which the menu data is added. When the menu processing unit 114 receives an instruction for "previous page", it displays the document data (and input form) of the page previous to the currently displayed page, and when the menu processing unit 114 receives an instruction for "next page", it displays the document data (and input form) of the page next to the currently displayed page. When the menu processing unit 114 receives an instruction for "read information", it reads data from a file describing data for each item name (e.g., address, name, etc.) into the input form for the corresponding item name. When the menu processing unit 114 receives an instruction for "send email", it sends only the document data of a PDF file in which the data entered from the input form has been added in a non-editable format to a predetermined email address. When the menu processing unit 114 receives an instruction for "end", it ends the operation on the document. In this way, when a menu is specified, a predetermined process is executed for each menu.
[0039] The input / output control unit 130 judges whether or not an input to end the process has been received (step S308). If it is judged that an input to end the process has been received (step S308: Yes), the display of the document screen and the menu screen is terminated. If it is judged that an input to end the process has not been received (step S308: No), the process returns to step S306 and the input is received.
[0040] In this way, the document data of the PDF file, including the document data, input form, and menu data, is displayed on the document screen, and a menu corresponding to the page of the document data is displayed on the menu screen, and menu input is accepted from the menu screen, so that processing corresponding to each page of the document can be executed. This reduces the user's confusion about the operation for each page of the document, and leads to the operation that is in line with the intention of the PDF file provider. In addition, since various methods are provided for displaying the menu screen, the menu screen may be displayed in a display method that suits the user's preference, as specified by the user.
[0041] As another embodiment, when the menu screen is displayed, the device type of the information terminal device 100 operated by the user may be obtained, and the menu data may be written so as to select a display method for the menu screen according to the obtained device type.
[0042] Next, a description will be given of a process for generating a PDF file including menu data, which is executed by the information processing device 200. Fig. 6 is a flowchart showing the procedure of the process for generating a PDF file including menu data, which is executed by the information processing device 200.
[0043] In the information processing device 200, the input / output control unit 230 receives an instruction for a PDF file from the input device 231 (step S601). For example, a PDF file is selected by instructing one PDF file from a list of PDF files stored in the storage unit 220. The PDF file reading unit 211 reads the specified PDF file (step S602). The PDF file to be read may be a PDF file including the above-mentioned document data, input form data, and menu data, a PDF file including document data and input form data, or a PDF file including only document data.
[0044] The editing screen generating unit 212 generates an editing screen consisting of a document screen and a menu editing screen from the read PDF file (step S603). More specifically, the editing screen generating unit 212 generates a document screen for each page from the document data (and input form data) included in the PDF file, similar to the above-mentioned PDF file display process, and if there is menu data, generates a menu editing screen for each page including a menu corresponding to the menu data. If there is no menu data, an empty menu editing screen is generated. Furthermore, on a separate screen, menu buttons prepared in advance for adding, deleting, and replacing menus on the menu editing screen are displayed.
[0045] The input / output control unit 230 accepts menu editing on the menu editing screen for each page (step S604). The input / output control unit 230 judges whether or not the menu editing is completed (step S605). If it is judged that the menu editing is not completed (step S605: No), the process returns to step S604 and accepts menu editing. If it is judged that the menu editing is completed (step S605: Yes), the menu editing unit 213 generates menu data from the menu editing screen (step S606). The menu editing unit 213 stores the menu data in a PDF file (step S607).
[0046] In this way, if the PDF file contains menu data, the menu displayed on the menu editing screen can be edited, and if the PDF file does not contain menu data, a PDF file that displays a different menu on each page can be generated by adding a menu to the menu editing screen.
[0047] In the above embodiment, only the menu can be edited, but in addition to editing the menu, it is also possible to accept addition, modification, deletion, etc. of input forms on the document screen.
[0048] Although the above-mentioned embodiment has been described as the processes executed by the information processing device 100 or the information processing device 200, a part of the processes may be executed by the server 300 connected via the network N.
[0049] The hardware configuration of the information processing device 100, the information processing device 200, and the server 300 according to the above-mentioned embodiments is a normal computer including one or more processors such as a CPU (Central Processing Unit), an MPU (Micro-Processing Unit), or a GPU (Graphics Processing Unit), and equipped with an external storage device such as a ROM (Read Only Memory), a RAM (Random Access Memory), an HDD (Hard Disk Drive), a flash memory, or an SSD (Solid State Drive), a communication control device, etc., and the above-mentioned configuration and functions are realized by the CPU or the like reading and running a program stored in the ROM, RAM, HDD, etc. The control unit may be an electronic circuit such as an ASIC (Application Specific Integrated Circuit) or a PLD (Programmable Logic Device).
[0050] The programs that run on the information processing device 100, the information processing device 200, and the server 300 may be stored on a computer connected to a network such as the Internet and provided by downloading the programs via the network, or may be recorded in an installable or executable format on a computer-readable recording medium such as a CD-ROM, a DVD, a USB memory, or an SD card and provided. The programs that realize the above-mentioned functions and processes may be provided in the form of an API (Application Programming Interface), SaaS (Software as a Service), or cloud computing.
[0051] In the above-described embodiments, the information processing device 100, the information processing device 200, and the server 300 have been described as separate devices, but the functions of the information processing device 100, the information processing device 200, and the server 300 may be configured as a single device, or the functions of any two of the devices may be combined.
[0052] The present invention is not limited to the above-described embodiment, and does not necessarily have to be physically configured as illustrated. The present invention can be configured by functionally or physically dividing, integrating, replacing, modifying, or deleting all or part of the components described in the embodiment in any unit according to various loads, usage conditions, etc. [Explanation of symbols]
[0053] 100...information processing device, 110...control unit, 111...PDF file reading unit, 112...document screen generating unit, 113...menu screen generating unit, 114...menu processing unit, 120...storage unit, 130...input / output control unit, 131...input device, 132...output device, 140...communication unit, 200...information processing device, 210...control unit, 211...PDF file reading unit, 212...edit screen generating unit, 213...menu editing unit, 220...storage unit, 230...input / output control unit, 231...input device, 232...output device, 240...communication unit, 300...server
Claims
1. An information processing device for displaying a PDF file, a PDF file reading means for reading a PDF file including document data describing a document of one or more pages, and menu data describing information related to a menu which is an operation for the document or the pages and corresponds to each of the pages; a document screen generating means for generating a document screen corresponding to each of the pages from the document data; a menu screen generating means for generating a menu screen corresponding to each of the pages from the menu data; a display means for displaying on a display screen the document screen and a menu screen corresponding to a page to be displayed on the document screen; An information processing device comprising:
2. 2. The information processing apparatus according to claim 1, wherein said display means displays the menu screen in a display method described in said menu data.
3. A type acquisition unit for acquiring a device type of the information processing device, 3. The information processing apparatus according to claim 1, wherein the display means displays a menu screen in a display method corresponding to the device type acquired by the type acquisition means.
4. The PDF file further includes input form data describing information regarding the input form; 4. The information processing apparatus according to claim 1, wherein the document screen generating means generates a document screen including an input form based on the input form data.
5. The input form data includes an action attribute indicating a method for assisting in input of data; 5. The information processing apparatus according to claim 4, wherein said display means, when accepting an input from said document screen to an input form, assists the input in a manner corresponding to said action attribute.
6. a PDF file reading means for reading a PDF file including at least document data describing a document of one or more pages; a document screen generating means for generating a document screen corresponding to each of the pages from the document data; an edit screen generating means for generating a menu edit screen for accepting edits of the menu for each page of the document; a display means for displaying the document screen and the menu editing screen on a display screen for each page of the document; a menu editing means for accepting editing of the menu for each page on the menu editing screen and storing menu data corresponding to the page generated from the accepted menu editing results in the PDF file; An information processing device comprising:
7. A method for displaying a PDF file, the method being carried out on a computer, comprising: a PDF file reading step of reading a PDF file including document data describing a document of one or more pages, and menu data describing information related to a menu which is an operation on the document or the pages and corresponds to each of the pages; a document screen generating step of generating a document screen corresponding to each of the pages from the document data; a menu screen generating step of generating a menu screen corresponding to each of the pages from the menu data; a display step of displaying, on a display screen, the document screen and a menu screen corresponding to a page to be displayed on the document screen; A method for displaying a PDF file, comprising:
8. A computer-implemented method for generating a PDF file, comprising: a PDF file reading step of reading a PDF file including at least document data describing one or more pages of a document; a document screen generating step of generating a document screen corresponding to each of the pages from the document data; an editing screen generating step of generating a menu editing screen for accepting editing of the menu for each page of the document; a display step of displaying the document screen and the menu editing screen on a display screen for each page of the document; a menu editing step of accepting editing of the menu for each page on the menu editing screen and storing menu data corresponding to the page generated from a result of the accepted menu editing in the PDF file; A method for generating a PDF file, comprising:
9. 8. A PDF file display program for causing a computer to execute the PDF file display method according to claim 7.
10. A PDF file generating program for causing a computer to execute the PDF file generating method according to claim 8.
Citation Information
Patent Citations
Document processor, document processing system and data structure of document file
JP2007213501A
Program, method and device for processing information
JP2010049431A
Menu management device and program
JP2012073861A
Document display system, server device, information terminal device, document display method, and document display program
JP2021103366A
JPP6687801B