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 by 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, namely 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 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 in the memory module and Y value 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, by the contrast module the above numerical value that is stored in the memory module is compared, be stored in again the reasonable numerical value that draws after the contrast in the memory module, 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 move layout size and full paper size contrast module, the numerical value that the keeps layout size of reruning is contrasted module with printing machine paper feed size, corresponding horizontal P value and the longitudinal P value of reasonable layout size that keeps after the contrast is the data of composing pattern institute foundation, sets type by computer program;
Layout size and full paper size contrast module are the layout widthwise edge long values that will calculate and the widthwise edge long value of full paper, the longitudinal edge long value of layout contrasts with the longitudinal edge long 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 value storage and the memory module; Perhaps with the longitudinal edge long value of layout widthwise edge long value with full paper, the longitudinal edge long value of layout contrasts respectively with the widthwise edge long value of full paper, is of a size of in rational value storage and the memory module if the layout size, is then reorganized layout all smaller or equal to full paper size;
The contrast of layout size and printing machine paper feed size is that widthwise edge long value or the longitudinal edge long value of the available layout size that will stay through above-mentioned contrast contrasts with printing machine paper feed size, any one value in widthwise edge long value or the longitudinal edge long value is less than or equal to the printing machine size, then be rational layout size value, the horizontal P value that this layout size value is corresponding and longitudinal P value are for determining the numerical value of layout pattern.
Print publishing pattern through this method of the present invention draws has certain preferred property, can save 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 that 1194(is by 889 * 1194 expressions), finished product widthwise edge long value is 210, the vertical length of side value of finished product is 285(by 210 * 285 expressions), calculate the finished product aperture and be 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 by 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, namely 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 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 respectively rational X and Y value 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;
The like, being X until be 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 in the memory module and Y value 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;
For lower corresponding several groups of X and the Y value that calculates of above two P values, 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, by the contrast module the above numerical value that is stored in the memory module is compared, be stored in again the reasonable numerical value that draws after the contrast in the memory module, 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 move layout size and full paper size contrast module, the numerical value that the keeps layout size of reruning is contrasted module with printing machine paper feed size, corresponding horizontal P value and the longitudinal P value of reasonable layout size that keeps after the contrast is the data of composing pattern institute foundation, sets type by computer program;
Layout size and full paper size contrast module are the layout widthwise edge long values that will calculate and the widthwise edge long value of full paper, the longitudinal edge long value of layout contrasts with the longitudinal edge long 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 value storage and the memory module; Perhaps with the longitudinal edge long value of layout widthwise edge long value with full paper, the longitudinal edge long value of layout contrasts respectively with the widthwise edge long value of full paper, is of a size of in rational value storage and the memory module if the layout size, is then reorganized layout all smaller or equal to full paper size;
Full paper size is 889 * 1194 in the present embodiment, and this size and above layout size are contrasted, and 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;
The contrast of layout size and printing machine paper feed size is that widthwise edge long value or the longitudinal edge long value of the available layout size that will stay through above-mentioned contrast contrasts with printing machine paper feed size, any one value in widthwise edge long value or the longitudinal edge long value is less than or equal to the printing machine size, then be rational layout size value, the horizontal P value that this layout size value is corresponding and longitudinal P value are for determining 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 one 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, 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.