Summary of the invention
To be solved by this invention is exactly to adopt manual imposition efficient low; Be unfavorable for realizing the automation process of printing technology; And cause easily layout bad bring printing machinery select wrong, spoilage is more and problem that printing cost is increased provides a kind of computer program that utilizes to print imposition method.
A kind of computer program that utilizes of the present invention prints imposition method, it is characterized in that may further comprise the steps:
At first, in computer program, set finished product aperture, finished product widthwise edge long value, the vertical length of side value of finished product, full paper widthwise edge long value, the complete vertical length of side value of paper and printing machine paper feed size;
Set up computing module and memory module through computer program then, computing module comprises P value computing module, horizontal P value and longitudinal P value computing module and layout size computing module;
P value operational method is to divide exactly the layout aperture respectively by the finished product aperture, and the span of layout aperture is from 1 round values to the finished product aperture, and will store in the memory module respectively through one group of P value of computing;
Laterally P value and the computing of longitudinal P value; Promptly calculate finished product in each different P value laterally along the quantity X that laterally arranges of layout and finished product vertically along the quantity Y that vertically arranges of layout; Then laterally the P value is X; The longitudinal P value is Y; Its account form is the product that is deducted X and Y by the P value; Being on duty is 0 o'clock, and this X and Y value are the horizontal P value and the longitudinal P value of a reasonable set, and are stored in the memory module;
It is to calculate layout widthwise edge long value and the vertical length of side value of layout that the layout size is calculated; Promptly calculate a series of reasonable X and Y value in memory module composing sizes under corresponding that are stored in; Method is that the widthwise edge long value with finished product multiply by horizontal P value X and draws layout lateral dimension value; Vertical length of side of finished product is on duty to draw layout longitudinal size value with longitudinal P value Y, and this packet size value is stored in the memory module;
At last; Through the contrast module the above numerical value that is stored in the memory module is compared; Be stored in the reasonable numerical value that draws after the contrast in the memory module again; The contrast module comprises layout size and full paper size contrast module and layout size and printing machine paper feed size contrast module, at first moves layout size and full paper size contrast module, and rerun layout size and printing machine paper feed size of the numerical value of reservation contrasted module; Corresponding horizontal P value of reasonable layout size and longitudinal P value that the contrast back keeps are the data of composing pattern institute foundation, set type through computer program;
The layout size is with the widthwise edge long value of the layout widthwise edge long value that calculates with full paper with full paper size contrast module; Vertical length of side value of layout contrasts with vertical length of side value of full paper; If, then reorganizing layout all smaller or equal to full paper size, the layout size is of a size of in rational numerical storage and the memory module; Perhaps with vertical length of side value of layout widthwise edge long value and full paper, vertical length of side value of layout contrasts respectively with the widthwise edge long value of full paper, is of a size of in rational numerical storage and the memory module if the layout size, is then reorganized layout all smaller or equal to full paper size;
Layout size and the contrast of printing machine paper feed size are with the widthwise edge long value of the available layout size that stays through above-mentioned contrast or vertically length of side value and the contrast of printing machine paper feed size; Any value in widthwise edge long value or the vertical length of side value is less than or equal to the printing machine size; Then be rational layout size value, corresponding horizontal P value of this layout size value and longitudinal P value are for confirming the numerical value of layout pattern.
Print publishing pattern through this method of the present invention draws has certain preference, can practice thrift printing cost, increases work efficiency, and has liberated the labour to a certain extent, has realized the automated job of print publishing.
Embodiment
Embodiment 1: the unit of numerical value is mm in the present embodiment; Suppose that full paper widthwise edge long value is 889; The complete vertical length of side value of paper is 1194 (by 889 * 1194 expressions); Finished product widthwise edge long value is 210, and the vertical length of side value of finished product is 285 (by 210 * 285 expressions), calculates the finished product aperture and is 16 and open.
At first, set in computer program that the finished product aperture is 16, finished product widthwise edge long value 210, the vertical length of side value 285 of finished product and printing machine paper feed size 900;
Set up computing module and memory module through computer program then, computing module comprises P value computing module, horizontal P value and longitudinal P value computing module and layout size computing module;
P value operational method is to divide exactly the layout aperture respectively by the finished product aperture, and the span of layout aperture is from 1 round values to the finished product aperture, and will store in the memory module respectively through one group of P value of computing.In the present embodiment, the finished product aperture is 16, and the span of layout aperture draws one group of P value of 16 values then for to be respectively 1~16 of integer, is respectively P
1=16, P
2=8, P
3=5, P
4=4, P
5=3, P
6=2, P
7=2, P
8=2, P
9=1, P
10=1, P
11=1, P
12=1, P
13=1, P
14=1, P
15=1, P
16=1, one has 7 different P values.
Laterally P value and the computing of longitudinal P value; Promptly calculate finished product in each different P value laterally along the quantity X that laterally arranges of layout and finished product vertically along the quantity Y that vertically arranges of layout, then laterally the P value is X, the longitudinal P value is Y; Its account form is the product that is deducted X and Y by the P value; Being on duty is 0 o'clock, and this X and Y value are the horizontal P value and the longitudinal P value of a reasonable set, and are stored in the memory module.When the P value is respectively 7 values of difference that above step calculates, calculate rational X and Y value respectively by P-X * Y=0;
Suppose P=8, then X and Y not can be negative, and can only have for the reasonable value of integer:
X
1=1 and Y
1=8;
X
2=2 and Y
2=4;
X
3=8 and Y
3=1;
X
4=4 and Y
4=2;
Suppose P=16, then X and Y not can be negative, and can only have for the reasonable value of integer:
X
1=1 and Y
1=16;
X
2=2 and Y
2=8;
X
3=4 and Y
3=4;
X
4=8 and Y
4=2;
X
5=16 and Y
5=1;
And the like, being X until being calculated as the corresponding rationally horizontal P value of all P values, the longitudinal P value is Y, and in the memory module of storage.
It is to calculate layout widthwise edge long value and the vertical length of side value of layout that the layout size is calculated; Promptly calculate a series of reasonable X and Y value in memory module composing sizes under corresponding that are stored in; Method is that the widthwise edge long value with finished product multiply by horizontal P value X and draws layout lateral dimension value; Vertical length of side of finished product is on duty to draw layout longitudinal size value with longitudinal P value Y, and this packet size value is stored in the memory module;
Corresponding several groups of X and Y value to above two P values calculate down obtain following corresponding layout size value:
When P=8:
X
1=1 and Y
1Layout in=8 o'clock is of a size of (1 * 210) * (8 * 285)=210 * 2280;
X
2=2 and Y
2Layout in=4 o'clock is of a size of (2 * 210) * (4 * 285)=420 * 1140;
X
3=8 and Y
3Layout in=1 o'clock is of a size of (8 * 210) * (1 * 285)=1680 * 285;
X
4=4 and Y
4Layout in=2 o'clock is of a size of (4 * 210) * (2 * 285)=840 * 570;
When P=16:
X
1=1 and Y
1Layout in=16 o'clock is of a size of (1 * 210) * (16 * 285)=210 * 4560;
X
2=2 and Y
2Layout in=8 o'clock is of a size of (2 * 210) * (8 * 285)=420 * 2280;
X
3=4 and Y
3Layout in=4 o'clock is of a size of (4 * 210) * (4 * 285)=840 * 1140;
X
4=8 and Y
4Layout in=2 o'clock is of a size of (8 * 210) * (2 * 285)=1680 * 570;
X
5=16 and Y
5Layout in=1 o'clock is of a size of (16 * 210) * (1 * 285)=3360 * 285.
At last; Through the contrast module the above numerical value that is stored in the memory module is compared; Be stored in the reasonable numerical value that draws after the contrast in the memory module again; The contrast module comprises layout size and full paper size contrast module and layout size and printing machine paper feed size contrast module, at first moves layout size and full paper size contrast module, and rerun layout size and printing machine paper feed size of the numerical value of reservation contrasted module; Corresponding horizontal P value of reasonable layout size and longitudinal P value that the contrast back keeps are the data of composing pattern institute foundation, set type through computer program;
The layout size is with the widthwise edge long value of the layout widthwise edge long value that calculates with full paper with full paper size contrast module; Vertical length of side value of layout contrasts with vertical length of side value of full paper; If, then reorganizing layout all smaller or equal to full paper size, the layout size is of a size of in rational numerical storage and the memory module; Perhaps with vertical length of side value of layout widthwise edge long value and full paper, vertical length of side value of layout contrasts respectively with the widthwise edge long value of full paper, is of a size of in rational numerical storage and the memory module if the layout size, is then reorganized layout all smaller or equal to full paper size;
Complete in the present embodiment paper size is 889 * 1194, with this size and above layout size contrast, draws:
When P=8, layout size 210 * 2280,420 * 1140,1680 * 285 is all unavailable, then has 840 * 570,420 * 1140 can use, with its reservation;
When P=16, layout size 210 * 4560,420 * 2280,1680 * 570,3360 * 285 is all unavailable, only has 840 * 1140 can use, with its reservation;
Layout size and the contrast of printing machine paper feed size are with the widthwise edge long value of the available layout size that stays through above-mentioned contrast or vertically length of side value and the contrast of printing machine paper feed size; Any value in widthwise edge long value or the vertical length of side value is less than or equal to the printing machine size; Then be rational layout size value, corresponding horizontal P value of this layout size value and longitudinal P value are for confirming the numerical value of layout pattern;
In the present embodiment; Available layout size is 840 * 570,420 * 1140 or 840 * 1140 in the above-mentioned steps; Because of any value in its widthwise edge long value or the vertical length of side value is less than or equal to printing machine size 900; Therefore this layout is of a size of data available, the value during P=8 corresponding with it, X
4=4 and Y
4=2, X
2=2 and Y
2=4, the value when P=16, X
3=4 and Y
3=4 is that rational layout pattern is according to numerical value.During P=8, X
4=4 and Y
4=2, represent that this layout pattern is, be of a size of 900 printing machine for paper feed, layout is half-open, and finished product is laterally along 4 of this layout transverse row, and finished product is vertically vertically arranged 2 along this layout; X
2=2 and Y
2=4, represent that this layout pattern is, be of a size of 900 printing machine for paper feed, layout is half-open, and finished product is laterally along 2 of this layout transverse row, and finished product is vertically vertically arranged 4 along this layout.During P=16, X
3=4 and Y
3=4, represent that this layout pattern is, be of a size of 900 printing machine for paper feed, layout standard-sized sheet, finished product are laterally along 4 of this layout transverse row, and finished product is vertically vertically arranged 4 along this layout.