KR102566934B1 - Electronic apparatus that performs parallel processing-based document format conversion and operating method thereof - Google Patents

Electronic apparatus that performs parallel processing-based document format conversion and operating method thereof Download PDF

Info

Publication number
KR102566934B1
KR102566934B1 KR1020210116381A KR20210116381A KR102566934B1 KR 102566934 B1 KR102566934 B1 KR 102566934B1 KR 1020210116381 A KR1020210116381 A KR 1020210116381A KR 20210116381 A KR20210116381 A KR 20210116381A KR 102566934 B1 KR102566934 B1 KR 102566934B1
Authority
KR
South Korea
Prior art keywords
pages
document
page
converted
conversion
Prior art date
Application number
KR1020210116381A
Other languages
Korean (ko)
Other versions
KR20230033433A (en
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 KR1020210116381A priority Critical patent/KR102566934B1/en
Publication of KR20230033433A publication Critical patent/KR20230033433A/en
Application granted granted Critical
Publication of KR102566934B1 publication Critical patent/KR102566934B1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/12Use of codes for handling textual entities
    • G06F40/151Transformation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/32Monitoring with visual or acoustical indication of the functioning of the machine
    • G06F11/324Display of status information
    • G06F11/328Computer systems status display
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F17/00Digital computing or data processing equipment or methods, specially adapted for specific functions
    • G06F17/10Complex mathematical operations
    • G06F17/16Matrix or vector computation, e.g. matrix-matrix or matrix-vector multiplication, matrix factorization
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/103Formatting, i.e. changing of presentation of documents
    • G06F40/106Display of layout of documents; Previewing
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/30Arrangements for executing machine instructions, e.g. instruction decode
    • G06F9/30003Arrangements for executing specific machine instructions
    • G06F9/30076Arrangements for executing specific machine instructions to perform miscellaneous control operations, e.g. NOP
    • G06F9/3009Thread control instructions
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/30Arrangements for executing machine instructions, e.g. instruction decode
    • G06F9/38Concurrent instruction execution, e.g. pipeline, look ahead
    • G06F9/3836Instruction issuing, e.g. dynamic instruction scheduling or out of order instruction execution
    • G06F9/3851Instruction issuing, e.g. dynamic instruction scheduling or out of order instruction execution from multiple instruction streams, e.g. multistreaming

Abstract

병렬 처리 기반의 문서 포맷 변환을 수행하는 전자 장치 및 그 동작 방법이 개시된다. 본 발명은 사용자로부터 특정 전자 문서에 대한 문서 포맷 변환 명령이 인가되면, 상기 특정 전자 문서를 구성하고 있는 n(n은 2이상의 자연수임)개의 페이지들 각각의 문서 포맷을 변환하기 위한 n개의 스레드들을 생성하고, 상기 n개의 스레드들에 상기 n개의 페이지들을 각각 하나씩 할당한 후, 상기 n개의 스레드들을 동시에 실행시켜 상기 n개의 페이지들에 대한 문서 포맷 변환 작업을 병렬적으로 동시에 수행하되, 페이지 순번에 따라 포맷 변환이 완료된 페이지를 순차적으로 화면 상에 표시할 수 있는 전자 장치 및 그 동작 방법에 대한 것이다.Disclosed are an electronic device that performs document format conversion based on parallel processing and an operating method thereof. In the present invention, when a document format conversion command for a specific electronic document is applied from a user, n threads for converting the document format of each of n (n is a natural number equal to or greater than 2) constituting the specific electronic document are provided. After generating and allocating one of the n pages to the n threads, the n threads are simultaneously executed to simultaneously perform document format conversion for the n pages in parallel, page by page. An electronic device capable of sequentially displaying pages for which format conversion has been completed according to a screen and an operating method thereof are provided.

Description

병렬 처리 기반의 문서 포맷 변환을 수행하는 전자 장치 및 그 동작 방법{ELECTRONIC APPARATUS THAT PERFORMS PARALLEL PROCESSING-BASED DOCUMENT FORMAT CONVERSION AND OPERATING METHOD THEREOF}Electronic device performing parallel processing-based document format conversion and its operating method

본 발명은 병렬 처리 기반의 문서 포맷 변환을 수행하는 전자 장치 및 그 동작 방법에 대한 것이다.The present invention relates to an electronic device that performs document format conversion based on parallel processing and an operating method thereof.

최근, 다양한 종류의 문서 열람 및 편집 프로그램들이 등장함에 따라, 이러한 프로그램들에서 호환되는 다양한 종류의 전자 문서 포맷들이 등장하고 있다. 예컨대, 'docx', 'hwp', 'pdf' 등과 같은 확장자를 갖는 다양한 문서 포맷이 존재한다.Recently, as various types of document viewing and editing programs have emerged, various types of electronic document formats compatible with these programs have emerged. For example, there are various document formats having extensions such as 'docx', 'hwp', 'pdf', and the like.

이렇게, 다양한 포맷의 전자 문서가 사용됨에 따라, 특정 포맷으로 생성된 전자 문서를 다른 포맷으로 변환할 수 있는 포맷 변환 기능의 중요성이 증가하고 있다. 예컨대, 'docx'의 확장자 포맷으로 작성된 전자 문서를 'hwp'의 확장자 포맷의 전자 문서로 변환하거나, 'hwp'의 확장자 포맷으로 작성된 전자 문서를 'pdf'의 확장자 포맷의 전자 문서로 변환하는 포맷 변환 기능의 중요성이 증가하고 있다.As electronic documents of various formats are used, the importance of a format conversion function capable of converting an electronic document created in a specific format into another format is increasing. For example, a format for converting an electronic document written in the 'docx' extension format into an 'hwp' extension format or converting an electronic document created in the 'hwp' extension format into a 'pdf' extension format. The importance of conversion functions is increasing.

이렇게, 전자 문서의 포맷 변환 기능의 중요성이 증가함에 따라, 전자 문서의 포맷 변환을 보다 빠르게 수행할 수 있도록 하는 기술의 중요성이 증가하고 있다. 이와 관련해서, 전자 문서의 포맷을 다른 포맷으로 빠르게 변환하는 방법으로는 전자 문서를 구성하는 페이지들의 포맷을 순차적으로 하나씩 변환하는 것이 아니라, 포맷 변환을 위한 다수의 스레드들(Thread)을 생성한 후 각 스레드를 이용하여 페이지들의 포맷을 병렬적으로 변환 처리하는 방식의 도입을 고려할 수 있다.In this way, as the importance of the format conversion function of the electronic document increases, the importance of technology for performing the format conversion of the electronic document more quickly is increasing. In this regard, as a method of quickly converting the format of an electronic document into another format, rather than converting the format of pages constituting an electronic document sequentially one by one, a plurality of threads for format conversion are created and then It is possible to consider introducing a method of converting and processing the format of pages in parallel using each thread.

다만, 이렇게 다수의 스레드들을 활용하여 전자 문서를 구성하는 페이지들의 포맷을 병렬적으로 변환 처리하는 방식에서는 페이지들이 각 페이지 순번에 따라 순차적으로 포맷 변환 작업이 완료되는 것이 아니기 때문에, 사용자에게 포맷 변환이 완료된 페이지를 보여주는 경우, 페이지 순번에 따라 화면 상에 페이지가 노출되지 않을 수 있어서, 사용자의 입장에서는 전자 문서의 포맷 변환 작업이 제대로 수행되고 있는지 파악하기 어려운 문제가 발생할 수 있다.However, in this method of converting the format of pages constituting an electronic document in parallel using multiple threads, format conversion is not completed sequentially according to the order of each page, so format conversion is not necessary for the user. When the completed page is displayed, the page may not be exposed on the screen according to the order of the page, so it may be difficult for the user to determine whether the format conversion of the electronic document is properly performed.

예컨대, 총 10페이지로 구성된 전자 문서의 포맷을 각 페이지별로 병렬적으로 변환 처리한다고 하였을 때, 1페이지 보다 8페이지의 포맷이 먼저 변환 완료되는 경우가 발생할 수 있는데, 이때, 사용자에게 1페이지보다 8페이지에 대한 포맷 변환 결과를 먼저 보여준다면, 사용자는 상기 전자 문서에 대한 포맷 변환 작업이 제대로 수행되고 있지 않다고 인식할 가능성이 존재한다.For example, when the format of an electronic document consisting of 10 pages is converted in parallel for each page, it may occur that the format of 8 pages is completed before the format of 1 page. If the format conversion result for the page is first displayed, there is a possibility that the user will recognize that the format conversion operation for the electronic document is not properly performed.

따라서, 전자 문서를 구성하는 페이지별로 포맷 변환 작업을 병렬적으로 수행하되, 사용자에게 포맷 변환이 완료된 페이지를 보여주는 경우에, 페이지 순번에 따라 순차적으로 포맷 변환이 완료된 결과물을 보여줄 수 있도록 하는 기술에 대한 연구가 필요하다.Therefore, a technique for performing format conversion in parallel for each page constituting an electronic document, but showing the format conversion result sequentially according to the page order when showing the format conversion completed page to the user. Research is needed.

본 발명은 사용자로부터 특정 전자 문서에 대한 문서 포맷 변환 명령이 인가되면, 상기 특정 전자 문서를 구성하고 있는 n(n은 2이상의 자연수임)개의 페이지들 각각의 문서 포맷을 변환하기 위한 n개의 스레드들을 생성하고, 상기 n개의 스레드들에 상기 n개의 페이지들을 각각 하나씩 할당한 후, 상기 n개의 스레드들을 동시에 실행시켜 상기 n개의 페이지들에 대한 문서 포맷 변환 작업을 병렬적으로 동시에 수행하되, 페이지 순번에 따라 포맷 변환이 완료된 페이지를 순차적으로 화면 상에 표시할 수 있는 전자 장치 및 그 동작 방법을 제시함으로써, 전자 문서에 대한 빠른 포맷 변환이 가능하도록 함과 동시에, 사용자가, 전자 문서에 대한 포맷 변환 작업이 정상적으로 진행되고 있음을 직관적으로 인식할 수 있도록 지원하고자 한다.In the present invention, when a document format conversion command for a specific electronic document is applied from a user, n threads for converting the document format of each of n (n is a natural number equal to or greater than 2) constituting the specific electronic document are provided. After generating and allocating one of the n pages to the n threads, the n threads are simultaneously executed to simultaneously perform document format conversion for the n pages in parallel, page by page. By presenting an electronic device capable of displaying format-converted pages sequentially on a screen and an operating method thereof according to the present invention, fast format conversion for an electronic document is possible, and at the same time, a user can perform a format conversion operation for an electronic document. We want to support you to intuitively recognize that this is going on normally.

본 발명의 일실시예에 따른, 병렬 처리 기반의 문서 포맷 변환을 수행하는 전자 장치는 사용자로부터 제1 문서 포맷으로 작성된 제1 전자 문서 - 상기 제1 전자 문서는 n(n은 2이상의 자연수임)개의 페이지들로 구성됨 - 에 대한 문서 파일을 제2 문서 포맷의 문서 파일로 변환할 것을 지시하는 문서 포맷 변환 명령이 인가되면, 상기 n개의 페이지들 각각의 문서 포맷을 변환하기 위한 n개의 스레드(Thread)들을 생성하는 스레드 생성부, 상기 n개의 스레드들이 생성되면, 상기 n개의 스레드들에 상기 n개의 페이지들을 각각 하나씩 할당한 후, 상기 n개의 스레드들을 동시에 실행시킴으로써, 상기 n개의 페이지들에 대한 문서 포맷 변환 작업을 병렬적으로 동시에 실행하는 변환 작업 실행부, 상기 변환 작업 실행부를 통해, 상기 n개의 페이지들 중 어느 하나의 페이지가 변환 완료될 때마다, 변환 완료된 상기 어느 하나의 페이지를 렌더링하여 화면 상에 표시하되, 변환 완료된 상기 어느 하나의 페이지의 바로 이전 순번의 페이지가 먼저 변환 및 렌더링 완료되어 화면 상에 표시되고 있지 않은 것으로 확인되는 경우, 상기 이전 순번의 페이지가 변환 및 렌더링 완료되어 화면 상에 표시될 때까지 대기하였다가, 상기 이전 순번의 페이지가 변환 및 렌더링 완료되어 화면 상에 표시되면, 변환 완료된 상기 어느 하나의 페이지를 렌더링하여 화면 상에 표시하는 표시부 및 상기 n개의 페이지들이 모두 변환 및 렌더링 완료되어 화면 상에 표시되면, 변환 완료된 상기 n개의 페이지들로 구성된 상기 제2 문서 포맷의 제2 전자 문서에 대한 문서 파일을 생성하는 문서 파일 생성부를 포함한다.According to an embodiment of the present invention, an electronic device that performs document format conversion based on parallel processing is a first electronic document created by a user in a first document format, wherein n is a natural number equal to or greater than 2. composed of number of pages - when a document format conversion command instructing to convert a document file of the second document format into a document file of the second document format is applied, n threads for converting the document format of each of the n pages (Thread ), when the n threads are created, by allocating one of the n pages to the n threads and then simultaneously executing the n threads, the document for the n pages A conversion task execution unit that simultaneously executes a format conversion task in parallel, and whenever any one of the n pages is converted through the conversion task execution unit, any one of the converted pages is rendered on the screen. However, if it is confirmed that the page immediately preceding any one of the converted pages has been converted and rendered first and is not displayed on the screen, the page in the previous order is converted and rendered and displayed on the screen. After waiting until the page in the previous order is converted and rendered and displayed on the screen, the display unit that renders any one page that has been converted and displays it on the screen and all of the n pages are converted. and a document file creation unit that generates a document file for a second electronic document of the second document format composed of the n pages that have been converted, when rendering is completed and displayed on the screen.

또한, 본 발명의 일실시예에 따른, 병렬 처리 기반의 문서 포맷 변환을 수행하는 전자 장치의 동작 방법은 사용자로부터 제1 문서 포맷으로 작성된 제1 전자 문서 - 상기 제1 전자 문서는 n(n은 2이상의 자연수임)개의 페이지들로 구성됨 - 에 대한 문서 파일을 제2 문서 포맷의 문서 파일로 변환할 것을 지시하는 문서 포맷 변환 명령이 인가되면, 상기 n개의 페이지들 각각의 문서 포맷을 변환하기 위한 n개의 스레드들을 생성하는 단계, 상기 n개의 스레드들이 생성되면, 상기 n개의 스레드들에 상기 n개의 페이지들을 각각 하나씩 할당한 후, 상기 n개의 스레드들을 동시에 실행시킴으로써, 상기 n개의 페이지들에 대한 문서 포맷 변환 작업을 병렬적으로 동시에 실행하는 단계, 상기 n개의 페이지들 중 어느 하나의 페이지가 변환 완료될 때마다, 변환 완료된 상기 어느 하나의 페이지를 렌더링하여 화면 상에 표시하되, 변환 완료된 상기 어느 하나의 페이지의 바로 이전 순번의 페이지가 먼저 변환 및 렌더링 완료되어 화면 상에 표시되고 있지 않은 것으로 확인되는 경우, 상기 이전 순번의 페이지가 변환 및 렌더링 완료되어 화면 상에 표시될 때까지 대기하였다가, 상기 이전 순번의 페이지가 변환 및 렌더링 완료되어 화면 상에 표시되면, 변환 완료된 상기 어느 하나의 페이지를 렌더링하여 화면 상에 표시하는 단계 및 상기 n개의 페이지들이 모두 변환 및 렌더링 완료되어 화면 상에 표시되면, 변환 완료된 상기 n개의 페이지들로 구성된 상기 제2 문서 포맷의 제2 전자 문서에 대한 문서 파일을 생성하는 단계를 포함한다.In addition, according to an embodiment of the present invention, a method of operating an electronic device that performs document format conversion based on parallel processing includes a first electronic document prepared in a first document format by a user - the first electronic document is n (n is is a natural number of 2 or more) pages. When a document format conversion command instructing to convert a document file for is applied to a document file in a second document format, a document format for converting the document format of each of the n pages is applied. Generating n threads, when the n threads are created, assigning one of the n pages to the n threads and then simultaneously executing the n threads to obtain a document for the n pages Executing format conversion tasks in parallel and at the same time, whenever any one of the n pages is converted, the converted one of the pages is rendered and displayed on the screen, wherein any one of the converted pages is rendered. If it is confirmed that the page in the immediately preceding page of the page is converted and rendered first and is not displayed on the screen, it waits until the page in the previous order is converted and rendered and displayed on the screen, When the page in the previous order is converted and rendered and displayed on the screen, rendering any one of the converted pages and displaying them on the screen, and when all of the n pages are converted and rendered and displayed on the screen, and generating a document file for a second electronic document of the second document format composed of the n converted pages.

본 발명은 사용자로부터 특정 전자 문서에 대한 문서 포맷 변환 명령이 인가되면, 상기 특정 전자 문서를 구성하고 있는 n(n은 2이상의 자연수임)개의 페이지들 각각의 문서 포맷을 변환하기 위한 n개의 스레드들을 생성하고, 상기 n개의 스레드들에 상기 n개의 페이지들을 각각 하나씩 할당한 후, 상기 n개의 스레드들을 동시에 실행시켜 상기 n개의 페이지들에 대한 문서 포맷 변환 작업을 병렬적으로 동시에 수행하되, 페이지 순번에 따라 포맷 변환이 완료된 페이지를 순차적으로 화면 상에 표시할 수 있는 전자 장치 및 그 동작 방법을 제시함으로써, 전자 문서에 대한 빠른 포맷 변환이 가능하도록 함과 동시에, 사용자가, 전자 문서에 대한 포맷 변환 작업이 정상적으로 진행되고 있음을 직관적으로 인식할 수 있도록 지원할 수 있다.In the present invention, when a document format conversion command for a specific electronic document is applied from a user, n threads for converting the document format of each of n (n is a natural number equal to or greater than 2) constituting the specific electronic document are provided. After generating and allocating one of the n pages to the n threads, the n threads are simultaneously executed to simultaneously perform document format conversion for the n pages in parallel, page by page. By presenting an electronic device capable of displaying format-converted pages sequentially on a screen and an operating method thereof according to the present invention, fast format conversion for an electronic document is possible, and at the same time, a user can perform a format conversion operation for an electronic document. This can be supported to intuitively recognize that the process is proceeding normally.

도 1은 본 발명의 일실시예에 따른 병렬 처리 기반의 문서 포맷 변환을 수행하는 전자 장치의 구조를 도시한 도면이다.
도 2 내지 도 3은 본 발명의 일실시예에 따른 병렬 처리 기반의 문서 포맷 변환을 수행하는 전자 장치를 설명하기 위한 도면이다.
도 4는 본 발명의 일실시예에 따른 병렬 처리 기반의 문서 포맷 변환을 수행하는 전자 장치의 동작 방법을 도시한 순서도이다.
1 is a diagram showing the structure of an electronic device that performs document format conversion based on parallel processing according to an embodiment of the present invention.
2 and 3 are diagrams for explaining an electronic device that performs document format conversion based on parallel processing according to an embodiment of the present invention.
4 is a flowchart illustrating an operating method of an electronic device that performs document format conversion based on parallel processing according to an embodiment of the present invention.

이하에서는 본 발명에 따른 실시예들을 첨부된 도면을 참조하여 상세하게 설명하기로 한다. 이러한 설명은 본 발명을 특정한 실시 형태에 대해 한정하려는 것이 아니며, 본 발명의 사상 및 기술 범위에 포함되는 모든 변경, 균등물 내지 대체물을 포함하는 것으로 이해되어야 한다. 각 도면을 설명하면서 유사한 참조부호를 유사한 구성요소에 대해 사용하였으며, 다르게 정의되지 않는 한, 기술적이거나 과학적인 용어를 포함해서 본 명세서 상에서 사용되는 모든 용어들은 본 발명이 속하는 기술분야에서 통상의 지식을 가진 사람에 의해 일반적으로 이해되는 것과 동일한 의미를 가지고 있다.Hereinafter, embodiments according to the present invention will be described in detail with reference to the accompanying drawings. This description is not intended to limit the present invention to specific embodiments, but should be understood to include all modifications, equivalents, and substitutes included in the spirit and scope of the present invention. While describing each drawing, similar reference numerals have been used for similar components, and unless otherwise defined, all terms used in this specification, including technical or scientific terms, are common knowledge in the art to which the present invention belongs. has the same meaning as commonly understood by the person who has it.

본 문서에서, 어떤 부분이 어떤 구성요소를 "포함"한다고 할 때, 이는 특별히 반대되는 기재가 없는 한 다른 구성요소를 제외하는 것이 아니라 다른 구성요소를 더 포함할 수 있다는 것을 의미한다. 또한, 본 발명의 다양한 실시예들에 있어서, 각 구성요소들, 기능 블록들 또는 수단들은 하나 또는 그 이상의 하부 구성요소로 구성될 수 있고, 각 구성요소들이 수행하는 전기, 전자, 기계적 기능들은 전자회로, 집적회로, ASIC(Application Specific Integrated Circuit) 등 공지된 다양한 소자들 또는 기계적 요소들로 구현될 수 있으며, 각각 별개로 구현되거나 2 이상이 하나로 통합되어 구현될 수도 있다.In this document, when a certain component is said to "include", it means that it may further include other components without excluding other components unless otherwise stated. In addition, in various embodiments of the present invention, each component, functional block, or means may be composed of one or more sub-components, and the electrical, electronic, and mechanical functions performed by each component are electronic It may be implemented with various known elements or mechanical elements such as circuits, integrated circuits, ASICs (Application Specific Integrated Circuits), and may be implemented separately or two or more may be integrated into one.

한편, 첨부된 블록도의 블록들이나 흐름도의 단계들은 범용 컴퓨터, 특수용 컴퓨터, 휴대용 노트북 컴퓨터, 네트워크 컴퓨터 등 데이터 프로세싱이 가능한 장비의 프로세서나 메모리에 탑재되어 지정된 기능들을 수행하는 컴퓨터 프로그램 명령들(instructions)을 의미하는 것으로 해석될 수 있다. 이들 컴퓨터 프로그램 명령들은 컴퓨터 장치에 구비된 메모리 또는 컴퓨터에서 판독 가능한 메모리에 저장될 수 있기 때문에, 블록도의 블록들 또는 흐름도의 단계들에서 설명된 기능들은 이를 수행하는 명령 수단을 내포하는 제조물로 생산될 수도 있다. 아울러, 각 블록 또는 각 단계는 특정된 논리적 기능(들)을 실행하기 위한 하나 이상의 실행 가능한 명령들을 포함하는 모듈, 세그먼트 또는 코드의 일부를 나타낼 수 있다. 또, 몇 가지 대체 가능한 실시예들에서는 블록들 또는 단계들에서 언급된 기능들이 정해진 순서와 달리 실행되는 것도 가능함을 주목해야 한다. 예컨대, 잇달아 도시되어 있는 두 개의 블록들 또는 단계들은 실질적으로 동시에 수행되거나, 역순으로 수행될 수 있으며, 경우에 따라 일부 블록들 또는 단계들이 생략된 채로 수행될 수도 있다.On the other hand, the blocks of the accompanying block diagram or the steps of the flowchart are computer program instructions that perform designated functions by being loaded into a processor or memory of a device capable of data processing, such as a general-purpose computer, a special purpose computer, a portable notebook computer, and a network computer. can be interpreted as meaning Since these computer program instructions may be stored in a memory included in a computer device or in a computer readable memory, the functions described in blocks of a block diagram or steps of a flowchart are produced as a product containing instruction means for performing them. It could be. Further, each block or each step may represent a module, segment or portion of code that includes one or more executable instructions for executing specified logical function(s). Also, it should be noted that in some alternative embodiments, functions mentioned in blocks or steps may be executed out of a predetermined order. For example, two blocks or steps shown in succession may be performed substantially simultaneously or in reverse order, and in some cases, some blocks or steps may be omitted.

도 1은 본 발명의 일실시예에 따른 병렬 처리 기반의 문서 포맷 변환을 수행하는 전자 장치의 구조를 도시한 도면이다.1 is a diagram showing the structure of an electronic device that performs document format conversion based on parallel processing according to an embodiment of the present invention.

도 1을 참조하면, 본 발명의 일실시예에 따른 전자 장치(110)는 스레드 생성부(111), 변환 작업 실행부(112), 표시부(113) 및 문서 파일 생성부(114)를 포함한다.Referring to FIG. 1 , an electronic device 110 according to an embodiment of the present invention includes a thread creation unit 111, a conversion task execution unit 112, a display unit 113, and a document file creation unit 114. .

스레드 생성부(111)는 사용자로부터 제1 문서 포맷으로 작성된 제1 전자 문서(상기 제1 전자 문서는 n(n은 2이상의 자연수임)개의 페이지들로 구성됨)에 대한 문서 파일을 제2 문서 포맷의 문서 파일로 변환할 것을 지시하는 문서 포맷 변환 명령이 인가되면, 상기 n개의 페이지들 각각의 문서 포맷을 변환하기 위한 n개의 스레드(Thread)들을 생성한다.The thread generator 111 converts a document file for a first electronic document prepared in a first document format from a user (the first electronic document is composed of n (n is a natural number equal to or greater than 2) pages) into a second document format. When a document format conversion command instructing conversion into a document file is applied, n threads for converting the document format of each of the n pages are generated.

여기서, 상기 제1 문서 포맷 또는 상기 제2 문서 포맷은 'docx', 'hwp', 'pdf' 등과 같은 확장자의 포맷일 수 있다.Here, the first document format or the second document format may be a format of an extension such as 'docx', 'hwp', or 'pdf'.

또한, 상기 스레드는 프로세스 내에서 실행되는 명령을 독립적으로 처리하는 하나의 작업 단위를 의미한다.Also, the thread refers to a unit of work that independently processes commands executed within a process.

변환 작업 실행부(112)는 상기 n개의 스레드들이 생성되면, 상기 n개의 스레드들에 상기 n개의 페이지들을 각각 하나씩 할당한 후, 상기 n개의 스레드들을 동시에 실행시킴으로써, 상기 n개의 페이지들에 대한 문서 포맷 변환 작업을 병렬적으로 동시에 실행한다.When the n threads are created, the conversion task executor 112 assigns each of the n pages to the n threads, and then simultaneously executes the n threads, thereby generating a document for the n pages. Execute format conversion tasks concurrently in parallel.

표시부(113)는 변환 작업 실행부(112)를 통해, 상기 n개의 페이지들 중 어느 하나의 페이지가 변환 완료될 때마다, 변환 완료된 상기 어느 하나의 페이지를 렌더링하여 화면 상에 표시하되, 변환 완료된 상기 어느 하나의 페이지의 바로 이전 순번의 페이지가 먼저 변환 및 렌더링 완료되어 화면 상에 표시되고 있지 않은 것으로 확인되는 경우, 상기 이전 순번의 페이지가 변환 및 렌더링 완료되어 화면 상에 표시될 때까지 대기하였다가, 상기 이전 순번의 페이지가 변환 및 렌더링 완료되어 화면 상에 표시되면, 변환 완료된 상기 어느 하나의 페이지를 렌더링하여 화면 상에 표시한다.The display unit 113, through the conversion task execution unit 112, whenever any one of the n pages is converted, renders the converted page and displays it on the screen, When it is confirmed that the page in the immediately previous sequence of any one of the pages has been converted and rendered first and is not displayed on the screen, the page waited until the page in the previous sequence has been converted and rendered and displayed on the screen. When the page of the previous order is converted and rendered and displayed on the screen, any one of the converted pages is rendered and displayed on the screen.

이때, 본 발명의 일실시예에 따르면, 표시부(113)는 변환 완료된 상기 어느 하나의 페이지가 상기 n개의 페이지들 중 첫 번째 순번의 페이지인 것으로 확인되는 경우, 상기 이전 순번의 페이지에 대한 변환 및 렌더링 완료여부의 확인 없이, 변환 완료된 상기 어느 하나의 페이지를 바로 렌더링하여 화면 상에 표시할 수 있다.At this time, according to one embodiment of the present invention, the display unit 113, if it is confirmed that any one of the converted pages is the first sequential page among the n pages, the conversion and conversion of the previous sequential page Without checking whether the rendering is complete, any one of the converted pages may be immediately rendered and displayed on the screen.

문서 파일 생성부(114)는 상기 n개의 페이지들이 모두 변환 및 렌더링 완료되어 화면 상에 표시되면, 변환 완료된 상기 n개의 페이지들로 구성된 상기 제2 문서 포맷의 제2 전자 문서에 대한 문서 파일을 생성한다.When all of the n pages are converted and rendered and displayed on the screen, the document file generation unit 114 generates a document file for the second electronic document of the second document format composed of the n pages that have been converted. do.

이하에서는, 도 2 내지 도 3을 참조하여, 스레드 생성부(111), 변환 작업 실행부(112), 표시부(113) 및 문서 파일 생성부(114)의 동작을 예를 들어, 상세히 설명하기로 한다.Hereinafter, operations of the thread creation unit 111, the conversion task execution unit 112, the display unit 113, and the document file creation unit 114 will be described in detail with reference to FIGS. 2 and 3. do.

먼저, 'n=4'라고 하고, 제1 문서 포맷으로 작성된 제1 전자 문서가 4개의 페이지들인 '페이지 1(201), 페이지 2(202), 페이지 3(203), 페이지 4(204)'로 구성되어 있다고 가정하자.First, 'n=4' is assumed, and the first electronic document created in the first document format is 'Page 1 (201), Page 2 (202), Page 3 (203), Page 4 (204)' of four pages. Assume that it consists of

이때, 사용자로부터 제1 문서 포맷으로 작성된 제1 전자 문서에 대한 문서 파일을 제2 문서 포맷의 문서 파일로 변환할 것을 지시하는 문서 포맷 변환 명령이 전자 장치(110)에 인가되면, 스레드 생성부(111)는 4개의 페이지들인 '페이지 1(201), 페이지 2(202), 페이지 3(203), 페이지 4(204)' 각각의 문서 포맷을 변환하기 위한 4개의 스레드들을 생성할 수 있다.At this time, when a document format conversion command instructing the user to convert a document file for a first electronic document prepared in a first document format into a document file in a second document format is applied to the electronic device 110, the thread generator ( 111) may create four threads for converting the document format of each of the four pages, 'Page 1 (201), Page 2 (202), Page 3 (203), and Page 4 (204)'.

만약, 스레드 생성부(111)에 의해 상기 4개의 스레드들이 '스레드 1(211), 스레드 2(212), 스레드 3(213), 스레드 4(214)'와 같이 생성되었다고 하는 경우, 변환 작업 실행부(112)는 도 2에 도시된 그림과 같이, 상기 4개의 스레드들인 '스레드 1(211), 스레드 2(212), 스레드 3(213), 스레드 4(214)'에 상기 4개의 페이지들인 '페이지 1(201), 페이지 2(202), 페이지 3(203), 페이지 4(204)'를 각각 하나씩 할당할 수 있다.If the four threads are created as 'thread 1 (211), thread 2 (212), thread 3 (213), and thread 4 (214)' by the thread creation unit 111, the conversion operation is executed. As shown in FIG. 2, the unit 112 includes the four pages in the four threads 'thread 1 (211), thread 2 (212), thread 3 (213), and thread 4 (214)'. 'Page 1 (201), page 2 (202), page 3 (203), and page 4 (204)' may be assigned one by one.

그 이후, 변환 작업 실행부(112)는 상기 4개의 스레드들인 '스레드 1(211), 스레드 2(212), 스레드 3(213), 스레드 4(214)'를 동시에 실행시킴으로써, 상기 4개의 페이지들인 '페이지 1(201), 페이지 2(202), 페이지 3(203), 페이지 4(204)'에 대한 문서 포맷 변환 작업을 병렬적으로 동시에 실행할 수 있다.After that, the conversion task executor 112 simultaneously executes the four threads 'Thread 1 (211), Thread 2 (212), Thread 3 (213), and Thread 4 (214)', thereby converting the four pages. A document format conversion operation for 'page 1 (201), page 2 (202), page 3 (203), and page 4 (204)' may be simultaneously executed in parallel.

이때, 표시부(113)는 변환 작업 실행부(112)를 통해, 상기 4개의 페이지들인 '페이지 1(201), 페이지 2(202), 페이지 3(203), 페이지 4(204)' 중 어느 하나의 페이지가 변환 완료될 때마다, 변환 완료된 상기 어느 하나의 페이지를 렌더링하여 화면 상에 표시하되, 변환 완료된 상기 어느 하나의 페이지의 바로 이전 순번의 페이지가 먼저 변환 및 렌더링 완료되어 화면 상에 표시되고 있지 않은 것으로 확인되는 경우, 상기 이전 순번의 페이지가 변환 및 렌더링 완료되어 화면 상에 표시될 때까지 대기하였다가, 상기 이전 순번의 페이지가 변환 및 렌더링 완료되어 화면 상에 표시되면, 변환 완료된 상기 어느 하나의 페이지를 렌더링하여 화면 상에 표시할 수 있다. 하지만, 만약, 변환 완료된 상기 어느 하나의 페이지가 '페이지 1(201), 페이지 2(202), 페이지 3(203), 페이지 4(204)' 중 첫 번째 페이지인 '페이지 1(201)'인 것으로 확인되는 경우, 표시부(113)는 상기 이전 순번의 페이지에 대한 변환 및 렌더링 완료여부의 확인 없이, 변환 완료된 '페이지 1(201)'을 바로 렌더링하여 화면 상에 표시할 수 있다.At this time, the display unit 113, through the conversion task execution unit 112, selects one of the four pages 'Page 1 (201), Page 2 (202), Page 3 (203), and Page 4 (204)'. Whenever a page of is converted, any one of the converted pages is rendered and displayed on the screen, and the page in the order immediately preceding any one of the converted pages is converted and rendered first and displayed on the screen. If it is confirmed that the page in the previous order is converted and rendered and displayed on the screen, it waits until the page in the previous order is converted and rendered and displayed on the screen. One page can be rendered and displayed on the screen. However, if any one of the converted pages is 'Page 1 (201)', which is the first page among 'Page 1 (201), Page 2 (202), Page 3 (203), and Page 4 (204)' If confirmed, the display unit 113 may immediately render the converted 'Page 1 (201)' and display it on the screen without checking whether the conversion and rendering of the previous page have been completed.

이와 관련해서, 도면부호 301과 같이, '페이지 1(201), 페이지 2(202), 페이지 3(203), 페이지 4(204)' 중 어느 하나의 페이지인 '페이지 3(203)'이 가장 먼저 변환 완료되었다고 가정하자.In this regard, as shown by reference numeral 301, 'page 3 (203)', which is any one of 'page 1 (201), page 2 (202), page 3 (203), and page 4 (204)', is the most Assume that the conversion is completed first.

그러면, 표시부(113)는 변환 완료된 상기 '페이지 3(203)'의 바로 이전 순번의 페이지인 '페이지 2(202)'가 먼저 변환 및 렌더링 완료되어 화면 상에 표시되고 있는지 여부를 확인할 수 있다. 이때, '페이지 2(202)'는 아직 변환 및 렌더링이 완료되지 않은 페이지이기 때문에, 표시부(113)는 '페이지 3(203)'의 렌더링을 진행하지 않은 채, '페이지 2(202)'가 먼저 변환 및 렌더링 완료되어 화면 상에 표시될 때까지 대기할 수 있다.Then, the display unit 113 can check whether 'Page 2 (202)', which is a page immediately preceding the converted 'Page 3 (203)', has been converted and rendered first and is displayed on the screen. At this time, since 'Page 2 (202)' is a page that has not yet been converted and rendered, the display unit 113 does not render 'Page 3 (203)' and 'Page 2 (202)' First, it may wait until conversion and rendering are completed and displayed on the screen.

그 이후, 도면부호 302와 같이, '페이지 2(202)'가 변환 완료되면, 표시부(113)는 변환 완료된 상기 '페이지 2(202)'의 바로 이전 순번의 페이지인 '페이지 1(201)'이 먼저 변환 및 렌더링 완료되어 화면 상에 표시되고 있는지 여부를 확인할 수 있다. 이때, '페이지 1(201)'은 아직 변환 및 렌더링이 완료되지 않은 페이지이기 때문에, 표시부(113)는 '페이지 2(202)'의 렌더링을 진행하지 않은 채, '페이지 1(201)'이 먼저 변환 및 렌더링 완료되어 화면 상에 표시될 때까지 대기할 수 있다.After that, as shown by reference numeral 302, when 'Page 2 (202)' is converted, the display unit 113 displays 'Page 1 (201)', which is the page immediately preceding the converted 'Page 2 (202)'. It can be checked whether the conversion and rendering are completed first and displayed on the screen. At this time, since 'Page 1 (201)' is a page that has not yet been converted and rendered, the display unit 113 does not render 'Page 2 (202)' and 'Page 1 (201)' First, it may wait until conversion and rendering are completed and displayed on the screen.

그 이후, 도면부호 303과 같이, '페이지 1(201)'이 변환 완료되면, 표시부(113)는 '페이지 1(201)'이 첫 번째 페이지이기 때문에, 이전 순번의 페이지에 대한 변환 및 렌더링 완료여부의 확인 없이, 변환 완료된 '페이지 1(201)'을 바로 렌더링하여 화면 상에 표시할 수 있다.After that, as shown by reference numeral 303, when 'Page 1 (201)' is converted, the display unit 113 completes conversion and rendering of the previous page because 'Page 1 (201)' is the first page. Without checking whether or not, the converted 'Page 1 (201)' may be immediately rendered and displayed on the screen.

이렇게, '페이지 1(201)'이 화면 상에 렌더링되어 표시되면, 표시부(113)는 그 다음으로, 대기 중이던 '페이지 2(202)'를 렌더링하여 화면 상에 표시할 수 있고, 이어서, 대기 중이던 '페이지 3(203)'을 렌더링하여 화면 상에 표시할 수 있다.In this way, when 'Page 1 (201)' is rendered and displayed on the screen, the display unit 113 can then render and display 'Page 2 (202)' on the screen, which has been waiting, and then, 'Page 3 (203)' in progress can be rendered and displayed on the screen.

그 이후, 도면부호 304와 같이, '페이지 4(204)'가 변환 완료되면, 표시부(113)는 변환 완료된 상기 '페이지 4(204)'의 바로 이전 순번의 페이지인 '페이지 3(203)'이 먼저 변환 및 렌더링 완료되어 화면 상에 표시되고 있는지 여부를 확인할 수 있다. 이때, '페이지 3(203)'은 이미 변환 및 렌더링이 완료되어, 화면 상에 표시되고 있는 페이지이기 때문에, 표시부(113)는 '페이지 4(204)'를 바로 렌더링하여 화면 상에 표시할 수 있다.After that, as shown by reference numeral 304, when 'Page 4 (204)' is converted, the display unit 113 displays 'Page 3 (203)', which is the page immediately preceding the converted 'Page 4 (204)'. It can be checked whether the conversion and rendering are completed first and displayed on the screen. At this time, since 'Page 3 (203)' is a page that has already been converted and rendered and displayed on the screen, the display unit 113 can render 'Page 4 (204)' immediately and display it on the screen. there is.

이렇게, 표시부(113)에 의해 상기 4개의 페이지들이 모두 변환 및 렌더링 완료되어 화면 상에 표시되면, 문서 파일 생성부(114)는 변환 완료된 상기 4개의 페이지들인 '페이지 1(201), 페이지 2(202), 페이지 3(203), 페이지 4(204)'로 구성된 상기 제2 문서 포맷의 제2 전자 문서에 대한 문서 파일을 생성할 수 있다.In this way, when all of the four pages are converted and rendered by the display unit 113 and displayed on the screen, the document file generator 114 converts the four converted pages, 'page 1 (201), page 2 ( 202), page 3 (203), and page 4 (204)', a document file for the second electronic document of the second document format may be created.

본 발명의 일실시예에 따르면, 전자 장치(110)는 기준점 페이지 지정부(115), 점유율 연산부(116) 및 지연 메시지 표시부(117)를 더 포함할 수 있다.According to an embodiment of the present invention, the electronic device 110 may further include a reference point page designation unit 115 , a occupancy calculation unit 116 , and a delay message display unit 117 .

기준점 페이지 지정부(115)는 상기 제1 전자 문서를 구성하는 페이지들의 개수인 n이 사전 설정된 기준 값을 초과하는 경우, 상기 n개의 페이지들 중, n에 사전 설정된 비율을 곱한 값을 반올림한 순번을 갖는 페이지를 기준점 페이지로 지정한다.When n, the number of pages constituting the first electronic document, exceeds a preset reference value, the reference point page specifying unit 115 determines the number obtained by rounding up a value obtained by multiplying n by a preset ratio among the n pages. Designate the page with as the base point page.

점유율 연산부(116)는 상기 n개의 페이지들 중 변환 작업 실행부(112)를 통해, 상기 기준점 페이지가 변환 완료되는 시점을 확인하고, 상기 n개의 페이지들 중 상기 기준점 페이지의 변환이 완료되는 시점이 확인되면, 상기 n개의 페이지들 전체에서 현재까지 변환 및 렌더링이 완료되어 화면 상에 표시되고 있는 페이지들이 차지하는 점유율을 연산한다.The occupancy calculation unit 116 checks the conversion completion time of the reference point page among the n pages through the conversion operation execution unit 112, and determines the conversion completion time of the reference point page among the n pages. If confirmed, occupancy rates occupied by pages that have been converted and rendered so far in all of the n pages and are being displayed on the screen are calculated.

지연 메시지 표시부(117)는 상기 점유율이 사전 설정된 기준치 이하인 것으로 확인되는 경우, 상기 제1 문서 포맷에서 상기 제2 문서 포맷으로의 문서 포맷 변환이 지연됨을 알리는 변환 지연 메시지를 생성하여 화면 상에 표시한다.When the delay message display unit 117 determines that the occupancy rate is equal to or less than a preset reference value, a conversion delay message notifying that conversion of the document format from the first document format to the second document format is delayed is generated and displayed on the screen. .

이하에서는, 기준점 페이지 지정부(115), 점유율 연산부(116) 및 지연 메시지 표시부(117)의 동작을 예를 들어, 상세히 설명하기로 한다.Hereinafter, operations of the reference point page designation unit 115, occupancy calculation unit 116, and delay message display unit 117 will be described in detail by way of example.

먼저, 'n=13'이라고 하고, 제1 문서 포맷으로 작성된 제1 전자 문서가 13개의 페이지들인 '페이지 1, 페이지 2, 페이지 3, 페이지 4, ..., 페이지 13'으로 구성되어 있다고 가정하자.First, it is assumed that 'n=13' and that the first electronic document prepared in the first document format is composed of 13 pages 'Page 1, Page 2, Page 3, Page 4, ..., Page 13'. let's do it.

그러면, 기준점 페이지 지정부(115)는 상기 제1 전자 문서를 구성하는 페이지들의 개수인 13이 사전 설정된 기준 값을 초과하는 경우, 상기 13개의 페이지들 중, 13에 사전 설정된 비율을 곱한 값을 반올림한 순번을 갖는 페이지를 기준점 페이지로 지정할 수 있다.Then, when the number of pages constituting the first electronic document, 13, exceeds the preset reference value, the reference point page designation unit 115 rounds off a value obtained by multiplying 13 by a preset ratio among the 13 pages. A page with one sequence can be designated as the base point page.

여기서, 사전 설정된 기준 값을 '10'이라고 하고, 사전 설정된 비율을 '0.5'라고 가정하는 경우, 기준점 페이지 지정부(115)는 상기 제1 전자 문서를 구성하는 페이지들인 '페이지 1, 페이지 2, 페이지 3, 페이지 4, ..., 페이지 13'의 개수인 13이 사전 설정된 기준 값인 '10'을 초과하는 것으로 확인할 수 있다.Here, assuming that the preset reference value is '10' and the preset ratio is '0.5', the reference point page designation unit 115 sets the pages constituting the first electronic document to 'page 1, page 2, It can be confirmed that 13, which is the number of page 3, page 4, ..., page 13, exceeds the preset reference value of '10'.

따라서, 기준점 페이지 지정부(115)는 상기 13개의 페이지들인 '페이지 1, 페이지 2, 페이지 3, 페이지 4, ..., 페이지 13' 중, 13에 사전 설정된 비율인 '0.5'를 곱한 값인 '6.5'를 반올림한 순번인 '7'을 갖는 페이지인 '페이지 7'을 기준점 페이지로 지정할 수 있다.Therefore, the reference point page specifying unit 115 sets a value obtained by multiplying 13 by '0.5', which is a preset ratio, among the 13 pages 'page 1, page 2, page 3, page 4, ..., page 13'. 'Page 7', which is a page having '7', which is an order number obtained by rounding up 6.5', may be designated as a reference point page.

그 이후, 점유율 연산부(116)는 상기 13개의 페이지들 중 변환 작업 실행부(112)를 통해, 상기 기준점 페이지인 '페이지 7'이 변환 완료되는 시점을 확인하고, 상기 13개의 페이지들 중 상기 기준점 페이지인 '페이지 7'의 변환이 완료되는 시점이 확인되면, 상기 13개의 페이지들인 '페이지 1, 페이지 2, 페이지 3, 페이지 4, ..., 페이지 13' 전체에서 현재까지 변환 및 렌더링이 완료되어 화면 상에 표시되고 있는 페이지들이 차지하는 점유율을 연산할 수 있다.After that, the occupancy calculation unit 116 checks the conversion completion time of the reference point page 'Page 7' through the conversion operation execution unit 112 among the 13 pages, and determines the reference point among the 13 pages. When the point at which conversion of page 'Page 7' is completed is confirmed, conversion and rendering have been completed in all of the 13 pages 'Page 1, Page 2, Page 3, Page 4, ..., Page 13' up to now. It is possible to calculate the occupancy rate occupied by the pages being displayed on the screen.

만약, 현재까지 변환 및 렌더링이 완료되어 화면 상에 표시되고 있는 페이지들을 '페이지 1, 페이지 2, 페이지 3'이라고 가정하는 경우, 점유율 연산부(116)는 상기 점유율을 ''와 같이 연산할 수 있다.If it is assumed that the pages that have been converted and rendered so far and displayed on the screen are 'Page 1, Page 2, and Page 3', the occupancy calculation unit 116 calculates the occupancy by ' ' can be computed as

그러고 나서, 지연 메시지 표시부(117)는 상기 점유율인 '23.07(%)'이 사전 설정된 기준치 이하인 것으로 확인되는 경우, 상기 제1 문서 포맷에서 상기 제2 문서 포맷으로의 문서 포맷 변환이 지연됨을 알리는 변환 지연 메시지를 생성하여 화면 상에 표시할 수 있다.Then, the delay message display unit 117 notifies that the document format conversion from the first document format to the second document format is delayed when it is confirmed that the occupancy rate of '23.07 (%)' is less than a preset reference value. A delayed message can be created and displayed on the screen.

여기서, 상기 사전 설정된 기준치를 '30.00(%)'이라고 가정하는 경우, 상기 점유율인 '23.07(%)'이 상기 사전 설정된 기준치인 '30.00(%)' 이하인 것으로 확인되기 때문에, 지연 메시지 표시부(117)는 상기 변환 지연 메시지를 생성하여 화면 상에 표시할 수 있다.Here, when it is assumed that the preset reference value is '30.00 (%)', since it is confirmed that the occupancy rate of '23.07 (%)' is less than the preset reference value of '30.00 (%)', the delay message display unit 117 ) can generate the conversion delay message and display it on the screen.

즉, 본 발명에 따른 전자 장치(110)는 상기 기준점 페이지인 '페이지 7'의 변환이 완료되는 시점에서, 현재까지 페이지들에 대한 변환 및 렌더링이 완료된 비율을 확인함으로써, 해당 비율이 소정의 기준치를 밑도는 경우, 전자 문서에 대한 포맷 변환 작업이 지연되고 있음을 지시하는 상기 변환 지연 메시지를 생성하여 화면 상에 표시할 수 있다.That is, the electronic device 110 according to the present invention checks the rate at which conversion and rendering of pages have been completed up to now at the point in time when conversion of 'Page 7', which is the reference point page, is completed, so that the ratio is a predetermined reference value. If it is less than , the conversion delay message indicating that the format conversion operation for the electronic document is being delayed may be generated and displayed on the screen.

이를 통해, 상기 사용자는 화면 상에 표시된 상기 변환 지연 메시지를 확인함으로써, 상기 제1 문서 포맷에서 상기 제2 문서 포맷으로의 문서 포맷 변환이 지연되고 있음을 직관적으로 파악할 수 있다.Through this, the user can intuitively grasp that the conversion of the document format from the first document format to the second document format is being delayed by checking the conversion delay message displayed on the screen.

본 발명의 일실시예에 따르면, 전자 장치(110)는 데이터 확인부(118), 기준 벡터 생성부(119), 코사인 유사도 연산부(120) 및 작업 수행 정확도 표시부(121)를 더 포함할 수 있다.According to an embodiment of the present invention, the electronic device 110 may further include a data checking unit 118, a reference vector generator 119, a cosine similarity calculating unit 120, and a task performance accuracy display unit 121. .

데이터 확인부(118)는 상기 제2 전자 문서에 대한 문서 파일이 생성되면, 상기 제1 전자 문서의 상기 n개의 페이지들 각각에 대한 데이터 크기를 확인하고, 상기 제2 전자 문서의 상기 n개의 페이지들 각각에 대한 데이터 크기를 확인한다.When a document file for the second electronic document is generated, the data checking unit 118 checks the data size of each of the n pages of the first electronic document, and the n pages of the second electronic document. Check the data size for each of them.

기준 벡터 생성부(119)는 상기 제1 전자 문서의 상기 n개의 페이지들 각각에 대한 데이터 크기를 성분으로 하는 n차원의 제1 기준 벡터를 생성하고, 상기 제2 전자 문서의 상기 n개의 페이지들 각각에 대한 데이터 크기를 성분으로 하는 n차원의 제2 기준 벡터를 생성한다.The reference vector generator 119 generates an n-dimensional first reference vector having a data size of each of the n pages of the first electronic document as a component, and the n pages of the second electronic document An n-dimensional second reference vector having each data size as a component is generated.

코사인 유사도 연산부(120)는 상기 n차원의 제1 기준 벡터와, 상기 n차원의 제2 기준 벡터 간의 코사인 유사도를 연산한다.The cosine similarity calculation unit 120 calculates the cosine similarity between the n-dimensional first reference vector and the n-dimensional second reference vector.

여기서, 상기 n차원의 제1 기준 벡터와, 상기 n차원의 제2 기준 벡터 간의 코사인 유사도는 하기의 수학식 1에 따라 연산될 수 있다.Here, the cosine similarity between the n-dimensional first reference vector and the n-dimensional second reference vector may be calculated according to Equation 1 below.

여기서, S는 벡터 A와 B 사이의 코사인 유사도로 -1에서 1사이의 값을 가지며, 그 값이 클수록 유사한 벡터임을 의미하고, Ai는 벡터 A의 i번째 성분, Bi는 벡터 B의 i번째 성분을 의미한다.Here, S is the cosine similarity between vectors A and B. It has a value between -1 and 1, and the larger the value, the more similar the vector, A i is the i-th component of vector A, and B i is the i of vector B. means the second component.

작업 수행 정확도 표시부(121)는 상기 코사인 유사도를, 상기 제1 전자 문서에 대한 문서 파일에서 상기 제2 전자 문서에 대한 문서 파일로의 문서 포맷 변환 작업에 대한 작업 수행 정확도를 표상하는 정보로서 화면 상에 표시한다.The task performance accuracy display unit 121 displays the cosine similarity on the screen as information representing task performance accuracy for a document format conversion task from a document file for the first electronic document to a document file for the second electronic document. display on

이하에서는, 데이터 확인부(118), 기준 벡터 생성부(119), 코사인 유사도 연산부(120) 및 작업 수행 정확도 표시부(121)의 동작을 예를 들어, 상세히 설명하기로 한다.Hereinafter, operations of the data verification unit 118, the reference vector generator 119, the cosine similarity calculator 120, and the task performance accuracy display unit 121 will be described in detail, for example.

먼저, 전술한 예와 같이, 'n=4'라고 하고, 제1 문서 포맷으로 작성된 제1 전자 문서가 4개의 페이지들인 '페이지 1(201), 페이지 2(202), 페이지 3(203), 페이지 4(204)'로 구성되어 있다고 하며, 문서 파일 생성부(114)에 의해 변환 완료된 상기 4개의 페이지들인 '페이지 1(201), 페이지 2(202), 페이지 3(203), 페이지 4(204)'로 구성된 제2 문서 포맷의 제2 전자 문서에 대한 문서 파일이 생성되었다고 가정하자.First, as in the above example, 'n=4' is assumed, and the first electronic document created in the first document format has four pages 'Page 1 (201), Page 2 (202), Page 3 (203), It is said to be composed of 'page 4 (204)', and the four pages converted by the document file generation unit 114 are 'page 1 (201), page 2 (202), page 3 (203), and page 4 ( 204)', it is assumed that a document file for a second electronic document in a second document format is created.

그러면, 데이터 확인부(118)는 상기 제1 전자 문서의 상기 4개의 페이지들 각각에 대한 데이터 크기를 확인하고, 상기 제2 전자 문서의 상기 4개의 페이지들 각각에 대한 데이터 크기를 확인할 수 있다.Then, the data checking unit 118 may check the data size of each of the four pages of the first electronic document and the data size of each of the four pages of the second electronic document.

만약, 데이터 확인부(118)에 의해 상기 제1 전자 문서의 '페이지 1(201), 페이지 2(202), 페이지 3(203), 페이지 4(204)' 각각에 대한 데이터 크기가 '2(kB), 3(kB), 5(kB), 10(kB)'으로 확인되었다고 하고, 상기 제2 전자 문서의 변환 완료된 '페이지 1(201), 페이지 2(202), 페이지 3(203), 페이지 4(204)' 각각에 대한 데이터 크기가 '1(kB), 6(kB), 2(kB), 7(kB)'로 확인되었다고 하는 경우, 기준 벡터 생성부(119)는 상기 제1 전자 문서의 '페이지 1(201), 페이지 2(202), 페이지 3(203), 페이지 4(204)' 각각에 대한 데이터 크기인 '2(kB), 3(kB), 5(kB), 10(kB)'을 성분으로 하는 4차원의 제1 기준 벡터를 '[2 3 5 10]'과 같이 생성하고, 상기 제2 전자 문서의 변환 완료된 '페이지 1(201), 페이지 2(202), 페이지 3(203), 페이지 4(204)' 각각에 대한 데이터 크기인 '1(kB), 6(kB), 2(kB), 7(kB)'을 성분으로 하는 4차원의 제2 기준 벡터를 '[1 6 2 7]'과 같이 생성할 수 있다.If, by the data confirmation unit 118, the data size for each of 'page 1 (201), page 2 (202), page 3 (203), and page 4 (204)' of the first electronic document is '2 ( kB), 3 (kB), 5 (kB), 10 (kB)', and the converted 'page 1 (201), page 2 (202), page 3 (203), When it is determined that the data size for each of page 4 (204) is '1 (kB), 6 (kB), 2 (kB), and 7 (kB)', the reference vector generator 119 generates the first The data size for each of 'page 1 (201), page 2 (202), page 3 (203), and page 4 (204)' of the electronic document '2 (kB), 3 (kB), 5 (kB), A 4-dimensional first reference vector having 10 (kB)' as a component is generated as '[2 3 5 10]', and the converted 'page 1 (201), page 2 (202) of the second electronic document , page 3 (203), page 4 (204), respectively, the data size of '1 (kB), 6 (kB), 2 (kB), 7 (kB)' as a component of the 4-dimensional second criterion You can create a vector like '[1 6 2 7]'.

그 이후, 코사인 유사도 연산부(120)는 상기 4차원의 제1 기준 벡터인 '[2 3 5 10]'과, 상기 4차원의 제2 기준 벡터인 '[1 6 2 7]' 간의 코사인 유사도를 상기 수학식 1에 따라 '0.898'과 같이 연산할 수 있다.After that, the cosine similarity calculation unit 120 determines the cosine similarity between the 4-dimensional first reference vector '[2 3 5 10]' and the 4-dimensional second reference vector '[1 6 2 7]'. According to Equation 1 above, it can be calculated as '0.898'.

그러고 나서, 작업 수행 정확도 표시부(121)는 상기 코사인 유사도인 '0.898'을, 상기 제1 전자 문서에 대한 문서 파일에서 상기 제2 전자 문서에 대한 문서 파일로의 문서 포맷 변환 작업에 대한 작업 수행 정확도를 표상하는 정보로서 화면 상에 표시할 수 있다.Then, the task performance accuracy display unit 121 converts the cosine similarity of '0.898' to the task performance accuracy for a document format conversion task from a document file for the first electronic document to a document file for the second electronic document. It can be displayed on the screen as information representing .

즉, 본 발명에 따른 전자 장치(110)는 포맷 변환 전의 전자 문서를 구성하는 페이지들의 크기와 포맷 변환 후의 전자 문서를 구성하는 페이지들의 크기 간의 유사도를 비교하여, 포맷 변환 작업의 수행 정확도가 어느 정도가 되는지에 대한 정보를 화면 상에 표시해 줌으로써, 사용자가 포맷 변환 작업이 어느 정도의 정확도로 수행되었는지를 직관적으로 파악할 수 있도록 지원할 수 있다.That is, the electronic device 110 according to the present invention compares the similarity between the size of the pages constituting the electronic document before format conversion and the size of pages constituting the electronic document after format conversion, so that the accuracy of performing the format conversion operation is determined to some extent. is displayed on the screen, it is possible to support the user to intuitively grasp with what degree of accuracy the format conversion operation has been performed.

도 4는 본 발명의 일실시예에 따른 병렬 처리 기반의 문서 포맷 변환을 수행하는 전자 장치의 동작 방법을 도시한 순서도이다.4 is a flowchart illustrating an operating method of an electronic device that performs document format conversion based on parallel processing according to an embodiment of the present invention.

단계(S410)에서는 사용자로부터 제1 문서 포맷으로 작성된 제1 전자 문서(상기 제1 전자 문서는 n(n은 2이상의 자연수임)개의 페이지들로 구성됨)에 대한 문서 파일을 제2 문서 포맷의 문서 파일로 변환할 것을 지시하는 문서 포맷 변환 명령이 인가되면, 상기 n개의 페이지들 각각의 문서 포맷을 변환하기 위한 n개의 스레드들을 생성한다.In step S410, a document file for a first electronic document prepared in a first document format (the first electronic document is composed of n (n is a natural number equal to or greater than 2) pages) written in a first document format from the user is converted into a document in a second document format. When a document format conversion command instructing conversion into a file is applied, n threads for converting the document format of each of the n pages are generated.

단계(S420)에서는 상기 n개의 스레드들이 생성되면, 상기 n개의 스레드들에 상기 n개의 페이지들을 각각 하나씩 할당한 후, 상기 n개의 스레드들을 동시에 실행시킴으로써, 상기 n개의 페이지들에 대한 문서 포맷 변환 작업을 병렬적으로 동시에 실행한다.In step S420, when the n threads are created, each of the n pages is allocated to the n threads, and then the n threads are simultaneously executed to convert the document format of the n pages. run concurrently in parallel.

단계(S430)에서는 상기 n개의 페이지들 중 어느 하나의 페이지가 변환 완료될 때마다, 변환 완료된 상기 어느 하나의 페이지를 렌더링하여 화면 상에 표시하되, 변환 완료된 상기 어느 하나의 페이지의 바로 이전 순번의 페이지가 먼저 변환 및 렌더링 완료되어 화면 상에 표시되고 있지 않은 것으로 확인되는 경우, 상기 이전 순번의 페이지가 변환 및 렌더링 완료되어 화면 상에 표시될 때까지 대기하였다가, 상기 이전 순번의 페이지가 변환 및 렌더링 완료되어 화면 상에 표시되면, 변환 완료된 상기 어느 하나의 페이지를 렌더링하여 화면 상에 표시한다.In step S430, whenever any one of the n pages is converted, the converted one of the pages is rendered and displayed on the screen, and the number of pages immediately preceding the one of the converted pages is displayed. If it is confirmed that the page has been converted and rendered first and is not displayed on the screen, it waits until the page in the previous order is converted and rendered and displayed on the screen, and then the page in the previous order is converted and rendered. When the rendering is completed and displayed on the screen, the converted page is rendered and displayed on the screen.

단계(S440)에서는 상기 n개의 페이지들이 모두 변환 및 렌더링 완료되어 화면 상에 표시되면, 변환 완료된 상기 n개의 페이지들로 구성된 상기 제2 문서 포맷의 제2 전자 문서에 대한 문서 파일을 생성한다.In step S440, when all of the n pages are converted and rendered and displayed on the screen, a document file for a second electronic document of the second document format composed of the n pages that have been converted is generated.

이때, 본 발명의 일실시예에 따르면, 단계(S430)에서는 변환 완료된 상기 어느 하나의 페이지가 상기 n개의 페이지들 중 첫 번째 순번의 페이지인 것으로 확인되는 경우, 상기 이전 순번의 페이지에 대한 변환 및 렌더링 완료여부의 확인 없이, 변환 완료된 상기 어느 하나의 페이지를 바로 렌더링하여 화면 상에 표시할 수 있다.At this time, according to one embodiment of the present invention, in step S430, if it is confirmed that any one of the converted pages is a page in the first order among the n pages, conversion of the page in the previous order and Without checking whether the rendering is complete, any one of the converted pages may be immediately rendered and displayed on the screen.

또한, 본 발명의 일실시예에 따르면, 상기 전자 장치의 동작 방법은 상기 제1 전자 문서를 구성하는 페이지들의 개수인 n이 사전 설정된 기준 값을 초과하는 경우, 상기 n개의 페이지들 중, n에 사전 설정된 비율을 곱한 값을 반올림한 순번을 갖는 페이지를 기준점 페이지로 지정하는 단계, 상기 n개의 페이지들 중 상기 기준점 페이지가 변환 완료되는 시점을 확인하고, 상기 n개의 페이지들 중 상기 기준점 페이지의 변환이 완료되는 시점이 확인되면, 상기 n개의 페이지들 전체에서 현재까지 변환 및 렌더링이 완료되어 화면 상에 표시되고 있는 페이지들이 차지하는 점유율을 연산하는 단계 및 상기 점유율이 사전 설정된 기준치 이하인 것으로 확인되는 경우, 상기 제1 문서 포맷에서 상기 제2 문서 포맷으로의 문서 포맷 변환이 지연됨을 알리는 변환 지연 메시지를 생성하여 화면 상에 표시하는 단계를 더 포함할 수 있다.Further, according to an embodiment of the present invention, the operating method of the electronic device may include, when n, the number of pages constituting the first electronic document, exceeds a preset reference value, among the n pages, n designating a page having an order obtained by rounding off a value multiplied by a preset ratio as a reference point page, determining when the base point page among the n pages is converted, and converting the reference point page among the n pages. If it is confirmed that the completion time is confirmed, calculating the occupancy rate occupied by the pages being displayed on the screen as conversion and rendering have been completed so far in all of the n pages, and if it is confirmed that the occupancy rate is equal to or less than a preset reference value, The method may further include generating and displaying a conversion delay message on a screen notifying that conversion of the document format from the first document format to the second document format is delayed.

또한, 본 발명의 일실시예에 따르면, 상기 전자 장치의 동작 방법은 상기 제2 전자 문서에 대한 문서 파일이 생성되면, 상기 제1 전자 문서의 상기 n개의 페이지들 각각에 대한 데이터 크기를 확인하고, 상기 제2 전자 문서의 상기 n개의 페이지들 각각에 대한 데이터 크기를 확인하는 단계, 상기 제1 전자 문서의 상기 n개의 페이지들 각각에 대한 데이터 크기를 성분으로 하는 n차원의 제1 기준 벡터를 생성하고, 상기 제2 전자 문서의 상기 n개의 페이지들 각각에 대한 데이터 크기를 성분으로 하는 n차원의 제2 기준 벡터를 생성하는 단계, 상기 n차원의 제1 기준 벡터와, 상기 n차원의 제2 기준 벡터 간의 코사인 유사도를 연산하는 단계 및 상기 코사인 유사도를, 상기 제1 전자 문서에 대한 문서 파일에서 상기 제2 전자 문서에 대한 문서 파일로의 문서 포맷 변환 작업에 대한 작업 수행 정확도를 표상하는 정보로서 화면 상에 표시하는 단계를 더 포함할 수 있다.In addition, according to an embodiment of the present invention, the operating method of the electronic device, when a document file for the second electronic document is generated, checks the data size of each of the n pages of the first electronic document, , determining the data size of each of the n pages of the second electronic document, an n-dimensional first reference vector having the data size of each of the n pages of the first electronic document as a component and generating an n-dimensional second reference vector having a data size for each of the n pages of the second electronic document as a component, the n-dimensional first reference vector, and the n-dimensional second reference vector. Computing the cosine similarity between two reference vectors and the cosine similarity, information representing a job execution accuracy for converting a document format from a document file for the first electronic document to a document file for the second electronic document It may further include displaying on the screen as .

이상, 도 4를 참조하여 본 발명의 일실시예에 따른 전자 장치의 동작 방법에 대해 설명하였다. 여기서, 본 발명의 일실시예에 따른 전자 장치의 동작 방법은 도 1 내지 도 3을 이용하여 설명한 전자 장치(110)의 동작에 대한 구성과 대응될 수 있으므로, 이에 대한 보다 상세한 설명은 생략하기로 한다.In the above, the operating method of the electronic device according to an embodiment of the present invention has been described with reference to FIG. 4 . Here, since the operating method of the electronic device according to an embodiment of the present invention may correspond to the configuration of the operation of the electronic device 110 described with reference to FIGS. 1 to 3, a detailed description thereof will be omitted. do.

본 발명의 일실시예에 따른 병렬 처리 기반의 문서 포맷 변환을 수행하는 전자 장치의 동작 방법은 컴퓨터와의 결합을 통해 실행시키기 위한 저장매체에 저장된 컴퓨터 프로그램으로 구현될 수 있다.A method of operating an electronic device that performs document format conversion based on parallel processing according to an embodiment of the present invention may be implemented as a computer program stored in a storage medium for execution through combination with a computer.

또한, 본 발명의 일실시예에 따른 병렬 처리 기반의 문서 포맷 변환을 수행하는 전자 장치의 동작 방법은 컴퓨터와의 결합을 통해 실행시키기 위한 컴퓨터 프로그램 명령 형태로 구현되어 컴퓨터 판독 가능 매체에 기록될 수 있다. 상기 컴퓨터 판독 가능 매체는 프로그램 명령, 데이터 파일, 데이터 구조 등을 단독으로 또는 조합하여 포함할 수 있다. 상기 매체에 기록되는 프로그램 명령은 본 발명을 위하여 특별히 설계되고 구성된 것들이거나 컴퓨터 소프트웨어 당업자에게 공지되어 사용 가능한 것일 수도 있다. 컴퓨터 판독 가능 기록 매체의 예에는 하드 디스크, 플로피 디스크 및 자기 테이프와 같은 자기 매체(magnetic media), CD-ROM, DVD와 같은 광기록 매체(optical media), 플롭티컬 디스크(floptical disk)와 같은 자기-광 매체(magneto-optical media), 및 롬(ROM), 램(RAM), 플래시 메모리 등과 같은 프로그램 명령을 저장하고 수행하도록 특별히 구성된 하드웨어 장치가 포함된다. 프로그램 명령의 예에는 컴파일러에 의해 만들어지는 것과 같은 기계어 코드뿐만 아니라 인터프리터 등을 사용해서 컴퓨터에 의해서 실행될 수 있는 고급 언어 코드를 포함한다.In addition, the operating method of an electronic device performing document format conversion based on parallel processing according to an embodiment of the present invention may be implemented in the form of computer program instructions for execution through combination with a computer and recorded on a computer readable medium. there is. The computer readable medium may include program instructions, data files, data structures, etc. alone or in combination. Program instructions recorded on the medium may be those specially designed and configured for the present invention or those known and usable to those skilled in computer software. Examples of computer-readable recording media include magnetic media such as hard disks, floppy disks and magnetic tapes, optical media such as CD-ROMs and DVDs, and magnetic media such as floptical disks. - includes hardware devices specially configured to store and execute program instructions, such as magneto-optical media, and ROM, RAM, flash memory, and the like. Examples of program instructions include high-level language codes that can be executed by a computer using an interpreter, as well as machine language codes such as those produced by a compiler.

이상과 같이 본 발명에서는 구체적인 구성 요소 등과 같은 특정 사항들과 한정된 실시예 및 도면에 의해 설명되었으나 이는 본 발명의 보다 전반적인 이해를 돕기 위해서 제공된 것일 뿐, 본 발명은 상기의 실시예에 한정되는 것은 아니며, 본 발명이 속하는 분야에서 통상적인 지식을 가진 자라면 이러한 기재로부터 다양한 수정 및 변형이 가능하다.As described above, the present invention has been described by specific details such as specific components and limited embodiments and drawings, but these are provided to help a more general understanding of the present invention, and the present invention is not limited to the above embodiments. , Those skilled in the art in the field to which the present invention belongs can make various modifications and variations from these descriptions.

따라서, 본 발명의 사상은 설명된 실시예에 국한되어 정해져서는 아니되며, 후술하는 특허청구범위뿐 아니라 이 특허청구범위와 균등하거나 등가적 변형이 있는 모든 것들은 본 발명 사상의 범주에 속한다고 할 것이다.Therefore, the spirit of the present invention should not be limited to the described embodiments, and it will be said that not only the claims to be described later, but also all modifications equivalent or equivalent to these claims belong to the scope of the present invention. .

110: 병렬 처리 기반의 문서 포맷 변환을 수행하는 전자 장치
111: 스레드 생성부 112: 변환 작업 실행부
113: 표시부 114: 문서 파일 생성부
115: 기준점 페이지 지정부 116: 점유율 연산부
117: 지연 메시지 표시부 118: 데이터 확인부
119: 기준 벡터 생성부 120: 코사인 유사도 연산부
121: 작업 수행 정확도 표시부
110: electronic device for performing document format conversion based on parallel processing
111: thread creation unit 112: conversion task execution unit
113: display unit 114: document file generation unit
115: reference point page designation unit 116: occupancy calculation unit
117: delayed message display unit 118: data confirmation unit
119: reference vector generation unit 120: cosine similarity calculation unit
121: work performance accuracy display unit

Claims (10)

사용자로부터 제1 문서 포맷으로 작성된 제1 전자 문서 - 상기 제1 전자 문서는 n(n은 2이상의 자연수임)개의 페이지들로 구성됨 - 에 대한 문서 파일을 제2 문서 포맷의 문서 파일로 변환할 것을 지시하는 문서 포맷 변환 명령이 인가되면, 상기 n개의 페이지들 각각의 문서 포맷을 변환하기 위한 n개의 스레드(Thread)들을 생성하는 스레드 생성부;
상기 제1 전자 문서를 구성하는 페이지들의 개수인 n이 사전 설정된 기준 값을 초과하는 경우, 상기 n개의 페이지들 중, n에 사전 설정된 비율을 곱한 값을 반올림한 순번을 갖는 페이지를 기준점 페이지로 지정하는 기준점 페이지 지정부;
상기 n개의 스레드들에 상기 n개의 페이지들을 각각 하나씩 할당한 후, 상기 n개의 스레드들을 동시에 실행시킴으로써, 상기 n개의 페이지들에 대한 문서 포맷 변환 작업을 병렬적으로 동시에 실행하는 변환 작업 실행부;
상기 변환 작업 실행부를 통해, 상기 n개의 페이지들 중 어느 하나의 페이지가 변환 완료될 때마다, 변환 완료된 상기 어느 하나의 페이지를 렌더링하여 화면 상에 표시하되, 변환 완료된 상기 어느 하나의 페이지의 바로 이전 순번의 페이지가 먼저 변환 및 렌더링 완료되어 화면 상에 표시되고 있지 않은 것으로 확인되는 경우, 상기 이전 순번의 페이지가 변환 및 렌더링 완료되어 화면 상에 표시될 때까지 대기하였다가, 상기 이전 순번의 페이지가 변환 및 렌더링 완료되어 화면 상에 표시되면, 변환 완료된 상기 어느 하나의 페이지를 렌더링하여 화면 상에 표시하는 표시부;
상기 n개의 페이지들 중 상기 변환 작업 실행부를 통해, 상기 기준점 페이지가 변환 완료되는 시점을 확인하고, 상기 n개의 페이지들 중 상기 기준점 페이지의 변환이 완료되는 시점이 확인되면, 상기 n개의 페이지들 전체에서 현재까지 변환 및 렌더링이 완료되어 화면 상에 표시되고 있는 페이지들이 차지하는 점유율을 연산하는 점유율 연산부;
상기 점유율이 사전 설정된 기준치 이하인 것으로 확인되는 경우, 상기 제1 문서 포맷에서 상기 제2 문서 포맷으로의 문서 포맷 변환이 지연됨을 알리는 변환 지연 메시지를 생성하여 화면 상에 표시하는 지연 메시지 표시부;
상기 n개의 페이지들이 모두 변환 및 렌더링 완료되어 화면 상에 표시되면, 변환 완료된 상기 n개의 페이지들로 구성된 상기 제2 문서 포맷의 제2 전자 문서에 대한 문서 파일을 생성하는 문서 파일 생성부;
상기 제2 전자 문서에 대한 문서 파일이 생성되면, 상기 제1 전자 문서의 상기 n개의 페이지들 각각에 대한 데이터 크기를 확인하고, 상기 제2 전자 문서의 상기 n개의 페이지들 각각에 대한 데이터 크기를 확인하는 데이터 확인부;
상기 제1 전자 문서의 상기 n개의 페이지들 각각에 대한 데이터 크기를 성분으로 하는 n차원의 제1 기준 벡터를 생성하고, 상기 제2 전자 문서의 상기 n개의 페이지들 각각에 대한 데이터 크기를 성분으로 하는 n차원의 제2 기준 벡터를 생성하는 기준 벡터 생성부;
상기 n차원의 제1 기준 벡터와, 상기 n차원의 제2 기준 벡터 간의 코사인 유사도를 연산하는 코사인 유사도 연산부; 및
상기 코사인 유사도를, 상기 제1 전자 문서에 대한 문서 파일에서 상기 제2 전자 문서에 대한 문서 파일로의 문서 포맷 변환 작업에 대한 작업 수행 정확도를 표상하는 정보로서 화면 상에 표시하는 작업 수행 정확도 표시부
를 포함하는 병렬 처리 기반의 문서 포맷 변환을 수행하는 전자 장치.
To convert a document file for a first electronic document created by a user in a first document format, wherein the first electronic document is composed of n (n is a natural number equal to or greater than 2) pages, into a document file in a second document format. a thread creation unit that creates n threads for converting the document format of each of the n pages when an indicated document format conversion command is applied;
When n, the number of pages constituting the first electronic document, exceeds a preset reference value, among the n pages, a page having an order obtained by rounding up a value obtained by multiplying n by a preset ratio is designated as a reference point page. a reference point page designation unit to be used;
a conversion task executor configured to concurrently execute a document format conversion task for the n pages in parallel by simultaneously executing the n threads after allocating one of the n pages to the n threads;
Whenever any one of the n pages is converted through the conversion task execution unit, the converted one of the pages is rendered and displayed on the screen, immediately before the converted one of the pages. If it is confirmed that the page in the order has been converted and rendered first and is not displayed on the screen, it waits until the page in the previous order is converted and rendered and displayed on the screen, and then the page in the previous order is displayed. When conversion and rendering are completed and displayed on the screen, a display unit that renders any one of the converted pages and displays them on the screen;
When it is confirmed through the conversion task execution unit among the n pages that the conversion of the reference point page is completed, and when the conversion of the base point page among the n pages is confirmed, all of the n pages an occupancy calculating unit for calculating occupancy occupied by pages displayed on the screen after conversion and rendering have been completed from ? to the present;
a delay message display unit generating and displaying a conversion delay message on a screen informing that conversion of the document format from the first document format to the second document format is delayed when it is determined that the occupancy rate is equal to or less than a predetermined reference value;
a document file creation unit configured to generate a document file for a second electronic document of the second document format composed of the n pages that have been converted and rendered when all of the n pages are converted and rendered and displayed on a screen;
When a document file for the second electronic document is generated, the data size of each of the n pages of the first electronic document is checked, and the data size of each of the n pages of the second electronic document is determined. Data checking unit to check;
An n-dimensional first reference vector having a data size for each of the n pages of the first electronic document as a component is generated, and a data size for each of the n pages of the second electronic document is used as a component. a reference vector generator for generating an n-dimensional second reference vector;
a cosine similarity calculation unit configured to calculate a cosine similarity between the n-dimensional first reference vector and the n-dimensional second reference vector; and
A task performance accuracy display unit that displays the cosine similarity on a screen as information representing task performance accuracy for a document format conversion task from a document file for the first electronic document to a document file for the second electronic document.
An electronic device that performs document format conversion based on parallel processing comprising a.
제1항에 있어서,
상기 표시부는
변환 완료된 상기 어느 하나의 페이지가 상기 n개의 페이지들 중 첫 번째 순번의 페이지인 것으로 확인되는 경우, 상기 이전 순번의 페이지에 대한 변환 및 렌더링 완료여부의 확인 없이, 변환 완료된 상기 어느 하나의 페이지를 바로 렌더링하여 화면 상에 표시하는 것을 특징으로 하는 병렬 처리 기반의 문서 포맷 변환을 수행하는 전자 장치.
According to claim 1,
the display part
When it is confirmed that any one of the pages that have been converted is the first sequential page among the n pages, the one of the converted pages is immediately converted without confirming whether conversion and rendering of the previous pages are completed. An electronic device that converts a document format based on parallel processing, characterized in that it renders and displays on a screen.
삭제delete 삭제delete 사용자로부터 제1 문서 포맷으로 작성된 제1 전자 문서 - 상기 제1 전자 문서는 n(n은 2이상의 자연수임)개의 페이지들로 구성됨 - 에 대한 문서 파일을 제2 문서 포맷의 문서 파일로 변환할 것을 지시하는 문서 포맷 변환 명령이 인가되면, 상기 n개의 페이지들 각각의 문서 포맷을 변환하기 위한 n개의 스레드(Thread)들을 생성하는 단계;
상기 제1 전자 문서를 구성하는 페이지들의 개수인 n이 사전 설정된 기준 값을 초과하는 경우, 상기 n개의 페이지들 중, n에 사전 설정된 비율을 곱한 값을 반올림한 순번을 갖는 페이지를 기준점 페이지로 지정하는 단계;
상기 n개의 스레드들에 상기 n개의 페이지들을 각각 하나씩 할당한 후, 상기 n개의 스레드들을 동시에 실행시킴으로써, 상기 n개의 페이지들에 대한 문서 포맷 변환 작업을 병렬적으로 동시에 실행하는 단계;
상기 n개의 페이지들 중 어느 하나의 페이지가 변환 완료될 때마다, 변환 완료된 상기 어느 하나의 페이지를 렌더링하여 화면 상에 표시하되, 변환 완료된 상기 어느 하나의 페이지의 바로 이전 순번의 페이지가 먼저 변환 및 렌더링 완료되어 화면 상에 표시되고 있지 않은 것으로 확인되는 경우, 상기 이전 순번의 페이지가 변환 및 렌더링 완료되어 화면 상에 표시될 때까지 대기하였다가, 상기 이전 순번의 페이지가 변환 및 렌더링 완료되어 화면 상에 표시되면, 변환 완료된 상기 어느 하나의 페이지를 렌더링하여 화면 상에 표시하는 단계;
상기 n개의 페이지들 중 상기 기준점 페이지가 변환 완료되는 시점을 확인하고, 상기 n개의 페이지들 중 상기 기준점 페이지의 변환이 완료되는 시점이 확인되면, 상기 n개의 페이지들 전체에서 현재까지 변환 및 렌더링이 완료되어 화면 상에 표시되고 있는 페이지들이 차지하는 점유율을 연산하는 단계;
상기 점유율이 사전 설정된 기준치 이하인 것으로 확인되는 경우, 상기 제1 문서 포맷에서 상기 제2 문서 포맷으로의 문서 포맷 변환이 지연됨을 알리는 변환 지연 메시지를 생성하여 화면 상에 표시하는 단계;
상기 n개의 페이지들이 모두 변환 및 렌더링 완료되어 화면 상에 표시되면, 변환 완료된 상기 n개의 페이지들로 구성된 상기 제2 문서 포맷의 제2 전자 문서에 대한 문서 파일을 생성하는 단계;
상기 제2 전자 문서에 대한 문서 파일이 생성되면, 상기 제1 전자 문서의 상기 n개의 페이지들 각각에 대한 데이터 크기를 확인하고, 상기 제2 전자 문서의 상기 n개의 페이지들 각각에 대한 데이터 크기를 확인하는 단계;
상기 제1 전자 문서의 상기 n개의 페이지들 각각에 대한 데이터 크기를 성분으로 하는 n차원의 제1 기준 벡터를 생성하고, 상기 제2 전자 문서의 상기 n개의 페이지들 각각에 대한 데이터 크기를 성분으로 하는 n차원의 제2 기준 벡터를 생성하는 단계;
상기 n차원의 제1 기준 벡터와, 상기 n차원의 제2 기준 벡터 간의 코사인 유사도를 연산하는 단계; 및
상기 코사인 유사도를, 상기 제1 전자 문서에 대한 문서 파일에서 상기 제2 전자 문서에 대한 문서 파일로의 문서 포맷 변환 작업에 대한 작업 수행 정확도를 표상하는 정보로서 화면 상에 표시하는 단계
를 포함하는 병렬 처리 기반의 문서 포맷 변환을 수행하는 전자 장치의 동작 방법.
To convert a document file for a first electronic document created by a user in a first document format, wherein the first electronic document is composed of n (n is a natural number equal to or greater than 2) pages, into a document file in a second document format. generating n threads for converting the document format of each of the n pages when the indicated document format conversion command is applied;
When n, the number of pages constituting the first electronic document, exceeds a preset reference value, among the n pages, a page having an order obtained by rounding up a value obtained by multiplying n by a preset ratio is designated as a reference point page. doing;
concurrently executing a document format conversion task for the n pages in parallel by simultaneously executing the n threads after allocating one of the n pages to the n threads;
Whenever any one of the n pages is converted, the converted one of the pages is rendered and displayed on the screen, but the page immediately preceding the one of the converted pages is first converted and If it is confirmed that the rendering has been completed and is not displayed on the screen, waiting until the page in the previous order is converted and rendered is completed and displayed on the screen, and then the page in the previous order is converted and rendered to be displayed on the screen. If it is displayed on , rendering any one of the converted pages and displaying them on the screen;
When the time point at which conversion of the base point page among the n pages is completed is confirmed, and when the time point at which conversion of the base point page among the n pages is completed is confirmed, conversion and rendering of all the n pages up to now are performed. calculating occupancy rates occupied by pages being completed and being displayed on the screen;
generating and displaying a conversion delay message notifying that conversion of a document format from the first document format to the second document format is delayed when it is determined that the occupancy rate is less than or equal to a predetermined reference value;
when all of the n pages are converted and rendered and displayed on a screen, generating a document file for a second electronic document of the second document format composed of the n pages that have been converted;
When a document file for the second electronic document is generated, the data size of each of the n pages of the first electronic document is checked, and the data size of each of the n pages of the second electronic document is determined. checking;
An n-dimensional first reference vector having a data size for each of the n pages of the first electronic document as a component is generated, and a data size for each of the n pages of the second electronic document is used as a component. generating an n-dimensional second reference vector;
calculating a cosine similarity between the n-dimensional first reference vector and the n-dimensional second reference vector; and
Displaying the cosine similarity on a screen as information representing job execution accuracy for a document format conversion job from a document file for the first electronic document to a document file for the second electronic document
A method of operating an electronic device that performs document format conversion based on parallel processing, comprising:
제5항에 있어서,
상기 렌더링하여 화면 상에 표시하는 단계는
변환 완료된 상기 어느 하나의 페이지가 상기 n개의 페이지들 중 첫 번째 순번의 페이지인 것으로 확인되는 경우, 상기 이전 순번의 페이지에 대한 변환 및 렌더링 완료여부의 확인 없이, 변환 완료된 상기 어느 하나의 페이지를 바로 렌더링하여 화면 상에 표시하는 것을 특징으로 하는 병렬 처리 기반의 문서 포맷 변환을 수행하는 전자 장치의 동작 방법.
According to claim 5,
The step of rendering and displaying on the screen
When it is confirmed that any one of the pages that have been converted is the first sequential page among the n pages, the one of the converted pages is immediately converted without confirming whether conversion and rendering of the previous pages are completed. A method of operating an electronic device that performs document format conversion based on parallel processing, characterized in that rendering is displayed on a screen.
삭제delete 삭제delete 제5항 또는 제6항 중 어느 한 항의 방법을 컴퓨터와의 결합을 통해 실행시키기 위한 컴퓨터 프로그램을 기록한 컴퓨터 판독 가능 기록 매체.A computer-readable recording medium recording a computer program for executing the method of any one of claims 5 or 6 through a combination with a computer. 제5항 또는 제6항 중 어느 한 항의 방법을 컴퓨터와의 결합을 통해 실행시키기 위한 저장매체에 저장된 컴퓨터 프로그램.A computer program stored in a storage medium for executing the method of any one of claims 5 or 6 through a combination with a computer.
KR1020210116381A 2021-09-01 2021-09-01 Electronic apparatus that performs parallel processing-based document format conversion and operating method thereof KR102566934B1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1020210116381A KR102566934B1 (en) 2021-09-01 2021-09-01 Electronic apparatus that performs parallel processing-based document format conversion and operating method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1020210116381A KR102566934B1 (en) 2021-09-01 2021-09-01 Electronic apparatus that performs parallel processing-based document format conversion and operating method thereof

Publications (2)

Publication Number Publication Date
KR20230033433A KR20230033433A (en) 2023-03-08
KR102566934B1 true KR102566934B1 (en) 2023-08-14

Family

ID=85508004

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1020210116381A KR102566934B1 (en) 2021-09-01 2021-09-01 Electronic apparatus that performs parallel processing-based document format conversion and operating method thereof

Country Status (1)

Country Link
KR (1) KR102566934B1 (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011230470A (en) * 2010-04-30 2011-11-17 Fuji Xerox Co Ltd Print-document conversion apparatus, and program
KR101498533B1 (en) * 2014-07-18 2015-03-04 주식회사 한글과컴퓨터 Component separate display based electronic document display device and method
KR101774265B1 (en) * 2017-05-23 2017-09-12 주식회사 한글과컴퓨터 Multi thread based spreadsheet document providing apparatus and operating method thereof
KR101840024B1 (en) * 2016-02-18 2018-03-20 (주)퍼스트정보 Method and apparatus for transforming electronic document
JP2019087861A (en) * 2017-11-06 2019-06-06 キヤノン株式会社 Image processing apparatus, control method of the same, and program

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011230470A (en) * 2010-04-30 2011-11-17 Fuji Xerox Co Ltd Print-document conversion apparatus, and program
KR101498533B1 (en) * 2014-07-18 2015-03-04 주식회사 한글과컴퓨터 Component separate display based electronic document display device and method
KR101840024B1 (en) * 2016-02-18 2018-03-20 (주)퍼스트정보 Method and apparatus for transforming electronic document
KR101774265B1 (en) * 2017-05-23 2017-09-12 주식회사 한글과컴퓨터 Multi thread based spreadsheet document providing apparatus and operating method thereof
JP2019087861A (en) * 2017-11-06 2019-06-06 キヤノン株式会社 Image processing apparatus, control method of the same, and program

Also Published As

Publication number Publication date
KR20230033433A (en) 2023-03-08

Similar Documents

Publication Publication Date Title
US11592967B2 (en) Method for automatically indexing an electronic document
JP2005536783A (en) Section extraction tool for pdf documents
US9841881B2 (en) Two step content selection with auto content categorization
JP7369288B2 (en) Image processing method, image processing command generation method and device
KR102566934B1 (en) Electronic apparatus that performs parallel processing-based document format conversion and operating method thereof
CN109933766A (en) Document generating method, device and storage medium
KR102300437B1 (en) Electronic document editing apparatus that enables the insertion of special characters at specific locations on the electronic document based on the entered characters and operating method thereof
US20100218122A1 (en) Asynchronously uploading and resizing content in web-based applications
CN112346736A (en) Data processing method and system
CN112597912A (en) Conference content recording method, device, equipment and storage medium
KR102442510B1 (en) Document editing apparatus that automatically specifies the storage file format for documents and the operating method thereof
WO2016067348A1 (en) Presentation support method, presentation support program, and presentation support device
KR102266073B1 (en) Electronic device that controls the efficient loading of each sheet that makes up a spreadsheet document based on a multi-thread and operating method thereof
KR102466714B1 (en) Electronic device that provides improved object insertion into electronic document through object box and operating method thereof
KR20210060808A (en) Document editing device to check whether the font applied to the document is a supported font and operating method thereof
KR102104246B1 (en) Image search system using screen segmentaion
KR102466706B1 (en) Electronic device that enables easy selection of dependent edit action in document editing programs and operating method thereof
JP6372577B2 (en) Presentation support method, presentation support program, and presentation support apparatus
KR102300486B1 (en) Electronic terminal device that support easy subscript entry for mathematical operators in electronic documents and operating method thereof
KR102566908B1 (en) Electronic terminal device for generating object guide frame on the page of a presentation document, and the opreating method thereof
KR102523803B1 (en) Data processing apparatus for classification of machine learning data and the operating method thereof
KR102395671B1 (en) Electronic device that provides improved file management function using management folder and operating method thereof
KR102507487B1 (en) Electronic apparatus which generates the dedicated document file for supporting fast editing of the pages comprising of a document, and the operating method thereof
KR102545266B1 (en) Scheduling apparatus performing scheduling to allocate format conversion tasks of document files, based on the status of a plurality of format converting servers, and the operating method thereof
JP2009015774A (en) Information processing unit and information processing method

Legal Events

Date Code Title Description
E902 Notification of reason for refusal
E701 Decision to grant or registration of patent right
GRNT Written decision to grant