1. Field of the Invention
The present invention relates to a document processing apparatus, document processing method, and storage medium for generating, displaying and editing documents on which variable information can be printed.
2. Description of the Related Art
In recent years, the necessity of one-to-one marketing has attracted attention, which is attributed to a variety of commercial products and consumer orientation toward customized service due to dissemination of the Internet use. Such a method is very effective to increase customer satisfaction, and exploit and corral customers.
One-to-one marketing is a kind of database marketing, which generates a database of individual attribute information such as age, gender, hobby and purchase history, analyses the contents, and submits proposals according to customers' needs. A representative and specific method thereof includes a variable data print (hereinafter referred to as VDP).
The VDP is a variable data print to customize a document for each customer and output the document. VDP performs printing such that a fixed region and a variable region are arranged on a template and contents are switched page by page while data of a variable portion is being supplied from database. A template with a variable region, data input into to the variable region (hereinafter referred to as contents) and a rule for switching data in the variable region are required in order to generate the document for realizing such a VDP. The VDP document is generated by a VDP application with an editing function of the VDP document. When an instruction for printing is issued to the VDP document edited by the VDP application, the contents according to the rule are input into the variable region as print data and job control language is added to the print data to generate a print job. The print job is issued to a printing apparatus and printed out.
In the database used in the VDP, one database is generated using items (a user ID, for example) common to a plurality of databases. A rule can be set by the item of the generated database. For this reason, it is convenient if there is an editor which constructs and displays a relationship between the connection source of the database and the database generated therefrom. Hereinafter, such an editor is referred to as a database connection editor.
As the rule set in the variable region of the VDP, a conditional expression is described in the variable region and information thereof is stored into a hard disk. According to the rule, the corresponding data is extracted from the database and the variable region is replaced. Depending on the VDP application, a rule setting editor is provided which supports description of such a rule in the variable region of the template. Hereinafter, such an editor is referred to as a rule setting editor.
A conventional editing technique provides a GUI displaying contents of items of database on an editing screen of document and directly links the frame of document (refer to Japanese Patent Application Laid-Open No. 2004-213636).
A conventional technique provides a function to display contents of database by a GUI for a document to be displayed on an editing screen and directly link the contents of database with a frame. The conventional technique, however, has no function to set a rule to the frame and use the items of database therefor, so that while the conventional technique can perform different setting for each frame, it cannot perform the setting of a rule for the variable information print in which different contents are printed page by page.
If a user generates a template for a VDP document with the rule setting editor and the database connection editor displayed as an application different from the one for template editing, it is difficult to grasp their relevance, which decreases work efficiency. Furthermore, all the editors do not always need to be displayed depending on the process of template editing. On the other hand, if all the editors are displayed, it is difficult to grasp the relevance.
The present invention is directed to a document processing apparatus including an execution unit configured to execute a layout processing using a template including a variable region associated with a rule for extracting contents to be laid out from a database, and a display control unit configured to perform display on a display unit to clarify a relationship among a specific frame of the template, an item specified in the database, and the rule set to the specific region and the item specified in the database.
Further features and aspects of the present invention will become apparent from the following detailed description of exemplary embodiments with reference to the attached drawings.
The accompanying drawings, which are incorporated in and constitute a part of the specification, illustrate exemplary embodiments, features, and aspects of the invention and, together with the description, serve to explain the principles of the invention.
Various exemplary embodiments, features, and aspects of the invention will be described in detail below with reference to the drawings.
A control apparatus (PC) 100 in
The control unit 103 is a CPU. The control unit 103 controls the entire main apparatus according to a control program stored in a RAM 104. A ROM 107 stores a computer program executable by the control unit 103. The RAM 104 is a nonvolatile memory for storing various programs loaded from the ROM 107 and a HDD 108 and data files. The programs stored in the RAM 104 read and write the contents of data to be stored in the RAM 104, receive inputs from the input unit 102, and display the image on the display apparatus unit 101.
The HDD 108 (hard disk drive) includes a hard disk and a drive unit for reading data from and writing data into the hard disk. The HDD 108 stores a template, rule, and database. The term template refers to a document for associating a variable region on a page with information of database to set a layout. The term rule refers to a conditional expression described in the variable region of the template. The database includes one or more database used for setting rules in the variable region of the template.
The UI unit 105 receives input processing from the input unit 102 and notifies the control unit 103 of the reception thereof. The control unit 103 transmits print data to a printing unit 106. The printing unit 106 is capable of transmitting data to a printing apparatus through a network or a cable.
An OS stored in the RAM 104 executes desired data and image processing of the input processing from the input unit 102 by controlling the execution processing of various applications.
The display control unit 20 acquires information about a display state and display on the template editing display unit 21, the database connection display unit 22, and the rule setting display unit 23 and issues instructions for display or non-display, or highlight display to the control unit 103 to control the display of the display apparatus unit 101. The display control unit 20 includes a highlight display control unit 202.
The display control unit 20 controls the display or non-display of the template editing display unit 21, the database connection display unit 22, and the rule setting display unit 23. The control of display or non-display is performed by receiving user's instructions for display or non-display through the input unit 102. Alternatively, the control unit 103 determines the state of display or non-display of the current display apparatus unit 101 and editing process from user's selection which the UI unit 105 receives from the input unit 102 and automatically controls the display or non-display of the display unit required by the user.
The highlight display control unit 202 acquires a template, a database item, and a rule associated by a rule setting which are set to the variable region of the template in the template editing display unit 21, the database connection display unit 22, and the rule setting display unit 23 and highlights the template, database item, and the rule. Hereinafter, information about the template, the database item, and the rule associated by the rule setting is referred to as rule setting relation information.
The template editing display unit 21 acquires a new or an edited template and displays it on the display apparatus unit 101. The template editing display unit 21 includes a template acquisition unit 211, a template display unit 212, and a variable region acquisition unit 213. The template acquisition unit 211 acquires information about a new or an edited template. The template display unit 212 displays the template acquired by the template acquisition unit 211.
In the variable region acquisition unit 213, the UI unit 105 receives the user's selection of the variable region through the input unit 102 and notifies the control unit 103 of the reception of the selection, thereby the control unit 103 acquires the selection. Hereinafter, the above state where the UI unit 105 receives the user's selection through the input unit 102 and notifies the control unit 103 of the reception of the selection and the control unit 103 acquires the selection is referred to as a selection state. If a rule is set to the variable region which is in the selection state, the control unit 103 acquires the rule setting relation information.
The database connection display unit 22 connects a plurality of databases to generate database used for setting a rule in the variable region which is in the selection state and displays a list of items of the generated database and database connection sources on the display apparatus unit 101. The database connection display unit 22 includes a database connection search unit 222, a database display unit 223, a database connection acquisition unit 224, a database item list generation unit 225, a database item list display unit 226, and a database item acquisition unit 227. The database connection search unit 222 searches for a plurality of databases related to the variable region which is in the selection state. The database display unit 223 displays the database acquired by the database connection search unit 222.
In the database connection acquisition unit 224, the UI unit 105 receives the user's selection of the database displayed by the database display unit 223 through the input unit 102 and the control unit 103 acquires the database receiving the selection. The database item list generation unit 225 connects the database acquired by the control unit 103 using items common to a plurality of databases to generate a list of items for one database. The generation of a list of items for database is described later with reference to
The database item list display unit 226 displays the item list generated by the database item list generation unit 225 on the display apparatus unit 101. In the database item acquisition unit 227, the UI unit 105 receives the selection of one item of the database item list displayed by the database item list display unit 226 from the input unit 102 for the user and transmits it and the control unit 103 acquires the selected item. The database connection display unit 22 is described later with reference to
The rule setting display unit 23 displays and sets the rule in the variable region which is in the selection state. The rule setting display unit 23 includes a rule setting unit 233, a rule display unit 234, and a rule acquisition unit 235. In the rule setting unit 233, the UI unit 105 receives a rule which the user sets through the input unit 102 and notifies the control unit 103 of the reception of the rule setting. The rule acquisition unit 235 acquires the rule setting information. The rule display unit 234 displays the acquired rule setting information on the display apparatus unit 101. The rule setting display unit 23 is described later with reference to
(Konnichiwa)” (or, Good afternoon! in English) are extracted, arranged in a specific frame of the template and printed. If data of the item “Nationality” in the database is “French,” the contents of “Bonjour” are extracted, arranged in a specific frame of the template and printed. If data of the item “Nationality” in the database is neither “Japanese” nor “French,” “Hello” is inserted into a specific frame of the template and printed. The rule setting display unit 23 receives the editing of the rule setting 60 from the user. The control unit 103 acquires the rule setting and stores it into the HDD 108. By setting the rule to the variable region, data in the variable region can be replaced in collaboration with the contents of item of the database item list.
An example is described below in the case where “Nationality” in the database item list is specified as a database item. The rule setting 60 represents the rule of “IF nationality=‘JAPANESE’ (Konnichiwa)’ else if nationality=‘FRENCH’ ‘Bonjour’ else ‘Hello.’” The control unit 103 acquires the item “nationality” from the database according to the rule and if “nationality” of each record is JAPANESE, the variable region is replaced with
(Konnichiwa).” If “nationality” is FRENCH, the variable region is replaced with “Bonjour.” If “nationality” is neither JAPANESE nor FRENCH, the variable region is replaced with “Hello.”
In the document processing apparatus, the display control unit 20 simultaneously displays the template editing display unit 21, the database connection display unit 22 used for the rule setting in which a rule is provided for the variable region of the template, and the rule setting display unit 23 on the display apparatus unit 101 with their relationship maintained.
In step S800, the selection of the variable region 7012 of the template is received. In step S801, the highlight display control unit 202 highlights the variable region 7012 which is in the selection state. In step S802, the database item list generation processing described by using the flow chart in
The document processing apparatus causes the display control unit 20 to display a necessary display unit and not to display an unnecessary display unit among the display units.
The document processing apparatus causes the display control unit 20 not to display an unnecessary display unit among the display units.
The database connection display unit 22 connects databases to generate the database item list. If the database item list can be used and does not need to be generated afterward, it may be enough to display only the database item list. For this reason, the display control unit 20 receives an instruction for display or non-display from the user and the control unit acquires the instructions, thereby only the database item list in the database connection display unit 22 is displayed. If only the minimum necessary display portion is displayed, a display which is suited for a purpose and good in visibility is performed, which enables an efficient work.
The partial display of the database connection display unit 22 is described above. Also in the rule setting display unit 23 and the display control unit 20, the display control unit 20 receives an instruction for display or non-display from the user to enable the display of a portion of the display unit.
Hereinafter, for the sake of simplicity, the following is described on the premise that the database item list has been already generated and the database connection source does not need to be displayed.
In the document processing apparatus, the highlight display control unit 202 highlights the rule setting relation information.
A highlight display in
(shi)’ else ‘
(san)’.” If “nationality” is JAPANESE and “gender” is male, the rule provided for the variable region is replaced with
(shi)” (or, Mr. in English), or otherwise, with
(san)” (or, Mr. or Ms. in English). If two or more rules are set to the variable region, only the rule setting selected by the user is highlighted. In
The rule setting 1206 represents “nationality=‘JAPANESE’ image 1 else if nationality=‘FRENCH’ image 2 else image 3.” Using this rule, if “nationality” is “JAPANESE,” the variable region 1201 is replaced with image 1. If “nationality” is “FRENCH,” the variable region 1201 is replaced with image 2. Otherwise, the variable region 1201 is replaced with image 3. In the example of
If the highlight display control unit 202 determines that highlight is unnecessary, the highlight is cancelled. For example, when the user instructs the highlight display control unit 202 to add or delete a rule, the highlight display control unit 202 cancels the highlight of the variable region of the template, the item of the database item list and the rule. More specifically, the deletion of the rule cancels the highlight of a database item field. The deletion of the frame of the template removes the rule setting region and the database item field from the screen to leave only the template on the screen.
In the document processing apparatus, the display control unit 20 automatically controls the display or non-display of the display unit to display only the minimum necessary display unit.
After the specific variable region 1401 is selected, the item of the database item list needs to be specified by the database connection display unit 22. Therefore, in step S1302, the control unit 103 determines whether the database connection display unit 22 is displayed. If the database connection display unit 22 is displayed (YES in step S1302), the processing in step S1305 is performed. If the database connection display unit 22 is not displayed (NO in step S1302), in step S1303, the database item list is generated as described in the flow chart in
In step S1307, the control unit 103 determines whether the rule setting display unit 23 is displayed so that a rule is set to the variable region which is in the selection state using the acquired database item 1403. If it is determined that the rule setting display unit 23 is displayed (YES in step S1307), the processing in step S1309 is performed. If it is determined that the rule setting display unit 23 is not displayed (NO in step S1307), as illustrated in
In step S1500, the UI unit 105 receives the change of selection of the variable region from the user. In step S1501, the control unit 103 acquires the change of selection of the variable region and cancels all the highlights. In step S1502, the control unit 103 determines whether the rule setting display unit 23 has been already displayed. If it is determined that the rule setting display unit 23 has not yet been displayed (NO in step S1502), the processing in step S1504 is performed.
If it is determined that the rule setting display unit 23 has been already displayed (YES in step S1502), in step S1503, the rule setting display unit 23 is not displayed. In step S1504, the control unit 103 determines whether there is a variable region newly rendered in the selection state. If there is no variable region which is in the selection state (NO in step S1504), the display control is ended. If there is a variable region newly rendered in the selection state (YES in step S1504), in step S1505, the control unit 103 acquires and highlights the variable region newly rendered in the selection state in the template.
In step S1600, the UI unit 105 receives the deletion of setting of all rules from the user. In step S1601, the control unit 103 acquires information in which the setting of all rules is deleted and cancels all the highlights. In step S1602, the control unit 103 causes the rule setting display unit 23 not to be displayed.
As described above, the display control unit 20 predicts the following work from user's current work to automatically control the display or non-display of each display unit so that only the minimum necessary display unit is displayed. This improves the visibility of the user to allow effective editing processing.
According to the exemplary embodiment of the present invention, the template editing display unit, the rule setting display unit, and the database connection display unit are simultaneously displayed with their relationship maintained in editing the template of VDP document. Thus, the template can be edited while the relationship between database connection and rule setting is being confirmed. The variable region in the template, database item, and rule setting which are associated with one another are highlighted to enable their relationship to be visually recognized even by a minimum necessary display. The display or non-display of each display unit is automatically controlled so that only the minimum necessary display unit is displayed according to a user editing process, so that effective document editing can be performed. According to the exemplary embodiment of the present invention, the template can be edited while the relationship among the variable region in the template, the database connection and the rule setting is being confirmed.
While the present invention has been described with reference to exemplary embodiments, it is to be understood that the invention is not limited to the disclosed exemplary embodiments. The scope of the following claims is to be accorded the broadest interpretation so as to encompass all modifications, equivalent structures, and functions.
This application claims priority from Japanese Patent Application No. 2009-149059 filed Jun. 23, 2009, which is hereby incorporated by reference herein in its entirety.
Number | Date | Country | Kind |
---|---|---|---|
2009-149059 | Jun 2009 | JP | national |