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 maintaining and the incidence relation reorganized between virtual printing file.
The invention provides document virtual printing method, comprising:
The file to be printed mark association attributes of incidence relation, write print out task table will be possessed;
Print successively by described print out task table, and according to described association attributes, print out task number with print the page number and encode to the printed document exported;
According to the code number after coding, obtain the incidence relation between each printed document.
Correspondingly, present invention also offers document virtual printing device, comprising:
The Attribute Association unit be connected with print out task table, for possessing the file to be printed mark association attributes of incidence relation, write print out task table;
The print execution unit be connected with described print out task table, for printing each document successively by print out task table;
The coding be connected with described print execution unit names unit, for according to described association attributes, print out task number with print the page number and encode to the printed document exported;
With the described relation construction unit naming unit to be connected of encoding, for according to the code number after coding, obtain the incidence relation between each printed document.
Implement the present invention, there is following beneficial effect:
The present invention, first by needing the information of association to carry out marking and organizing, after document print to be printed, encodes to the information of association.Then using the title of coding as printout file.Finally, upper application software just coding rule good according to a preconcerted arrangement analyzes the relation between each output file, thus ensure that the incidence relation between original text shelves can not be lost because of after execution virtual printing.Use the present invention, can maintain quickly and easily and the incidence relation of recombinating between virtual printing file.
Embodiment
For making the object, technical solutions and advantages of the present invention clearly, below in conjunction with accompanying drawing, the present invention is described in further detail.
Fig. 1 is the process flow diagram of a kind of document virtual printing method of the present invention, comprising:
S101: will the file to be printed mark association attributes of incidence relation, write print out task table be possessed;
S102: print each document successively by described print out task table, and according to described association attributes, print out task number with print the page number and encode to the printed document exported;
S103: according to the code number after coding, obtain the incidence relation between each printed document.
By upper level applications (such as electronic whiteboard software) before carrying out virtual printing work, carried out marking and organizing by the association attributes between document to be printed, be placed on an internal memory shared region, described association attributes is the document belonging to identical file.Before virtual printer prints, association attributes in inquiry shared drive region, and will the document write print out task table of identical file be belonged to, print each document successively, to association attributes, print out task number with print the page number and encode, then using the title of coding as printout file.
Virtual printer prints complete, send out message informing upper application software (such as: electronic whiteboard software), upper application software just coding rule good according to a preconcerted arrangement analyzes each output file, and decoding draws the relation between virtual printer institute output file, then in interface display.The incidence relation this ensures that thered between original text shelves can not be lost because of after execution virtual printing, maintains quickly and easily and the incidence relation of recombinating between virtual printing file.
Fig. 2 is the embodiment process flow diagram of a kind of document virtual printing method of the present invention, and compared to Figure 1, Fig. 2 is the process flow diagram of the specific embodiment of the invention.
S201: according to the coding rule preset, distributes to the file to be printed possessing identical incidence relation and closes chain store accordingly.
When file to be printed comprises present count layer incidence relation, using the described combination presetting several association number as association attributes.
S202: when comprising two or more print area in identical file is different print out task according to different print area cuttings, writes print out task table respectively.
S203: print each document successively by described print out task table, and according to described association attributes, print out task number with print the page number and encode to the printed document exported.
S204: according to the code number after coding, obtain the incidence relation between each printed document.
S205: according to described incidence relation membership credentials table, sets up linking of described relation table and each printed document.
S206: delete the print out task in described print out task table.
In the print procedure of virtual printer, how the document possessing same attribute is reorganized, the invention provides a kind of more succinct implementation method.
First, user selects to need the document printed to carry out virtual printing, and upper application software is according to the coding rule pre-established, and analytical documentation belongs to any association type, distributes identical pass chain store, as association attributes to the document to be printed belonging to identical file.If single document print is without the need to associating with other documents, the pass chain store that distribution one is unique equally gives it; If the multiple files not belonging to identical file print, then can be distinguished from pass chain store; If the print area in same file, then needing multiple print area cutting is multiple print out task, then by the printing of above-mentioned pass chain store, file to be printed and print out task table number with print the page number and be recorded in the middle of the contingency table of shared section key.
Start virtual printing task, start successively to print each document by described print out task table, wait for that virtual printing task prints completely or part prints complete notification message.When notified message, according to the described association attributes in contingency table, print out task number with print the page number and encode to the printed document exported, according to the code after coding number to printed document rename or be labeled on its attribute.Wherein, the pass chain store of described association attributes is distinguished the multiple documents not belonging to identical file; Described print out task number represents and belongs to identical file but incidence relation between multiple documents of different print area; Print the forward-backward correlation relation that the page number reacts each page number in same document.
Fig. 3 is the first design sketch of the embodiment of a kind of document virtual printing method of the present invention, exemplifies a specific embodiment be illustrated below in conjunction with Fig. 3.The document kind printed in practice is a lot, and the present embodiment is illustrated with EXCEL class document, as shown in Figure 3, show the design sketch after the printed document of an EXCEL file output and rename thereof.Comprise 3 print areas (worksheet) in this file, the number of pages of each print area (worksheet) is 8 pages respectively, 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 they belong in the middle of same EXCEL file here.Following three bit digital 007,008,009 represent and represent the page number successively of each print area (worksheet) at ensuing 4-digit number by the print area (worksheet) that three of printing in order are different.
For virtual printer, in time finding print out task, first check the pass chain store of each print file in internal memory shared region, after getting corresponding print out task number, be backfilling in contingency table.To close chain store, print out task number according to rule and print the title that the page number renames the print file of output, and notifying upper level applications, virtual printing task prints complete.Owing to being assigned with unique pass chain store to the document belonging to identical file, distinguished so the document of chain store to different file can be closed.Again due to different print areas, by different tasks write print out task table, so different print areas can be distinguished by the print out task number in print out task table.Finally, because virtual printing performs task in print out task table according to the principle of prerequisite variable, so printing the page number order that each task can maintain between document successively can not be chaotic.In sum, the incidence relation of recombinating between file, between print area, between the page number of front and back quickly and easily can be facilitated.
Fig. 4 is the second design sketch of the embodiment of a kind of document virtual printing method of the present invention, as shown in Figure 4, is the embodiment design sketch according to described incidence relation membership credentials table.In time clicking every one page, navigated on corresponding file by link and show.So, achieve imagery, visually to restructuring and the management of each virtual document.
Fig. 5 is the schematic diagram of a kind of document virtual printing device of the present invention, comprising:
The Attribute Association unit be connected with print out task table, for possessing the file to be printed mark association attributes of incidence relation, write print out task table;
The print execution unit be connected with described print out task table, for printing each document successively by print out task table;
The coding be connected with described print execution unit names unit, for according to described association attributes, print out task number with print the page number and encode to the printed document exported;
With the described relation construction unit naming unit to be connected of encoding, for according to the code number after coding, obtain the incidence relation between each printed document.
Fig. 5 and Fig. 1 is corresponding, the method for operation of unit and identical in method in figure.Wherein, print out task table and print execution unit can be obtained by existing technology.
Fig. 6 is the embodiment schematic diagram of a kind of document virtual printing device of the present invention.
As shown in Figure 6, described Attribute Association unit comprises:
The file association unit be connected with print out task table, for according to the coding rule preset, distributes to the file to be printed possessing identical incidence relation and closes chain store accordingly; When file to be printed comprises present count layer incidence relation, using the described combination presetting several association number as association attributes.
It should be noted that, distribute identical pass chain store to the document to be printed belonging to identical file, can be distinguished by this pass chain store between the multiple files therefore not belonging to a file.Described file association unit, achieves the incidence relation between multiple file.
Further, described Attribute Association unit also comprises:
The zone association unit be connected with print out task table, during for comprising two or more print area in identical file, is different print out task according to different print area cuttings, writes print out task table respectively.
It should be noted that, be different print out task according to different print area cuttings, writes print out task table respectively, and the print out task difference between the multiple documents therefore not belonging to the same area, can be distinguished by this print out task number.Described zone association unit, achieves the incidence relation between multiple print area in identical file.Further, described file association unit combines with described zone association unit, can realize between different file, and the incidence relation between the zones of different of each file internal.
As shown in Figure 6, also comprise:
The organization and administration unit be connected with described relation construction unit, for according to described incidence relation membership credentials table, sets up linking of described relation table and each printed document.
Be connected to the task delete cells between described relation construction unit and described print out task table, for deleting the print out task in described print out task table.
Fig. 6 and Fig. 2 is corresponding, the method for operation of above-mentioned unit and identical in method.Described organization and administration unit achieves the visual of relation table and imagery, design sketch as shown in Figure 4, when clicking selected printed document, can jump to the document by link.After obtaining the incidence relation between each printed document, delete print out task by task delete cells, contribute to releasing memory space.Described task delete cells can be obtained by existing technology.
Through the above description of the embodiments, those skilled in the art can be well understood to the mode that the present invention can add required hardware platform by software and realize, and can certainly all be implemented by hardware.Based on such understanding, what technical scheme of the present invention contributed to background technology can embody with the form of software product in whole or in part, this computer software product can be stored in storage medium, as ROM/RAM, magnetic disc, CD etc., comprising some instructions in order to make a computer equipment (can be personal computer, server, or the network equipment etc.) perform the method described in some part of each embodiment of the present invention or embodiment.
Above-described embodiment of the present invention, does not form limiting the scope of the present invention.Any amendment done within the spirit and principles in the present invention, equivalent replacement and improvement etc., all should be included within claims of the present invention.