KR100366657B1 - Method of reverse-transforming print output image data to text data file and apparatus therefor - Google Patents
Method of reverse-transforming print output image data to text data file and apparatus therefor Download PDFInfo
- Publication number
- KR100366657B1 KR100366657B1 KR10-2001-0007611A KR20010007611A KR100366657B1 KR 100366657 B1 KR100366657 B1 KR 100366657B1 KR 20010007611 A KR20010007611 A KR 20010007611A KR 100366657 B1 KR100366657 B1 KR 100366657B1
- Authority
- KR
- South Korea
- Prior art keywords
- data
- control code
- command
- token
- list
- Prior art date
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/12—Digital output to print unit, e.g. line printer, chain printer
- G06F3/1201—Dedicated interfaces to print systems
- G06F3/1223—Dedicated interfaces to print systems specifically adapted to use a particular technique
- G06F3/1237—Print job management
- G06F3/1244—Job translation or job parsing, e.g. page banding
- G06F3/1245—Job translation or job parsing, e.g. page banding by conversion to intermediate or common format
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/07—Responding to the occurrence of a fault, e.g. fault tolerance
- G06F11/14—Error detection or correction of the data by redundancy in operation
- G06F11/1402—Saving, restoring, recovering or retrying
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Human Computer Interaction (AREA)
- Quality & Reliability (AREA)
- Record Information Processing For Printing (AREA)
- Accessory Devices And Overall Control Thereof (AREA)
Abstract
본 발명은 파일 변환 방법에 관한 것으로 더욱 상세하게는 컴퓨터상의 문서편집기 프로그램등에 의해서 편집.작성된 텍스트 파일이 프린터 드라이버등에 의해서 프린터 출력 이미지로 변환된 데이터를 처리하여 컴퓨터에 있는 원본 파일로 역변환하는 방법 및 장치에 관한 것으로, (a) 역변환처리를 위한 에뮬레이션 타입, 명령어 리스트 및 제어코드 리스트에 관한 기준데이터를 결정하는 단계; (b) 기준 데이터를 이용하여 상기 프린트출력이미지에서 텍스트 데이터만을 추출하는 단계; (c) 상기 추출된 텍스트 데이터를 파일로 저장함으로써 프린트출력이미지를 텍스트 데이터 파일로 역변환하는 단계;및 (d) 프린트출력이미지의 끝까지 작업이 진행되었는지를 검사하여 작업종료여부를 결정하는 단계를 포함하며, 컴퓨터상의 원본 텍스트파일이 여러가지 원인으로 삭제되거나 손상된 경우에도 프린터기 또는 컴퓨터에 있는 저장장치등에 기록되어 있는 프린터 출력 이미지 데이터만 있다면 원본 텍스트파일을 복원할 수 있는 수단을 제공하게 된다.The present invention relates to a file conversion method, and more particularly, a method of converting a text file edited and produced by a text editor program on a computer into a printer output image by a printer driver, etc., and converting the data file into an original file on a computer. An apparatus comprising: (a) determining reference data regarding an emulation type, an instruction list, and a control code list for inverse transform processing; (b) extracting only text data from the print output image using reference data; (c) converting a print output image into a text data file by storing the extracted text data as a file; and (d) determining whether to terminate the job by checking whether the job has been performed to the end of the print output image. In addition, even if the original text file on the computer is deleted or damaged due to various reasons, if the printer output image data recorded in the printer or the storage device in the computer is provided, it provides a means to restore the original text file.
Description
본 발명은 파일 변환에 관한 것으로, 특히 컴퓨터상의 문서편집기 프로그램등에 의해 편집,작성된 텍스트 파일이 프린터 드라이버등에 의해 프린터 출력 이미지로 변환된 것을 역으로 프린터 출력 이미지로 부터 텍스트 파일로 역변환하는 방법 및 장치에 관한 것이다.BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to file conversion, and more particularly, to a method and apparatus for inverting a text file edited and created by a text editor program on a computer into a printer output image by a printer driver, etc., from a printer output image to a text file It is about.
일반적으로 문서편집기 프로그램으로 작성된 문서를 인쇄할 때에는 각 인쇄장치에 맞는 프린터 드라이버등 데이터 변환장치를 통하여 텍스트 파일을 프린터 출력 이미지 데이터로 변환하고 이 생성된 프린터 출력 이미지를 프린터기등의 인쇄장치를 통해 출력하고, 저장장치에 프린터 출력 이미지를 저장하게 된다.Generally, when printing a document created with a text editor program, a text file is converted into printer output image data through a data conversion device such as a printer driver suitable for each printing device, and the generated printer output image is output through a printing device such as a printer. The printer output image is stored in the storage device.
만일 장치 고장 등으로 컴퓨터상에 저장된 원본 텍스트파일이 삭제되거나 손상을 입게되면 프린터 저장장치의 원본 출력 이미지를 재출력할 수는 있어도 컴퓨터상의 문서편집기 프로그램을 사용해서 수정 또는 편집할 수는 없다.If the original text file stored on the computer is deleted or damaged due to a device failure, the original output image of the printer storage device can be reprinted, but cannot be modified or edited using a text editor program on the computer.
본 발명이 이루고자 하는 기술적 과제는, 컴퓨터 또는 프린터상에 저장되어 있는 프린트 출력 이미지 데이터를 원본 텍스트 파일로 변환하는 방법 및 장치를 제공하는데 있다.An object of the present invention is to provide a method and apparatus for converting print output image data stored on a computer or a printer into an original text file.
도 1은 본 발명인 역변환장치를 갖춘 인쇄장치를 이용한 실시예를 나타내는 도면이다.1 is a view showing an embodiment using a printing apparatus equipped with the inverting device of the present invention.
도 2는 본 발명인 역변환장치를 갖춘 전산처리장치를 이용한 실시예를 나타내는 도면이다.2 is a view showing an embodiment using a computer processing apparatus equipped with the inverting device of the present invention.
도 3은 일반적인 프린터 출력 이미지 데이타의 구조를 나타내는 도면이다.3 is a diagram showing the structure of general printer output image data.
도 4는 일반적인 제어코드 및 텍스트 데이타의 구조를 나타내는 도면이다.4 is a diagram showing the structure of a general control code and text data.
도 5는 본 발명에 따른 역변환 처리방법을 설명하기 위한 흐름도를 나타내는 도면이다.5 is a flowchart illustrating a inverse transform processing method according to the present invention.
도 6은 본 발명인 역변환 장치의 블록선도를 나타내는 도면이다.6 is a block diagram of the inverse transform device of the present invention.
상기의 과제를 달성하기 위하여 본 발명에 의한 프린트 출력 이미지 데이터의 텍스트 파일로의 역변환 처리방법은,In order to achieve the above object, the inverse conversion processing method of the print output image data into a text file according to the present invention,
프린트출력이미지에서 텍스트 데이타 파일로의 역변환 처리방법에 있어서,In the inverse conversion processing method from a print output image to a text data file,
(a) 역변환처리를 위한 에뮬레이션 타입, 명령어 리스트 및 제어코드 리스트에 관한 기준데이터를 결정하는 단계;(a) determining reference data regarding an emulation type, an instruction list, and a control code list for inverse transform processing;
(b) 상기 기준 데이터를 이용하여 상기 프린트출력이미지에서 텍스트 데이터만을 추출하는 단계;(b) extracting only text data from the print output image using the reference data;
(c) 상기 추출된 텍스트 데이터를 파일로 저장함으로써 프린트출력이미지를 텍스트 데이터 파일로 역변환하는 단계;및(c) converting a printout image into a text data file by storing the extracted text data in a file; and
(d) 프린트출력이미지의 끝까지 작업이 진행되었는지를 검사하여 작업종료여부를 결정하는 단계를 포함하는 것을 특징으로 하는 것을 특징으로 한다.(d) checking whether the job has been completed to the end of the printout image, and determining whether to end the job.
상기의 과제을 이루기 위하여 본 발명에 의한 역변환 처리장치는,In order to achieve the above object, the inverse conversion processing apparatus according to the present invention,
에뮬레이션 타입을 결정하고 그에 따라 명령어 리스트 및 제어코드 리스트를 결정하는 기준데이터결정부; 상기 결정부에서 정하여진 명령어 리스트에 있는 명령어가 프린트 출력이미지 데이터와 동일한지 여부를 검사하는 명령어 검사부; 상기 결정부에서 정하여진 제어코드 리스트에 있는 제어코드가 프린트 출력이미지 데이터와 동일한지 여부를 검사하는 제어코드 검사부; 상기 명령어 검사부 및 제어코드 검사부의 검사결과 상기 명령어 리스트에 있는 명령어 및 상기 제어코드 리스트에 있는 제어코드와 일치하지 않는 프린트 출력이미지 데이타를 텍스트 파일에 저장하는 텍스트데이터저장부; 및 프린트출력이미지의 끝인가 여부를 판단하여 작업의 종료여부를 결정하는 작업종료판단부를 포함하는 것을 특징으로 한다.A reference data determination unit that determines an emulation type and determines an instruction list and a control code list accordingly; A command checker that checks whether a command in the command list determined by the determiner is identical to print output image data; A control code inspecting unit which checks whether the control code in the control code list determined by the determining unit is the same as the print output image data; A text data storage unit for storing the printout image data that does not match the command in the command list and the control code in the control code list as a result of the test of the command checker and the control code checker; And a job termination determination unit determining whether the job is terminated by determining whether the print output image is the end.
이하에서, 첨부된 도면을 참조하여 본 발명의 바람직한 실시예에 대하여 상세히 설명한다.Hereinafter, with reference to the accompanying drawings will be described in detail a preferred embodiment of the present invention.
도 1은 본 발명인 역변환 처리장치를 갖춘 인쇄장치를 이용한 실시예를 나타내는 도면이다. 컴퓨터(101)는 원본 텍스트 문서의 작성 또는 편집이 이루어 지는 컴퓨터이며, 프린터(106)은 컴퓨터(101)에서 전송된 프린트 출력 이미지를 받아 출력하는 프린터이다. 여기서 컴퓨터란 전산처리장치의 대표적인 예를 나타낸 것이며, 일반적으로 전자적인 방법을 통하여 문서의 편집 또는 작성이 가능하도록 제작된 모든 장치를 포함하는 것으로 해석되어야 하며, 예컨데 문서만을 작성 또는 편집하도록 제작된 워드콤을 포함한다. 또한 여기서 프린터란 인쇄장치의 대표적인 예를 나타낸 것으로, 일반적으로 컴퓨터등에서 작성 또는 편집된 전자적인 문서를 인쇄용지등의 유형물에 인쇄하는 장치를 포함하는 것으로 해석되어야 한다. 컴퓨터(101)상의 텍스트파일(102)는 컴퓨터상의 데이터 변환부인 프린터 드라이브(104)에서 프린터 출력 이미지 데이타로 변환되고, 이 변환된 데이터는 프린터상의 입력부(107)를 통하여 프린터상의 저장부(108)에 저장되며, 프린터상의 출력부(109)는 저장부(108)에 저장된 프린터 출력 이미지 데이터를 프린트 용지등의 출력물(105)에 출력하게 된다. 이때 프린터(106)의 저장장치에 저장되있는 프린트 출력 이미지 데이터는 역변환장치(110)를 통하여 텍스트 파일로 역변환 되고, 원본 텍스트 파일과 동일한 내용의 역변환파일(103)이 프린터(106)내에 보관하고 있거나 컴퓨터(101)로 전송된다.1 is a view showing an embodiment using a printing apparatus equipped with the inverse conversion processing apparatus of the present invention. The computer 101 is a computer that creates or edits an original text document, and the printer 106 is a printer that receives and outputs a print output image transmitted from the computer 101. Here, a computer is a representative example of a computer processing apparatus, and in general, it should be interpreted as including all devices that can be edited or created by an electronic method, and for example, a word produced to create or edit only a document. Contains com In addition, a printer is a representative example of a printing apparatus, and generally should be interpreted to include an apparatus for printing an electronic document created or edited on a computer or the like on a type of printing paper. The text file 102 on the computer 101 is converted into printer output image data by the printer driver 104, which is a data conversion unit on the computer, and the converted data is stored on the printer 108 through the input unit 107 on the printer. The output unit 109 on the printer outputs the printer output image data stored in the storage unit 108 to an output 105 such as a print sheet. At this time, the print output image data stored in the storage device of the printer 106 is inversely converted into a text file through the inverse conversion device 110, and the inverse conversion file 103 having the same contents as the original text file is kept in the printer 106. Or is sent to the computer 101.
도 2는 본 발명인 역변환장치를 갖춘 전산처리장치를 이용한 실시예를 나타내는 도면이다. 컴퓨터(201)는 원본 텍스트 문서의 작성 또는 편집이 이루어 지는 컴퓨터이며, 프린터(208)은 컴퓨터(201)에서 전송된 프린트 출력 이미지를 받아 출력하는 프린터이다. 컴퓨터상의 텍스트파일(202)는 컴퓨터상의 데이터 변환부인 프린터 드라이브(204)에서 프린터 출력 이미지 데이터로 변환되고, 이 변환된 데이터는 프린터상의 입력부(209)를 통하여 프린터상의 처리부(210) 및 출력부(211)를 통하여 프린트 용지등의 출력물(207)에 출력되게 된다. 여기서 프린터 드라이브(204)에서 변환된 프린트 출력 이미지는 컴퓨터상의 저장부(205)에 저장되고, 이 저장된 프린트 출력 이미지는 역변환 장치(206)를 통하여 원본 텍스트 파일과 동일한 내용의 텍스트 파일(203)로 역변환된다.2 is a view showing an embodiment using a computer processing apparatus equipped with the inverting device of the present invention. The computer 201 is a computer on which an original text document is created or edited, and the printer 208 is a printer that receives and outputs a print output image transmitted from the computer 201. The text file 202 on the computer is converted into printer output image data by the printer driver 204, which is a data conversion unit on the computer, and the converted data is processed through the input unit 209 on the printer 210 and the output unit ( 211) is output to the output 207, such as print paper. Here, the print output image converted by the printer driver 204 is stored in the storage unit 205 on the computer, and the stored print output image is transferred to the text file 203 having the same contents as the original text file through the inverse conversion device 206. Inverted.
도 3은 일반적인 프린터 출력 이미지의 데이타 구조를 나타내는 도면이다.3 is a diagram showing a data structure of a general printer output image.
여기서 명령어(Command)는 프린터기 등 인쇄장치의 동작에 관한 정보를 나타내며, 제어코드(Control Code)는 인쇄할 문자의 속성에 대한 정보를 나타낸다.In this case, a command indicates information about an operation of a printing apparatus such as a printer, and a control code indicates information about an attribute of a character to be printed.
유이엘 커멘드(Universal Exit Language Command)(301), 프린터 리셋 커멘드(Print Reset Command)(302), 잡 컨트롤 커멘드(Job Control Command)(303)들은 직접적으로 출력 데이터와는 관련이 없지만 출력을 위해서는 기본적으로 수행되야할 명령어들로 일반적으로 에뮬레이션 타입(Emulation Type)에 관한 정보가 포함되어 있게되며, 여기서 에뮬레이션 타입은 프린터 드라이버 등의 데이터 변환장치에 따른 프린트 출력 이미지의 타입에 관한 정보를 의미한다.The Universal Exit Language Command (301), Print Reset Command (302), and Job Control Command (303) are not directly related to the output data, but are basically required for output. In general, the commands to be executed include information on an emulation type, and the emulation type means information about a type of a print output image according to a data converter such as a printer driver.
다시 페이지 컨트롤 커멘드(Page Control Command)(304,306)들은 페이지 소스(Page Source), 페이지 사이즈(Page Size), 텍스트 에리어/마진(Text Area/Margins) 등의 정보를 포함하고 있다. 그 뒤에는 제어코드 및 데이터(Control Code & Data)(305,307)가 배치되며, 페이지 컨트롤 명령어와 제어코드 및 데이터는 텍스트 데이타 파일의 크기에 따라 페이지가 바뀔때마다 반복되게 되고, 텍스트 데이타의 출력이 끝난 후에는 프린트 리셋 커멘드(Print Reset Command)(308)와 유이엘 커멘드(309)가 온다.The page control commands 304 and 306 again contain information such as page source, page size, text area / margins, and the like. Subsequently, control codes and data (305, 307) are placed, and page control commands and control codes and data are repeated each time the page changes according to the size of the text data file, and the output of the text data is finished. Thereafter, a Print Reset Command 308 and a Uiel command 309 come.
도 4는 도 3에서 보인 프린트 출력 이미지의 데이터 구조중 일반적인 제어코드 및 텍스트 데이타(305)의 상세한 구조를 나타내는 도면이다.FIG. 4 is a diagram showing a detailed structure of a general control code and text data 305 of the data structure of the print output image shown in FIG.
여기서 제어코드 및 텍스트 데이터(Control Code & Data)는 심볼셋(symbol Set)(401), 스페이싱(Spacing)(402), 피치(Pitch)(403), 하이트(Height)(404), 스타일(Style), 타입훼이스 훼밀리(Typeface Family)(406)등을 설정해주고 텍스트 데이터를 나열한다. 즉 텍스트파일의 경우 원본 문서와 프린트 출력 이미지 데이터의 차이는 도 3에서 보인 커멘드들과 도 4에서 보인 레지던트 폰트(Resident Font)를 위한 제어코드(Control Code)들이 원본파일의 텍스트 데이터에 첨가된 것임을 보이고 있다.Here, the control code and the text data (Control Code & Data) are symbol set (401), spacing (402), pitch (403), height (404), style (Style). ), Typeface family (406), etc., and list text data. That is, in the case of a text file, the difference between the original document and the printout image data is that the commands shown in FIG. 3 and the control codes for the resident font shown in FIG. 4 are added to the text data of the original file. It is showing.
도 5는 본 발명에 따른 역변환 처리방법을 설명하기 위한 흐름도이다.5 is a flowchart illustrating an inverse transform processing method according to the present invention.
본 발명에서 토큰은 의미있는 데이터를 말하는 것으로 본 발명의 경우 명령어 리스트 또는 제어코드 리스트에서 일치하는 데이터가 있을 경우 그 데이터를 토큰으로 보며, 토큰데이터는 다음의 일련의 과정을 통하여 찾게된다. 즉 (1) 메모리 버퍼의 현재 토큰 포인터 위치에서 1바이트씩 프린트 출력 이미지 데이터를 얻어 알파벳순으로 정렬되어 있는 명령어 혹은 제어코드 리스트상의 해당위치로 찾아간다. (2) 명령어 또는 제어코드 리스트상에서 일치하는 데이터가 존재하는 경우에는 해당 명령어 또는 제어코드가 아규먼트(Argument)를 요구하면 해당하는 파라메터의 크기에 해당하는 데이터를 프린트 출력 이미지에서 얻고, 이때 얻은 데이터를 토큰데이터로 보게된다.In the present invention, the token refers to meaningful data. In the present invention, when there is a matched data in the command list or the control code list, the data is regarded as a token, and the token data is found through the following series of processes. That is, (1) it obtains the print output image data by 1 byte from the current token pointer position of the memory buffer and goes to the corresponding position on the command or control code list arranged in alphabetical order. (2) If there is a matching data in the command or control code list, if the command or control code requires an argument, the data corresponding to the size of the corresponding parameter is obtained from the print output image. It is seen as token data.
또 명령어 리스트란 에뮬레이션 타입에 따라 사용되는 명령어들을 알파벳순으로 정렬해서 저장한 데이터베이스를 말하고, 제어코드 리스트란 에뮬레이션 타입에 따라 사용되는 제어코드들을 알파벳순으로 정렬해서 저장한 데이터베이스를 말한다.In addition, the command list refers to a database in which the commands used according to the emulation type are stored in alphabetical order. The control code list refers to a database in which the control codes used according to the emulation type are stored in alphabetical order.
이하에서 본 발명인 역변환 처리방법을 도 5에 따라 상세히 설명한다.The inverse transform processing method of the present invention will be described in detail with reference to FIG.
명령어 리스트(504)를 참조하여 프린트 출력 이미지에서 제1토큰 데이터를 얻어 이로부터 에뮬레이션 타입을 결정(501)하고, 결정된 에뮬레이션 타입에 따라 명령어 리스트및 제어코드 리스트를 결정(502)한다. 그후 제2토큰 데이터를 얻고 명령어 리스트(503)상에 제2토큰 데이터가 존재하는지 여부를 검사(503 및 504)하여, 제2토큰 데이터가 명령어 리스트(503)상에 존재하는 경우에는 제2토큰데이터는 텍스트 데이터와 무관한 명령어에 해당하므로 토큰포인터를 다음으로 이동(510)시키고, 프린트 출력 이미지 데이터의 끝이 아닌지 점검(511)한 후 프린트 출력 이미지 데이터의 끝이면 작업을 종료하고 그렇지 않으면 다시 새로운 제2토큰 데이터를 얻는 단계(534)부터 반복한다.The first token data is obtained from the print output image with reference to the command list 504, and an emulation type is determined therefrom, and an instruction list and a control code list are determined 502 according to the determined emulation type. Then, the second token data is obtained and it is checked whether the second token data exists on the instruction list 503 (503 and 504), and if the second token data exists on the instruction list 503, the second token is present. Since the data corresponds to a command that is not related to text data, move the token pointer to the next (510), check if it is not the end of the print output image data (511), and if the end of the print output image data is finished, end the job, otherwise Repeating from step 534 of obtaining new second token data.
위에서 제2토큰 데이터가 명령어 리스트(505)에 있는 명령어와 일치하지 않는 경우에는 제3토큰 데이터를 얻고 제어코드 리스트(507)에 있는 제어코드와 일치하는지 여부를 검사(506)한다. 그 결과 제3토큰 데이터와 일치하는 제어코드가 제어코드 리스트(507)에 있는 경우에는 제3토큰 데이터는 텍스트 데이터와 관계없는 것으로 보아 토큰 포인터를 다음으로 이동(510)시키고, 프린트 출력 이미지의 끝이 아닌지 점검(511)한 후 프린트 출력 이미지 데이터의 끝이면 작업을 종료하고 그렇지않으면 다시 새로운 제2토큰 데이터를 얻는 단계(504)부터 반복한다.If the second token data does not match the instructions in the instruction list 505 above, the third token data is obtained and it is checked whether or not it matches the control codes in the control code list 507. As a result, when the control code corresponding to the third token data is in the control code list 507, the third token data is regarded as not related to the text data, and the token pointer is moved next to the next one (510). After checking (511), if the end of the print output image data is finished, the operation is terminated, otherwise, the process is repeated from step 504 of obtaining new second token data.
위에서 제3토큰 데이터와 제어코드 리스트(508)에 있는 제어코드와 일치하지 않는 경우에는 제3토큰 데이터는 텍스트 데이터에 해당하는 것으로 보고 일정한 파일에 저장(509)하게 되며, 토큰포인터를 다음으로 이동(510)시키는 단계로 이동하게 된다.If the third token data does not match the control code in the control code list 508 above, the third token data is regarded as text data and is stored in a predetermined file (509), and the token pointer is moved to the next. The process moves to step 510.
이와같은 일련의 과정을 커쳐 프린트 출력 이미지의 끝까지 토큰포인터를 이동시키며 프린트 출력 이미지에서 명령어 및 제어코드를 제외하고 텍스트 데이터만을 저장하여 원텍스트 파일과 동일한 내용의 텍스트 파일을 복원할 수 있게되는 것이다.Through this process, the token pointer is moved to the end of the printout image, and only the text data except the command and control code are stored in the printout image so that the text file having the same contents as the original text file can be restored.
도 6은 본 발명인 역변환 처리장치의 블록선도를 나타내는 도면이다. 역변환 처리장치의 블록선도의 각 부는 다음과 같이 동작하게 된다.6 is a block diagram of the inverse transform processing apparatus of the present invention. Each part of the block diagram of the inverse conversion processing apparatus operates as follows.
먼저 기준데이터 설정부(601)는 에뮬레이션 타입, 명령어 리스트 및 제어코드 리스트등 역변환 처리를 하는데 있어 기준이 되는 데이터를 결정하는 부로써, 명령어 리스트(606)를 참조하여 프린트 출력 이미지에서 제1토큰 데이터를 얻어 이로부터 에뮬레이션 타입을 설정하고, 설정된 에뮬레이션 타입에 따라 명령어 리스트(606) 및 제어코드 리스트(605)를 설정한다. 다만, 역변환 처리장치가 프린터기 등의 인쇄장치에서 작동하는 경우와 같이 에뮬레이션 타입이 이미 설정되어 있는 경우에는 에뮬레이션 타입을 설정하는 단계는 제외된다.First, the reference data setting unit 601 is a unit for determining the reference data in the inverse conversion processing such as the emulation type, the command list, and the control code list. The first token data in the printout image is referred to by referring to the command list 606. Get an emulation type from this, and set the command list 606 and control code list 605 according to the set emulation type. However, the step of setting the emulation type is excluded when the emulation type is already set, such as when the inverse conversion processing apparatus operates in a printing apparatus such as a printer.
명령어 검사부(602)는 상기 설정된 기준데이터를 이용하여 프린트 출력 이미지에서 명령어를 검사하는 기능을 수행하는 부로써, 프린트 출력 이미지에서 제2토큰 데이터를 얻고 명령어 리스트(606)상에 제2토큰 데이터가 존재하는지 여부를 검사하여, 제2토큰 데이터가 명령어 리스트(606)에 있는 경우에는 제2토큰데이터는 텍스트 데이터와 무관한 명령어에 해당하므로 토큰포인터를 다음으로 이동시키고, 프린트 출력 이미지 데이터의 끝이 아닌지 점검한 후 프린트 출력 이미지 데이터의 끝이면 작업을 종료하고 그렇지 않으면 다시 새로운 제2토큰 데이터를 얻어 상기 기능을 반복한다.The command inspecting unit 602 performs a function of inspecting a command in a print output image by using the set reference data. The command inspecting unit 602 obtains second token data from the print output image and displays the second token data on the command list 606. If the second token data is in the command list 606, the second token data corresponds to a command that is not related to the text data, so the token pointer is moved to the next, and the end of the print output image data is checked. After checking whether or not it is the end of the print output image data, the job is terminated, otherwise, the second second token data is obtained again and the above function is repeated.
제어코드 검사부(603)는 프린트 출력 이미지에 있는 제어코드를 검사하는 부로써, 상기 명령어 검사부에서 제2토큰 데이터가 명령어 리스트에 있는 명령어와 일치하지 않는 경우에는 제3토큰 데이터를 얻고 제어코드 리스트(605)에 있는 제어코드와 일치하는지 여부를 검사한다. 그 결과 제3토큰 데이터와 일치하는 제어코드가 제어코드 리스트(605)에 있는 경우에는 제3토큰 데이터는 텍스트 데이터와 관계없는 것으로 보아 토큰 포인터를 다음으로 이동시키고, 프린트 출력 이미지의 끝이 아닌지 점검한 후 프린트 출력 이미지 데이터의 끝이면 작업을 종료하고 그렇지않으면 다시 새로운 제2토큰 데이터를 얻는 단계부터 반복한다.The control code inspecting unit 603 is a unit for inspecting the control code in the print output image. When the second token data does not match the command in the command list, the control unit check unit 603 obtains the third token data and the control code list ( It is checked whether it matches the control code in 605). As a result, if the control code matching the third token data is in the control code list 605, the third token data is regarded as not related to the text data, and the token pointer is moved to the next, and the printout image is checked for end. After that, if the end of the print output image data is terminated, the operation is terminated. Otherwise, the process is repeated from the step of obtaining new second token data.
텍스트데이터 저장부(604)는 상기 제어코드 검사부(603)에서 제3토큰 데이터와 제어코드 리스트(605)에 있는 제어코드와 일치하지 않는 경우에는 제3토큰 데이터는 텍스트 데이터에 해당하는 것으로 보고 일정한 파일에 저장하는 기능을 수행한다.If the text data storage unit 604 does not match the third token data in the control code checker 603 and the control code in the control code list 605, the text data storage unit 604 considers that the third token data corresponds to the text data. Save to a file.
본 발명은 또한 컴퓨터로 읽을 수 있는 기록매체에 컴퓨터가 읽을 수 있는 코드로서 구현하는 것이 가능하다. 컴퓨터가 읽을 수 있는 기록매체는 컴퓨터 시스템에 의하여 읽혀질 수 있는 데이터가 저장되는 모든 종류의 기록장치를 포함한다. 컴퓨터가 읽을 수 있는 기록매체의 예로는 ROM, RAM, CD-ROM, 자기 테이프, 플라피디스크, 광데이터 저장장치 등이 있으며, 또한 캐리어 웨이브(예를 들어 인터넷을 통한 전송)의 형태로 구현되는 것도 포함한다. 또한 컴퓨터가 읽을 수 있는 기록매체는 네트워크로 연결된 컴퓨터 시스템에 분산되어, 분산방식으로 컴퓨터가 읽을 수 있는 코드로 저장되고 실행될 수 있다.The invention can also be embodied as computer readable code on a computer readable recording medium. The computer-readable recording medium includes all kinds of recording devices in which data that can be read by a computer system is stored. Examples of computer-readable recording media include ROM, RAM, CD-ROM, magnetic tape, floppy disk, optical data storage, and the like, which are also implemented in the form of a carrier wave (for example, transmission over the Internet). It also includes. The computer readable recording medium can also be distributed over network coupled computer systems so that the computer readable code is stored and executed in a distributed fashion.
이상에서 설명한 바와 같이, 본 발명에 의한 역변환 처리방법 및 장치에 의하면, 프린트 출력 이미지 데이터로부터 원본인 텍스트 파일을 복원할 수 있게 되어 텍스트 데이터 파일에 대한 백업기능을 강화할 수 있게된다. 예를들면 사용자의 부주의 또는 기기상의 오동작으로 원본 텍스트 파일이 삭제되거나 손상된 경우에도 프린터기 또는 컴퓨터의 저장장치에 프린트 출력 이미지가 기록되어 있다면 원본 텍스트 파일을 복구할 수 있게 되는 것이다.As described above, according to the inverse conversion processing method and apparatus according to the present invention, it is possible to restore the original text file from the print output image data, thereby enhancing the backup function for the text data file. For example, even if the original text file is deleted or damaged due to user's negligence or malfunction on the device, the original text file can be recovered if the print output image is recorded in the storage device of the printer or the computer.
Claims (12)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
KR10-2001-0007611A KR100366657B1 (en) | 2001-02-15 | 2001-02-15 | Method of reverse-transforming print output image data to text data file and apparatus therefor |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
KR10-2001-0007611A KR100366657B1 (en) | 2001-02-15 | 2001-02-15 | Method of reverse-transforming print output image data to text data file and apparatus therefor |
Publications (2)
Publication Number | Publication Date |
---|---|
KR20020067194A KR20020067194A (en) | 2002-08-22 |
KR100366657B1 true KR100366657B1 (en) | 2003-01-06 |
Family
ID=27694522
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
KR10-2001-0007611A KR100366657B1 (en) | 2001-02-15 | 2001-02-15 | Method of reverse-transforming print output image data to text data file and apparatus therefor |
Country Status (1)
Country | Link |
---|---|
KR (1) | KR100366657B1 (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR100694076B1 (en) * | 2004-12-22 | 2007-03-12 | 삼성전자주식회사 | Method and apparatus for reverse-transforming in image forming apparatus |
KR101068165B1 (en) | 2009-06-15 | 2011-09-27 | 농업협동조합중앙회 | System for processing document image of bank and method thereof |
-
2001
- 2001-02-15 KR KR10-2001-0007611A patent/KR100366657B1/en not_active IP Right Cessation
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR100694076B1 (en) * | 2004-12-22 | 2007-03-12 | 삼성전자주식회사 | Method and apparatus for reverse-transforming in image forming apparatus |
KR101068165B1 (en) | 2009-06-15 | 2011-09-27 | 농업협동조합중앙회 | System for processing document image of bank and method thereof |
Also Published As
Publication number | Publication date |
---|---|
KR20020067194A (en) | 2002-08-22 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US20060061790A1 (en) | Image forming method and apparatus | |
EP0538059A2 (en) | System and method for document processing | |
US20070236717A1 (en) | Printer, Print Data Output Device, Method, Computer Readable Medium, And Computer Data Signal | |
JP2004310762A (en) | Idiom recognition document splitter | |
JP2009075634A (en) | Image processing apparatus and program | |
US6476938B1 (en) | Print control system and method | |
JP4537040B2 (en) | Document processing apparatus and document processing method | |
KR100212986B1 (en) | Direct printing method of image file of printer | |
US7643160B2 (en) | Spool file modifying device | |
US7164484B2 (en) | Print controller, print control method and printer including determination to store macro as instruction or bitmap | |
US6594405B1 (en) | Method and apparatus for preprinted forms completion | |
EP2763027A1 (en) | Image processing apparatus, an image processing method, and an image processing program | |
KR100366657B1 (en) | Method of reverse-transforming print output image data to text data file and apparatus therefor | |
US8619284B2 (en) | Method and apparatus for including converted drawing commands in a print data file | |
JP3402971B2 (en) | Garbled character inspection method and garbled character inspection data creation device | |
EP2284689B1 (en) | PDL data processing device | |
JP3709695B2 (en) | Printing system, printer server apparatus used in printing system, printer server processing method, and recording medium on which printer server processing program is recorded | |
JP3097558B2 (en) | Printing control method and printing apparatus | |
JP2006172362A (en) | Character processing device, character processing method, and program | |
JP2000181905A (en) | Preparation device for electronic document file and recording medium | |
CN118569233A (en) | Method and device for generating volume based on case elements | |
JPH113189A (en) | Printer | |
JPH0895964A (en) | Printing method for word processor document | |
JP4586839B2 (en) | Image processing apparatus, printing system, and program | |
JPH1158872A (en) | Print controller and control method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A201 | Request for examination | ||
E701 | Decision to grant or registration of patent right | ||
GRNT | Written decision to grant | ||
FPAY | Annual fee payment |
Payment date: 20081127 Year of fee payment: 7 |
|
LAPS | Lapse due to unpaid annual fee |