This application is based on and claims priority under 35 USC 119 from Japanese Patent Application No. 2017-222149 filed Nov. 17, 2017.
The present invention relates to a document processing apparatus and a non-transitory computer readable medium storing a program.
According to an aspect of the invention, there is provided a document processing apparatus including an acquisition unit that acquires an electronic document from an external storage apparatus, an addition unit that adds attribute information to the electronic document acquired by the acquisition unit, and a storage unit that stores the electronic document having the attribute information added thereto by the addition unit in a storage destination in the external storage apparatus.
Exemplary embodiments of the present invention will be described in detail based on the following figures, wherein:
Exemplary embodiments of the present invention are described in detail with reference to the drawings.
As illustrated in
There are various types of document management software for editing or creating an electronic document file (hereinafter referred to simply as an electronic document). For example, the following description is made under the assumption that there are four types of document management software that are AAA software, BBB software, CCC software, and DDD software.
The document management servers 20A to 20D store electronic documents generated by the different types of document management software that are the AAA software, the BBB software, the CCC software, and the DDD software, respectively.
Those types of document management software call a function at a determined timing by using a dynamic link library (DLL) file having a defined interface. Therefore, the plural and different types of document management software are associable with each other.
A certain type of document management software such as the AAA software is installed in each of the document processing apparatuses 11 to 13. With the document management software that is the AAA software, an electronic document file may be edited or created.
The same document management software that is the AAA software is installed in each of the document processing apparatuses 11 to 13. Thus, generated electronic documents may be transmitted, received, viewed, or revised.
The document management server 20A is connected to the document processing apparatuses 11 to 13 via the network 30 and stores electronic documents generated by the document processing apparatuses 11 to 13. Users who use the document processing apparatuses 11 to 13 view the electronic documents stored in the document management server 20A or store generated electronic documents in the document management server 20A. Thus, the electronic documents may be exchanged or used among the document processing apparatuses 11 to 13.
The document management software described above includes attribute adding software for adding attribute information to an electronic document. The attribute adding software has a function of adding various types of attribute information such as a document type to an electronic document and storing the electronic document having the attribute information added thereto while categorizing the electronic document based on the added attribute information. The attribute adding software and the document management software for viewing electronic documents are also associated with each other by using the DLL file described above.
As illustrated in
The CPU 21 controls an operation of the document processing apparatus 11 by executing predetermined processing based on a control program stored in the memory 22 or the storage device 24. This exemplary embodiment is described under the assumption that the CPU 21 reads and executes the control program stored in the memory 22 or the storage device 24. The program may be provided to the CPU 21 by being stored in a storage medium such as a CD-ROM.
As illustrated in
The operation receiving part 31 receives an input of character information to be added to an electronic document as attribute information. When the character information to be added to the electronic document as the attribute information is input, the operation receiving part 31 receives specification of a storage destination of the electronic document having the attribute information added thereto.
When any area is specified in the displayed electronic document, the OCR processing part 36 performs the OCR processing (character recognition processing) on the specified area, thereby acquiring, from the electronic document, character information located in the specified area.
The control part 32 acquires electronic documents from the document management servers 20A to 20D that are external storage apparatuses by accessing the document management servers 20A to 20D via the communication part 35.
Then, the control part 32 adds attribute information to each of the acquired electronic documents. Specifically, the control part 32 adds character information acquired by the OCR processing part 36 or character information input by the user to each of the electronic documents as the attribute information.
Finally, the control part 32 stores the electronic documents each having the attribute information added thereto in storage destinations in the document management servers 20A to 20D that are the external storage apparatuses.
At this time, the control part 32 stores the electronic document having the attribute information added thereto in a document management server that is specified as the storage destination of the electronic document among the document management servers 20A to 20D. The specification of the document management server is received by the operation receiving part 31.
When storage destination information indicating a storage destination corresponding to attribute information is stored in advance in the data storage part 34, the control part 32 stores the electronic document having the attribute information added thereto in a storage destination in an external storage apparatus specified based on the storage destination information corresponding to the attribute information, that is, any one document management server out of the document management servers 20A to 20D.
The storage destination information stored in the data storage part 34 may include not only information indicating an external storage apparatus of a storage destination but also information indicating an external storage apparatus of a storage destination and a storage area in the external storage apparatus. In this case, the control part 32 stores the electronic document having the attribute information added thereto in the specified storage area in the external storage apparatus specified as the storage destination by the storage destination information.
Through the control described above, the external storage apparatus of an acquisition source from which an electronic document is acquired may be different from the external storage apparatus of the storage destination in which the electronic document is stored by the control part 32. Further, the external storage apparatus of the acquisition source from which an electronic document is acquired may be identical to the external storage apparatus of the storage destination in which the electronic document is stored by the control part 32.
When the external storage apparatus of the acquisition source is identical to the external storage apparatus of the storage destination, the electronic document having the attribute information added thereto may be stored in a storage area identical to a storage area from which the electronic document is acquired or in a storage area different from the storage area from which the electronic document is acquired.
As the case in which the electronic document having the attribute information added thereto is stored in the storage area different from the storage area from which the electronic document is acquired, there is a case in which the control part 32 generates a new storage area in a lower-level layer of the storage area from which the electronic document is acquired and stores the electronic document having the attribute information added thereto in the generated new storage area.
When a new storage area is generated in the lower-level layer of the storage area from which the electronic document is acquired and the electronic document is stored, the control part 32 may generate plural new storage areas corresponding to pieces of attribute information in the lower-level layer of the storage area from which the electronic document is acquired and store the electronic document having the attribute information added thereto in any one storage area out of the plural generated new storage areas based on the added attribute information.
The display part 33 displays an electronic document and various types of information for the user based on control of the control part 32. The communication part 35 transmits and receives data to and from the document processing apparatuses 12 and 13, the document management servers 20A to 20D, and the like via the network 30. The data storage part 34 stores an electronic document acquired by the control part 32 and other data.
Next, an operation of the document processing apparatus 11 in the document management system of this exemplary embodiment is described in detail with reference to the drawings.
When the user selects, via the operation receiving part 31, a document management server (external storage apparatus) and a folder from which electronic documents are acquired (Step S101), the control part 32 acquires an electronic document file group from the specified folder of the selected document management server (Step S102).
Then, the control part 32 causes the display part 33 to display one electronic document out of the acquired electronic document file group (Step S103).
When the user refers to the electronic document displayed in this manner and inputs the character information to be added to the electronic document as the attribute information, the operation receiving part 31 receives the input character information (Step S104). The exemplary display screen illustrated in
When the user completes the input of the attribute information and depresses a “register” button in the example of the display screen illustrated in
Description is herein made under the assumption that the user selects the “associated folder” and depresses an “OK” button in the display screen illustrated in
The display screen illustrated in
When the user depresses the “OK” button in the display screen illustrated in
In Step S106, the new folder is generated only when the first electronic document of the electronic document file group is stored. The new folder is not generated when the new folder has already been generated.
Then, the processing of Steps S103 to S107 is repeated until the processing is executed on all the electronic documents of the specified electronic document file group. When pieces of attribute information have been added to all the electronic documents and the electronic documents have been stored again in specified storage areas, the processing is terminated (Step S108).
The above description is directed to the case in which the electronic documents stored in the document management server 20A are acquired and are stored again in the document management server 20B that is set as the storage destination. The document management server of the acquisition source and the document management server of the storage destination may be combined arbitrarily.
For example, as illustrated in
Next, a document management system of a second exemplary embodiment of the present invention is described.
In the document management system of the first exemplary embodiment described above, the user specifies a storage destination and a storage area of an electronic document having attribute information added thereto. In the document management system of this exemplary embodiment, storage destination information in which a storage destination is set so as to correspond to attribute information on the document type or the like is registered in advance. Thus, there is no need to perform such an operation that the user specifies a storage destination every time attribute information is added to an electronic document.
The configurations of the document processing apparatuses 11 to 13 and the configurations of the document management servers 20A to 20D in the document management system of this exemplary embodiment are similar to those in the document management system of the first exemplary embodiment. Therefore, description is made with reference to the same reference numerals for the same components.
Examples of the storage destination information stored in the data storage part 34 of the document processing apparatus 11 in the document management system of this exemplary embodiment are described with reference to
The exemplary storage destination information illustrated in
The exemplary storage destination information illustrated in
In this exemplary embodiment, the storage destination information is stored in advance in the data storage part 34 as a configuration file. The control part 32 refers to the storage destination information in the configuration file and stores an electronic document having attribute information added thereto in a storage destination that is set in advance without waiting for the user's specification.
Next, processing in which the document processing apparatus 11 in the document management system of this exemplary embodiment acquires an electronic document file, adds attribute information, and then stores the electronic document file again in a specified storage area is described with reference to a flowchart of
In the flowchart illustrated in
When the user inputs attribute information to be added to a displayed electronic document (Step S104), the control part 32 determines whether storage destination information corresponding to the attribute information (document type in this case) is set in the configuration file stored in the data storage part 34 (Step S201).
When it is determined in Step S201 that the storage destination information corresponding to the attribute information is not set in the configuration file (“no” in Step S201), similarly to the first exemplary embodiment, the control part 32 causes the display part 33 to display the display screens illustrated in
When it is determined in Step S201 that the storage destination information corresponding to the attribute information is set in the configuration file (“yes” in Step S201), the control part 32 does not cause the display part 33 to display the display screens illustrated in
The processing of Step S106 and the subsequent processing are similar to those of the first exemplary embodiment and description thereof is therefore omitted.
As described above, when the storage destination information in which a storage destination is set so as to correspond to attribute information is set in advance, the document processing apparatus 11 in the document management system of this exemplary embodiment stores the electronic document having the attribute information added thereto again in the storage destination determined based on the set storage destination information without inquiring the storage destination from the user.
The processing to be performed when an electronic document is stored again in this manner is described with reference to
That is, when the user depresses the “register” button of the attribute adding software, the document type of the attribute information to be added to the electronic document is “bill” and therefore the “document management server 20A” and the “‘bill’ folder” are automatically determined as the storage destination and the storage folder, respectively, by referring to the storage destination information.
After the attribute information is added to the electronic document, the electronic document is stored in the “‘bill’ folder” of the document management server 20A without the need for the user's specification of the storage destination.
The foregoing description of the exemplary embodiments of the present invention has been provided for the purposes of illustration and description. It is not intended to be exhaustive or to limit the invention to the precise forms disclosed. Obviously, many modifications and variations will be apparent to practitioners skilled in the art. The embodiments were chosen and described in order to best explain the principles of the invention and its practical applications, thereby enabling others skilled in the art to understand the invention for various embodiments and with the various modifications as are suited to the particular use contemplated. It is intended that the scope of the invention be defined by the following claims and their equivalents.
Number | Date | Country | Kind |
---|---|---|---|
2017-222149 | Nov 2017 | JP | national |