Summary of the invention
The embodiment of the present invention provides a kind of file printing processing method and printing terminal, effectively prevent prominent
The generation of the printing accident caused not in time due to publishing house's notice when the event of sending out occurs.
First aspect, the embodiment of the present invention provides a kind of file printing processing method, including:
Receiving and publish the file printing request that terminal sends, described file printing request includes: literary composition to be printed
The identification information of part and second edition information;
According to the printing lock token information that described identification information-enquiry is current, wherein, described printing locking
Label information includes: the current printed copy information corresponding with the identification information of the file being received;
If judging to know that described printing lock token information includes the right of identification information and first version information
Should be related to, then stop, to the printing with described first version information respective file, carrying out and the described second edition
The printing of this information respective file, according to printing lock token information described in described second edition information updating
In the version information corresponding with described identification information.
Further, method as above, publish, described reception, the file printing request that terminal sends
Before, described method also includes:
Receiving and publish the file printing request that terminal sends, described file printing request includes: literary composition to be printed
The identification information of part and first version information;
According to the printing lock token information that described identification information-enquiry is current, wherein, described printing locking
Label information includes: the current printed copy information corresponding with the identification information of the file being received;
If judging to know in described printing lock token information and not including the version corresponding with described identification information
Information, then carried out and the printing of described first version information respective file, and at described printing lock token
Information is set up the corresponding relation including identification information with first version information.
Further, method as above, described file printing request also includes: file to be printed
Check information,
Described carry out with the printing of described first version information or second edition information respective file before, also
Including:
According to the check information of described file to be printed, to described first version information or second edition information
The integrity of respective file verifies.
Further, method as above, set up in described printing lock token information and include mark
Before the corresponding relation of information and first version information, described method also includes:
The identity setting up the operation user including the identification information corresponding relation with first version information is carried out
Authentication.
Second aspect, the embodiment of the present invention provides one printing terminal, including:
Receiver module, publishes, for receiving, the file printing request that terminal sends, and described file printing is asked
Including: the identification information of file to be printed and second edition information;
Enquiry module, for the printing lock token information current according to described identification information-enquiry, wherein,
Described printing lock token information includes: the current printing corresponding with the identification information of the file being received
Version information;
Printing module, if knowing that described printing lock token information includes identification information and for judging
The corresponding relation of one version information, then stop, to the printing with described first version information respective file, entering
Row and the printing of described second edition information respective file;
More new module, for according to print described in described second edition information updating in lock token information with
The version information that described identification information is corresponding.
Further, print terminal as above, also include: set up module,
Described receiver module, is additionally operable to receive and publishes the file printing request that terminal sends, and described file prints
Brush request includes: the identification information of file to be printed and first version information;
Described enquiry module, is additionally operable to the printing lock token information current according to described identification information-enquiry,
Wherein, described printing lock token information includes: corresponding with the identification information of the file being received works as
Front printed copy information;
Described printing module, if being additionally operable to judge to know in described printing lock token information and do not include and institute
State the version information that identification information is corresponding, then carry out and the printing of described first version information respective file;
Set up module, include identification information and the first edition for setting up in described printing lock token information
The corresponding relation of this information.
Further, print terminal as above, also include: correction verification module,
Described file printing request also includes: the check information of file to be printed,
Described correction verification module, is carried out and described first version information or the second edition for described printing module
Before the printing of information respective file, according to the check information of described file to be printed, to the described first edition
The integrity of this information or second edition information respective file verifies.
Further, print terminal as above, also include: authentication module,
Described authentication module, sets up in described printing lock token information include for described module of setting up
Before the corresponding relation of identification information and first version information, foundation is included, and identification information is believed with first version
The authenticating identity of the operation user of the corresponding relation of breath.
The embodiment of the present invention provides a kind of file printing processing method and printing terminal.Publish eventually by receiving
The file printing request that end sends, file printing request includes: the identification information of file to be printed and second
Version information;According to the printing lock token information that identification information-enquiry is current, wherein, printing locking mark
Note information includes: the current printed copy information corresponding with the identification information of the file being received;If sentencing
Break and know the corresponding relation that printing lock token information includes identification information and first version information, then stop
Only to the printing with first version information respective file, carry out and the printing of second edition information respective file,
According to version information corresponding with identification information in second edition information updating printing lock token information.Have
Effect prevents the generation of the printing accident caused not in time when accident occurs due to publishing house's notice.
Detailed description of the invention
For making the purpose of the embodiment of the present invention, technical scheme and advantage clearer, below in conjunction with this
Accompanying drawing in bright embodiment, is clearly and completely described the technical scheme in the embodiment of the present invention,
Obviously, described embodiment is a part of embodiment of the present invention rather than whole embodiments.Based on
Embodiment in the present invention, those of ordinary skill in the art are obtained under not making creative work premise
The every other embodiment obtained, broadly falls into the scope of protection of the invention.
Fig. 1 is the flow chart of file printing processing method embodiment one of the present invention, as it is shown in figure 1, this reality
The file printing processing method that executing example provides specifically can apply to publishing house and printing house or Dai Yindian it
Between terminal carry out file transmission and printing treatment process.The executive agent of the present invention is printing house or generation
The printing terminal of print point, this printing terminal is provided with the client carrying out file transmission, printing house or
Dai Yindian carries out network service by the publication terminal of printing terminal with publishing house.Specifically, this printing
Terminal can be the equipment such as server, computer, notebook computer or panel computer.
Step 101, receives the file printing request that terminal sends of publishing, wherein, file printing request bag
Include: the identification information of file to be printed and second edition information.
In the present embodiment, file to be printed is to publish the format literary composition to be printed that terminal sends to printing terminal
Part, is specifically as follows the file of PDF, it is also possible to for the transplantable file of extended formatting, this reality
Execute in example and this is not limited.
Wherein, the identification information of file to be printed can be the filename of file to be printed, publish position and
Time etc. uniquely identify the information of this file to be printed.Second edition information is relative to first version information
For, treat the version information after perhaps format adjusts in printed text is carried out.
Step 102, according to the printing lock token information that identification information-enquiry is current, wherein, printing lock
Determine label information to include: the current printed copy information corresponding with the identification information of the file being received.
In the present embodiment, after printing terminal receives and publishes the file to be printed that terminal sends, according to treating
The identification information of printed text and the current version information of file to be printed set up current printing lock token
Information.This current printing lock token information represents corresponding to the current printed copy information received
File carry out print lock token, file the most to be printed be printing lock token information in mark
The file of the current printed copy information that knowledge information is corresponding.
In the present embodiment, current printing lock token information can store in the form of a list, when
Front printing lock token information can including, same publication terminal or different publication terminal send to be printed
The identification information of brush file and the current version information of file to be printed, do not limit in this present embodiment.
Step 103, if judging to know that printing lock token information includes that identification information is believed with first version
The corresponding relation of breath, then stop, to the printing with first version information respective file, carrying out and the second edition
The printing of information respective file, believes with mark according in second edition information updating printing lock token information
The version information that breath is corresponding.
In the present embodiment, printing terminal judges goes out to print to exist in lock token information identification information and first
The corresponding relation of version information, represents that printing terminal is to carry out maybe carrying out first version information correspondence literary composition
The printing of part, in order to prevent the generation of printing accident, then stops the print to first version information respective file
Brush, and carry out and the printing of second edition information respective file.And print according to second edition information updating
Version information corresponding with identification information in brush lock token information, file the most to be printed is lock token
The file that second edition information that information identification information is corresponding is corresponding.
Specifically, in the present embodiment, know that printing lock token information includes mark in printing terminal judges
After the corresponding relation of knowledge information and first version information, receive publish that terminal sends with first version information
The file to be printed of the second edition information of same identification information, and by file to be printed from receiving memorizer
Storage, to memorizer to be printed, deletes the file to be printed of first version information, carries out believing with the second edition
The printing of breath respective file.
In the present embodiment, receive memorizer and memorizer to be printed can be the basis printing terminal respectively
Ground hard disk, disk or CD etc., do not limit in this present embodiment.
In the present embodiment, pre-build to be printed to memorizer to be printed of reception catalogue receiving memorizer
The mapping relations of brush catalogue, to ensure the motility of printing end users operation.
The file printing processing method that the present embodiment provides, publishes, by receiving, the file printing that terminal sends
Request, file printing request includes: the identification information of file to be printed and second edition information;According to mark
Knowing the current printing lock token information of information inquiry, wherein, printing lock token information includes: with
The current printed copy information that the identification information of the file being received is corresponding;If judging to know printing locking mark
Note information includes the corresponding relation of identification information and first version information, then stop believing with first version
The printing of breath respective file, is carried out and the printing of second edition information respective file, believes according to the second edition
Breath updates version information corresponding with identification information in printing lock token information.Due at file to be printed
Before printing, treat printed text and carry out printing lock token, when receiving and printing in lock token information
During the file printing request of same identification information and different editions information, immediately stop first version information
The printing of respective file, and carry out the printing of second edition information respective file, so effectively prevent
The generation of the printing accident caused not in time due to publishing house's notice when accident occurs.
Fig. 2 is the flow chart of file printing processing method embodiment two of the present invention, as in figure 2 it is shown, this reality
The file printing processing method executed in example includes:
Step 201, receives and publishes the file printing request that terminal sends, and wherein, file printing is asked
Including: the identification information of file to be printed, version information and check information.
In the present embodiment, file to be printed is to publish the format literary composition to be printed that terminal sends to printing terminal
Part, is specifically as follows the file of PDF, it is also possible to for the transplantable file of extended formatting, this reality
Execute in example and this is not limited.
In the present embodiment, the identification information of file to be printed can be the filename of file to be printed, publishes
Location and time etc. uniquely identify the information of this file to be printed.
In the present embodiment, version information be printing terminal receive carry the to be printed of same identification information
The version information of file, the interior perhaps file format of the file to be printed that different version informations is corresponding will not
With, if version information can be first version information, second edition information or this information of the third edition etc..
In the present embodiment, the file printing request sent when printing terminal reception publication terminal includes: treat
When the identification information of printed text and first version information, show to print the first format letter that terminal receives
The file to be printed that breath is corresponding is to publish the file to be printed that terminal sends first to printing terminal, works as printing
Terminal receives to be published the file printing request that terminal sends and includes: the identification information of file to be printed and the
When two version informations or this information of the third edition, show to print the second layout information or the 3rd that terminal receives
In the file to be printed that layout information is corresponding has been carried out relative to the first format message file, the perhaps space of a whole page adjusts
File to be printed.
In the present embodiment, receiving and publish the file printing request that terminal sends, wherein, file printing please
Asking and include: check information, this check information can be the content by file to be printed and softdog
Hardware sequence number calculates and obtains, and verifies treating the integrity of printed text.
Step 202, according to the printing lock token information that identification information-enquiry is current, wherein, printing
Lock token information includes: the current printed copy letter corresponding with the identification information of the file being received
Breath.
In the present embodiment, the identification information of the file being received can be that same publication terminal sends
The identification information of the file to be printed that the identification information of file to be printed or different publication terminals send,
This is not limited by the present embodiment.
Current printed copy information can be corresponding with the identification information of the file being received the
One version information or second edition information or this information of the third edition etc..
Current printing lock token information stores the identification information of the file being received and works as
The corresponding relation of front printed copy information.
Step 203, it is judged that whether the identification information in file printing request is present in printing lock token
In information, the most then perform step 204, if it is not, then perform step 205.
In the present embodiment, if the mark letter existed in printing lock token information in file printing request
Breath, then show that printing terminal had received the file to be printed that this identification information is corresponding, if printing locking
Label information does not exist the identification information in file printing request, then shows that printing terminal did not received
The file to be printed that this identification information is corresponding.
Step 204, it is judged that the version information that the printing identification information that includes of lock token information is corresponding
The version information corresponding with the same identification information in file printing request is the most identical, the most then hold
Row step 206, if it is not, then perform step 207.
In the present embodiment, when the version that the printing same identification information that includes of lock token information is corresponding
Version information corresponding to same identification information during information and file printing are asked the most identical is published eventually
Hold to identical file printing request again sent, when printing lock token information include same
Version information corresponding to one identification information ask with file printing in version corresponding to same identification information
During this information difference, then publish terminal to corresponding to be printed of the rear version information of same identification information
File carries out printing request.
Step 205, receives the file to be printed that in file printing request, version information is corresponding, according to verification
Information, the integrity treating printed text verifies, if file to be printed is complete, then carries out and file
The printing of the version information respective file in printing request, includes that to foundation identification information is believed with first version
The authenticating identity of the operation user of the corresponding relation of breath, sets up bag in printing lock token information
Include the corresponding relation of identification information and the version information in file printing request.
In the present embodiment, if entrained check information exists in the file printing request received, and
And file to be printed is stored in memorizer to be printed, the result of calculation of its check code and reception storage
When the check information of the file to be printed in device is consistent, show the file to be printed in memorizer to be printed
For complete file.
Specifically, in the present embodiment, it is judged that know in printing lock token information and do not include identification information,
The most do not include the version information that identification information is corresponding, then the version information in file printing request is first
Version information, is carried out and the printing of first version information respective file, and in printing locking identification information
Set up the corresponding relation including identification information with first version information.
In the present embodiment, set up in printing lock token information and include that identification information is believed with first version
Before the corresponding relation of breath, to setting up the operation including identification information with the corresponding relation of first version information
The authenticating identity of user, includes identification information pass corresponding with first version information to ensure to set up
After system, the authorized user of the printing of the to be printed file corresponding to first version information just can carry out above-mentioned
Operation, improves the safety of file printing process.
In the present embodiment, receive to publish in the file printing request that terminal sends and carry check information, root
According to check information, the integrity treating printed text verifies, it is ensured that file the most to be printed
Integrity, prevent the generation of printing accident further.
Step 206, ignores this document printing request.
In the present embodiment, when the version information that the printing identification information that includes of lock token information is corresponding
The version information corresponding with the same identification information in file printing request is identical, shows to publish terminal pair
Identical file printing request is sent again, belongs to the error transmission publishing terminal, then ignores this
File printing is asked.
Step 207, stops the printing with the version information respective file in printing lock token information,
Receive the file to be printed that in file printing request, version information is corresponding, according to check information, to be printed
The integrity of file verifies, the printing of version information respective file in carrying out asking with file printing,
According to version corresponding with identification information during version information updates printing lock token information in printing request
This information.
Specifically, in the present embodiment, if judging to know the mark letter that printing lock token information includes
Cease version information corresponding to the same identification information during corresponding version information is asked with file printing not
With, show to publish the tune of the perhaps space of a whole page in the file to be printed of same identification information has been carried out by terminal
Whole, then stop, to the printing with the version information respective file in printing lock token information, receiving literary composition
The file to be printed that in part printing request, version information is corresponding, according to check information, treats printed text
Integrity verifies, the printing of version information respective file in carrying out asking with file printing, according to
The version letter that in printing request, version information is corresponding with identification information in updating printing lock token information
Breath.
Illustration is: printing lock token information includes that identification information is corresponding with first version information
Relation, file printing request includes identification information and the second edition information of file to be printed, it is judged that know
Printing lock token information includes the corresponding relation of identification information and first version information, then stop the
The printing of one version information respective file, is carried out and the printing of second edition information respective file, according to
Two version informations update version information corresponding with identification information in printing lock token information.
And for example: if publish terminal know file to be printed corresponding to second edition information occur in the perhaps space of a whole page
Adjust, then printing terminal receives file printing request, and file printing request includes: the mark of file to be printed
Knowledge information and this information of the third edition, according to the printing lock token information that identification information-enquiry is current, wherein,
Printing lock token information includes: the current printed copy corresponding with the identification information of the file being received
Information, if judging to know that printing lock token information includes that identification information is corresponding with second edition information
Relation, then stop the printing with second edition information respective file, carries out corresponding with this information of the third edition
The printing of file, according to corresponding with identification information in this information updating of third edition printing lock token information
Version information.By that analogy, it is achieved that the print to the final version information respective file publishing terminal transmission
Brush, and stop the printing of above version information respective file, effectively prevent the generation of printing accident.
Fig. 3 is the structural representation that the present invention prints terminal embodiment one, as it is shown on figure 3, this printing
Terminal includes: receiver module 301, enquiry module 302, printing module 303 and more new module 304.
Wherein, receiver module 301, publish, for receiving, the file printing request that terminal sends, file prints
Brush request includes: the identification information of file to be printed and second edition information.Enquiry module 302, is used for
According to the printing lock token information that identification information-enquiry is current, wherein, printing lock token information includes:
The current printed copy information corresponding with the identification information of the file being received.Printing module 303, uses
If in judging to know that printing lock token information includes identification information pass corresponding with first version information
System, then stop the printing with first version information respective file, carries out literary composition corresponding with second edition information
The printing of part.More new module 304, for according in second edition information updating printing lock token information
The version information corresponding with identification information.
The printing terminal of the present embodiment can perform the technical scheme of embodiment of the method shown in Fig. 1, and it realizes
Principle is similar with technique effect, and here is omitted.
Fig. 4 is the structural representation that the present invention prints terminal embodiment two, as shown in Figure 4, this enforcement
The printing terminal that example provides includes: receiver module 401, enquiry module 402, printing module 403, more
New module 404, sets up module 405, correction verification module 406 and authentication module 407.
Wherein, receiver module 401, publish, for receiving, the file printing request that terminal sends, file prints
Brush request includes: the identification information of file to be printed and second edition information.Enquiry module 402, is used for
According to the printing lock token information that identification information-enquiry is current, wherein, printing lock token information includes:
The current printed copy information corresponding with the identification information of the file being received.Printing module 403, uses
If in judging to know that printing lock token information includes identification information pass corresponding with first version information
System, then stop the printing with first version information respective file, carries out literary composition corresponding with second edition information
The printing of part.More new module 404, for according in second edition information updating printing lock token information
The version information corresponding with identification information.
Further, receiver module 401, it is additionally operable to receive and publishes the file printing request that terminal sends,
File printing request includes: the identification information of file to be printed and first version information.Enquiry module 402,
It is additionally operable to the printing lock token information current according to identification information-enquiry, wherein, printing lock token letter
Breath includes: the current printed copy information corresponding with the identification information of the file being received.Printing module
403, do not include corresponding with identification information version letter if being additionally operable to judge to know in printing lock token information
Breath, then carried out and the printing of first version information respective file.Set up module 405, at printing lock
Determine label information is set up the corresponding relation including identification information with first version information.
Further, in the present embodiment, file printing request also includes: the check information of file to be printed,
The correction verification module 406 of the printing terminal in the present embodiment, is carried out and first version for printing module 403
Before the printing of information or second edition information respective file, according to the check information of file to be printed, right
The integrity of first version information or second edition information respective file verifies.
Further, the present embodiment prints the authentication module 407 that terminal includes, is used for setting up module 405
Printing lock token information is set up before including the identification information corresponding relation with first version information, right
Set up the authenticating identity of the operation user of the corresponding relation including identification information with first version information.
The printing terminal of the present embodiment can perform the technical scheme of embodiment of the method shown in Fig. 2, and it realizes
Principle is similar with technique effect, and here is omitted.
One of ordinary skill in the art will appreciate that: realize all or part of step of above-mentioned each method embodiment
Suddenly can be completed by the hardware that programmed instruction is relevant.Aforesaid program can be stored in a computer can
Read in storage medium.This program upon execution, performs to include the step of above-mentioned each method embodiment;And
Aforesaid storage medium includes: ROM, RAM, magnetic disc or CD etc. are various can store program code
Medium.
Last it is noted that various embodiments above is only in order to illustrate technical scheme, rather than right
It limits;Although the present invention being described in detail with reference to foregoing embodiments, this area common
Skilled artisans appreciate that the technical scheme described in foregoing embodiments still can be modified by it,
Or the most some or all of technical characteristic is carried out equivalent;And these amendments or replacement, and
The essence not making appropriate technical solution departs from the scope of various embodiments of the present invention technical scheme.