Summary of the invention
In order to solve the problem that under distributed environment, print parameters is represented and disposes, the present invention proposes general print parameters extraction and method to set up and system under a kind of distributed environment.And, the invention provides the method and system that the driving printer under a kind of distributed environment prints.
According to an aspect of the present invention, the general print parameters that has proposed under a kind of distributed environment represents and collocation method, may further comprise the steps:
Generate the print parameters template file that comprises print parameters comprising on the printing server of print processor;
On printing server, handle the print parameters template file, generating the print parameters description document that comprises print parameters that client can be discerned, and the print parameters description document that generates is uploaded to workflow server;
Client is downloaded up-to-date print parameters description document from workflow server, print parameters is represented to the user be provided with for the user;
The print parameters that client is provided with according to the user generates the operation subpoena that has comprised with the consolidation form of the corresponding print parameters template of set print parameters mark, and co-current flow journey server is uploaded the operation subpoena; And
Workflow server comes out the contents extraction that has comprised print parameters template mark in the operation subpoena and sends printing server to, and print processor is labeled as the printer configuration print parameters that is connected to printing server according to the print parameters template that receives in the content.
General print parameters through under the distributed environment of the present invention represents and collocation method, and the user need not to know the consistent operation subpoena of form that the concrete model of printer can provide through the printer to different qualities.And; Behind the print parameters template mark of print processor in obtaining the operation subpoena; From the print parameters template file of this machine, load corresponding print parameters according to print parameters template mark, extract the relevant parameters processing and treat typescripts, drive printer and accomplish printing.Like this, the operation print parameters that the user is provided with is consistent with the print characteristic of the actual printer that is connected of print processor, thereby the user can obtain the printing effect of expection under distributed environment.In addition, the general print parameters under the distributed environment of the present invention represents with collocation method provides form consistent operation subpoena to the printer of different qualities, thereby does not increase the network traffics burden.And those skilled in the art can be provided with the form of operation subpoena as required arbitrarily, as long as can provide form the consistent operation subpoena that has comprised print parameters template mark to the printer of different qualities, can realize the object of the invention.
General print parameters according under the said distributed environment represents and collocation method, and the print parameters template file is made up of file header, printing template concordance list and template content.
General print parameters according under the said distributed environment represents and collocation method, and printing server is described the template content in the print parameters template file with extend markup language, thereby generates the print parameters description document.
General print parameters according under the said distributed environment represents and collocation method, and said template content comprises at least one in paper size, paper feeding carton, printable area, resolution and the type style.
General print parameters according under the said distributed environment represents and collocation method, and wherein: the up-to-date print parameters description document of client downloads keeps template content consistent with print parameters template file and print parameters description document three that printing server generates.
General print parameters according under the said distributed environment represents and collocation method, and the operation subpoena does not comprise the relevant parameter of the configuration with the printer that is connected to printing server except print parameters template mark.
General print parameters according under the said distributed environment represents and collocation method, and print processor extracts from the print parameters template file that printing server generated with the corresponding print parameters of said print parameters template mark according to print parameters template mark and handles and treat typescripts.
General print parameters according under the said distributed environment represents and collocation method; Workflow server sends to printing server with client upload operation subpoena, and the print parameters template that print processor comprises according to the operation subpoena is labeled as the printer configuration print parameters that is connected to printing server.
According to another aspect of the present invention, the general print parameters that has proposed under a kind of distributed environment represents and configuration-system, and it comprises:
Printing server, it comprises:
Print processor; And
Print parameters template configuration module; Be used to generate the print parameters template file that comprises print parameters; Handle the print parameters template file that is generated, generate the print parameters description document that client can be discerned, and the print parameters description document is uploaded to workflow server;
Workflow server, it receives the print parameters description document that printing server is uploaded; And
Client; It downloads up-to-date print parameters description document from workflow server; Print parameters in this print parameters description document represented to the user be provided with for the user; The print parameters that client is provided with according to the user generates the operation subpoena that has comprised with the consolidation form of the corresponding print parameters template of set print parameters mark, and co-current flow journey server is uploaded the operation subpoena
Wherein, Workflow server comes out the contents extraction that has comprised print parameters template mark in the operation subpoena and sends printing server to, and print processor is labeled as the printer configuration print parameters that is connected to printing server according to the print parameters template that receives in the content.
According to another aspect of the present invention, proposed the method that the driving printer under a kind of distributed environment prints, it comprises:
Represent with collocation method to come print parameters is represented and disposes according to the general print parameters under the distributed environment of the present invention; And
Print processor extracts print parameters according to the print parameters template mark that receives in the content from the print parameters template file that printing server generates, drive the printer that is connected to printing server and print.
According to another aspect of the present invention, proposed the system that the driving printer under a kind of distributed environment prints, it comprises:
General print parameters according under the distributed environment of the present invention represents and configuration-system; And
Be connected to the printer of printing server;
Wherein, print processor extracts print parameters according to the print parameters template mark that receives in the content from the print parameters template file that printing server generates, drive the printer that is connected to printing server and print.
Embodiment
Below will embodiments of the invention be described with reference to accompanying drawing.In the following description, identical parts are represented by identical label.
Fig. 1 represents the schematic block diagram with configuration-system for the general print parameters under the distributed environment in the embodiment of the invention, and frame of broken lines is represented physical computer among the figure.
General print parameters under the distributed environment among Fig. 1 represents with configuration-system and comprises: printing server, workflow server and client.In Fig. 1, the frame of broken lines of top is represented the physical computer at workflow server place, and the frame of broken lines of lower left is represented the physical computer at printing server place, and bottom-right frame of broken lines is represented the physical computer at client place.At this concrete operations that printing server drives printer are not described, so not shown printer among Fig. 1.
Printing server comprises print processor M103 and print parameters template configuration module M102.Print parameters template configuration module M102 generates the print parameters template file that comprises print parameters; Handle the print parameters template file that is generated; Generate the print parameters description document that client can be discerned, and the print parameters description document is uploaded to workflow server.In the present embodiment, print parameters description document F102 is an XMLPRS file of having described panel content with XML, and the XMLPRS file is a kind of a kind of XML expansion for client is designed to user friendly displaying printing template content.The name that comprises the PRS file among the print parameters description document F102 comprises the template content of print parameters template mark (being designated hereinafter simply as the template mark) PMTag and customization to the description of each template in the PRS file among the print parameters description document F102.Workflow server M101 receives the print parameters description document F102 that printing server is uploaded.Client M105 downloads up-to-date print parameters description document F102 from workflow server; Print parameters among this print parameters description document F102 represented to the user be provided with for the user; The print parameters that client M105 is provided with according to the user generates the operation subpoena that has comprised with the consolidation form of the corresponding template mark of set print parameters PMTag, and co-current flow journey server M101 uploads the operation subpoena.Workflow server M101 comes out the contents extraction that has comprised template mark PMTag in the operation subpoena and sends printing server to, and print processor M103 is the printer configuration print parameters according to the template mark PMTag that receives in the content.In another embodiment, workflow server M101 also can directly send to printing server with the operation subpoena, and print processor M103 is labeled as the printer configuration print parameters according to the print parameters template that the operation subpoena comprises.
According to one embodiment of present invention, structure include file head, template index table and template content three parts of the PRS file of print parameters template configuration module M102 generation.
The file header structure is as shown in table 1.Wherein, the file type mark is a kind of byte serial of the PRS of sign file, when opening file, judges that with this byte serial this document is a PRS file.The skew of template index table is the bias internal of the template index list file of end of file, and the skew of template index table is the offset address of last template index table in the PRS file, and the skew of template index table is brought in constant renewal in along with the renewal of PRS file.
Table 1
The file type mark |
Printer name under the template |
The skew of template index table |
The template index list structure is as shown in table 2, and the last template index table skew of first template index table when the PRS file generates is 0, expression concordance list end stopping of chain.The index watch chain is the watch chain that all the template index tables in the PRS file constitute.A PRS file has one or more template index tables.Generally speaking, look the user and this PRS file editor is crossed how many times and decide, what template index tables editor's how many times just has.
Table 2
In table 2, " index item number (n) " representes that this concordance list comprises n index entry (n is not less than 1 integer).The effect of PMTag in the operation subpoena that " template mark PMTag " in the table 2 and client generate is identical, all is to be used for printing template of unique identification in a PRS file." template skew " represented the offset address of this template in the PRS file.The length word joint number of a template of " template length word joint number " expression." template mark PMTag ", " template skew " and " template length word joint number " are the contents of a template index item, and the content of template index item 1 and template index item n has been shown in the table 2.
In above-mentioned table 2, the length of each list item can be provided with different sizes according to different needs, but the size of each list item is fixed after being provided with.
In the present invention; Print parameters template configuration module M102 call operation system application DLL obtains printer parameter user interface is set; According to concrete needs configure printer parameter; The good printer parameter of interception configuration as the print parameters template stores in the print parameters template file, allocation template mark PMTag, and generate the template corresponding index entry.In same PRS file and with once continuing to generate other print parameters templates and template index item among the editor; Value with last template index table skew is updated to template index table off-set value in the PRS file header afterwards; And revise the PRS file header, make template index table off-set value be updated to current file pointer value (that is, current document misregistration); At last the template index table is stored among the PRS file F101, accomplishes a template and add.A PRS file can add one or more templates by editor many times each time, and the index entry of said one or more templates has constituted a concordance list.
Print parameters description document F102 is exactly a file of having described the template content among the PRS file F101 with the discernible mode of client M105.For example, describe the template content among the PRS file F101 with standard generalized markup language (SGML), HTML (HTML) or extend markup language (XML), thereby obtain print parameters description document F102.In the present embodiment, the template content of describing the PRS file with XML obtains the XMLPRS file.
In one embodiment of the invention, thereby print parameters template configuration module M102 preferably obtains XMLPRS file F102 with the template content that the XML language is described among the PRS file F101, and it is uploaded to workflow server M101.Client M105 downloads latest XML PRS file F102 from workflow server M101, in this locality it is stored as XMLPRS file F103, preferably represents to the user with graphical interfaces.Template content can be configured according to concrete application.For example, represent template content to the user and can comprise in the print parameters such as paper size, paper feeding carton, printable area, resolution, type style one or multinomial, the user can be provided with these print parameters according to concrete application.
When client M105 is provided with print parameters the user; Check local XMLPRS file F103; If local XMLPRS file F103 does not exist or is inconsistent with the final updating timestamp of PRS file F101; Then download XMLPRS file F102, replace local XMLPRS file F103 from workflow server M101.Therefore; XMLPRS file F103 on the client M105 all the time with workflow server M101 on XMLPRS file F102 keep template content synchronous, the XMLPRS file F102 on the workflow server M101 is synchronous with the maintenance of the PRS file F101 on printing server template content simultaneously.That is, the latest XML PRS file F103 of client M105 download keeps template content consistent with PRS file F101 and the XMLPRS file F102 three that printing server generates.
In the present invention, the print parameters that client M105 is provided with according to the user generates the operation subpoena of Unified Form, has write down in the operation subpoena and the corresponding template mark of set print parameters PMTag, and co-current flow journey server M101 uploads the operation subpoena.Be to reduce the Network Transmission burden, the form that the operation subpoena is consistent to the printer of different qualities, setting of printing that simultaneously again can the different printers of mark, the configuration about printer parameter in the operation subpoena embodies through template mark PMTag.Obviously, under the prerequisite of the form that the operation subpoena is consistent to the printer of different qualities, except template mark PMTag, the operation subpoena can also comprise other parameters relevant with the configuration of printer.In another embodiment, the operation subpoena does not comprise the relevant parameter of the configuration with printer except template mark PMTag.
Print processor M103 is after the content that comprises template mark PMTag that receives workflow server M101 transmission; According to loading corresponding print parameters template the PRS file F101 of the template mark PMTag in this content from printing server; Extract the relevant parameters processing and treat typescripts, drive the printer that is connected to printing server and accomplish printing.
According to another embodiment of the present invention, the general print parameters that has proposed under a kind of distributed environment represents and collocation method.
Fig. 2 shows the process flow diagram of this method.As shown in Figure 2, said method comprising the steps of:
On the printing server that comprises print processor M103, generate the PRS file F101 (S101) that comprises print parameters.On printing server, handle PRS file F101, generating the XMLPRS file F102 that client can be discerned, and the XMLPRS file F102 that generates is uploaded to workflow server M101 (S102).Client M105 downloads latest XML PRS file F102 from workflow server M101, print parameters is represented to the user for the user (S103) is set.The print parameters that client M105 is provided with according to the user generates the operation subpoena that has comprised with the consolidation form of the corresponding print parameters template of set print parameters mark, and co-current flow journey server M101 uploads operation subpoena (S104).Workflow server M101 comes out the contents extraction that has comprised template mark PMTag in the operation subpoena and sends printing server to, and print processor M103 is printer configuration print parameters (S105) according to the template mark PMTag that receives in the content.Certainly, in step S105, workflow server M101 also can directly send to printing server with the operation subpoena, and print processor M103 is labeled as the printer configuration print parameters according to the print parameters template that the operation subpoena comprises.
According to still another embodiment of the invention; The method that can provide the driving printer under a kind of distributed environment to print, it comprises: represent with collocation method to come print parameters is represented and disposes according to the general print parameters under the distributed environment of the present invention; And the print parameters template mark that print processor comprises according to the operation subpoena extracts print parameters from the print parameters template file that printing server generates, and drives the printer that is connected to printing server and prints.
According to still another embodiment of the invention; The system that driving printer under a kind of distributed environment prints has been proposed; It comprises: the general print parameters according under the distributed environment of the present invention represents and configuration-system; Wherein, print processor extracts print parameters according to the print parameters template mark that the operation subpoena comprises from the print parameters template file that printing server generates, drive the printer that is connected to printing server and print.
General print parameters according under the said distributed environment represents and collocation method, and workflow server has been unified job submission method, externally provides unified operation to submit interface to.The shared same set of job parameter set-up mode of client and printing server.
The general print parameters that the invention discloses under a kind of distributed environment represents and collocation method and system thereof; Be intended to solve (n of client under distributed environment; N>1); Workflow server, the print processor three divides when being on the different main frames, the consistance of the print parameters setting that client represents and the actual printer prints parameter setting that is connected of print processor.Extract the set of printer prints parameterized template and be stored in the corresponding print parameters template file through printer prints parameterized template configuration module.According to carrying out the print parameters description document that processed generates extend markup language (XML) description to printing the parameterized template file; The print parameters description document is uploaded to workflow server; Be positioned at client on the main frame of network strange land when the user is provided with print parameters; Do content synchronization with on local printing parametric description file and the workflow server with the corresponding print parameters description document of print processor, and represent printer configuration according to the print parameters description document.When submitting print job to, the print parameters template mark of client recording user configuration in the operation subpoena.When print processor prints operation, follow, content file is handled accordingly, and drive the printer completion printing that is connected to printing server according to the corresponding print parameters of the print parameters template marker extraction in the operation subpoena.
Represent and collocation method and system through the general print parameters under the distributed environment of the present invention, the user need not to know the consistent operation subpoena of form that the concrete model of printer can provide through the printer to different qualities.And; Print processor is after obtaining the printing subpoena; Print parameters template mark according to printing in the subpoena loads corresponding print parameters from the print parameters template file of this machine, extract the relevant parameters processing and treat typescripts, drives the printer completion that is connected to printing server and prints.Like this, the operation print parameters that the user is provided with is consistent with the print characteristic of the actual printer that is connected of print processor, thereby the user can obtain the printing effect of expection under distributed environment.In addition, the general print parameters under the distributed environment of the present invention represents with collocation method provides form consistent operation subpoena to the printer of different qualities, thereby does not increase the network traffics burden.And those skilled in the art can be provided with the form of operation subpoena as required arbitrarily, as long as can provide form the consistent operation subpoena that has comprised template mark PMTag to the printer of different qualities, can realize the object of the invention.
Obviously, those skilled in the art can carry out various changes and modification to the present invention and not break away from the spirit and scope of the present invention.Like this, belong within the scope of claim of the present invention and equivalent technologies thereof if of the present invention these are revised with modification, then the present invention also is intended to comprise these changes and modification interior.