Summary of the invention
In order to solve the problems of the technologies described above, the invention provides document virtual printing method and device, can realize keeping and reorganizing the incidence relation between the virtual printing file.
The invention provides document virtual printing method, comprising:
To possess the file to be printed mark association attributes of incidence relation, write the print out task table;
Print successively by said print out task table, and according to said association attributes, print out task number with print the page number document printing of output is encoded;
According to the coding after the sign indicating number number, obtain the incidence relation between each document printing.
Correspondingly, the present invention also provides the document virtual printer device, comprising:
Attribute Association unit with the print out task epiphase connects is used for the file to be printed mark association attributes that possesses incidence relation is write the print out task table;
Print execution unit with said print out task epiphase connects is used for printing each document successively by the print out task table;
The coding that links to each other with said print execution unit name unit is used for according to said association attributes, print out task number and prints the page number document printing of output is encoded;
What link to each other with said coding name unit concerns construction unit, be used for according to behind the coding yard number, obtain the incidence relation between each document printing.
Embodiment of the present invention has following beneficial effect:
The present invention at first will need related information to carry out mark and tissue, after document to be printed is printed, the information of association encoded.To encode as the title of printout file then.At last, the coding rule that upper application software is just good is according to a preconcerted arrangement analyzed the relation between each output file, thereby has guaranteed that the incidence relation between the former document can not lose because of carrying out behind the virtual printing.Use the present invention, the incidence relation between the virtual printing file can kept quickly and easily and recombinate.
Embodiment
For making the object of the invention, technical scheme and advantage clearer, will combine accompanying drawing that the present invention is done to describe in detail further below.
Fig. 1 is the process flow diagram of a kind of document virtual printing of the present invention method, comprising:
S101: will possess the file to be printed mark association attributes of incidence relation, and write the print out task table;
S102: print each document successively by said print out task table, and according to said association attributes, print out task number with print the page number document printing of output is encoded;
S103: according to the coding after the sign indicating number number, obtain the incidence relation between each document printing.
Before carrying out virtual printing work, with treating that the association attributes between document printing carries out mark and tissue, be placed on a memory shared zone by upper level applications (for example electronic whiteboard software), said association attributes is the document that belongs to identical file.Before virtual printer is printed; Association attributes in the inquiry shared drive zone, and the document that will belong to identical file writes the print out task table, prints each document successively; To association attributes, print out task number with print the page number and encode, will encode as the title of printout file then.
Virtual printer is printed and is finished; (for example: electronic whiteboard software) send out the message informing upper application software; The coding rule that upper application software is just good is according to a preconcerted arrangement analyzed each output file, decoding draw virtual printer institute output file between relation, then in interface display.So just guaranteed that the incidence relation between the former document can not lose because of carrying out behind the virtual printing, the incidence relation between the virtual printing file kept quickly and easily and recombinate.
Fig. 2 is the embodiment process flow diagram of a kind of document virtual printing of the present invention method, and compared to Figure 1, Fig. 2 is the process flow diagram of the specific embodiment of the invention.
S201:, distribute the corresponding chain store of closing for the file to be printed that possesses identical incidence relation according to the preset coding rule.
When file to be printed comprises present count layer incidence relation, preset several combinations of related number as association attributes with said.
S202: when comprising two or more print area in the identical file, be different print out task, write the print out task table respectively according to different print area cuttings.
S203: print each document successively by said print out task table, and according to said association attributes, print out task number with print the page number document printing of output is encoded.
S204: according to the coding after the sign indicating number number, obtain the incidence relation between each document printing.
S205:, set up linking of said relation table and each document printing according to said incidence relation membership credentials table.
S206: delete the print out task in the said print out task table.
In the print procedure of virtual printer, the document that how will possess same attribute reorganizes, and the invention provides a kind of more succinct implementation method.
At first, the document that the user selects to need to print carries out virtual printing, and upper application software is according to the coding rule of formulating in advance, and analytical documentation belongs to any association type, distributes identical pass chain store for the document printing of treating that belongs to identical file, as association attributes.Need not to carry out relatedly if single document is printed, distribute a unique pass chain store to give it equally with other documents; Do not print if do not belong to a plurality of files of identical file, then can distinguish from closing chain store; If the print area in the same file need be a plurality of print out task with a plurality of print area cuttings then, then with the printing of above-mentioned pass chain store, file to be printed and print out task table number with print the page number and record in the middle of the contingency table in shared drive district.
Start the virtual printing task, begin to print each document successively, wait for that the virtual printing task is printed fully or part is printed the notification message that finishes by said print out task table.When notified message, according to the said association attributes in the contingency table, print out task number with print the page number document printing of output is encoded, according to the sign indicating number behind the coding number to the document printing rename or be labeled on its attribute.Wherein, the pass chain store of said association attributes is distinguished a plurality of documents that do not belong to identical file; Said print out task number expression belongs to identical file but incidence relation between a plurality of documents of different print areas; Print the forward-backward correlation relation that the page number reacts each page number in the same document.
Fig. 3 is first design sketch of the embodiment of a kind of document virtual printing of the present invention method, explains below in conjunction with Fig. 3 specific embodiment of giving an example.The document kind of printing in practice is a lot, and present embodiment is given an example with EXCEL class document, and is as shown in Figure 3, shows the document printing of an EXCEL file output and the design sketch after the rename thereof.Comprise 3 print areas (worksheet) in this document, the number of pages of each print area (worksheet) is respectively 8 pages, 6 pages and 1 page.
After carrying out virtual printing, its document title is respectively as shown in Figure 3.Wherein, the pass chain store of 01 expression association attributes shows that here they belong in the middle of the same EXCEL file.Next three bit digital 007,008,009 are represented three different print areas (worksheet) of printing in order, represent the page number successively of each print area (worksheet) at ensuing 4-digit number.
For virtual printer, when finding print out task, at first check the pass chain store of each print file in the memory shared zone, after getting access to corresponding print out task number, be backfilling in the contingency table.To close the title of the print file of chain store, print out task number and the output of type face code weight rebaptism according to rule, and the notice upper level applications, the virtual printing task is printed and is finished.Owing to distributed unique pass chain store for the document that belongs to identical file, the document of different files distinguished so can close chain store.The print out task in the print out task table because different print areas, writes the print out task table again, so number can be distinguished different print areas by various tasks.At last because virtual printing be according to first earlier the principle of service carry out task in the print out task table, so printing the page number order that each task can keep between the document successively can be chaotic.In sum, can make things convenient for recombinate between the file quickly and easily, the incidence relation between the print area, between the page number of front and back.
Fig. 4 is second design sketch of the embodiment of a kind of document virtual printing of the present invention method, and is as shown in Figure 4, is the embodiment design sketch according to said incidence relation membership credentials table.When clicking each page, navigate on the corresponding file through link and to show.So, realized imagery, visually to reorganization and the management of each virtual document.
Fig. 5 is the synoptic diagram of a kind of document virtual printer device of the present invention, comprising:
Attribute Association unit with the print out task epiphase connects is used for the file to be printed mark association attributes that possesses incidence relation is write the print out task table;
Print execution unit with said print out task epiphase connects is used for printing each document successively by the print out task table;
The coding that links to each other with said print execution unit name unit is used for according to said association attributes, print out task number and prints the page number document printing of output is encoded;
What link to each other with said coding name unit concerns construction unit, be used for according to behind the coding yard number, obtain the incidence relation between each document printing.
Fig. 5 is corresponding with Fig. 1, identical among the figure in the method for operation of each unit and the method.Wherein, print out task table and print execution unit can obtain through existing technology.
Fig. 6 is the embodiment synoptic diagram of a kind of document virtual printer device of the present invention.
As shown in Figure 6, said Attribute Association unit comprises:
With the file association unit that the print out task epiphase connects, be used for according to the preset coding rule, distribute the corresponding chain store of closing for the file to be printed that possesses identical incidence relation; When file to be printed comprises present count layer incidence relation, preset several combinations of related number as association attributes with said.
Need to prove, distribute identical pass chain store for the document printing of treating belong to identical file, therefore do not belong to and to close chain store through this between a plurality of files of a file and distinguish.The incidence relation between a plurality of files has been realized in said file association unit.
Further, said Attribute Association unit also comprises:
With the zone association unit that the print out task epiphase connects, when being used in identical file, comprising two or more print area, be different print out task according to different print area cuttings, write the print out task table respectively.
Therefore need to prove, be different print out task according to different print area cuttings, writes the print out task table respectively, do not belong to the print out task difference between a plurality of documents of the same area, can number distinguish through this print out task.The incidence relation between a plurality of print areas in the identical file has been realized in said zone association unit.Further, said file association unit combines with said zone association unit, can realize between the different files, and the incidence relation between the zones of different of each file inside.
As shown in Figure 6, also comprise:
With the said organization and administration unit that concerns that construction unit links to each other, be used for according to said incidence relation membership credentials table, set up linking of said relation table and each document printing.
Be connected the said task delete cells that concerns between construction unit and the said print out task table, be used to delete the print out task in the said print out task table.
Fig. 6 is corresponding with Fig. 2, identical in the method for operation of above-mentioned each unit and the method.Visual and the imagery of relation table has been realized in said organization and administration unit, and design sketch as shown in Figure 4 when clicking selected document printing, can jump to the document through link.After the incidence relation that obtains between each document printing, deleted print out task through the task delete cells, help the releasing memory space.Said task delete cells can obtain through existing technology.
Through the description of above embodiment, those skilled in the art can be well understood to the present invention and can realize by the mode that software adds essential hardware platform, can certainly all implement through hardware.Based on such understanding; All or part of can the coming out that technical scheme of the present invention contributes to background technology with the embodied of software product; This computer software product can be stored in the storage medium, like ROM/RAM, magnetic disc, CD etc., comprises that some instructions are with so that a computer equipment (can be a personal computer; Server, the perhaps network equipment etc.) carry out the described method of some part of each embodiment of the present invention or embodiment.
Above-described embodiment of the present invention does not constitute the qualification to protection domain of the present invention.Any modification of within spirit of the present invention and principle, being done, be equal to replacement and improvement etc., all should be included within the claim protection domain of the present invention.