Information processing apparatus, method, and computer program
First Claim
Patent Images
1. An information processing apparatus for generating a printer command to control a printer, based on print attribute information and print data, comprising:
- a computer-readable storage medium on which is stored a command configuration XML file in a human readable form;
an input unit constructed to accept input from a user concerning print attribute information;
a loading unit constructed to load the command configuration XML file which includes (a) a lookup table which has relationships between the print attribute information and a corresponding command attribute value, (b) a default command attribute value, and (c) a reserved word;
a searching unit constructed to search a reserved word described in a specific character string in the loaded command configuration XML file;
an obtaining unit constructed to obtain a command attribute value corresponding to the inputted print attribute information by referring to the lookup table in the loaded command configuration XML file;
a replacing unit constructed to (1) replace the searched reserved word in the loaded command configuration XML file with the obtained command attribute value in a case where the inputted print attribute information exists in the lookup table, and (2) replace the searched reserved word in the loaded command configuration XML file with the default command attribute value in a case where the inputted print attribute information does not exist in the lookup table;
an eliminating unit constructed to eliminate the lookup table in the loaded command configuration XML file processed by the replacing unit to generate a data-reduced command configuration XML file; and
a command generation unit constructed to generate the printer control command on the basis of the data-reduced command configuration XML file processed by the eliminating unit.
1 Assignment
0 Petitions
Accused Products
Abstract
This invention allows to print without installing a driver program for every printer and easily coping with a change in printer control command specifications. To accomplish this, an information processing apparatus for generating a printer command to control a printer generates a command by using a command configuration XML file representing a printer command configuration in which a part that changes due to an external factor such as a user interface is described by a reserved word, thereby coping with a printer model and user environment.
-
Citations
6 Claims
-
1. An information processing apparatus for generating a printer command to control a printer, based on print attribute information and print data, comprising:
-
a computer-readable storage medium on which is stored a command configuration XML file in a human readable form; an input unit constructed to accept input from a user concerning print attribute information; a loading unit constructed to load the command configuration XML file which includes (a) a lookup table which has relationships between the print attribute information and a corresponding command attribute value, (b) a default command attribute value, and (c) a reserved word; a searching unit constructed to search a reserved word described in a specific character string in the loaded command configuration XML file; an obtaining unit constructed to obtain a command attribute value corresponding to the inputted print attribute information by referring to the lookup table in the loaded command configuration XML file; a replacing unit constructed to (1) replace the searched reserved word in the loaded command configuration XML file with the obtained command attribute value in a case where the inputted print attribute information exists in the lookup table, and (2) replace the searched reserved word in the loaded command configuration XML file with the default command attribute value in a case where the inputted print attribute information does not exist in the lookup table; an eliminating unit constructed to eliminate the lookup table in the loaded command configuration XML file processed by the replacing unit to generate a data-reduced command configuration XML file; and a command generation unit constructed to generate the printer control command on the basis of the data-reduced command configuration XML file processed by the eliminating unit. - View Dependent Claims (2, 3, 4)
-
-
5. An information processing method of generating a printer command to control a printer, based on print attribute information and print data, comprising the steps of:
-
accepting an input of print attribute information from a user; loading a command configuration XML file in a human readable form including (a) a lookup table which has relationships between the print attribute information and a corresponding command attribute value, (b) a default command attribute value, and (c) a reserved word; searching a reserved word described in a specific character string in the loaded command configuration XML file; obtaining a command attribute value corresponding to the inputted print attribute information by referring to the lookup table in the loaded command configuration XML file; in a case where the inputted print attribute information exists in the lookup table, processing the command configuration XML file by replacing the searched reserved word in the loaded command configuration XML file with the obtained command attribute value; in a case where the inputted print attribute information does not exist in the lookup table, processing the command configuration XML file by replacing the searched reserved word in the loaded command configuration XML file with the default command attribute value; eliminating the lookup table in the loaded and processed command configuration XML file to generate a data-reduced command configuration XML file; and using an information processing apparatus to generate the printer control command on the basis of the data-reduced command configuration XML file processed in the eliminating step. - View Dependent Claims (6)
-
Specification