JPH11151845A - Printer - Google Patents

Printer

Info

Publication number
JPH11151845A
JPH11151845A JP9335113A JP33511397A JPH11151845A JP H11151845 A JPH11151845 A JP H11151845A JP 9335113 A JP9335113 A JP 9335113A JP 33511397 A JP33511397 A JP 33511397A JP H11151845 A JPH11151845 A JP H11151845A
Authority
JP
Japan
Prior art keywords
size
form
paper size
data
form data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP9335113A
Other languages
Japanese (ja)
Inventor
Takashi Moriya
尚 守屋
Original Assignee
Fuji Xerox Co Ltd
富士ゼロックス株式会社
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Fuji Xerox Co Ltd, 富士ゼロックス株式会社 filed Critical Fuji Xerox Co Ltd
Priority to JP9335113A priority Critical patent/JPH11151845A/en
Publication of JPH11151845A publication Critical patent/JPH11151845A/en
Pending legal-status Critical Current

Links

Abstract

(57) [Summary] To determine a paper size based on a drawing element of form data. SOLUTION: A plurality of forms in a form data storage section 16 are selected according to a form instruction. The form size determination unit 17 detects the size of the form based on the position information (coordinates) of the drawing element of the selected form data. A plurality of sheet size information is registered in the sheet size table 18. The paper size information and the size of the detected form are input to the size determination unit 19, and paper size information closest to and larger than the form size is determined as the paper size. The determined paper size information is set in the paper size storage unit 20. The paper size set in the paper size storage unit 20 is obtained by merging the form and print data.
When output to OT5, it is notified to IOT5.

Description

DETAILED DESCRIPTION OF THE INVENTION

[0001]

BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a printer device, and more particularly to a printer device having a form overlay function of merging (combining) externally input data with form data such as an electronic form and outputting the merged data. .

[0002]

2. Description of the Related Art A printer apparatus having a form overlay function for merging print data input from a data supply source such as a host computer with form data such as electronic form data held by the print apparatus and outputting the merged form data is known. . In this printer device, the form overlay function is invalidated when the output paper size added to the print data and the size of the form data to be used are different.

In order to solve this problem, when the designated paper size of the print data and the size of the form data are different, at least one of the print data and the form data includes enlargement, reduction, rotation, and the like. A printer has been proposed in which an editing process is performed to enable a form overlay function (Japanese Patent Laid-Open No. 7-156).
495).

[0004]

The above-mentioned conventional printer has the following problems. That is, in a conventional printer, it is an essential condition that both print data and form data have size information. But,
The size information is not always added to the print data or form data, and if the size information is not added, the paper size cannot be determined. In addition, since the layout of the print data format is generally designed to conform to the form, if only one of the print data and the form data is processed, the print data and the form layout may not match. There are points.

[0005] An object of the present invention is to solve the above problems,
When determining the output paper size based on the form size, the output paper size can be determined even if size information is not added to the form data, so that the range where the form overlay can be applied can be expanded. To provide a printer device.

[0006]

SUMMARY OF THE INVENTION In order to solve the above-mentioned problems and to achieve the object, the present invention provides a printer apparatus for merging print data and form data and outputting the merged form data. Size presence / absence determining means for determining whether or not the form element is registered; form size detecting means for detecting an area size including a drawing element included in the form data; paper size storing means for registering a plurality of paper sizes; If it is determined that the form size is not registered in the data,
Of the registered paper sizes, those that are larger than the area size detected by the form size detection unit and are closest to the area size are defined as the paper size for outputting the merged print data and form data. And a paper size determining unit for determining the paper size.

According to the above feature, even when the form size is not registered in the form data, the area size including the drawing element is regarded as the form size, and a plurality of predetermined paper sizes are set. Among them, the size that is larger than the area size and is closest to the area size is determined as the paper size for print output.

[0008]

DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS The present invention will be described below in detail with reference to the drawings. FIG. 2 is a block diagram illustrating a main configuration of the printer device according to the embodiment of the present invention. In FIG. 1, a printer control device 1 receives a channel interface (I / I / O) from a host computer 2 which is a print data supply source.
F) Print data is received through 3 and is merged with form data registered in advance to create print image data. The created print image data is output to the IOT, that is, the image output terminal 5 through the IOT interface (I / F) 4 together with the paper size information used for printing. The IOT 5 selects a sheet according to the sheet size information specified by the printer control device 1 and prints the print image data.

The printer control device 1 includes a CPU 6 for processing the operation of each component of the printer control device 1, a ROM 7 for storing a program and control data for the CPU 6,
It has a RAM 8 used as a work area for the PU 6. The disk device 9 is a rewritable storage area,
It stores programs and control data as well as resource files such as image data and form data. The video generator 10 creates print image data based on text data, image data, and form data. The page buffer 11 stores the print image data created by the video generator 10 in page units. The font memory 12 stores font data of various characters. The external input / output device 13 is an interface that controls input / output of print data and resource file data from an auxiliary storage device such as a magnetic tape device or a floppy disk device. The keyboard 14 is a man-machine interface with the operator, and is used to input various instructions for print processing. The display device 15 is used to display a processing result in the printer control device 1 and an instruction to an operator.

Next, the structure of the form data will be described.
FIG. 3 is a diagram showing an example of the structure of the form data. Although this form data may be added to the print data transmitted from the host computer 2, only the form data may be supplied from the host computer 2 in advance, or may be input through the external input / output device 13. In some cases, it is stored in the disk device 9 as a resource file. The file data stored in the disk device 9 in advance is used by being called from a command in the print data or a print processing control program.

In FIG. 3, at the beginning of the form data, that is, at the form file header, the size s of the form data, the form version v, ie, the type of software for developing the form data into a print image, and the horizontal size w of the form , And vertical size h
Are described. Following the form file header, the number en of drawing elements included in the form, and the type and parameters of each drawing element are described. The types of drawing elements include straight lines, circles, polygons, and text.

FIG. 3 illustrates a drawing element for drawing a circle and a drawing element for drawing a polygon. Drawing element D1
Is data for drawing a circle, and the coordinates of the center (x
1, y1) and the radius (r1) define a circle. The drawing element Dm is data for drawing a polygon, and includes the number of vertices and the coordinates (xp1, yp1), (xp2, yp) of each vertex.
2), (xp3, yp3) defines a polygon.
Here, a triangular drawing element is illustrated as an example of a polygon. Note that the printer of the present embodiment is configured to be applicable even when the horizontal size w and the vertical size h of the form are not set. FIG. 4 shows an example of a print image of a form drawn based on the form data.

FIG. 5 shows an example of a sheet size table. This table is created based on information previously input by an operator using the keyboard 14 and stored in the disk device 9. In the paper size table, the registered paper size number tn and the vertical and horizontal sizes of each paper are registered in ascending order of the size. That is, the paper size (X2, Y1) is larger than the paper size (X2, Y1).
Y2) is larger. The sheet size table is read into the RAM 8 when the sheet size is determined.

Next, a process for outputting print image data to the IOT 5 will be described. FIG. 6 is a general flowchart. In step S100, it is determined whether there is a print request from the host computer 2, and if there is a print request, the process proceeds to step S110 to execute a paper size determination process. This process will be described later with reference to FIGS. In step S120, it is determined whether or not an error has occurred in the paper size determination processing, that is, whether or not the paper size has not been determined. If it is determined that the paper size has been determined, the process proceeds to step S130, where the print data supplied from the host computer 2 is developed into print image data. In step S140, the form data of the designated form is developed into print image data. In step S150, the two developed print image data are merged on the video generator 10 and stored in the page buffer 11. In step S160, I
The OT 5 is notified of the paper size, and the merged print image data is transferred from the page buffer 11 to the IOT 5.

Next, the paper size determination processing based on the form data (step S110) will be described in detail.
FIG. 7 is an xy coordinate system representing a form drawn based on the drawing element. In the paper size determination process,
A rectangle having a minimum size that can surround a figure drawn by each drawing element, which is a rectangle having two sides adjacent to each other on the x-axis and the y-axis passing through the origin of the xy coordinate system, is detected for each figure. . Then, the largest size graphic among the plurality of detected rectangles, that is, a rectangle surrounding the graphic located farthest from the origin is detected, and a size larger than this rectangle and closest is searched from the paper table. Paper size.

The details of the paper size determination process will be described with reference to FIG. 7 and the flowcharts of FIGS.
First, in step S1 of FIG. 8, it is determined whether or not there is size information (w, h) in the form data of the designated form. If the size information is described in the form data, the process proceeds to step S17 in FIG.
The paper size to be output to the IOT 5 is set as it is.

If no size information has been added to the form data, the process proceeds to step S2, and the number en of drawing elements included in the form is set in a counter ecnt. In step S3, "1" is set in the loop counter i to perform initialization. In step S4, one drawing element of the form is obtained. In step S5, the coordinates (drawing size) of the lower right position of the rectangle surrounding the figure drawn by the drawing element, that is, the vertices of the diagonal position of the origin among the vertices of the rectangle circumscribing the figure, are determined from the drawing element type and parameters. calculate.

In step S6, it is determined whether or not there is a drawing size already calculated and stored. If the calculation has been performed for the first drawing element, this determination is negative and the process proceeds to step S8. In step S8, the calculated coordinates (epx, epy) are stored as the drawing size. If there is a drawing size that has already been saved, step S6 becomes affirmative, and the process proceeds to step S7. In step S7, it is determined whether or not the latest calculated drawing size is larger than the saved drawing size, that is, the coordinates of the latest calculated drawing element are equal to those of the previously calculated drawing element. Whether it is farther from the origin than the coordinates is determined independently in the x-axis direction and the y-axis direction. If it is determined that the coordinates in the x-axis direction or the y-axis direction are farther from the origin than the previously calculated coordinates of the drawing element, step S
Move to 8 and calculate the latest coordinates (epx, epy)
Of these, the x coordinate and / or y coordinate determined to be far from the origin is stored as the drawing size. That is, the storage of the drawing size is updated, and the process proceeds to step S9. If the latest calculated drawing size is smaller than the already stored drawing size, the process proceeds to step S9 without updating the storage of the drawing size.

In step S9, it is determined whether or not the loop counter i has reached the number ecnt of drawing elements. If step S9 is negative, it is determined that there is a drawing element that has not been determined yet, the process proceeds to step S10, the loop counter i is incremented (+1), and the process returns to step S4.

When all the drawing elements have been determined, the process proceeds from step S9 to step S11 in FIG. Step S11 and subsequent steps are processing for determining the paper size specifically based on the drawing size (epx, epy) and the storage information of the paper size table. In step S11,
Paper size type t registered in the paper size table
n is set to the counter tcnt. In step S12, a loop counter i is initialized. In step S13, the paper size (Xi, Yi) is obtained from the paper size table.

In step S14, the drawing size (ep
(x, epy) is equal to or smaller than the paper size (Xi, Yi). If this determination is affirmative, the flow advances to step S17 to change the paper size (Xi, Yi) to
Set as the paper size to be output to IOT5.

If step S14 is negative, that is, if the drawing size is larger, the paper size (Xi, Yi)
Since the image cannot be drawn on the sheet, the process proceeds to step S15 to obtain the next sheet size. In step S15, it is determined whether or not the loop counter i has reached the value of the sheet size type counter tcnt, that is, whether or not the comparison has been made with all the sheet sizes. If there is a paper size that has not yet been determined, the process proceeds to step S16, where the loop counter i is incremented (+1), and the process returns to step S13.

If all drawing sizes have been compared with the paper size, the process proceeds from step S15 to step S18. If step S15 is affirmative, it means that a paper size larger than the drawing size could not be detected as a result of the comparison for all paper sizes, and an error process is performed in step S18. For example, a message notifying the error is displayed on the display device 15.

In this manner, a sheet size on which a form can be drawn can be determined even when the form data does not have a sheet size. Therefore, the print data input from the host computer 2 is merged with the form on the video generator 10 and developed in the page buffer 11, and when this is transferred to the IOT 5, the paper size determined by the above processing is notified to the IOT 5. I do.

Next, the main functions of the printer control device for determining the paper size will be described with reference to a block diagram. In FIG. 1, a form data storage section 16 stores a plurality of forms, one of which is selected according to a form instruction input at the time of a print request. The form size determination unit 17 detects the size of the form based on the position information (coordinates) of the drawing element of the selected form data. A plurality of sheet size information (see FIG. 5) is registered in the sheet size table 18.

The paper size information and the size of the detected form are input to the size determination unit 19, and paper size information closest to and larger than the form size is determined as the paper size. The determined paper size information is set in the paper size storage unit 20. The paper size set in the paper size storage unit 20 is notified to the IOT 5 when the form and the print data are merged and output to the IOT 5.

As described above, the form data may be supplied from an external device together with the print data.
Therefore, in that case, the supplied form data is directly input to the size determination unit 19 and compared with the paper size.

[0028]

As is apparent from the above description, according to the present invention, the size of a form can be detected from a drawing element included in form data. Therefore, the output paper size can be determined even when the form data does not include the size information and the paper size is not supplied from an external device such as a host computer.

[Brief description of the drawings]

FIG. 1 is a block diagram illustrating a main part function for determining a paper size of a printer device according to an embodiment of the present invention.

FIG. 2 is a block diagram illustrating a hardware configuration of the printer device according to the embodiment of the present invention.

FIG. 3 is a diagram showing an example of the structure of form data.

FIG. 4 is a diagram illustrating an example of a print image of a form drawn based on form data.

FIG. 5 is a diagram illustrating an example of the structure of a paper size storage unit.

FIG. 6 is a flowchart of a process for outputting print image data to the IOT 5.

FIG. 7 is a diagram illustrating an xy coordinate system representing a form drawn based on a drawing element.

FIG. 8 is a flowchart (part 1) of a paper size determination process.

FIG. 9 is a flowchart (part 2) of a paper size determination process.

[Explanation of symbols]

1. Printer controller 2. Host computer
5 IOT, 16 Form data storage unit, 17
Form data size determination unit, 18: paper size table, 19: paper size determination unit, 20: paper size storage unit

Claims (2)

[Claims]
1. A printer apparatus for merging print data and form data and outputting the merged form data, comprising: a size presence / absence determining unit for determining whether a form size is registered in the form data; and a drawing included in the form data. Form size detection means for detecting the size of the area including the element, paper size storage means for registering a plurality of paper sizes, and registration when it is determined that the form size is not registered in the form data Among the paper sizes, a paper size larger than the area size detected by the form size detection means and closest to the area size is determined as a paper size for outputting the merged print data and form data. And a printer device.
2. The method according to claim 1, wherein the form size detecting means is a minimum rectangle including a drawing element farthest from the origin of the coordinates among the drawing elements in the form data whose position is represented by two-axis coordinates. 2. The printer device according to claim 1, wherein a rectangle having an origin as one vertex and a coordinate axis as a side is detected as an area size.
JP9335113A 1997-11-19 1997-11-19 Printer Pending JPH11151845A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP9335113A JPH11151845A (en) 1997-11-19 1997-11-19 Printer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP9335113A JPH11151845A (en) 1997-11-19 1997-11-19 Printer

Publications (1)

Publication Number Publication Date
JPH11151845A true JPH11151845A (en) 1999-06-08

Family

ID=18284923

Family Applications (1)

Application Number Title Priority Date Filing Date
JP9335113A Pending JPH11151845A (en) 1997-11-19 1997-11-19 Printer

Country Status (1)

Country Link
JP (1) JPH11151845A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7454146B2 (en) * 2005-03-07 2008-11-18 Lexmark International, Inc. Fuser assembly including memory

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7454146B2 (en) * 2005-03-07 2008-11-18 Lexmark International, Inc. Fuser assembly including memory

Similar Documents

Publication Publication Date Title
US5729665A (en) Method of utilizing variable data fields with a page description language
US7900139B2 (en) Layout control apparatus, layout control method, and layout control program
US6599325B2 (en) Method and system for flowing data to an arbitrary path defined by a page description language
US7319532B2 (en) Printing control apparatus and printing control method capable of accurately printing embedded font
JP3996579B2 (en) Form processing system for identifying active areas of machine-readable forms
US7006670B2 (en) Image processing method, image processing system and program
US5732230A (en) Computer user interface for manipulating image fragments using drag, drop and merge operations
EP0444922A2 (en) Modifying a graphics display image
US7330196B2 (en) Apparatus and method for image processing capable of accelerating image overlay process
US20060197999A1 (en) Image processing apparatus, image processing method, and image processing program
JP2004102712A (en) Printing device, printing instruction device, image forming device, printing method and program
JPH10105361A (en) Method and system for specifying object
US6209010B1 (en) Computer implemented method for wrapping data to an arbitrary path defined by a page description language
JP2559406B2 (en) Document creation device
US5509092A (en) Method and apparatus for generating information on recognized characters
US20050012760A1 (en) Image processing apparatus, image processing method, storage medium, and program
US20050093860A1 (en) Information processing apparatus and method, program for executing said method, and storage medium storing said program
DE3806223A1 (en) Method for generating a character image
JP2006050547A (en) Color image forming apparatus
GB2244886A (en) Apparatus for extracting a text region in a document image
US6654509B2 (en) Image processing apparatus, method, and system
US7916321B2 (en) Document processing apparatus and document processing method
US8375298B2 (en) Method and apparatus for processing layout and storage medium
US5878198A (en) Information processing apparatus and method and memory medium storing information processing program
US6232985B1 (en) Interactive, dynamic, automatic dimension arrangement generator for computer-aided drafting programs