Background technology
Page zoom-in and zoom-out (Fit to Paper) printing technique and page configuration (N-up) printing technique are quite general printing technique already in printing equipment now.So-called page zoom-in and zoom-out (Fit toPaper) printing technique, promptly be that the purpose page (specified paper) that the source page (printing page) that user's desire is printed can be set according to the user when printing carries out the action that page zoom-in and zoom-out is printed, for instance: when the source page belongs to Letter size (21.59*27.94cm), when content of pages prints on A4 size (21*29.7cm) and user's desire will be originated, seeing through the page zoom-in and zoom-out printing technique this moment can will print in the purpose page after the content of pages appropriateness amplification of source, allow the user can when printing operation, no longer need to consider relation between the page size, adjust on the assignment procedure printing and spend a large amount of time again; As for the page configuration printing technique, then be when printing, can allow the user that a plurality of sources content of pages is set, see through the merging compaction algorithms and the output layout of a plurality of sources content of pages are set, many source pages with different content are printed on the single goal page of identical size simultaneously, for instance: the user can be with the source content of pages of 4 Letter sizes (21.59*27.94cm), be output in simultaneously on the purpose page of 1 Letter size (21.59*27.94cm), so can reach the purpose of saving a large amount of paper page use amounts.
Yet, though page zoom-in and zoom-out printing technique and page configuration printing technique belong to suitable maturation and use with for a long time in the printing technique field, but both still have it and can't exist by complementary bottleneck separately on the practicality of technology, cause the inconvenient and puzzlement of user on printing.With the page zoom-in and zoom-out printing technique, though at present the technology of this class can provide the user that various different sizes source page appropriateness are scaled to the purpose page size that the user sets to be printed individually, but when the user wants that these different sizes source pages are printed on the single goal page simultaneously, if just adopt page zoom-in and zoom-out printing technique in the past can't satisfy the demand of user on printing; As for the page configuration printing technique, the technology of this class only can provide the merging configuring print for the identical size source page at present, all must be the operation that the onesize paper page can merge compression and output layout just at all source pages and the purpose page, the inconvenience that this also can produce to a certain degree for the user usually causes because originating the not of uniform size of the page and the purpose page and can't use the waste of saving print paper through the page configuration printing technique.
Therefore, the how fully design of appliance computer software program, provide a kind of can be simultaneously in conjunction with the control method of page zoom-in and zoom-out printing technique and page configuration printing technique, the convergent-divergent of the page of can originating simultaneously merges the printout of the operation and the very accurate generation purpose page, the print job that printing equipment is provided can meet user's printing demand more, should be engaged in related printing apparatus the print format control method the developer the problem that should make great efforts to solve.
Summary of the invention
Because page zoom-in and zoom-out (the Fit to Paper) printing technique that above-mentioned existing printing equipment provided and the problem and the shortcoming of page configuration (N-up) printing technique the invention provides a kind of Method of printing that can carry out content scaling merging output simultaneously.
The technical application means of the inventive method, be in conjunction with page zoom-in and zoom-out printing technique and page configuration printing technique, set the source page (printing page) of desire printing for the user, calculate page zoom-in and zoom-out compression factor numerical value and page configuration compression factor numerical value at first respectively, utilize two numerical value then and then try to achieve the logic scaling numerical value of demand of the present invention, logical resolution numerical value, logical source page size numerical value, logic purpose page size numerical value, the last computational logic source page is positioned over the position of the logic purpose page, and then finishes the print job of the purpose page (specified paper) according to the output layout set information that the user sets.
See through the inventive method and can reach the purpose effect that following prior art is not seen:
Provide the user can mix page print merge operation simultaneously, promptly can allow the user set a plurality of source pages that vary in size, and carry out print merge according to setting the purpose page size.
And can solve in existing page zoom-in and zoom-out printing technique and the page configuration printing technique, the user must carry out the problem that numerous and diverse printing adjustment is set and wasted a large amount of paper pages.
For reaching the above-mentioned purpose effect, the present invention carried can carry out the Method of printing that content scaling merges output simultaneously, includes the following step: at first receive the setting value information of printing, then computational logic page number value information, then read the output layout set information, at last according to logical page (LPAGE) numerical information and output layout set information execution print job.
The concrete feasible embodiment of relevant the present invention just cooperates graphic being described as follows now:
Description of drawings
Fig. 1 is the main process flow diagram of Method of printing that can carry out content scaling merging output simultaneously that the present invention carries;
Fig. 2 is the Method of printing computational logic page number value information process flow diagram that can carry out content scaling merging output simultaneously that the present invention carries; And
Fig. 3-a, Fig. 3-b be the present invention carry can carry out the output print operation synoptic diagram that content scaling merges the Method of printing of output simultaneously.
Among the figure
500 output layouts are set
600 first order output print operations
700 second order output print operations
Step 100 receives a dozen printing value set informations
Step 200 is calculated a logical page (LPAGE) numerical information
Step 210 is calculated page configuring print (N-up) compression factor numerical value
Step 211 calculating one page reduction of area is put printing (Fit to Paper) compression factor numerical value
Step 212 is asked for this logic scaling numerical value
Step 213 is asked for this logical resolution numerical value
Step 220 is tried to achieve this logical source page size numerical value
Step 221 is tried to achieve this logic purpose page size numerical value
Step 230 is calculated each logical source page in the position numerical value of the logic purpose page
Step 240 stores this all logical page (LPAGE) numerical informations
Step 300 reads an output layout set information
Step 400 is carried out print job according to this logical page (LPAGE) numerical information and this output layout set information
Embodiment
The present invention can carry out the Method of printing that content scaling merges output simultaneously for a kind of, mainly utilize the programmable software control method, it is the design of software driver (driver), page zoom-in and zoom-out (Fit to Paper) printing technique and page configuration (N-up) printing technique are done in conjunction with using, provided the source page (printing page) that the user can be set to carry out convergent-divergent, print merge print format control method to the purpose page (specified paper).
Fig. 1 can be carried out the main process flow diagram of Method of printing that content scaling merges output simultaneously by what the present invention carried, illustrates that the main process step of the inventive method is as follows:
At first, can receive the setting value information (step 100) of printing earlier during the inventive method running, so-called printing setting value information comprises at least: source page size type, purpose page size type, purpose page boundary numerical value, print merge numerical value, output resolution ratio numerical value ... the setting that is provided when the user operates other application program will be provided these information spinners, when user's these information when other application program execution printing produces new print routine (printing process) can automatic transmission supply to receive; Then, the inventive method can begin computational logic page number value information (step 200) according to the information that receives, and this partly is the topmost technological means of the inventive method place, below will cooperate the part of Fig. 2 to do the further explanation of operation workflow step; After the calculating of completion logic page number value information, just read output layout set information (step 300), the same acquisition of this output layout set information is operated the setting content that other application program provides from the user, it mainly is to set the arranged mode of each source page when printing, in proper order, the output layout that please refer among Fig. 3-a sets 500, can know the user with 4 source pages (sequence of pages is 1-2-3-4) according to earlier downwards more to the right arranged mode (being that page order is 1-3-2-4) carry out output layout and set; At last, carry out print job (step 400), finish the whole method that content scaling merges output of in print job, carrying out simultaneously according to logical page (LPAGE) numerical information and output layout set information.
The front mentions that " computational logic page number value information (step 200) " is the place of major technique means of the present invention, and it is as follows therefore to cooperate Fig. 2 to be described further:
At first, the inventive method can be calculated page configuration earlier and print compression factor numerical value Scaling (A) (step 210), just according to the print merge numerical value that had before set, purpose page size type is calculated page configuration and is printed upward required compression factor, and calculate page zoom-in and zoom-out and print compression factor numerical value Scaling (B) (step 211), just according to the source page size type that had before set, purpose page size type is calculated page zoom-in and zoom-out and is printed upward required compression factor, because the account form of page configuration printing compression factor numerical value Scaling (A) and page zoom-in and zoom-out printing compression factor numerical value Scaling (B) belongs to the prior art means in page zoom-in and zoom-out printing technique and the page configuration printing technique, so seldom give unnecessary details at this; Try to achieve Scaling (A) and Scaling (B) and just begin to ask for logic scaling numerical value Scaling (C) (step 212) afterwards, calculation mode is by Scaling (A) and Scaling (B) gained that multiplies each other; Further ask for logical resolution numerical value (step 213) then, wherein logical resolution numerical value by output resolution ratio numerical value that originally set and Scaling (C) multiply each other the institute draw; Then, computational logic source page size numerical value (step 220) and logic purpose page size numerical value (step 221), wherein logical source page size numerical value (comprising: wide numerical value of the page and page long number value) then multiply by Scaling (C) by the actual page width in the source page size type of previous setting respectively, actual page length multiply by Scaling (C) and draws, logic purpose page size numerical value is then with the actual page width in the printable purpose page size numerical value, actual page length multiply by Scaling (A) respectively and draws, and so-called " the printable purpose page " is the actual page width of the purpose page size that will before set, actual page length respectively with the broadside circle numerical value of the page boundary numerical value of previous setting, it is resulting that long border numerical value subtracts each other the back; Calculate the position numerical value (step 230) of each logical source page at last in the logic purpose page, determine the correspondence position of each source page in the purpose page (comprise: shift value and left and right sides shift value) up and down, relevant shift value calculation mode has many kinds;
Following expression formula be can see through for instance and shift value and left and right sides shift value up and down tried to achieve respectively:
Left and right sides shift value=(the wide numerical value of the printable purpose page-wide numerical value of the logical source page/2
Shift value=(printable purpose page long number value-logical source page long number value)/2 up and down
Store all relevant logical page (LPAGE) numerical informations (step 240) then, finish the thin portion running of " computational logic page number value information " in the whole steps 200.
For the concrete feasibility of the inventive method being described, special explanation and the explanation of making embodiment with following concrete instance:
At first, Xiang Guan printing setting value information setting is as follows:
(1) source page size type is: Letter size (21.59*27.94cm)
(2) purpose page size type is: A4 size (21*29.7cm)
(3) purpose page boundary numerical value is: wide numerical value of the page and page long number value are 0.5cm
(4) print merge numerical value is: 4
(5) output resolution ratio numerical value is: 600 every English inch count (DPI, Dot Per Inch)
Therefore, at first by existing account form draw earlier that page configuration prints that compression factor numerical value Scaling (A) is 50%, to print compression factor numerical value Scaling (B) be 97.27% to page zoom-in and zoom-out.
Then arithmetic logic scaling numerical value Scaling (C) is 43.64% (being 50%*97.27%), utilizes Scaling (C) to calculate respectively again:
Logical resolution numerical value is 261 every English inch count (being 600*43.64%)
Logical source page size numerical value:
The wide numerical value of the page is 9.42cm (being 21.59*43.64%)
Page long number value is 12.19cm (being 27.94*43.64%)
Logic purpose page size numerical value:
The wide numerical value of the page is 10.25cm (being 20.5*50%), and wherein 20.5cm is printable page or leaf
The wide numerical value of the page in the face magnitude numerical value (being 21-0.5)
Page long number value is 14.6cm (being 29.2*50%), and wherein 29.2cm is the printable page
Page long number value (being 29.7-0.5) in the magnitude numerical value
At last, calculate the correspondence position numerical value (promptly about shift value and left and right sides shift value) of each logical source page again in the logic purpose page, wherein:
Shift value is 1.2cm (i.e. (14.6-12.19)/2) up and down
Left and right sides shift value is 0.415cm (i.e. (10.25-9.42)/2)
Finish after the calculation step flow process of all logical page (LPAGE) numerical informations, just the output layout set information (setting 500) that can before set according to the logical page (LPAGE) numerical information that is produced and user as the output layout among Fig. 3-a, very accurately a plurality of sources content of pages is carried out simultaneously exporting in the purpose page after convergent-divergent merges, its page order mode will be finished whole print job at last as carrying out the first order output print operation 600 among Fig. 3-b earlier and then carrying out the second order output print operation 700.
The above person only is the present invention's preferred embodiment wherein, is not to be used for limiting practical range of the present invention; Be that all equalizations of being done according to claim scope of the present invention change and modification, be all claim of the present invention and contain.