Method for outputting multiple Office document content images through multiple processes

The method encapsulates Yongzhong Office software as a background service in the Android system, enabling efficient and independent parsing and output of Office documents for third-party apps, addressing the challenge of professional capability requirements.

CN114648002BActive Publication Date: 2024-12-24YOZOSOFT CO LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202011493103.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-12-17
Publication Date
2024-12-24
Estimated Expiration
2040-12-17

AI Technical Summary

Technical Problem

General app developers face challenges in parsing and outputting Office document content due to the need for professional capabilities that are difficult to possess, making it difficult for them to obtain Office document content in their applications.

Method used

A method that encapsulates Yongzhong Office software as a background service in the Android system, providing interfaces for third-party applications to start, output, and manage Office document content, allowing multiple processes to run independently and efficiently process document content.

Benefits of technology

Enables efficient parsing and output of Office documents without requiring additional development components, maintaining application operation, and supporting simultaneous processing of multiple documents, thus being convenient and fast.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114648002B_ABST
    Figure CN114648002B_ABST
Patent Text Reader

Abstract

The present invention discloses a method for outputting multiple Office document content images through multiple processes, comprising the following steps: encapsulating Office Service into a system standard component Service; setting an interface for a third-party application to start Office Service, the third-party application starts Office Service through the service interface, opens the document in the third-party application, and the process of the third-party application starts the document content output interface and the document content output progress and path interface in sequence. When the document content output is finished, the process of the third-party application starts to close the Office Service interface, and the third-party application obtains and uses the output document content. If the output is interrupted during the document content output process, the process of the third-party application starts to cancel the output interface and cancel the output of the document content. The Office Service of the present invention does not require the third-party application to introduce any development components, and is convenient and fast; it runs in the form of a background service, has no effect on the display and operation of the third-party application, runs in multiple processes at the same time, and processes the parsing and output of multiple documents at the same time.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of Office document content output, and in particular to a method for outputting multiple Office document content images through multiple processes. Background Art

[0002] With the rapid popularization of mobile Internet and mobile devices, Android system has become a well-known and highly used mobile operating system. Various terminal devices such as mobile phones, tablets, smart TVs, e-books, and large-screen conference devices all choose Android as the underlying system. In the embedded views of many devices and apps of the Android system, embedding and browsing office document content has become a basic requirement for daily office or entertainment. However, the parsing and output of Office documents requires extremely professional capabilities, which are difficult for general app developers to possess. How third-party developers can obtain Office document content in their applications has become a difficult point.

[0003] Therefore, in view of the above-mentioned technical problems, it is necessary to provide a new technical solution. Summary of the invention

[0004] In order to solve the technical problems existing in the prior art, the present invention provides a method for outputting multiple Office document content images through multiple processes, which parses the Office document by starting the Service background service and continuously outputs the document content. After the user obtains the document content, he uses or browses it in a third-party application. The specific technical solution is as follows:

[0005] A method for outputting multiple Office document content images through multiple processes, comprising the following steps:

[0006] S1: Yongzhong Office software is configured as Office Service by modifying the user-oriented operable mode into a service mode running in the background, and the Office Service is encapsulated into the system standard component Service;

[0007] S2: Office Service sets interfaces for third-party applications to start, including: a. service interface, b. document content output interface, c. document content output progress and path interface, d. output cancellation interface, and e. Office Service shutdown interface;

[0008] S3: The third-party application starts the Office Service through the service interface;

[0009] S4: Open the document in a third-party application, the process of the third-party application starts the document content output interface, and the Office Service outputs the document content;

[0010] S5: When the document content is output, the process of the third-party application starts the document content output progress and path interface, and the third-party application obtains the document content output progress and the output document content storage location;

[0011] S6: The document content is continuously outputted. When the document content output progress reaches 100%, the process of the third-party application starts the closing Office Service interface, the document content output ends and the Office Service is closed, and the third-party application obtains and uses the outputted document content.

[0012] Furthermore, in step S6, if the output of the document content is interrupted during the output process of the document content, the process of the third-party application starts the output cancellation interface to cancel the output of the document content.

[0013] Furthermore, in step S3, when multiple processes start Office Services at the same time, the system automatically allocates Office Services to the multiple processes respectively, and the multiple allocated Office Services all run independently.

[0014] Furthermore, in step S5, the document content output progress is displayed on the third-party application interface.

[0015] Furthermore, in step S5, the storage location of the document content is fed back to the third-party application interface.

[0016] Furthermore, in step S7, the output document content is in picture format.

[0017] Furthermore, in step S1, the Yongzhong Office software is an Android version, and the Office Service is an Android version.

[0018] Furthermore, the Office Service is encapsulated into the Android system standard component Service.

[0019] Furthermore, in step S4, the third-party application starts the Office Service according to the Android system standard.

[0020] The method of outputting multiple Office document content images through multiple processes of the present invention has the following beneficial effects:

[0021] (1) The method of outputting multiple Office document content images through multiple processes of the present invention, Office Service provides the ability to parse and output Office documents, does not require any development components to be introduced by a third-party application, and is convenient and fast;

[0022] (2) In the method for outputting multiple Office document content images through multiple processes of the present invention, the Office Service runs in the form of a background service, has no impact on the display and operation of third-party applications, and has independence;

[0023] (3) In the method for outputting content images of multiple Office documents in multiple processes of the present invention, the Office Service runs in multiple processes at the same time, and processes the parsing and output of multiple documents at the same time, which is highly efficient.

[0024] Additional aspects and advantages of the present invention will be given in part in the following description and in part will be obvious from the following description, or will be learned through practice of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS

[0025] In order to more clearly illustrate the technical solution of the present invention, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0026] Figure 1 It is a flowchart of the method for outputting multiple Office document content images by multiple processes according to the present invention. DETAILED DESCRIPTION

[0027] The embodiments of the present invention are described in detail below, and the technical solutions in the embodiments of the present invention are clearly and completely described. Obviously, the described embodiments are only part of the embodiments of the present invention, rather than all the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0028] Example

[0029] See also Figure 1 , Figure 1 1 is a flow chart of the method for outputting multiple Office document content images by multiple processes according to the present invention. Figure 1 As shown, the present invention relates to a method for outputting multiple Office document content images through multiple processes, and the method is specifically as follows:

[0030] S1: Yongzhong Office software is configured as Office Service by modifying the user-oriented operable mode into a service mode running in the background, and the Office Service is encapsulated into the system standard component Service;

[0031] In the example, the Yongzhong Office software is an Android version, the Office Service is an Android version, and the Office Service is encapsulated into the Android system standard component Service; the system standard component Service is one of the four major components of Android, and is a program background running solution used for long-term tasks that do not require user interaction.

[0032] S2: Office Service sets interfaces for third-party applications to start, including: a. service interface, b. document content output interface, c. document content output progress and path interface, d. output cancellation interface, and e. Office Service shutdown interface;

[0033] S3: The third-party application starts the Office Service through the service interface;

[0034] Preferably, when multiple processes start Office Services at the same time, the system automatically allocates Office Services to the multiple processes respectively, and the multiple allocated Office Services all run independently;

[0035] In the example, the Office Services automatically assigned by the system to multiple processes are unique and not repeatedly assigned. Office Services run in separate processes. Multiple Office Services do not affect or interfere with each other, so Office Services can be started multiple times at the same time. Office Services run in specific processes. Office Services are responsible for processing the parsing and content output of Office documents in the processes assigned to Office Services, thereby providing the ability for multiple processes to output the contents of multiple Office documents at the same time. Office Services run in multiple processes at the same time and process the parsing and output of multiple documents at the same time, which is highly efficient.

[0036] S4: Open the document in a third-party application, the process of the third-party application starts the document content output interface, and the Office Service outputs the document content;

[0037] In the example, the third-party application starts the Office Service according to the Android system standard and outputs the document content in image format;

[0038] S5: When the document content is output, the process of the third-party application starts the document content output progress and path interface, and the third-party application obtains the document content output progress and the output document content storage location;

[0039] Preferably, the document content output progress is displayed on the third-party application interface, and the document content storage location is fed back on the third-party application interface.

[0040] S6: The document content is continuously outputted. When the document content output progress reaches 100%, the process of the third-party application starts the closing Office Service interface, the document content output ends and the Office Service is closed, and the third-party application obtains and uses the outputted document content;

[0041] S8: During the output of the document content, the process of the third-party application can start the output cancellation interface to cancel the output of the current document content.

[0042] In the example, the output document content is in picture format.

[0043] In another embodiment, if the output of the document content is interrupted during the output process of the document content, the process of the third-party application starts the output cancellation interface to cancel the output of the document content.

[0044] 1. For some codes of the service interface in the above embodiment, examples are as follows:

[0045]

[0046] 2. For some codes of the document content output interface in the above embodiment, the following examples are given:

[0047]

[0048] 3. For some codes of the document content output progress and path interface in the above embodiment, examples are as follows:

[0049]

[0050] 4. For some codes of cancelling the document content output interface and closing the Office Service interface in the above embodiment, examples are as follows:

[0051]

[0052] The beneficial effects of the method for outputting multiple Office document content images in multiple processes of the present invention are:

[0053] (1) The method of outputting multiple Office document content images through multiple processes of the present invention, Office Service provides the ability to parse and output Office documents, and does not require any development components to be introduced by third-party applications, which is convenient and fast;

[0054] (2) In the method of outputting multiple Office document content images through multiple processes of the present invention, the Office Service runs in the form of a background service and has no impact on the display and operation of third-party applications;

[0055] (3) In the method for outputting content images of multiple Office documents in multiple processes of the present invention, the Office Service runs in multiple processes at the same time, and processes the parsing and output of multiple documents at the same time.

[0056] Although the embodiments of the present invention have been shown and described above, it is to be understood that the above embodiments are exemplary and are not to be construed as limitations of the present invention. A person skilled in the art may change, modify and vary the above embodiments within the scope of the present invention.

Claims

1. A method for outputting multiple Office document content images through multiple processes, characterized in that: The steps include: S1: Yongzhong Office software is configured as Office Service by modifying the user-oriented operable mode into a service mode running in the background, and the Office Service is encapsulated into the system standard component Service; S2: Office Service sets interfaces for third-party applications to start, including: a. service interface, b. document content output interface, c. document content output progress and path interface, d. output cancellation interface, and e. Office Service shutdown interface; S3: The third-party application starts the Office Service through the service interface; when multiple processes start the Office Service at the same time, the system automatically allocates the Office Service to the multiple processes respectively, and the multiple allocated Office Services all run independently. S4: Open the document in a third-party application, the process of the third-party application starts the document content output interface, and OfficeService outputs the document content; S5: When the document content is output, the process of the third-party application starts the document content output progress and path interface, and the third-party application obtains the document content output progress and the output document content storage location; S6: The document content is continuously output. When the document content output progress reaches 100%, the process of the third-party application starts the closing Office Service interface, the document content output ends and the Office Service is closed, and the third-party application obtains and uses the output document content.

2. The method for outputting multiple Office document content images by multiple processes according to claim 1, characterized in that: In step S6, if the output of the document content is interrupted during the output process of the document content, the process of the third-party application starts the output cancellation interface to cancel the output of the document content.

3. The method for outputting multiple Office document content images by multiple processes according to claim 1, characterized in that: In step S5, the document content output progress is displayed on the third-party application interface.

4. The method for outputting multiple Office document content images by multiple processes according to claim 1, characterized in that: In step S5, the storage location of the document content is fed back to the third-party application interface.

5. The method for outputting multiple Office document content images by multiple processes according to claim 1, characterized in that: In step S7, the output document content is in picture format.

6. The method for outputting multiple Office document content images by multiple processes according to claim 1, characterized in that: In step S1, the Yongzhong Office software is an Android version, and the Office Service is an Android version.

7. The method for outputting multiple Office document content images by multiple processes according to claim 6, characterized in that: The Office Service is encapsulated into the Android system standard component Service.

8. The method for outputting multiple Office document content images through multiple processes according to claim 1, characterized in that: In step S4, the third-party application starts the Office Service according to the Android system standard.

Citation Information

Patent Citations

  • Method and system for converting document into picture in on-line manner

    CN102164147A

  • Method for remotely controlling WPS software in network environment

    CN109117283A

  • Office document online editing method and system compatible with multiple browsers

    CN109634588A

  • Document type conversion system and providing method thereof

    KR1020140108851A

  • System and method for searching through text transcribed from an image processed by optical character recognition

    WO2014145999A2