System and method for converting Office file into picture
Through the combination of content-aware chunking and priority division, intelligent coding and resource optimization, format optimization and interaction enhancement modules, the problem of imbalance in fidelity and compression ratio and high resource consumption in Office files to pictures is solved, and high fidelity and high compression ratio Office file conversion is achieved.
Patent Information
- Application Number
- CN202510504999.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-04-22
- Publication Date
- 2025-08-08
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
The existing Office file to picture technology has problems such as imbalance in fidelity and compression ratio, poor format adaptability, and high resource consumption. Traditional tools cannot dynamically optimize content types.
The content-aware blocking and priority division module is adopted, combined with the intelligent coding and resource optimization module, and through the format optimization and interaction enhancement module, dynamic coding and end-adaptive rendering are realized to generate high-fidelity and high compression ratio Office file pictures.
It realizes high fidelity of Office files to pictures and achieves high compression rate, reduces resource consumption, adapts to different Office formats and improves conversion efficiency.
Smart Images

Figure CN120451334A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of document processing and image compression, and in particular to a system and method for converting Office files to images. Background Art
[0002] The existing Office file-to-image conversion technology has the following problems: Imbalance between fidelity and compression rate: Traditional conversion tools (such as PDF to image) use a unified compression strategy, resulting in blurred text, misplaced tables, or distorted charts.
[0003] Poor format adaptability: Different Office formats (such as Excel tables and PPT animations) require manual adjustment of parameters, resulting in low conversion efficiency.
[0004] High resource consumption: When converting large-scale documents, the memory and computing resources used are too high, making it difficult to run on low-end devices.
[0005] Comparison with existing technologies: Adobe Acrobat: Supports PDF to image conversion, but cannot dynamically optimize based on content type.
[0006] WPS conversion tool: provides basic format preservation, but the compression rate and quality are not reconcilable. Summary of the Invention
[0007] The present application provides an Office file to image conversion system and method for achieving high fidelity while achieving high compression rate.
[0008] In a first aspect, a system for converting Office files to images is provided, comprising: A content-aware segmentation and priority division module is used to perform content-aware segmentation and priority division on Office files to obtain Office file segments; An intelligent encoding and resource optimization module, for dynamically encoding the Office file blocks and controlling resource consumption; The format optimization and interaction enhancement module is used to generate interactive images and perform end-adaptive rendering on the Office file blocks to obtain Office file images.
[0009] In the above technical solution, a content-aware segmentation and priority division module is set up to perform content-aware segmentation and priority division on Office files to obtain Office file segments; an intelligent encoding and resource optimization module is used to dynamically encode the Office file segments and control resource consumption; a format optimization and interaction enhancement module is used to perform interactive image generation and end-adaptive rendering on the Office file segments to obtain Office file images; high fidelity of Office file conversion to images is achieved while achieving high compression rate.
[0010] In one specific implementation, the content-aware chunking and prioritization module includes: The intelligent content recognition unit is used to recognize the Office file and divide it into blocks to obtain the Office file blocks; the dynamic compression strategy unit is used to configure the compression strategy for the Office file blocks.
[0011] In a specific implementation scheme, the intelligent coding and resource optimization module includes: A dynamic encoding pipeline unit is used to extract metadata from the Office file and generate an independent resource package for the decoding end to call; using multi-threading technology, different Office file blocks are assigned to independent threads for processing; Resource consumption control unit, used to manage the memory pool and enable low power consumption mode.
[0012] In a specific implementation scheme, the format optimization and interaction enhancement module includes: An interactive image generating unit, configured to embed an invisible interactive layer in the Office file image; The multi-terminal adaptive rendering unit is used to dynamically adjust the image DPI according to the resolution of the terminal screen.
[0013] In a second aspect, a method for converting Office files to images is provided, comprising the following steps: Using the content-aware segmentation and priority division module to perform content-aware segmentation and priority division on the Office file, and obtain Office file segments; The intelligent encoding and resource optimization module is used to dynamically encode the Office file blocks and control resource consumption; the format optimization and interaction enhancement module is used to generate interactive images and perform end-adaptive rendering on the Office file blocks to obtain Office file images.
[0014] In the above technical solution, a content-aware segmentation and priority division module is set up to perform content-aware segmentation and priority division on Office files to obtain Office file segments; an intelligent encoding and resource optimization module is used to dynamically encode the Office file segments and control resource consumption; a format optimization and interaction enhancement module is used to perform interactive image generation and end-adaptive rendering on the Office file segments to obtain Office file images; high fidelity of Office file conversion to images is achieved while achieving high compression rate.
[0015] In one specific implementation, the content-aware chunking and prioritization module includes: The intelligent content recognition unit is used to recognize the Office file and divide it into blocks to obtain the Office file blocks; the dynamic compression strategy unit is used to configure the compression strategy for the Office file blocks.
[0016] In a specific implementation scheme, the intelligent coding and resource optimization module includes: A dynamic encoding pipeline unit is used to extract metadata from the Office file and generate an independent resource package for the decoding end to call; using multi-threading technology, different Office file blocks are assigned to independent threads for processing; Resource consumption control unit, used to manage the memory pool and enable low power consumption mode.
[0017] In a specific implementation scheme, the format optimization and interaction enhancement module includes: An interactive image generating unit, configured to embed an invisible interactive layer in the Office file image; The multi-terminal adaptive rendering unit is used to dynamically adjust the image DPI according to the resolution of the terminal screen.
[0018] In a third aspect, an electronic device is provided, comprising a processor coupled to a memory, wherein the memory stores at least one computer program, and the at least one computer program is loaded and executed by the processor so that the electronic device implements any one of the Office file to image conversion methods.
[0019] In the above technical solution, a content-aware segmentation and priority division module is set up to perform content-aware segmentation and priority division on Office files to obtain Office file segments; an intelligent encoding and resource optimization module is used to dynamically encode the Office file segments and control resource consumption; a format optimization and interaction enhancement module is used to perform interactive image generation and end-adaptive rendering on the Office file segments to obtain Office file images; high fidelity of Office file conversion to images is achieved while achieving high compression rate.
[0020] In a fourth aspect, a computer-readable storage medium is provided, wherein at least one computer program is stored in the computer-readable storage medium, and the at least one computer program is loaded and executed by a processor so that the computer-readable storage medium implements any one of the Office file to image conversion methods.
[0021] In the above technical solution, a content-aware segmentation and priority division module is set up to perform content-aware segmentation and priority division on Office files to obtain Office file segments; an intelligent encoding and resource optimization module is used to dynamically encode the Office file segments and control resource consumption; a format optimization and interaction enhancement module is used to perform interactive image generation and end-adaptive rendering on the Office file segments to obtain Office file images; high fidelity of Office file conversion to images is achieved while achieving high compression rate. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] Figure 1 This is a structural block diagram of the Office file to image system provided in an embodiment of the present application; Figure 2 A flowchart of the Office file to image conversion method provided in an embodiment of the present application; Figure 3 This is a specific flow chart of the Office file to image conversion method provided in the embodiment of this application. DETAILED DESCRIPTION
[0023] The present application will be further described in detail below through the accompanying drawings and examples, through which the features and advantages of the present application will become more clear and distinct.
[0024] The word "exemplary" is used exclusively herein to mean "serving as an example, example, or illustration." Any embodiment described herein as "exemplary" is not necessarily to be construed as preferred or advantageous over other embodiments. Although various aspects of the embodiments are shown in the drawings, the drawings are not necessarily drawn to scale unless otherwise indicated.
[0025] In addition, the technical features involved in different embodiments of the present application described below can be combined with each other as long as they do not conflict with each other.
[0026] To facilitate understanding of the Office file to image system and method provided in the embodiment of the present application, its application scenario is first explained. The Office file to image system and method provided in the embodiment of the present application are used to achieve high fidelity and high compression rate at the same time. The existing Office file to image technology has the following problems: Imbalance between fidelity and compression rate: Traditional conversion tools (such as PDF to image) adopt a unified compression strategy, resulting in blurred text, misplaced tables or distorted charts. Poor format adaptability: Different Office formats (such as Excel tables, PPT animations) require manual adjustment of parameters, and the conversion efficiency is low. High resource consumption: When converting large-scale documents, memory and computing resources are too high, making it difficult to run on low-end devices. Compared with existing technologies: Adobe Acrobat: supports PDF to image, but cannot dynamically optimize for content type. WPS conversion tool: provides basic format retention, but the compression rate and quality are irreconcilable. For this reason, the embodiment of the present application provides an Office file to image system and method to achieve high fidelity and high compression rate at the same time. The following is a detailed description of the embodiment with reference to specific drawings.
[0027] refer to Figures 1 to 3 , Figure 1 This is a structural block diagram of the Office file to image system provided in an embodiment of the present application; Figure 2 A flowchart of the Office file to image conversion method provided in an embodiment of the present application; Figure 3 This is a specific flow chart of the Office file to image conversion method provided in the embodiment of this application.
[0028] exist Figure 1 In the embodiment of the present application, a system for converting Office files to images is provided, including: A content-aware segmentation and priority division module is used to perform content-aware segmentation and priority division on Office files to obtain Office file segments; An intelligent encoding and resource optimization module, for dynamically encoding the Office file blocks and controlling resource consumption; The format optimization and interaction enhancement module is used to generate interactive images and perform end-adaptive rendering on the Office file blocks to obtain Office file images.
[0029] In the above technical solution, a content-aware segmentation and priority division module is set up to perform content-aware segmentation and priority division on Office files to obtain Office file segments; an intelligent encoding and resource optimization module is used to dynamically encode the Office file segments and control resource consumption; a format optimization and interaction enhancement module is used to perform interactive image generation and end-adaptive rendering on the Office file segments to obtain Office file images; high fidelity of Office file conversion to images is achieved while achieving high compression rate.
[0030] In one specific implementation, the content-aware chunking and prioritization module includes: The intelligent content recognition unit is used to recognize the Office file and divide it into blocks to obtain the Office file blocks; the dynamic compression strategy unit is used to configure the compression strategy for the Office file blocks.
[0031] In a specific implementation scheme, the intelligent coding and resource optimization module includes: A dynamic encoding pipeline unit is used to extract metadata from the Office file and generate an independent resource package for the decoding end to call; using multi-threading technology, different Office file blocks are assigned to independent threads for processing; Resource consumption control unit, used to manage the memory pool and enable low power consumption mode.
[0032] In a specific implementation scheme, the format optimization and interaction enhancement module includes: An interactive image generating unit, configured to embed an invisible interactive layer in the Office file image; The multi-terminal adaptive rendering unit is used to dynamically adjust the image DPI according to the resolution of the terminal screen.
[0033] Specifically, refer to Figure 1 and Figure 3 , the Office file to image system includes: 1. Content-aware chunking and prioritization module, including: Intelligent content recognition unit for: A lightweight CNN model is used to identify Office files into "text area", "table area", "chart area" and "background area".
[0034] For example, animation elements in PPT are marked as "dynamic content areas" and need to be processed separately to maintain inter-frame continuity.
[0035] Dynamic compression policy unit, used to: Text area: Use lossless compression (such as CCITT Group 4) to preserve font clarity and layout structure.
[0036] Table area: Apply vector graphics compression (such as SVG optimization) to ensure cell alignment and formula readability.
[0037] Chart area: Using lossy compression (such as WebP) combined with a keypoint-preserving algorithm can increase the compression rate by more than 50%.
[0038] Background area: Enable high-compression JPEG algorithm (compression ratio ≥ 80%).
[0039] The above technical solution offers the following benefits: Adaptive segmentation thresholds: Dynamically adjust segmentation granularity based on document type (e.g., contracts, reports), with contract documents segmented down to the paragraph level and report documents segmented by table. Cross-format compatibility: A unified conversion engine supports Word, Excel, PPT, and WPS formats, automatically adapting to the specific characteristics of each format (e.g., Excel formula dependencies).
[0040] 2. Intelligent coding and resource optimization module, including: Dynamic encoding pipeline unit for: Preprocessing stage: Extract metadata (such as font library and color scheme) from Office files and generate independent resource packages for decoding end to call.
[0041] Parallel compression: Utilizes multi-threading technology to divide different content blocks and assign them to independent threads for processing, thus improving conversion speed.
[0042] Incremental transmission: In streaming scenarios, text and table blocks are sent first, and charts and background blocks are loaded on demand.
[0043] Resource consumption control unit, used to: Memory pool management: pre-allocate fixed memory space and reuse it in a circular manner to avoid frequent memory request and release.
[0044] Low power mode: Enables GPU acceleration and quantized models on mobile devices, reducing CPU load by 20%-40%.
[0045] The above technical solution offers beneficial effects, including: a hybrid compression mode, where lossless compression is used for critical areas (such as the signature field) and lossy compression is enabled for non-critical areas, improving the overall compression rate by over 35%. End-to-end collaboration: Complex documents (such as PowerPoint presentations containing 3D models) are uploaded to the cloud for processing, while the local server is only responsible for lightweight segmentation and rendering.
[0046] 3. Format optimization and interaction enhancement modules, including: Interactive image generation unit, used to: Embed an invisible interactive layer in the image, allowing you to jump to detailed data pages by clicking on table cells (compatible reader required).
[0047] Generate GIF or WebM format for dynamic content (such as PPT animations) and retain playback control buttons.
[0048] Multi-terminal adaptive rendering unit, used for: Dynamically adjust the image DPI according to the terminal screen resolution (such as mobile phones and 4K screens) to avoid scaling distortion.
[0049] Generate grayscale optimized versions for e-ink screen devices to improve the reading experience.
[0050] The above technical solution offers the following benefits: Intelligent watermark embedding: Automatically adding a dynamic watermark (e.g., "Confidential - Internal Use Only") based on the document's classification level, with the watermark's position randomly changing to prevent tampering. OCR enhancement: Embedding an OCR-recognizable layer within the converted image, supporting text copying and searching.
[0051] In a specific implementation scheme, for enterprise contract archiving, the following steps are included: 1. Conversion phase: The system identifies the signature area and clause area in the contract, uses lossless compression for the signature area, and enables medium compression rate for the clause area.
[0052] The background pattern is compressed to 10% of its original size, and the overall file size is reduced by 60%.
[0053] 2. Transmission phase: It is transmitted to the legal department in real time via the 5G network, with text and tables loaded in blocks first to ensure quick access.
[0054] 3. Viewing stage: The mobile terminal automatically renders a version adapted to the screen, and supports clicking on the terms to jump to the related legal provisions.
[0055] In a specific implementation plan, for academic paper submission, the method includes: Format optimization: Complex formulas in the paper are converted into vector graphics to avoid pixelation and blur.
[0056] The chart generates interactive hotspots, and reviewers can click on data points to view the original dataset.
[0057] In the above technical solution, a content-aware segmentation and priority division module is set up to perform content-aware segmentation and priority division on Office files to obtain Office file segments; an intelligent encoding and resource optimization module is used to dynamically encode the Office file segments and control resource consumption; a format optimization and interaction enhancement module is used to perform interactive image generation and end-adaptive rendering on the Office file segments to obtain Office file images; high fidelity of Office file conversion to images is achieved while achieving high compression rate.
[0058] exist Figure 2 In the embodiment of the present application, a method for converting Office files to images is provided, comprising the following steps: Using the content-aware segmentation and priority division module to perform content-aware segmentation and priority division on the Office file, and obtain Office file segments; The intelligent encoding and resource optimization module is used to dynamically encode the Office file blocks and control resource consumption; the format optimization and interaction enhancement module is used to generate interactive images and perform end-adaptive rendering on the Office file blocks to obtain Office file images.
[0059] In the above technical solution, a content-aware segmentation and priority division module is set up to perform content-aware segmentation and priority division on Office files to obtain Office file segments; an intelligent encoding and resource optimization module is used to dynamically encode the Office file segments and control resource consumption; a format optimization and interaction enhancement module is used to perform interactive image generation and end-adaptive rendering on the Office file segments to obtain Office file images; high fidelity of Office file conversion to images is achieved while achieving high compression rate.
[0060] In one specific implementation, the content-aware chunking and prioritization module includes: The intelligent content recognition unit is used to recognize the Office file and divide it into blocks to obtain the Office file blocks; the dynamic compression strategy unit is used to configure the compression strategy for the Office file blocks.
[0061] In a specific implementation scheme, the intelligent coding and resource optimization module includes: A dynamic encoding pipeline unit is used to extract metadata from the Office file and generate an independent resource package for the decoding end to call; using multi-threading technology, different Office file blocks are assigned to independent threads for processing; Resource consumption control unit, used to manage the memory pool and enable low power consumption mode.
[0062] In a specific implementation scheme, the format optimization and interaction enhancement module includes: An interactive image generating unit, configured to embed an invisible interactive layer in the Office file image; The multi-terminal adaptive rendering unit is used to dynamically adjust the image DPI according to the resolution of the terminal screen.
[0063] In a third aspect, an electronic device is provided, comprising a processor coupled to a memory, wherein the memory stores at least one computer program, and the at least one computer program is loaded and executed by the processor so that the electronic device implements any one of the Office file to image conversion methods.
[0064] In the above technical solution, a content-aware segmentation and priority division module is set up to perform content-aware segmentation and priority division on Office files to obtain Office file segments; an intelligent encoding and resource optimization module is used to dynamically encode the Office file segments and control resource consumption; a format optimization and interaction enhancement module is used to perform interactive image generation and end-adaptive rendering on the Office file segments to obtain Office file images; high fidelity of Office file conversion to images is achieved while achieving high compression rate.
[0065] In a fourth aspect, a computer-readable storage medium is provided, wherein at least one computer program is stored in the computer-readable storage medium, and the at least one computer program is loaded and executed by a processor so that the computer-readable storage medium implements any one of the Office file to image conversion methods.
[0066] In the above technical solution, a content-aware segmentation and priority division module is set up to perform content-aware segmentation and priority division on Office files to obtain Office file segments; an intelligent encoding and resource optimization module is used to dynamically encode the Office file segments and control resource consumption; a format optimization and interaction enhancement module is used to perform interactive image generation and end-adaptive rendering on the Office file segments to obtain Office file images; high fidelity of Office file conversion to images is achieved while achieving high compression rate.
[0067] Those skilled in the art will appreciate that the present application may be implemented as a system, method, or computer program product.
[0068] Therefore, the present disclosure may be implemented in the following forms: entirely in hardware, entirely in software (including firmware, resident software, microcode, etc.), or in a combination of hardware and software, generally referred to herein as a "circuit," "module," or "system." Furthermore, in some embodiments, the present disclosure may be implemented in the form of a computer program product embodied in one or more computer-readable media, wherein the computer-readable media contains computer-readable program code.
[0069] Any combination of one or more computer-readable media can be used. A computer-readable medium can be a computer-readable signal medium or a computer-readable storage medium. A computer-readable storage medium can be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or component, or any combination thereof. More specific examples (a non-exhaustive list) of computer-readable storage media include: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof. In this document, a computer-readable storage medium can be any tangible medium containing or storing a program that can be used by or in conjunction with an instruction execution system, device, or device.
[0070] Although the embodiments of the present application have been shown and described above, it should be understood that the above embodiments are exemplary and should not be construed as limiting the present application. Persons skilled in the art may make changes, modifications, substitutions, and variations to the above embodiments within the scope of the present application. Various substitutions and improvements may be made to the present application on this basis, all of which fall within the scope of protection of the present application.
Claims
1. An Office file to image system, characterized in that: include: A content-aware segmentation and priority division module is used to perform content-aware segmentation and priority division on Office files to obtain Office file segments; An intelligent encoding and resource optimization module, for dynamically encoding the Office file blocks and controlling resource consumption; The format optimization and interaction enhancement module is used to generate interactive images and perform end-adaptive rendering on the Office file blocks to obtain Office file images.
2. The Office file to picture system according to claim 1, characterized in that: The content-aware chunking and prioritization module includes: An intelligent content recognition unit, configured to recognize the Office file and divide it into blocks to obtain the Office file blocks; The dynamic compression strategy unit is used to configure the compression strategy for the Office file blocks.
3. The Office file to picture system according to claim 2, characterized in that: The intelligent coding and resource optimization module includes: A dynamic encoding pipeline unit is used to extract metadata from the Office file and generate an independent resource package for the decoding end to call; using multi-threading technology, different Office file blocks are assigned to independent threads for processing; Resource consumption control unit, used to manage the memory pool and enable low power consumption mode.
4. The Office file to picture system according to claim 3, characterized in that: The format optimization and interaction enhancement module includes: An interactive image generating unit, configured to embed an invisible interactive layer in the Office file image; The multi-terminal adaptive rendering unit is used to dynamically adjust the image DPI according to the resolution of the terminal screen.
5. A method for converting Office files to images, characterized in that: The following steps are involved: Using the content-aware segmentation and priority division module to perform content-aware segmentation and priority division on the Office file, and obtain Office file segments; Using intelligent encoding and resource optimization modules to dynamically encode the Office file blocks and control resource consumption; The format optimization and interaction enhancement module is used to perform interactive image generation and end-adaptive rendering on the Office file blocks to obtain Office file images.
6. The method for converting Office files to images according to claim 5, characterized in that: The content-aware chunking and prioritization module includes: An intelligent content recognition unit, configured to recognize the Office file and divide it into blocks to obtain the Office file blocks; The dynamic compression strategy unit is used to configure the compression strategy for the Office file blocks.
7. The method for converting Office files to images according to claim 6, wherein: The intelligent coding and resource optimization module includes: A dynamic encoding pipeline unit is used to extract metadata from the Office file and generate an independent resource package for the decoding end to call; using multi-threading technology, different Office file blocks are assigned to independent threads for processing; Resource consumption control unit, used to manage the memory pool and enable low power consumption mode.
8. The method for converting Office files to images according to claim 7, characterized in that: The format optimization and interaction enhancement module includes: An interactive image generating unit, configured to embed an invisible interactive layer in the Office file image; The multi-terminal adaptive rendering unit is used to dynamically adjust the image DPI according to the resolution of the terminal screen.
9. An electronic device, characterized in that: The electronic device includes a processor, which is coupled to a memory. The memory stores at least one computer program, and the at least one computer program is loaded and executed by the processor so that the electronic device implements the Office file to picture conversion method as described in any one of claims 5 to 8.
10. A computer-readable storage medium, characterized in that The computer-readable storage medium stores at least one computer program, which is loaded and executed by the processor so that the computer-readable storage medium implements the Office file to picture conversion method according to any one of claims 5 to 8.
Citation Information
Patent Citations
Image conversion method and system based on document page content
CN104462159A
Online preview method and system for Office file
CN116861847A
Method and device for automatically converting cross-format document into Markdown document and form enhancement method and system
CN119598980A
Image processing apparatus
JP2008167314A
Electronic document conversion system
JP2010079850A