[go: up one dir, main page]

KR20050077834A - Printer driver and auto arrangement method of printing data thereof - Google Patents

Printer driver and auto arrangement method of printing data thereof Download PDF

Info

Publication number
KR20050077834A
KR20050077834A KR1020040005323A KR20040005323A KR20050077834A KR 20050077834 A KR20050077834 A KR 20050077834A KR 1020040005323 A KR1020040005323 A KR 1020040005323A KR 20040005323 A KR20040005323 A KR 20040005323A KR 20050077834 A KR20050077834 A KR 20050077834A
Authority
KR
South Korea
Prior art keywords
print data
data
print
paper
printing
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.)
Withdrawn
Application number
KR1020040005323A
Other languages
Korean (ko)
Inventor
이상민
엄용인
Original Assignee
삼성전자주식회사
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 삼성전자주식회사 filed Critical 삼성전자주식회사
Priority to KR1020040005323A priority Critical patent/KR20050077834A/en
Publication of KR20050077834A publication Critical patent/KR20050077834A/en
Withdrawn legal-status Critical Current

Links

Classifications

    • AHUMAN NECESSITIES
    • A42HEADWEAR
    • A42BHATS; HEAD COVERINGS
    • A42B1/00Hats; Caps; Hoods
    • A42B1/18Coverings for protecting hats, caps or hoods against dust, rain, or sunshine
    • AHUMAN NECESSITIES
    • A42HEADWEAR
    • A42BHATS; HEAD COVERINGS
    • A42B1/00Hats; Caps; Hoods
    • A42B1/004Decorative arrangements or effects
    • AHUMAN NECESSITIES
    • A42HEADWEAR
    • A42CMANUFACTURING OR TRIMMING HEAD COVERINGS, e.g. HATS
    • A42C1/00Manufacturing hats
    • A42C1/06Manipulation of hat-brims
    • AHUMAN NECESSITIES
    • A42HEADWEAR
    • A42CMANUFACTURING OR TRIMMING HEAD COVERINGS, e.g. HATS
    • A42C5/00Fittings or trimmings for hats, e.g. hat-bands
    • A42C5/02Sweat-bands
    • AHUMAN NECESSITIES
    • A61MEDICAL OR VETERINARY SCIENCE; HYGIENE
    • A61FFILTERS IMPLANTABLE INTO BLOOD VESSELS; PROSTHESES; DEVICES PROVIDING PATENCY TO, OR PREVENTING COLLAPSING OF, TUBULAR STRUCTURES OF THE BODY, e.g. STENTS; ORTHOPAEDIC, NURSING OR CONTRACEPTIVE DEVICES; FOMENTATION; TREATMENT OR PROTECTION OF EYES OR EARS; BANDAGES, DRESSINGS OR ABSORBENT PADS; FIRST-AID KITS
    • A61F9/00Methods or devices for treatment of the eyes; Devices for putting in contact-lenses; Devices to correct squinting; Apparatus to guide the blind; Protective devices for the eyes, carried on the body or in the hand
    • A61F9/04Eye-masks ; Devices to be worn on the face, not intended for looking through; Eye-pads for sunbathing
    • A61F9/045Eye-shades or visors; Shields beside, between or below the eyes

Landscapes

  • Health & Medical Sciences (AREA)
  • Engineering & Computer Science (AREA)
  • Vascular Medicine (AREA)
  • Ophthalmology & Optometry (AREA)
  • Biomedical Technology (AREA)
  • Heart & Thoracic Surgery (AREA)
  • Manufacturing & Machinery (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Animal Behavior & Ethology (AREA)
  • General Health & Medical Sciences (AREA)
  • Public Health (AREA)
  • Veterinary Medicine (AREA)
  • Record Information Processing For Printing (AREA)

Abstract

프린터 드라이버 및 그의 인쇄 데이터 정렬방법이 개시된다. 본 프린터 드라이버는, 인쇄 데이터가 인쇄될 인쇄용지의 규격을 파악하는 용지파악부, 인쇄 데이터가 작성되거나 열람된 응용 프로그램의 종류를 파악하여 인쇄 데이터의 행 또는 페이지의 구분이 되어 있는지 여부를 판단하는 데이터 판단부, 인쇄 데이터의 행을 용지파악부에 의해 파악된 인쇄용지의 규격에 따라 소정 길이를 갖도록 분할하고, 분할된 각 행의 시작 위치를 맞추어 정렬하는 데이터 정렬부, 및 데이터 판단부로부터의 판단에 따라 인쇄 데이터가 행 또는 페이지의 구분이 되어 있지 않을 때, 사용자의 선택에 따라 데이터 정렬부를 작동시켜 인쇄 데이터를 정렬시키도록 제어하는 제어부를 포함하는 것을 특징으로 한다. 이에 의해, 익스플로러나 네비게이터를 통해 제공되는 인쇄 데이터가 잘리는 것을 방지할 수 있으므로, 종래에 인쇄 데이터가 잘리는 것을 방지하기 위해 인쇄용지를 가로로 배치시켜 인쇄할 때 발생하는 인쇄용지의 낭비를 방지할 수 있을 뿐만 아니라, 종래에 인쇄 데이터를 워드 프로세서에 복사하여 편집함으로써 발생하는 시간의 낭비를 방지할 수 있다. A printer driver and a method of aligning print data thereof are disclosed. The printer driver determines whether the print data is classified as a line or page of print data by identifying a paper grasping part that grasps the specification of the print paper on which the print data is to be printed, and the type of application in which the print data is created or viewed. A data arranging unit for dividing the rows of print data to have a predetermined length in accordance with the specification of the printing paper grasped by the paper grasping unit, and aligning the starting position of each divided row to and from the data judging unit; And a control unit for controlling the print data to be aligned by operating the data alignment unit according to the user's selection when the print data is not divided into lines or pages according to the determination. As a result, the print data provided through the explorer or the navigator can be prevented from being cut, so that waste of the print paper generated when printing by placing the print sheet horizontally in order to prevent the print data from being cut in the past can be prevented. In addition, it is possible to prevent waste of time caused by conventionally copying and editing print data to a word processor.

Description

프린터 드라이버 및 그의 인쇄 데이터 자동 정렬방법{PRINTER DRIVER AND AUTO ARRANGEMENT METHOD OF PRINTING DATA THEREOF}Printer driver and automatic print data alignment method {PRINTER DRIVER AND AUTO ARRANGEMENT METHOD OF PRINTING DATA THEREOF}

본 발명은 프린터 드라이버 및 그의 인쇄 데이터 자동 정렬방법에 관한 것으로서, 보다 상세하게는, 행과 페이지의 구분이 없는 응용 프로그램으로 작성된 문서의 인쇄시, 인쇄 데이터의 행을 자동으로 정렬시켜 줌으로써, 인쇄용지의 낭비를 방지하고 사용자의 편의를 도모할 수 있도록 하는 프린터 드라이버 및 그의 인쇄 데이터 자동 정렬방법에 관한 것이다. The present invention relates to a printer driver and a method for automatically arranging print data thereof, and more particularly, to automatically sorting rows of print data when printing a document created by an application program having no distinction between rows and pages. The present invention relates to a printer driver and a method of automatically arranging print data thereof, which can prevent waste of waste and facilitate user convenience.

일반적으로 프린터는 컴퓨터와 연결되어 컴퓨터의 응용 프로그램에서 작성되거나 열람된 인쇄 데이터를 전송 받아 이를 세팅된 인쇄 조건에 적합한 프린터 제어용 언어로 변환하고, 잉크나 토너 등의 유색 염료 등을 사용하여 용지에 결과물을 출력하는 기기이다. In general, the printer is connected to a computer, receives the print data created or read by the application of the computer, converts it into a language for controlling the printer suitable for the set printing conditions, and prints the result on paper using colored dyes such as ink or toner. It is a device that outputs.

이러한 프린터는 컴퓨터와 인터페이스 가능하게 연결되어 있으며, 프린터를 위한 입출력 인터페이스는 종래에는 36핀 플러그를 가진 병렬 센트로닉스 인터페이스가 사용되어 왔으나, 최근에는 거의 USB와 같은 직렬 인터페이스나 fireware 등이 사용되는 추세이다. These printers are connected to a computer so that they can be interfaced with each other, and the input / output interface for the printer has been used in parallel with a census census interface with a 36-pin plug, but recently, a serial interface such as USB or fireware is used. .

한편, 컴퓨터에는 프린트와 인터페이스하여 프린팅 작업이 가능하도록 프린터 드라이버가 설치되어 있는데, 프린터 드라이버는 컴퓨터의 응용프로그램에서 작성된 인쇄 데이터를 프린터에서 해석가능한 프린터 언어(Printer Language ; 이하 '프린터 제어용 언어'라 함)로 변환하는 역할을 수행한다. 프린터 제어용 언어는 출력될 문서를 어떻게 구성할 것인지를 지시하기 위해 컴퓨터가 프린터로 보내는 명령어들로서, 이러한 명령어들은 글꼴의 크기, 그래픽, 프린터로 보내지는 인쇄 데이터의 압축, 색상 등을 관리한다. 프린터 제어용 언어로 주로 사용되는 것으로는 포스트스크립트와 PCL이 있다. On the other hand, a printer driver is installed in the computer so that the printer can interface with the printer for printing. The printer driver is referred to as a printer language (hereinafter referred to as a printer control language) that can interpret print data created by an application program on the computer. It converts to). The language for printer control is commands that a computer sends to a printer to indicate how to construct a document to be printed. These commands manage font size, graphics, compression of print data sent to the printer, and color. Commonly used languages for printer control include PostScript and PCL.

한편, 컴퓨터에 설치되어 사용자에 의해 특정한 업무를 수행하기 위한 목적으로 사용되는 응용 프로그램은, 일반적으로 사용자가 문서나 그림 등을 작성하거나, 인터넷이나 LAN 등의 네트워크에 접근하여 정보를 수집하기 위해 사용되고 있다. 대표적 응용 프로그램으로는, 아래아 한글, 마이크로소프트 워드, 훈민정음과 같은 워드 프로세서, 회계 등의 계산을 위한 엑셀, 그림 제작을 위한 포토샵, HTML문서를 작성하거나 소스를 보기위한 노트패드, 인터넷을 통한 정보의 표시를 지원하기 위한 익스플로러, 네비게이터 등이 있다. On the other hand, an application program installed on a computer and used for a specific task by a user is generally used for a user to create a document or a picture, or to collect information by accessing a network such as the Internet or a LAN. have. Representative applications include: Hanga Hangul, Microsoft Word, Word Processors such as Hunminjeongeum, Excel for accounting calculations, Photoshop for creating pictures, Notepad for creating HTML documents or viewing sources, and information on the Internet. There is an explorer, navigator, etc. to support the display.

프린터 드라이버는 이러한 응용 프로그램에서 작성되거나 열람된 문서 또는 그림 등으로 이루어진 인쇄 데이터를 프린터 제어용 언어로 변환시키게 되며, 이러한 응용 프로그램은, 인쇄용지의 규격과 인쇄양식에 따라 인쇄 데이터를 정렬시키는 기능을 갖는 경우와, 별도의 정렬기능을 갖지 않으며 인쇄 데이터의 페이지나 행의 구별이 없어 인쇄용지의 규격에 상관없이 모니터에 보여진대로 인쇄되는 경우가 있다. The printer driver converts print data composed of documents or pictures created or viewed by such an application into a language for controlling the printer. The application program has a function of aligning the print data according to the specification and printing form of the printing paper. In some cases, there is no separate sorting function, and there is no distinction between pages or rows of print data, so that printing may be performed as shown on the monitor regardless of the size of the printing paper.

인쇄 데이터를 정렬시키는 갖는 응용 프로그램으로는, 주로 아래아 한글, 마이크로소프트 워드, 훈민정음과 같은 워드 프로세서 등이 있으며, 아래아 한글 등의 워드 프로세서 등에서는 문서의 작성시 인쇄용지의 규격에 맞추어 인쇄될 형태대로 문서가 작성된다. 즉, 워드 프로세서에서는 인쇄용지의 좌우 및 상하 여백과 머리말, 꼬리말 등의 인쇄양식이 미리 설정되어 있거나 사용자가 임의대로 설정할 수 있도록 되어 있고, 이렇게 설정된 인쇄용지와 인쇄양식에 맞추어 문서가 작성될 뿐만 아니라 작성된 그대로 인쇄된다. Application programs that align the print data include mainly word processors such as Haa Hangul, Microsoft Word, and Hunminjeongeum. The document is created. That is, in the word processor, print forms such as left and right, top and bottom margins, headers, and footers of printing paper are set in advance or can be set arbitrarily by the user, and the document is created not only in accordance with the printing paper and printing forms thus set. Printed as it is created.

한편, 포토샵이나 엑셀 등의 응용 프로그램에서는 인쇄용지의 크기에 따라 인쇄 데이터의 크기를 변환할 수 있는 기능이 지원된다. 일반적으로 포토샵을 통해 작성된 그림이나 엑셀 등에서 작성된 표의 경우에는 그 크기나 내용이 천차만별이므로, 포토샵이나 엑셀 등에서는 인쇄용지가 선택되면, 그림이나 표의 크기가 자동으로 확대 또는 축소시키거나, 사용자가 그 크기를 설정할 수 있도록 하고 있다. On the other hand, applications such as Photoshop or Excel support the function of converting the size of the print data according to the size of the print paper. In general, in case of a table created in Photoshop or Excel, the size and contents of the table are different only. Therefore, when printing paper is selected in Photoshop or Excel, the size of the figure or table is automatically enlarged or reduced or the user It allows you to set.

이에 반해, 인쇄 데이터의 정렬 기능이 없는 응용 프로그램으로는, 익스플로러, 네비게이터를 들 수 있다. 일반적으로 익스플로러나 네비게이터를 통해 열람되는 인터넷 데이터들은 행이나 페이지의 구분이 없는 응용 프로그램인 노트패드나 메모장에서 작성된 경우가 대부분이다. 따라서, 최초의 문서 작성자가 인쇄용지의 규격을 고려하지 아니하고 문서를 작성하는 경우, 행의 길이가 길어질 수 있으며, 익스플로러나 네비게이터를 통해 열람할 수 있는 대부분의 인터넷 문서들은 가장 보편적으로 사용되는 인쇄용지인 A4의 폭보다 행의 길이가 길다. 이에 따라, 도 1에 도시된 바와 같이, 인쇄용지의 규격을 고려하지 아니하고 작성된 문서를 익스플로러나 네비게이터를 통해 열람한 상태에서 인쇄하면, 도 2에 도시된 바와 같이, 문서의 내용이 일부분인 행의 오른쪽이 잘려나가는 상황이 발생하게 된다. On the other hand, as an application program which does not have a sorting function of print data, an Explorer and a navigator are mentioned. In general, Internet data viewed through Explorer or Navigator is often written in Notepad or Notepad, an application with no line or page separation. Therefore, if the original document author creates a document without considering the specifications of the paper, the length of the line may be long, and most Internet documents that can be viewed through the explorer or the navigator are the most commonly used printing papers. The length of the row is longer than the width of A4. Accordingly, as shown in FIG. 1, when a document prepared without considering the standard of printing paper is printed while being browsed through an explorer or a navigator, as shown in FIG. The right side is cut off.

이를 해소하기 위해 사용자는 일반적으로 다음의 2가지 방법을 주로 사용하게 된다. In order to solve this problem, users generally use the following two methods.

첫번째 방법은, 인쇄 데이터의 행의 길이가 긴 경우, 인쇄용지의 방향을 가로로 설정하여 인쇄하는 방법이다. 대부분의 인쇄 데이터가 아무리 길어도 인쇄용지의 가로 길이를 넘는 경우는 거의 없으므로, 인쇄 데이터가 잘려나가는 것을 방지할 수 있는 좋은 방법이다. 그러나, 인쇄용지를 가로로 설정하여 인쇄하게 되면, 세로로 설정하여 인쇄할 때보다 상대적으로 적은 수의 행이 한 페이지에 인쇄가 되므로, 세로로 설정하여 인쇄할 때보다 여러 장의 인쇄용지가 사용된다. 따라서, 인쇄용지가 낭비될 뿐만 아니라, 일반적으로 가로로 인쇄하게 되면 보기에도 불편하다는 단점이 있다. In the first method, when the length of a line of print data is long, printing is performed by setting the direction of the print paper horizontally. No matter how long most of the print data is, the print paper rarely exceeds the width of the print paper, so it is a good way to prevent the print data from being cut off. However, when printing with horizontal printing paper, fewer lines are printed on one page than when printing with vertical printing. Therefore, several sheets of printing paper are used than when printing with vertical printing. . Therefore, printing paper is not only wasted, but in general, it is inconvenient to see when printing horizontally.

두번째 방법은, 워드 프로세서와 같이 인쇄 데이터의 정렬 기능이 제공되는 응용 프로그램에 복사한 다음 인쇄를 하게 된다. 그런데, 도 1에 도시된 바와 같이 익스플로러나 네비게이터에 열람된 인쇄 데이터를 워드 프로세서인 아래아 한들에 복사하게 되면, 인쇄용지의 폭보다 길어진 부분은 다음 행으로 내려가거나, 도 3에 도시된 바와 같이, 아예 화면에 보이지 않는 현상이 발생한다. 앞의 경우에는, 첫번째 행의 길어진 부분이 두번째 행으로 내려가고, 원래의 두번째 행은 세번째 행으로 내려하게 되며, 다시 두번째 행에서 길어진 부분은 네번째 행으로 내려가게 된다. 즉, 익스플로러나 네비게이터에서 직접 인쇄시 잘려나가야 할 자투리 부분이 다음 행으로 내려가면서 전체적으로 인쇄 데이터의 행의 수가 두 배가 된다. In the second method, a copy is made to an application program that provides an alignment function of print data, such as a word processor, and then printed. However, when the print data browsed in the explorer or the navigator as shown in FIG. 1 is copied to a lower word, which is a word processor, a portion longer than the width of the print paper is moved down to the next row, or as shown in FIG. There is a phenomenon that is not visible on the screen at all. In the previous case, the longer part of the first row goes down to the second row, the original second row goes down to the third row, and the longer part of the second row goes down to the fourth row. That is, the number of lines of print data is doubled as the part of the cutout to be cut off when printing directly from the explorer or the navigator goes to the next line.

두 경우 모두, 사용자는 보기 좋게 인쇄 데이터를 정리하기 위해, 각 행의 뒷부분에 다음 행을 끌어올리고, 남은 부분은 다시 분할하여 그 다음 행으로 보내는 등 행을 일일이 편집하여 정렬시켜야 한다. 이러한 방법은 인쇄용지의 규격에 맞게 인쇄 데이터를 정렬시켜 보기좋게 인쇄할 수 있다는 장점이 있으나, 인쇄 데이터를 정렬시키기 위해 사용자가 많은 시간을 들여야 한다는 문제점이 있다. In both cases, the user must edit and sort the rows manually, pulling up the next row at the end of each row, splitting up the remaining parts into the next row, and so on, to better organize the print data. This method has the advantage that the print data can be aligned and printed in accordance with the standard of the printing paper, but there is a problem that the user has to spend a lot of time to align the print data.

더구나, 사용자가 인쇄를 하기 전에는 인쇄 데이터의 오른쪽이 잘려나갈지 알 수 없기 때문에 인쇄를 하게 된다. 그런 다음, 인쇄 데이터가 잘려나간 경우에는 다시 상기의 방법 중 하나를 적용하여 다시 인쇄를 하게 되므로, 인쇄용지의 낭비를 가져오고, 인쇄시간이 연장된다는 문제점이 있다. In addition, since the right side of the print data is not known until the user prints, the user prints. Then, when the print data is cut off, the printing is performed again by applying one of the above methods, resulting in waste of printing paper and prolonging the printing time.

이에 따라, 익스플로러, 네비게이터와 같이 문서의 행과 페이지가 구분되지 아니하는 응용 프로그램으로 작성된 문서의 인쇄시, 인쇄용지를 가로로 설정하여 인쇄하거나, 타 응용 프로그램에서 다시 편집하지 아니하더라도 인쇄용지의 규격에 맞게 정렬된 형태로 인쇄할 수 있는 방법을 모색하여야 할것이다. Accordingly, when printing a document created by an application that does not distinguish line and page of the document, such as Explorer or Navigator, the printing paper specification can be printed even if the paper is set horizontally or edited by another application. You will need to find a way to print in a form that is aligned to the.

따라서, 본 발명의 목적은, 문서의 행과 페이지가 구분되지 아니하는 응용 프로그램으로 작성된 문서의 인쇄시, 인쇄용지의 규격에 따라 문서의 행이 자동으로 정렬되도록 함으로써, 인쇄 데이터의 일부가 잘려나가는 것을 방지하여 인쇄용지의 낭비를 방지하고 사용자의 편의를 도모할 수 있도록 하는 프린터 드라이버 및 그의 인쇄 데이터 자동 정렬방법을 제공하는 것이다. Accordingly, an object of the present invention is to cut a part of print data by automatically aligning a line of a document in accordance with a standard of printing paper when printing a document created by an application program in which a line of a document and a page are not distinguished. It is to provide a printer driver and a method of automatically arranging print data thereof, which can prevent the waste of printing paper and prevent user's convenience.

이러한 목적을 달성하기 위한 본 발명의 구성은, 컴퓨터에 설치되어 응용 프로그램에서 작성되거나 열람된 인쇄 데이터를 인쇄하기 위해 지원하는 프린터 드라이버에 있어서, 상기 인쇄 데이터가 인쇄될 인쇄용지의 규격을 파악하는 용지파악부; 상기 인쇄 데이터가 작성되거나 열람된 응용 프로그램의 종류를 파악하여 상기 인쇄 데이터의 행 또는 페이지의 구분이 되어 있는지 여부를 판단하는 데이터 판단부; 상기 인쇄 데이터의 행을 상기 용지파악부에 의해 파악된 인쇄용지의 규격에 따라 소정 길이를 갖도록 분할하고, 분할된 각 행의 시작 위치를 맞추어 정렬하는 데이터 정렬부, 및 상기 데이터 판단부로부터의 판단에 따라 상기 인쇄 데이터가 행 또는 페이지의 구분이 되어 있지 않을 때, 사용자의 선택에 따라 상기 데이터 정렬부를 작동시켜 상기 인쇄 데이터를 정렬시키도록 제어하는 제어부를 포함하는 것을 특징으로 한다. The configuration of the present invention for achieving this object is a printer driver installed in a computer and supporting for printing print data created or read by an application program, the paper for grasping the specification of the print paper on which the print data is to be printed. Grasping unit; A data determination unit which determines a type of an application program in which the print data is created or viewed and determines whether a line or page of the print data is divided; A data arranging unit for dividing the rows of print data to have a predetermined length according to the specification of the printing paper grasped by the paper grasping unit, and aligning the starting position of each divided row, and judging from the data determination unit And a control unit for controlling the print data to be aligned by operating the data alignment unit according to a user's selection when the print data is not divided into rows or pages.

상기 용지파악부는, 상기 인쇄 데이터가 작성된 응용 프로그램에서 설정된 인쇄용지의 크기 및 여백을 파악하는 것이 바람직하다. It is preferable that the paper catching unit grasps the size and margin of the print paper set in the application program in which the print data is created.

상기 데이터 판단부는, 상기 인쇄 데이터를 제공한 응용 프로그램이 익스플로러와 네비게이터 중 적어도 하나인지 아닌지를 파악할 수 있다. The data determination unit may determine whether the application program providing the print data is at least one of an explorer and a navigator.

상기 데이터 정렬부는, 상기 응용 프로그램으로부터 제공된 상하 및 좌우 여백의 크기, 행의 시작점의 위치, 행의 끝점의 위치 등의 정보 중 적어도 하나를 고려하여 상기 인쇄 데이터가 상기 인쇄용지에 모두 인쇄되도록 상기 행의 분할길이를 결정하는 것이 바람직하다. The data aligning unit is configured to print the print data on the printing paper in consideration of at least one of information such as the size of the top and bottom and left and right margins, the position of the start point of the line, and the position of the end point of the line provided from the application program. It is desirable to determine the dividing length of.

상기 데이터 정렬부는 상기 인쇄 데이터의 문단 시작시 들여쓰기가 설정된 경우, 두번째 행부터는 들여쓰기가 적용되지 아니하도록 행을 정렬하는 것이 바람직하다. When the indentation is set at the beginning of the paragraph of the print data, the data alignment unit preferably arranges the rows so that the indentation is not applied from the second row.

상기 목적을 달성하기 위한 본 프린터 드라이버를 이용한 인쇄 데이터 정렬방법은, 상기 인쇄 데이터가 인쇄될 인쇄용지의 규격을 파악하는 단계; 상기 인쇄 데이터가 작성되거나 열람된 응용 프로그램의 종류를 파악하여 상기 인쇄 데이터의 행 또는 페이지의 구분이 되어 있는지 여부를 판단하는 단계; 상기 인쇄 데이터의 행 또는 페이지의 구분이 되어 있지 아니한 경우, 상기 인쇄용지의 규격에 따라 상기 인쇄 데이터의 각 행을 소정 길이로 분할하는 단계, 및; 소정 길이로 분할된 상기 인쇄 데이터의 각 행의 시작 위치를 맞추어 정렬시키는 단계를 포함하는 것을 특징으로 한다. A print data alignment method using the printer driver to achieve the above object comprises the steps of: identifying a specification of a print paper on which the print data is to be printed; Determining whether a line or page of the print data is divided by identifying a type of an application program in which the print data is created or viewed; Dividing each row of the print data into a predetermined length according to a standard of the printing paper when the row of the print data or the page is not divided; and And aligning a start position of each row of the print data divided into a predetermined length.

상기 인쇄용지의 규격을 파악하는 단계는, 상기 인쇄 데이터가 작성되거나 열람된 응용 프로그램에서 설정된 인쇄용지의 크기 및 여백을 파악하는 단계인 것이 바람직하다. The step of determining the standard of the print paper is preferably a step of determining the size and margin of the print paper set in the application program in which the print data is created or viewed.

상기 응용 프로그램의 종류를 파악하는 단계는, 상기 인쇄 데이터를 제공한 응용 프로그램이 익스플로러와 네비게이터 중 적어도 하나인지 아닌지를 파악하는 단계인 것이 바람직하다. The determining of the type of the application program may include determining whether the application program providing the print data is at least one of an explorer and a navigator.

상기 인쇄 데이터의 각 행을 소정 길이로 분할하는 단계는, 상기 인쇄용지의 상하 및 좌우 여백의 크기, 행의 시작점의 위치, 행의 끝점의 위치 등의 정보 중 적어도 하나를 고려하여 상기 인쇄 데이터가 상기 인쇄용지에 모두 인쇄되도록 상기 행의 분할길이를 산출하여 분할하는 단계인 것이 바람직하다. The dividing each row of the print data into a predetermined length may include printing the print data in consideration of at least one of information such as the size of the top and bottom and left and right margins of the print paper, the position of the start point of the line, and the position of the end point of the line. Preferably, the dividing length of the row is calculated and divided so as to be printed on the printing paper.

상기 인쇄 데이터의 각 행의 시작 위치를 맞추어 정렬시키는 단계는, 상기 인쇄 데이터의 문단 시작시 들여쓰기가 설정된 경우에는 두번째 행에서는 들여쓰기가 적용되지 아니하도록 행을 정렬할 수 있다. In the step of aligning the start position of each line of the print data, when the indentation is set at the beginning of the paragraph of the print data, the second line may be arranged such that the indentation is not applied.

이하에서는 첨부도면을 참조하여 본 발명을 상세히 설명한다. Hereinafter, the present invention will be described in detail with reference to the accompanying drawings.

도 4는 프린팅 작업을 위해 컴퓨터 측에 구비되는 시스템의 구성 블럭도이다. 일반적으로 컴퓨터는, 본체내에 CPU(10), ROM(16), RAM(17), 인터페이스(15) 등이 장착되어 있고, 컴퓨터에 입출력되는 데이터의 디스플레이를 위한 모니터(11)와, 데이터의 입출력을 선택하기 위한 마우스(13)나 키보드(12)가 연결되어 있다. 4 is a block diagram showing the configuration of a system provided on the computer side for printing. In general, a computer is provided with a CPU 10, a ROM 16, a RAM 17, an interface 15, and the like in a main body, and a monitor 11 for displaying data input to and output from a computer and input / output of data. A mouse 13 or keyboard 12 for selecting is connected.

여기서, 인터페이스(15)는 컴퓨터와 프린터(20)를 연결하며, 프린터 드라이버(30)에서 변환된 변환 데이터를 프린터(20)로 전송하고, 프린터(20)로부터 전송된 프린터(20)의 상태를 CPU(10)로 제공하는 역할을 한다. Here, the interface 15 connects the computer and the printer 20, transmits the converted data converted by the printer driver 30 to the printer 20, and displays the state of the printer 20 transmitted from the printer 20. It serves to provide to the CPU (10).

RAM(17)에는 사용자에 의해 특정한 업무를 수행하기 위한 응용프로그램과, 컴퓨터의 동작을 위한 동작 프로그램 및 일반적인 제어 프로그램과, CPU(10)의 제어에 따라 응용프로그램에서 작성된 각종 문서 및 이미지 파일을 프린터(20)에서 해석가능한 프린터 제어 언어로 변환하고 프린터(20)의 동작상태를 제어하는 프린터 드라이버(30)가 저장되어 있다. In the RAM 17, an application program for performing a specific task by a user, an operation program and a general control program for operating a computer, and various documents and image files created by the application program under the control of the CPU 10 are printed. The printer driver 30 for converting into a printer control language interpretable at 20 and controlling the operation state of the printer 20 is stored.

일반적으로 컴퓨터에 설치되어 사용되는 응용 프로그램으로는, 아래아 한글, 마이크로소프트 워드, 훈민정음과 같은 워드 프로세서, 회계 등의 계산을 위한 엑셀, 그림 제작을 위한 포토샵, HTML문서를 작성하거나 소스를 보기위한 노트패드, 월드와이드웹을 통한 정보를 열람할 수 있도록 지원하는 익스플로러, 네비게이터 등이 있다. Common applications installed on the computer include: Hangul Hangul, Microsoft Word, Word Processors such as Hunminjeongeum, Excel for accounting calculations, Photoshop for creating pictures, Notes for creating HTML documents, or notes for viewing the source. There are pads, explorers, and navigators that let you view information on the World Wide Web.

프린터 드라이버(30)는 인쇄 데이터를 인쇄용지에 맞추어 정렬시킬 수 있도록 하는 기능을 제공하며, 이를 위해서, 도 5에 도시된 바와 같이, 데이터 변환부(37), 메모리(32), 데이터 판단부(34), 용지파악부(33), 데이터 정렬부(35), 제어부(31)를 구비하고 있다. The printer driver 30 provides a function to align the print data with the print paper, and for this purpose, as illustrated in FIG. 5, the data conversion unit 37, the memory 32, and the data determination unit ( 34), a paper catching part 33, a data sorting part 35, and a control part 31 are provided.

데이터 변환부(37)는, 인쇄 데이터를 프린터 제어용 언어인 명령어로 변환시킨다. 즉, 데이터 변환부(37)는, 컴퓨터의 응용프로그램을 통해 작성된 각종 문서 파일과 이미지 파일과 같은 프린팅 데이터를 프린터(20)에서 해석가능한 포스트 스크립트와 PLC와 같은 프린터 제어용 언어로 변환시킨다. 이렇게 프린팅 데이터를 프린터 제어용 언어로 변환시키는 과정은 윈도우즈에서 지원하는 GDI 기능을 호출하여 명령어를 생성하는 과정이다. The data conversion unit 37 converts the print data into a command that is a language for printer control. In other words, the data conversion unit 37 converts printing data such as various document files and image files created through an application program of a computer into a printer control language such as PostScript and PLC that can be interpreted by the printer 20. The process of converting the printing data into the language for printer control is a process of generating a command by calling a GDI function supported by Windows.

메모리(32)는, 데이터 변환부(37)에서 변환시킬 데이터를 일시적으로 저장하거나, 데이터 정렬부(35)에서 정렬될 예정이거나 정렬된 데이터를 일시적으로 저장하게 된다. The memory 32 temporarily stores data to be converted in the data conversion unit 37, or temporarily stores data to be or is to be aligned in the data alignment unit 35.

데이터 판단부(34)는, 인쇄 데이터가 작성된 응용 프로그램의 종류를 파악하여 인쇄 데이터의 정렬기능이 있는지 여부를 판단하게 된다. 즉, 데이터 판단부(34)는, 인쇄 데이터가 작성되거나 편집 또는 열람된 응용 프로그램이, 미리 또는 사용자의 선택에 의해 결정된 인쇄양식이나 인쇄용지의 크기에 따라 인쇄 데이터를 정렬시키는 기능을 제공하는 응용 프로그램인지, 아니면 인쇄 데이터를 정렬시키는 기능을 갖지 않는 응용 프로그램인지 판단한다. The data determination unit 34 determines the type of the application program in which the print data is written and determines whether the print data alignment function is present. In other words, the data determination unit 34 is an application in which print data is created, edited or viewed, and provides an application for arranging print data according to a print form or print paper size determined in advance or by a user's selection. Determine whether it is a program or an application that does not have a function to align print data.

일반적으로 워드 프로세서, 엑셀 등 대부분의 응용 프로그램이 인쇄용지의 크기에 맞추어 인쇄 데이터를 정렬시키는 기능을 지원하고 있다. 이에 반해, 익스플로나 네비게이터와 같은 인터넷 지원 프로그램은, 인쇄 데이터를 정렬시키는 기능을 지원하고 있지 아니하다. 또한, 익스플로러나 네비게이터를 통해 월드와이드웹에 접속하여 데이터를 열람할 때, 모니터(11)의 크기나 해상도에 따라 데이터가 모니터(11)에 표시되는 크기가 상이하기 때문에 사용자는 인쇄시 데이터의 모든 내용이 인쇄용지내에 인쇄될지 여부를 알 수 없을 뿐만 아니라, 실제 인쇄시 많은 데이터의 일부가 잘린 상태로 인쇄되는 경우가 많다. In general, most applications such as word processors and Excel support the function of aligning print data to the size of the print paper. In contrast, Internet-enabled programs such as Explorer and Navigator do not support the ability to sort print data. In addition, when viewing the data by accessing the World Wide Web through an explorer or a navigator, the size of the data displayed on the monitor 11 is different depending on the size or resolution of the monitor 11. Not only whether the content is printed on the printing paper is not known, but in actual printing, a large part of the data is often printed in a state of being cut off.

따라서, 데이터 판단부(34)에서는 인쇄될 인쇄 데이터가 작성되거나 제공되는 응용 프로그램이 익스플로러나 네비게이터인지를 판단함으로써, 데이터 정렬부(35)를 동작시켜 인쇄 데이터를 정렬할 필요가 있는지 여부를 제어부(31)에서 판단할 수 있도록 한다. Accordingly, the data determining unit 34 determines whether the application program in which the print data to be printed is created or provided is an explorer or a navigator, thereby controlling whether or not the print data needs to be aligned by operating the data aligning unit 35. 31).

용지파악부(33)는, 인쇄 데이터가 인쇄될 인쇄용지의 규격, 예를 들어, A4, A3, B4, B5, 편지봉투 등으로 나타나는 규격을 파악한다. 일반적으로 응용 프로그램에 따라 상이하나, 아래아 한글, 훈민정음, 마이크로소프트 워드 같은 워드프로세서는 문서의 작성시 A4용지를 기준으로 작성하도록 설정되어 있다. 즉, 사용자에 의해 다른 용지로 설정되지 아니하는한 A4용지 규격에 맞도록 용지의 여백 등이 설정되어 있기 때문에, 문서의 작성은 물론 인쇄시에 A4용지가 기준이 된다. 이에 따라, 용지파악부(33)에서는 초기에는 응용 프로그램에서 기준으로 설정하고 있는 용지규격을 감지하여 인쇄될 용지규격을 파악하고, 사용자에 의해 용지규격이 변경되는 경우에는 변경되는 내용을 업데이트하여 최종적으로 인쇄에 사용될 인쇄용지의 규격을 파악한다. 또한, 용지파악부(33)에서는 익스플로러나 네비게이터로부터 인쇄 데이터가 제공된 경우에는, 익스플로러나 네비게이터로부터 인쇄 데이터 각 행의 시작점의 위치와 끝점의 위치, 인쇄를 위해 설정된 인쇄 데이터의 상하 및 좌우 여백 등의 정보를 제공받는다. 제어부(31)에서는 용지파악부(33)에서 파악된 인쇄용지의 규격 및 여백 등의 정보를 메모리(32)에 일시적으로 저장시킨다. The paper detection unit 33 grasps the standard of the printing paper to which the print data is to be printed, for example, a standard indicated by A4, A3, B4, B5, envelopes, or the like. Generally, depending on the application program, word processors such as Hanga Hangul, Hunminjeongeum, and Microsoft Word are set up to create A4 paper based on the document. That is, since the margins of the paper and the like are set so as to meet the A4 paper standard unless the paper is set to another paper by the user, the A4 paper is used as the basis for creating the document and printing. Accordingly, the paper detection unit 33 detects the paper standard that is initially set as a standard in the application program, grasps the paper standard to be printed, and updates the changed content when the paper standard is changed by the user. Determine the standard of printing paper to be used for printing. In addition, when print data is provided from the explorer or the navigator 33, the paper detecting unit 33 provides the positions of the start and end points of each line of the print data from the explorer or the navigator, the top and bottom, left and right margins of the print data set for printing, and the like. Get information. The control unit 31 temporarily stores information such as the size and margin of the printing paper grasped by the paper detecting unit 33 in the memory 32 temporarily.

한편, 데이터 판단부(34)로부터의 판단 결과, 인쇄 데이터를 정렬시킬 필요가 있으면, 데이터 정렬부(35)가 작동된다. 데이터 정렬부(35)는, 용지파악부(33)로부터 인쇄 데이터의 정보, 예를 들면, 인쇄 데이터 각 행의 시작점의 위치와 끝점의 위치, 인쇄를 위해 설정된 인쇄 데이터의 상하 및 좌우 여백 등의 정보를 제공받는다. 그리고 데이터 정렬부(35)는 수집된 인쇄 데이터를 통해 각 행의 길이를 산출하고, 산출된 각 행의 길이와, 용지파악부(33)에서 파악된 인쇄용지의 규격을 비교함으로써, 인쇄시 인쇄 데이터의 각 행이 잘릴 염려가 없는지를 판단한다. 인쇄 데이터의 행이 잘릴 염려가 있다고 판단되면, 데이터 정렬부(35)는 인쇄 데이터의 각 행의 길이를 인쇄용지의 규격에 맞추어 적당한 길이로 분할한다. 이 때, 데이터 정렬부(35)는 인쇄용지의 규격과 여백을 고려하여 인쇄 데이터의 각 행이 인쇄용지내에 인쇄될 수 있는 최대 길이를 산출하고, 이 산출된 길이에 맞추어 각 행의 길이를 분할하게 된다. On the other hand, if it is necessary to align the print data as a result of the determination by the data determination unit 34, the data alignment unit 35 is operated. The data aligning unit 35 includes information on the print data from the paper catching unit 33, for example, the position of the start point and the end point of each row of the print data, the top and bottom, left and right margins of the print data set for printing, and the like. Get information. The data aligning unit 35 calculates the length of each row through the collected print data, and compares the calculated length of each row with the specifications of the printing paper determined by the paper catching unit 33, thereby printing at the time of printing. Determine if each row of data does not have to be truncated. If it is determined that the row of print data may be cut off, the data alignment unit 35 divides the length of each row of print data into appropriate lengths in accordance with the standard of the printing paper. At this time, the data aligning unit 35 calculates the maximum length that each row of print data can be printed on the printing paper in consideration of the size and margin of the printing paper, and divides the length of each row according to the calculated length. Done.

이렇게 인쇄 데이터의 각 행의 길이를 분할할 때, 데이터 정렬부(35)는 첫번째 행부터 순차적으로 행을 분할하게 된다. 즉, 첫번째 행으로부터 분할된 자투리를 두번째 행에 포함시키도록 하고, 첫번째 행의 자투리를 포함한 두번째 행을 인쇄용지의 규격에 맞추어 남는 자투리를 분할한 다음, 분할된 자투리를 세번째 행에 포함시키고, 다시 인쇄용지의 규격에 맞추어 세번째 행을 분할하는 방법으로 각 행을 정렬시키게 된다. 그리고 각 행을 정렬하던 중, 새로운 문단을 만나게 되면, 문단의 첫번째 행을 기준으로 다시 행을 정렬하게 된다. 이는 데이터 정렬부(35)로부터의 정렬로 인해 문단들이 합쳐지는 것을 막기 위한 것이다. When dividing the length of each row of print data in this way, the data alignment unit 35 divides the rows sequentially from the first row. That is, to include the snippet from the first line in the second line, divide the remaining slit including the snippet from the first line to the size of the printing paper, and then include the split snippet in the third line, and again Each row is aligned by dividing the third row according to the size of the printing paper. And while sorting each row, if a new paragraph is encountered, the rows are sorted again based on the first row of the paragraph. This is to prevent paragraphs from being merged due to the alignment from the data alignment unit 35.

한편, 제어부(31)는, 데이터 판단부(34)에서 제공된 응용 프로그램의 종류에 따라 데이터 정렬부(35)를 작동시킬지 여부를 판단하며, 데이터 정렬부(35)를 작동시킬 필요가 있으면, CPU(10)에 인쇄 데이터를 정렬시킬 필요가 있음을 알리게 된다. 그러면, CPU(10)에서는 모니터(11)를 통해 정렬이 필요함을 사용자에게 알림으로써, 사용자가 인쇄 데이터를 정렬시킬지 여부를 선택할 수 있도록 한다. 이 때, 사용자가 인쇄 데이터의 정렬을 선택하면, 제어부(31)는 데이터 정렬부(35)를 동작시켜 메모리(32)에 저장된 인쇄 데이터를 정렬하도록 한다. 또한, 인쇄 데이터의 정렬이 완료되면, 제어부(31)는 정렬된 인쇄 데이터를 데이터 변환부(37)로 제공하여 프린터 제어용 언어로 인쇄 데이터를 변환시킨 다음 스풀러로 제공하고, 스풀러에서는 인쇄 데이터를 순차적으로 프린터(20)로 제공하여 인쇄가 이루어지도록 한다. On the other hand, the controller 31 determines whether to operate the data alignment unit 35 according to the type of application program provided by the data determination unit 34, and if it is necessary to operate the data alignment unit 35, the CPU It is informed to (10) that the print data needs to be aligned. Then, the CPU 10 notifies the user that alignment is necessary through the monitor 11, so that the user can select whether or not to align the print data. At this time, if the user selects the alignment of the print data, the control unit 31 operates the data alignment unit 35 to align the print data stored in the memory 32. In addition, when the alignment of the print data is completed, the control unit 31 provides the aligned print data to the data conversion unit 37 to convert the print data into a language for controlling the printer, and then to the spooler, and the spooler sequentially supplies the print data. To the printer 20 to be printed.

이러한 구성에 의한 프린터 드라이버(30)를 이용한 인쇄 데이터의 정렬과정을 도 6 및 도 7을 참조하여 설명하면 다음과 같다. An arrangement process of print data using the printer driver 30 having such a configuration will be described below with reference to FIGS. 6 and 7.

사용자가 응용 프로그램을 이용하여 문서나 그림 등을 작성한 뒤 또는 익스플로러나 네비게이터를 이용하여 인터넷에 접속하여 데이터를 열람하던 중 데이터를 인쇄하려고 인쇄버튼을 선택하면(S510,S520), 인쇄 데이터와 함께 소정의 정보가 프린터 드라이버(30)로 제공된다(S530). 여기서, 소정의 정보란, 응용 프로그램에 따라 다소 상이하나, 주로 인쇄용지 규격, 인쇄여백 등 인쇄와 관련된 정보를 포함하며, 익스플로러나 네비게이터의 경우에는 인쇄 데이터에 포함된 문서에서 행의 시작점의 위치와 끝점의 위치에 대한 정보가 더 포함된다. When a user creates a document or a picture using an application program or accesses the Internet using an explorer or a navigator and selects a print button to print data (S510, S520), the user selects a print button with the print data. Information is provided to the printer driver 30 (S530). Here, the predetermined information is somewhat different depending on the application program, but mainly includes information related to printing such as printing paper size and printing margin, and in the case of the explorer or the navigator, the position of the starting point of the line in the document included in the print data Information about the location of the endpoint is further included.

인쇄 데이터와 함께 인쇄 정보를 제공받으면, 프린터 드라이버(30)의 제어부(31)에서는 인쇄 데이터를 일시적으로 메모리(32)에 저장하고, 데이터 판단부(34)를 작동시키며, 데이터 판단부(34)에서는 인쇄 데이터가 작성되거나 열람된 응용 프로그램을 파악한다. 이 때, 데이터 판단부(34)에서는 인쇄 데이터를 제공한 응용 프로그램이 워드 프로세서, 엑셀, 포토샵 등 인쇄 데이터를 정렬시키는 기능이 있는 응용 프로그램인지, 익스플로러나 네비게이터와 같이 인쇄 데이터의 정렬기능이 없는 응용 프로그램인지 여부를 구분하여 그 판단결과를 제어부(31)로 제공한다(S540). When the print information is provided together with the print data, the control unit 31 of the printer driver 30 temporarily stores the print data in the memory 32, operates the data determination unit 34, and the data determination unit 34. Identifies the application in which the print data was created or viewed. At this time, the data determination unit 34 is an application program that provides the print data is an application having a function of sorting the print data, such as a word processor, Excel, Photoshop, etc., or an application that does not have a print data sorting function such as an explorer or a navigator. Whether the program is classified or not is provided to the control unit 31 (S540).

응용 프로그램이 종류가 파악되면, 제어부(31)에서는 용지파악부(33)를 작동시켜 인쇄 데이터와 함께 제공된 인쇄 정보에서 인쇄용지의 규격과 인쇄 여백을 파악하도록 하고, 익스플로러나 네비게이터인 경우에는 행의 끝점과 시작점 등의 정보를 더 수집하도록 한다(S560). When the type of application is determined, the control unit 31 operates the paper catching unit 33 to determine the size and printing margin of the print paper from the print information provided with the print data, and in the case of the Explorer or Navigator, To collect more information such as the end point and the starting point (S560).

한편, 제어부(31)에서는 데이터 판단부(34)로부터의 판단 결과, 인쇄 데이터를 제공한 응용 프로그램이 워드 프로세서, 엑셀, 포토샵 등인 경우에는 인쇄 데이터를 데이터 변환부(37)로 제공하여 프린터 제어용 언어로 변환시킨 다음(S620), 스풀러로 제공하여 인쇄가 이루어지도록 한다(S630,S640). On the other hand, in the control unit 31, as a result of the determination by the data determination unit 34, when the application program providing the print data is a word processor, Excel, Photoshop, etc., the print data is provided to the data conversion unit 37 to control the printer language. After conversion to (S620), it is provided to the spooler to be printed (S630, S640).

그러나, 인쇄 데이터가 익스플로러나 네비게이터에서 제공된 경우(S550), 제어부(31)는 메모리(32)에 저장되었던 인쇄 데이터를 데이터 정렬부(35)로 제공하여 인쇄 데이터를 정렬시키도록 한다(S570). 데이터 정렬부(35)에서는, 먼저 익스플로러나 네비게이터로부터 제공된 인쇄 정보 중 행의 시작점과 끝점의 위치를 이용하여 각 행의 길이를 산출한다(S580). 그리고, 데이터 정렬부(35)에서는, 산출된 각 행의 길이와, 용지파악부(33)로부터 파악된 인쇄용지의 규격 및 여백을 비교하고(S590), 비교결과 행의 길이가 인쇄용지의 폭보다 긴 경우에는 행을 인쇄용지의 폭에 맞추어 분할하게 된다(S600). 이 때, 데이터 정렬부(35)는 문서의 첫번째 행부터 정렬시킬 수도 있고, 일부 행의 길이가 긴 경우에는 길이가 긴 행중 첫번째 행부터 정렬시킬 수도 있다. 또한 데이터 정렬부(35)는 문단이 바뀔 때에는 문단의 첫번째 행을 기준으로 다시 정렬을 시작함으로써, 문단이 합쳐지는 것을 방지하고, 첫번째 행이 들여쓰기된 경우에는 두번째 행은 들여쓰기가 되지 않도록 조절하여 행의 시작점을 정렬시킨다(S610). However, when the print data is provided in the explorer or the navigator (S550), the controller 31 provides the print data stored in the memory 32 to the data aligning unit 35 to align the print data (S570). The data aligning unit 35 first calculates the length of each row using the positions of the start and end points of the rows of the print information provided from the explorer or the navigator (S580). Then, the data alignment unit 35 compares the calculated length of each row with the size and margin of printing paper grasped from the paper catching unit 33 (S590), and the length of the comparison line is the width of the printing paper. If longer, the rows are divided according to the width of the printing paper (S600). At this time, the data sorting unit 35 may sort the first row of the document, or, if the length of some rows is long, may sort the first row of the longest row. In addition, when the paragraph is changed, the data sorting unit 35 starts sorting again based on the first line of the paragraph, thereby preventing the paragraphs from being merged and adjusting the second line to not be indented when the first line is indented. By aligning the starting point of the row (S610).

이렇게 데이터 정렬부(35)로부터 정렬이 완료되면, 제어부(31)는 정렬이 완료된 인쇄 데이터를 데이터 변환부(37)로 제공하여 프린터 제어용 언어로 변환시킨다(S620). 그런 다음, 프린터 제어용 언어로 변환된 인쇄 데이터를 스풀러로 제공하고(S630), 스풀러에는 인터페이스(15)를 통해 인쇄 데이터를 프린터(20)로 제공하여 인쇄가 이루어지도록 한다(S640). 이러한 과정을 거쳐 인쇄된 인쇄 데이터가 도 7에 도시되어 있다. 도 7은 도 1의 익스플로러에 열람된 인쇄 데이터를 본 발명의 프린터 드라이버(30)를 이용하여 정렬시킨 다음 인쇄한 화면이다. When the alignment is completed from the data alignment unit 35 in this way, the control unit 31 provides the completed print data to the data conversion unit 37 and converts it into a printer control language (S620). Then, the print data converted in the printer control language is provided to the spooler (S630), and the print data is provided to the printer 20 through the interface 15 to the spooler so that printing is performed (S640). Print data printed through such a process is shown in FIG. 7. 7 is a screen printed after aligning print data browsed to the explorer of FIG. 1 using the printer driver 30 of the present invention.

이와 같이, 본 프린터 드라이버(30)는, 익스플로러나 네비게이터와 같이 데이터의 행 또는 페이지의 구별이 없는 응용 프로그램에서 작성된 인쇄 데이터를 인쇄할 때, 인쇄용지의 규격 및 여백에 맞추어 인쇄 데이터에 포함된 문장의 각 행을 순차적으로 분할하여 정렬시키도록 한다. As described above, when the printer driver 30 prints print data created by an application having no distinction between rows or pages of data, such as an explorer or a navigator, a sentence included in the print data in accordance with the standard and margin of the print paper. Split each row in order and sort them.

이에 따라, 익스플로러나 네비게이터를 통해 제공되는 인쇄 데이터의 각 행의 길이가 인쇄용지 규격에 맞지 않는 경우에도 인쇄시 인쇄 데이터가 잘리는 것을 방지할 수 있다. 이렇게 프린터 드라이버(30)를 이용하여 인쇄 데이터를 정렬시킴으로써, 종래에 인쇄 데이터가 잘리는 것을 방지하기 위해 인쇄용지를 가로로 배치시켜 인쇄함에 따라 발생하는 인쇄용지의 낭비를 방지할 수 있다. 뿐만 아니라, 종래에 인쇄 데이터를 워드 프로세서에 복사하여 편집함으로써 발생하는 편집시간의 소모를 방지할 수 있게 된다. Accordingly, even when the length of each row of print data provided through the explorer or the navigator does not meet the print paper standard, the print data can be prevented from being cut off during printing. By aligning the print data using the printer driver 30 as described above, it is possible to prevent waste of the print paper caused by printing by arranging the print paper horizontally in order to prevent the print data from being cut conventionally. In addition, it is possible to prevent the consumption of editing time caused by conventionally copying and editing the print data to a word processor.

이와 같이, 본 발명의 상세한 설명에서는 구체적인 실시형태에 관해 설명하였으나, 이는 예시적인 것으로 받아들여져야 하며, 본 발명의 기술적 사상에서 벗어나지 않는 한도내에서 여러 가지 변형이 가능함은 물론이다. 그러므로, 본 발명의 범위는 설명된 실시 형태에 국한되어 정해져서는 안되며 후술하는 특허청구범위 뿐만 아니라 이 특허청구범위와 균등한 것들에 의해 정해져야 한다. As described above, in the detailed description of the present invention, specific embodiments have been described, but it should be taken as exemplary, and various modifications may be made without departing from the technical spirit of the present invention. Therefore, the scope of the present invention should not be limited to the described embodiments, but should be defined not only by the claims below, but also by the equivalents of the claims.

이상에서 설명한 바와 같이, 본 발명에 따르면, 익스플로러나 네비게이터를 통해 제공되는 인쇄 데이터를 인쇄용지의 규격에 맞추어 정렬시킴으로써, 인쇄 데이터가 잘리는 것을 방지할 수 있다. 이에 따라, 종래에 인쇄 데이터가 잘리는 것을 방지하기 위해 인쇄용지를 가로로 배치시켜 인쇄할 때 발생하는 인쇄용지의 낭비를 방지할 수 있을 뿐만 아니라, 종래에 인쇄 데이터를 워드 프로세서에 복사하여 편집함으로써 발생하는 시간의 낭비를 방지할 수 있다. As described above, according to the present invention, the print data can be prevented from being cut by aligning the print data provided through the explorer or the navigator according to the specification of the print paper. Accordingly, in order to prevent the printing data from being cut in the past, waste of the printing paper generated when printing by placing the printing paper horizontally can be prevented, and the printing data can be generated by copying and editing the printing data into a word processor. You can prevent wasting time.

도 1은 익스플로러에서 문서가 열람된 상태를 보인 화면,1 is a screen showing a state in which a document is read in the explorer,

도 2는 도 1의 문서를 인쇄한 상태의 화면,2 is a screen in a state in which the document of FIG. 1 is printed;

도 3은 도 1의 문서를 아래아 한글에 복사한 상태를 보인 화면, 3 is a screen showing a state of copying the document of FIG.

도 4는 프린팅 작업을 위해 컴퓨터 측에 구비되는 시스템의 구성 블럭도, 4 is a configuration block diagram of a system provided on the computer side for a printing operation;

도 5는 본 발명에 따른 프린터 드라이버의 구성 블럭도,5 is a block diagram illustrating a printer driver according to the present invention;

도 6은 도 5의 프린터 드라이버에서 인쇄 데이터를 정렬시키는 과정을 도시한 흐름도,6 is a flowchart illustrating a process of aligning print data in the printer driver of FIG. 5;

도 7은 도 1의 익스플로러에서 열람된 문서를 도 5의 프린터 드라이버로 정렬시켜 인쇄한 상태를 도시한 도면이다. FIG. 7 is a diagram illustrating a state in which documents browsed in the explorer of FIG. 1 are printed by being aligned with the printer driver of FIG. 5.

* 도면의 주요 부분에 대한 부호의 설명 *Explanation of symbols on the main parts of the drawings

30 : 프린터 드라이버 31 : 제어부30: printer driver 31: control unit

32 : 메모리 33 : 용지파악부32: memory 33: paper detection unit

34 : 데이터 판단부 35 : 데이터 정렬부 34: data determination unit 35: data alignment unit

37 : 데이터 변환부 37: data conversion unit

Claims (9)

컴퓨터에 설치되어 응용 프로그램에서 작성되거나 열람된 인쇄 데이터를 인쇄하기 위해 지원하는 프린터 드라이버에 있어서, A printer driver installed on a computer and supported for printing print data created or viewed by an application, 상기 인쇄 데이터가 작성되거나 열람된 응용 프로그램의 종류를 판단하는 데이터 판단부;A data determination unit that determines a type of an application program in which the print data is created or viewed; 상기 인쇄 데이터가 인쇄될 인쇄용지의 규격을 파악하는 용지파악부;A paper grasping unit which grasps a specification of a printing sheet on which the print data is to be printed; 상기 인쇄 데이터의 행을 상기 용지파악부에 의해 파악된 인쇄용지의 규격에 따라 소정 길이를 갖도록 분할하고, 분할된 각 행의 시작 위치를 맞추어 정렬하는 데이터 정렬부, 및;A data alignment unit for dividing the rows of print data to have a predetermined length according to the specification of the print paper determined by the paper catching unit, and aligning the starting positions of the divided rows; 상기 데이터 판단부로부터의 판단에 따라 상기 인쇄 데이터가 행 또는 페이지의 구분이 되어 있지 않을 때, 사용자의 선택에 따라 상기 데이터 정렬부를 작동시켜 상기 인쇄 데이터를 정렬시키도록 제어하는 제어부를 포함하는 것을 특징으로 하는 프린터 드라이버. And a control unit for controlling the print data to be aligned by operating the data aligning unit according to a user's selection when the print data is not divided into rows or pages according to the determination by the data determining unit. Printer driver. 제 1 항에 있어서, The method of claim 1, 상기 데이터 판단부는, 상기 인쇄 데이터를 제공한 응용 프로그램이 익스플로러와 네비게이터 중 적어도 하나인지 아닌지를 파악하며, The data determination unit determines whether the application program providing the print data is at least one of an explorer and a navigator, 상기 용지파악부는, 상기 인쇄 데이터가 작성된 응용 프로그램이 익스플로러와 네비게이터 중 하나인 경우에는 상기 인쇄 데이터의 각 행의 시작점과 끝점에 대한 정보를 더 수집하는 것을 특징으로 하는 프린터 드라이버. And the paper detector further collects information about a start point and an end point of each line of the print data when the application program in which the print data is written is one of an explorer and a navigator. 제 1 항에 있어서, The method of claim 1, 상기 데이터 정렬부는, 상기 응용 프로그램으로부터 제공된 상하 및 좌우 여백의 크기, 행의 시작점의 위치, 행의 끝점의 위치 등의 정보 중 적어도 하나를 고려하여 상기 인쇄 데이터가 상기 인쇄용지에 모두 인쇄되도록 상기 행의 분할길이를 결정하는 것을 특징으로 하는 프린터 드라이버.The data aligning unit is configured to print the print data on the printing paper in consideration of at least one of information such as the size of the top and bottom and left and right margins, the position of the start point of the line, and the position of the end point of the line provided from the application program. A printer driver, characterized in that for determining the length of division. 제 1 항에 있어서,The method of claim 1, 상기 데이터 정렬부는 상기 인쇄 데이터의 문단 시작시 들여쓰기가 설정된 경우, 두번째 행부터는 들여쓰기가 적용되지 아니하도록 행을 정렬하는 것을 특징으로 하는 프린터 드라이버. And the data aligning unit aligns lines so that indentation is not applied from the second line when indentation is set at the beginning of the paragraph of the print data. 컴퓨터에 설치되어 응용 프로그램에서 작성되거나 열람된 인쇄 데이터를 인쇄하기 위해 지원하는 프린터 드라이버의 인쇄 데이터 정렬방법에 있어서, In the print data sorting method of a printer driver that is installed on a computer and supports to print the print data created or viewed by an application program, 상기 인쇄 데이터가 작성되거나 열람된 응용 프로그램의 종류를 판단하는 단계;Determining a type of an application in which the print data is created or viewed; 상기 인쇄 데이터가 인쇄될 인쇄용지의 규격을 파악하는 단계;Determining a standard of a print paper on which the print data is to be printed; 상기 인쇄 데이터의 행 또는 페이지의 구분이 되어 있지 아니한 경우, 상기 인쇄용지의 규격에 따라 상기 인쇄 데이터의 각 행을 소정 길이로 분할하는 단계, 및;Dividing each row of the print data into a predetermined length according to a standard of the printing paper when the row of the print data or the page is not divided; and 소정 길이로 분할된 상기 인쇄 데이터의 각 행의 시작 위치를 맞추어 정렬시키는 단계를 포함하는 것을 특징으로 하는 프린터 드라이버의 인쇄 데이터 정렬방법. And aligning a start position of each row of the print data divided into predetermined lengths. 제 5 항에 있어서, The method of claim 5, 상기 응용 프로그램의 종류를 파악하는 단계는, 상기 인쇄 데이터를 제공한 응용 프로그램이 익스플로러와 네비게이터 중 적어도 하나인지 아닌지를 파악하는 단계인 것을 특징으로 하는 프린터 드라이버의 인쇄 데이터 정렬방법. The determining of the type of the application program may include determining whether the application program providing the print data is at least one of an explorer and a navigator. 제 5 항에 있어서,The method of claim 5, 상기 인쇄용지의 규격을 파악하는 단계는, 상기 인쇄 데이터가 작성된 응용 프로그램이 익스플로러와 네비게이터 중 하나인 경우에는 상기 인쇄 데이터의 각 행의 시작점과 끝점에 대한 정보를 더 수집하는 단계인 것을 특징으로 하는 프린터 드라이버의 인쇄 데이터 정렬방법. The step of determining the specification of the printing paper, when the application program in which the print data is written is one of the explorer and the navigator, the step of collecting information on the starting point and the end point of each row of the print data further comprising: How to sort print data in the printer driver. 제 5 항에 있어서,The method of claim 5, 상기 인쇄 데이터의 각 행을 소정 길이로 분할하는 단계는, 상기 인쇄용지의 상하 및 좌우 여백의 크기, 행의 시작점의 위치, 행의 끝점의 위치 등의 정보 중 적어도 하나를 고려하여 상기 인쇄 데이터가 상기 인쇄용지에 모두 인쇄되도록 상기 행의 분할길이를 산출하여 분할하는 단계인 것을 특징으로 하는 프린터 드라이버의 인쇄 데이터 정렬방법.The dividing each row of the print data into a predetermined length may include printing the print data in consideration of at least one of information such as the size of the top and bottom and left and right margins of the print paper, the position of the start point of the line, and the position of the end point of the line. And calculating and dividing the dividing length of the rows so as to print all of the printing paper. 제 5 항에 있어서,The method of claim 5, 상기 인쇄 데이터의 각 행의 시작 위치를 맞추어 정렬시키는 단계는, 상기 인쇄 데이터의 문단 시작시 들여쓰기가 설정된 경우에는 두번째 행에서는 들여쓰기가 적용되지 아니하도록 행을 정렬하는 것을 특징으로 하는 프린터 드라이버의 인쇄 데이터 정렬방법. The step of aligning the start position of each line of the print data, if the indentation is set at the beginning of the paragraph of the print data, the line is arranged so that the indentation is not applied to the second line. How to sort print data.
KR1020040005323A 2004-01-28 2004-01-28 Printer driver and auto arrangement method of printing data thereof Withdrawn KR20050077834A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1020040005323A KR20050077834A (en) 2004-01-28 2004-01-28 Printer driver and auto arrangement method of printing data thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1020040005323A KR20050077834A (en) 2004-01-28 2004-01-28 Printer driver and auto arrangement method of printing data thereof

Publications (1)

Publication Number Publication Date
KR20050077834A true KR20050077834A (en) 2005-08-04

Family

ID=37265147

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1020040005323A Withdrawn KR20050077834A (en) 2004-01-28 2004-01-28 Printer driver and auto arrangement method of printing data thereof

Country Status (1)

Country Link
KR (1) KR20050077834A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100727963B1 (en) * 2005-08-09 2007-06-13 삼성전자주식회사 Photo printing system and photo printing method
KR101235859B1 (en) * 2007-10-10 2013-02-20 삼성전자주식회사 Method and apparatus for operating a printer driver corresponding to a application, method and apparatus for installing a printer driver

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100727963B1 (en) * 2005-08-09 2007-06-13 삼성전자주식회사 Photo printing system and photo printing method
KR101235859B1 (en) * 2007-10-10 2013-02-20 삼성전자주식회사 Method and apparatus for operating a printer driver corresponding to a application, method and apparatus for installing a printer driver
US8407727B2 (en) 2007-10-10 2013-03-26 Samsung Electronics Co., Ltd. Method and apparatus for driving printer driver according to a determined application and method and apparatus for installing the printer driver

Similar Documents

Publication Publication Date Title
US7944581B2 (en) Imposition systems, methods and drivers for printer products
US7184167B1 (en) Data processing for arranging text and image data on a substrate
US8689100B2 (en) Document processing apparatus, control method therefor, and computer program
CN100442219C (en) Information processing apparatus and method thereof
US6533822B2 (en) Creating summaries along with indicators, and automatically positioned tabs
US7386790B2 (en) Image processing apparatus, server apparatus, image processing method and memory medium
US20090204888A1 (en) Document processing apparatus, document processing method, and storage medium
JP4095512B2 (en) Document conversion method and apparatus
US10346099B2 (en) Non-transitory computer readable recording medium on which a UI program is recorded, print control apparatus and control method of the same wherein setting items are assigned to groups
EP2031499A2 (en) Display system, display method, and display program
US8175415B2 (en) Image processing device and computer-accessible recording medium containing program therefor
JP2007310877A (en) Automatic job submitter for submitting print job to printer
JP4537040B2 (en) Document processing apparatus and document processing method
US20020135806A1 (en) Web page printing program, computer-readable medium, web page display, and web page printing method
US20040057064A1 (en) Method to edit a document on a peripheral device
US20070263240A1 (en) Image-Forming Apparatus, Image-Forming Control Method, Image-Forming Control Program Storage Medium, Image-Forming Control Data Signal, And Image-Forming Control Apparatus
KR20050077834A (en) Printer driver and auto arrangement method of printing data thereof
JP2003167697A (en) Print indication device
EP1220145B1 (en) Printing in plural output forms
JP2003266808A (en) Printer and print image reference system
JP4422871B2 (en) Information processing apparatus, printing processing time presentation method, and storage medium storing computer-readable program
US8908227B2 (en) Image forming apparatus, image forming system, image data processing method, program, and storage medium
JP4306725B2 (en) Printing support system, printing support program, and printing support method
US20100079802A1 (en) Image processing apparatus
KR20070043263A (en) Print control method and apparatus for preventing the loss of print data

Legal Events

Date Code Title Description
PA0109 Patent application

Patent event code: PA01091R01D

Comment text: Patent Application

Patent event date: 20040128

PG1501 Laying open of application
PC1203 Withdrawal of no request for examination
WITN Application deemed withdrawn, e.g. because no request for examination was filed or no examination fee was paid