The specific embodiment
Below with reference to the accompanying drawings and in conjunction with the embodiments, describe the present invention in detail.Referring to Fig. 2, embodiment may further comprise the steps:
S11: determine first gutter pos by the bookbinding form of user's setting, the paper type that printing process is selected;
S12: angle, direction of rotation according to dot matrix content rotation in the printing process adjust accordingly described first gutter pos, to obtain second gutter pos;
S13: according to described second gutter pos bookbinding.
By above-mentioned steps, after the dot matrix content process rotatory Adaptive matching of printing, adjust gutter pos according to the angle and direction of rotation, thereby avoid occurring binding wrong phenomenon, improved binding efficiency.
Preferably, the process of described adjustment comprises:
Center with paper is the center of circle, according to angle, the direction of rotation of described dot matrix content rotation described definite gutter pos is done corresponding rotation;
The distance on postrotational gutter pos and trimming is modified to the distance on second gutter pos and trimming; Wherein, described second gutter pos is determined according to the described bookbinding form of user's setting, the paper type of setting.
Flow chart referring to printing process among the embodiment shown in Figure 3 comprises:
S21: obtain printing;
In this step, need the user that the information of mimeograph documents, bookbinding form, antiquarian, paper type is selected.
S22: self adaptation is adjusted dot matrix;
S23: self adaptation adjustment bookbinding;
S24: send to printer.
By above-mentioned steps, the instruction after the seal pre-treatment is sent to printer.
Flow chart referring to self adaptation adjustment dot matrix shown in Figure 4 comprises:
S31: user's select File dot matrix;
In this step, the file dot matrix refers to the dot matrix content of RIP output.Wherein, RIP is the abbreviation of Raster Processing, is raster image processor.File to be printed is output as the file lattice information by RIP.
S32: the user selects antiquarian;
In this step, the user can select paper type or the self-defined paper type used always, as paper types such as A4, A3, A5, B4, B5.
S33: judge whether the file lattice dimensions mates with selecting antiquarian; If then carry out S35; If not, carry out S34.
S34: dot matrix content 90 degree that are rotated counterclockwise file.
Wherein, 90 degree are direction of rotation for the anglec of rotation counterclockwise.
Because the paper type in the printing machine paper box is different from the paper type that the user arranges, but size is identical, or the user selects mistake, is about to the A4 sheet type and opens and think into the A4R type by mistake.Be printed on the paper and finish bookbinding instruction smoothly in order to make that the file dot matrix is all significant, also in order to improve user's use impression, if the file lattice dimensions is put upside down with selecting antiquarian, then the file dot matrix is rotated counterclockwise 90 degree.
S35: the mark rotation information sends lattice file.
Can think that the length and width that have two sizes are at least put upside down, consistent these the two kinds possibilities of length and width.Therefore, whether the rotation information of this dot matrix of mark namely is rotated counterclockwise 90 degree.If do not select, then mark does not rotate, directly printing.Realized the self adaptation rotation by above-mentioned steps.
Flow chart referring to self adaptation bookbinding among the embodiment shown in Figure 5 comprises:
S41: the user selects the bookbinding order;
With the first from left order, two order on a left side, right one order, right two order and last two order and be example.The bookbinding form that the user arranges is a kind of in above-mentioned five kinds of bookbinding forms.
S42: judge that whether the height of file dot matrix content is greater than wide;
If tall and big in wide, carry out S43, then adopt vertical the printing, i.e. the Portrait mode; Otherwise, carry out S44, the employing level is printed, i.e. the Landscape mode.
S45: judge whether this document dot matrix rotates through;
If carry out S46; If not, carry out S47;
S46: by table coupling bookbinding form, determine gutter pos.
Set up the table that mode is ordered in many assemblings one to one according to angle, the direction of rotation of the rotation of many groups dot matrix content; Wherein, first bookbinding form and second bookbinding form that mode contains correspondence ordered in every assembling in the described table; Comprise: (second bookbinding form->the first bookbinding form).
Many assemblings in the described table are ordered mode and comprised: the first from left is ordered with right one and is ordered; The right side one is ordered with the first from left and is ordered; A left side two is ordered with last two and is ordered; The right side two is ordered with last two and is ordered; Last two order with right two and order; The right side two is ordered with a left side two and is ordered.
The angle of mode and every group of dot matrix content rotation is ordered in every assembling in the table, the corresponding relation of direction of rotation comprises:
(the first from left is ordered->right one and is ordered)==(anglec of rotation 90 degree are rotated counterclockwise direction)
(right one order->the first from left order)==(anglec of rotation 90 degree, dextrorotation veer)
(left side two is ordered->last two and is ordered)==(anglec of rotation 90 degree are rotated counterclockwise direction)
(right two order->last two orders)==(anglec of rotation 90 degree, dextrorotation veer)
(last two order->right two orders)==(anglec of rotation 90 degree are rotated counterclockwise direction)
(right two order->order on a left side two)==(anglec of rotation 180 degree, suitable/as to be rotated counterclockwise direction)
The process of described definite gutter pos comprises:
In described table, search the first identical bookbinding form of bookbinding form that arranges with described user;
The gutter pos that the paper type of selecting according to second bookbinding form of the described first bookbinding form place group of searching, printing process is determined is as second gutter pos.
For example, what the user arranged is that first bookbinding form is ordered for right one, and then second bookbinding form of place group is that the first from left is ordered, and the gutter pos of determining according to the paper type that the first from left is ordered, printing process is selected is as second gutter pos.
S45 sends the bookbinding order;
By the parameter that the bookbinding form of coupling is ordered as bookbinding, send the bookbinding order.Final file dot matrix content and bookbinding order are sent to printer.Because by the list processing of bookbinding instruction transformation, final bookbinding effect can be as the criterion with the size of user's select File, reached the purpose of self adaptation bookbinding.
Preferably, mate paper box by snmp protocol among the embodiment;
By snmp protocol coupling paper box information.Wherein, SNMP is the abbreviation of Simple Network Management Protocol, generally is referred to as Simple Network Management Protocol, is used for communication line is managed.By specific instruction set, can utilize the paper size information of each paper box of snmp protocol inquiry printer.
The present invention also provides a kind of device of printing machine self adaptation bookbinding, and the apparatus structure block diagram referring to shown in Figure 6 comprises:
Primary importance module 51 is determined first gutter pos for the paper type that the bookbinding form that arranges by the user, printing process are selected;
Adjusting module 52, the angle, the direction of rotation that are used for according to the rotation of printing process dot matrix content adjust accordingly the described primary importance module 51 first definite gutter pos, to obtain second gutter pos;
Bookbinding module 53 is used for according to described second gutter pos bookbinding.
By above-mentioned steps, after the dot matrix content process rotatory Adaptive matching of printing, adjust gutter pos according to the angle and direction of rotation, thereby avoid occurring binding wrong phenomenon, improved binding efficiency.
Preferably, described adjusting module 52 comprises:
Rotary module 521, the center that is used for paper is the center of circle, according to angle, the direction of rotation of described dot matrix content rotation the described first definite gutter pos is done corresponding rotation;
Second place module 522 is for the distance that the distance on rotary module 521 postrotational first gutter pos and trimming is modified to second gutter pos and trimming; Wherein, described second gutter pos is determined according to the described bookbinding form of user's setting, the paper type of setting.Gutter pos behind the first gutter pos corrected range is the gutter pos after adjusting.
Preferably, device also comprises:
Table module 53 is used for setting up the table that mode is ordered in many assemblings one to one according to angle, the direction of rotation of the rotation of many group dot matrix contents; Wherein, first bookbinding form and second bookbinding form that mode contains correspondence ordered in every assembling in the described table;
Described adjusting module 52 also comprises:
Search module 523, be used for searching the first identical bookbinding form of bookbinding form that arranges with described user at described table;
The 3rd position module 524, the gutter pos that is used for determining according to the paper type that second bookbinding form of the described first bookbinding form place group of searching, described printing process are selected is as described second gutter pos.
Bookbinding module 53 obtains second gutter pos bookbinding of second place module 522 or the 3rd position module 524.
Obviously, those skilled in the art should be understood that, above-mentioned each module of the present invention or each step can realize with the general calculation device, they can concentrate on the single calculation element, perhaps be distributed on the network that a plurality of calculation elements form, alternatively, they can be realized with the executable program code of calculation element, thereby, they can be stored in the storage device and be carried out by calculation element, perhaps they are made into each integrated circuit modules respectively, perhaps a plurality of modules in them or step are made into the single integrated circuit module and realize.Like this, the present invention is not restricted to any specific hardware and software combination.
The above is the preferred embodiments of the present invention only, is not limited to the present invention, and for a person skilled in the art, the present invention can have various changes and variation.Within the spirit and principles in the present invention all, any modification of doing, be equal to replacement, improvement etc., all should be included within protection scope of the present invention.