Brief document processing method and device, electronic equipment and storage medium

By extracting and processing the text and image layers of a presentation file in an online presentation editing application, a target presentation file that can be edited in the target application is generated. This solves the problem of limited file types in online presentation editing applications and enables the presentation file to be edited in the target application.

CN114611469BActive Publication Date: 2026-07-24BRILLIANT JUPITER PTE LTD
View PDF 2 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
BRILLIANT JUPITER PTE LTD
Filing Date
2022-03-15
Publication Date
2026-07-24

AI Technical Summary

Technical Problem

Online presentation editing applications can only save presentation files as specific file types, and cannot be further edited in presentation design applications, thus failing to meet users' needs for further editing of presentation files.

Method used

By obtaining the original briefing file and the target file type, text and image layers are extracted using image tracing algorithms, and then processed according to the target file type to generate a target briefing file that can be edited in the target application.

Benefits of technology

It enables the conversion of raw briefing files into file types supported by the target application, meeting the editing needs of users in the target application, simplifying the file type conversion process, and improving editing efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114611469B_ABST
    Figure CN114611469B_ABST
Patent Text Reader

Abstract

The application provides a processing method and device of a briefing file, an electronic device and a storage medium. The method comprises the following steps: obtaining an original briefing file to be processed and a target file type, wherein the target file type is a file type that can be supported in a target application; processing the original briefing file according to the target file type, obtaining a target briefing file with the target file type, and editing the target briefing file in the target application. Thus, the original briefing file is converted into the target briefing file with the target file type that can be supported in the target application, so that the target briefing file can be edited in the target application.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of computer application technology, and in particular to a method, apparatus, electronic device and storage medium for processing briefing documents. Background Technology

[0002] A briefing is a short internal newsletter that conveys information on a specific topic. Also known as a "brief newsletter," it is a concise, flexible, and quick written form characterized by its reporting, communicative, and guiding nature. Briefings are one of the most important and frequently used forms of information-based official documents, serving to facilitate communication between superiors and subordinates, exchange information, and promote collaboration.

[0003] In related technologies, online presentation editing applications are typically used for presentation editing. However, presentations edited in online applications can only be saved in specific file types, such as PDF (Portable Document Format) or PNG (Portable Network Graphics). In practical applications, there is often a need to further edit presentation files, such as displaying prototypes or adjusting materials within the presentation. Online presentation editing applications do not provide such functionality. Therefore, it is necessary to convert the presentation files generated by online presentation editing applications into file types that can be edited by presentation design applications such as Figma or Adobe Photoshop, and then edit the converted presentation files within the presentation design application. Summary of the Invention

[0004] This application proposes a method, apparatus, electronic device, and storage medium for processing briefing documents, so as to convert the original briefing document into a target briefing document of a target file type that can be supported by the target application, thereby enabling the target briefing document to be edited in the target application.

[0005] The first aspect of this application provides a method for processing a presentation file. The method includes: obtaining an original presentation file to be processed and a target file type, wherein the target file type is a file type supported by a target application; processing the original presentation file according to the target file type to obtain a target presentation file with the target file type, so as to edit the target presentation file in the target application.

[0006] In one possible implementation, processing the original presentation file according to the target file type to obtain a target presentation file of the target file type includes: extracting the original text layer and the original image layer of the original presentation file; using an image tracing algorithm to draw a vector map based on the original image layer to obtain a target image layer of the vector map type; and processing the original text layer and the target image layer according to the target file type to generate the target presentation file.

[0007] In another possible implementation, the step of using an image tracing algorithm to draw a vector map based on the original image layer to obtain a target image layer of type vector map includes: extracting image features from the original image layer to obtain the first pixel value of each pixel in the original image layer, wherein the first pixel value is represented in binary form; determining the first pixel value of each pixel as the second pixel value of the corresponding point in the target image layer; and drawing a vector map based on the second pixel value of each point in the target image layer to obtain the target image layer of type vector map.

[0008] In another possible implementation, the step of processing the original text layer and the target image layer according to the target file type to generate the target presentation file includes: when the target file type is a first file type, processing the text in the original text layer using the image tracing algorithm to obtain a target text layer; wherein the text in the target presentation file of the first file type is in an uneditable state; the text in the target text layer is in the form of an outline; and the target text layer and the target image layer are superimposed to obtain the target presentation file of the first file type.

[0009] In another possible implementation, the step of processing the original text layer and the target image layer according to the target file type to generate the target presentation file includes: when the target file type is a second file type, overlaying the original text layer and the target image layer to obtain a target presentation file with the second file type; wherein the text in the target presentation file with the second file type is in an editable state.

[0010] A second aspect of this application provides a processing apparatus for a presentation file. The apparatus includes: an acquisition module for acquiring an original presentation file to be processed and a target file type, wherein the target file type is a file type supported by a target application; and a processing module for processing the original presentation file according to the target file type to obtain a target presentation file of the target file type, so as to edit the target presentation file in the target application.

[0011] In one possible implementation, the processing module includes: an extraction unit for extracting the original text layer and the original image layer of the original presentation file; a drawing unit for drawing a vector map based on the original image layer using an image tracing algorithm to obtain a target image layer of type vector map; and a generation unit for processing the original text layer and the target image layer according to the target file type to generate the target presentation file.

[0012] In another possible implementation, the drawing unit is configured to: extract image features from the original image layer to obtain the first pixel value of each pixel in the original image layer, wherein the first pixel value is represented in binary form; determine the first pixel value of each pixel as the second pixel value of the corresponding point in the target image layer; and draw a vector map based on the second pixel value of each point in the target image layer to obtain the target image layer of type vector map.

[0013] In another possible implementation, the generation unit is configured to: when the target file type is a first file type, process the text in the original text layer using the image tracing algorithm to obtain a target text layer; wherein the text in the target presentation file of the first file type is in an uneditable state; the text in the target text layer is in the form of an outline; and overlay the target text layer with the target image layer to obtain a target presentation file of the first file type.

[0014] In another possible implementation, the generation unit is configured to: overlay the original text layer with the target image layer when the target file type is a second file type, to obtain a target presentation file of the second file type; wherein the text in the target presentation file of the second file type is in an editable state.

[0015] A third aspect of this application provides an electronic device comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, it performs a method for processing briefing documents as described in the first aspect embodiment.

[0016] A fourth aspect of this application provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the method for processing briefing documents as described in the first aspect of this application.

[0017] The fifth aspect of this application provides a computer program product comprising a computer program that, when executed by a processor, implements the briefing document processing method proposed in the first aspect of this application.

[0018] The technical solution provided in this application has the following beneficial effects:

[0019] By obtaining the original briefing file to be processed and the target file type, where the target file type is a file type supported by the target application, the original briefing file is processed according to the target file type to obtain a target briefing file with the target file type, which can then be edited in the target application. This achieves the conversion of the original briefing file into a target briefing file with a target file type supported by the target application, thereby enabling the target briefing file to be edited in the target application.

[0020] Additional aspects and advantages of this application will be set forth in part in the description which follows, and in part will be obvious from the description, or may be learned by practice of this application. Attached Figure Description

[0021] The above and / or additional aspects and advantages of this application will become apparent and readily understood from the following description of the embodiments taken in conjunction with the accompanying drawings, wherein:

[0022] Figure 1 This is a flowchart illustrating the method for processing briefing documents provided in Embodiment 1 of this application;

[0023] Figures 2-7 This is an example diagram of the user interface of the processing device provided in Embodiment 1 of this application;

[0024] Figure 8 Example diagram showing the target briefing file provided in Embodiment 1 of this application in the Figma image editing application;

[0025] Figure 9 This is a flowchart illustrating the method for processing briefing documents provided in Embodiment 2 of this application;

[0026] Figure 10 This is an example diagram of the text in the form of an outline provided in Embodiment 2 of this application;

[0027] Figure 11 This is an example diagram of text in a non-frame format provided in Embodiment 2 of this application;

[0028] Figure 12 This is another example of text in a non-framed form provided in Embodiment 2 of this application;

[0029] Figure 13 This is a schematic diagram of the structure of the briefing document processing apparatus provided in Embodiment 3 of this application;

[0030] Figure 14 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. Detailed Implementation

[0031] The embodiments of this application are described in detail below. Examples of these embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals denote the same or similar elements or elements having the same or similar functions throughout. The embodiments described below with reference to the accompanying drawings are exemplary and intended to explain this application, and should not be construed as limiting this application.

[0032] This application proposes a method, apparatus, electronic device, and storage medium for processing presentation documents. By acquiring the original presentation document to be processed and the target file type, wherein the target file type is a file type supported by the target application, the original presentation document is processed according to the target file type to obtain a target presentation document of the target file type, so that the target presentation document can be edited in the target application. This realizes the conversion of the original presentation document into a target presentation document of the target file type supported by the target application, thereby enabling the editing of the target presentation document in the target application.

[0033] The following description, with reference to the accompanying drawings, outlines a method, apparatus, electronic device, and storage medium for processing briefing documents according to embodiments of this application.

[0034] Figure 1 This is a flowchart illustrating the method for processing briefing documents provided in Embodiment 1 of this application.

[0035] It should be noted that the presentation file processing method provided in this application embodiment can be executed by a presentation file processing device, which will be referred to as the processing device below. This processing device can be an electronic device or can be configured within an electronic device, such as an application program within an electronic device, to convert the original presentation file into a target presentation file of a target file type supported by the target application, thereby enabling editing of the target presentation file within the target application. This application embodiment uses an example of the processing device being configured within an electronic device. The electronic device can be any electronic device such as a mobile phone, computer, or smart wearable device; this embodiment does not impose any limitations on this.

[0036] like Figure 1 As shown, the processing method for this briefing document may include the following steps:

[0037] Step 101: Obtain the original briefing file to be processed and the target file type, wherein the target file type is a file type supported by the target application.

[0038] The original presentation file can be a presentation file edited in an online presentation editing application or in other applications; this application does not impose any restrictions on this. The file type of the original presentation file, i.e., the original file type, differs from the target file type; the original file type is a file type not supported by the target application. The original file type can be PDF, PNG, or JPG (Joint Photographic Experts Group); this application does not impose any restrictions on this.

[0039] The target file type can be a file type set as needed or a file type specified by the user; this application does not impose any restrictions on this. The target file type refers to a file type supported by the target application, where "supported" can be understood as being editable within the target application. The target application is an application that allows further editing of presentation files completed in an online presentation editing application, such as Figma image editing application, Adobe Illustrator vector drawing application, Adobe Photoshop image processing application, Sketch vector drawing application, etc. Correspondingly, the target file type can be any of the following file types supported by Adobe Illustrator: .svg (Scalable Vector Graphics) and .ai file types; .fig file type supported by Figma image editing application; .psd file type supported by Adobe Photoshop image processing application; .sketch file type supported by Sketch vector drawing application, etc.

[0040] Among them, .svg is a graphic format, similar to JPG or PDF. Because .svg files are composed of vector graphics rather than pixels, scaling does not affect the resolution. Therefore, the characteristic of .svg files is that they are not limited to a certain resolution.

[0041] It should be noted that, in this embodiment, the processing device can also obtain the original file type of the original presentation file. If it is determined that the original file type is different from the target file type, the next step 102 is then executed. If it is determined that the original file type is the same as the target file type, the next step 102 is not executed, and the user is prompted to verify the original presentation file. The original file type of the original presentation file can be determined automatically by the processing device based on the obtained original presentation file, or it can be input by the user; this application does not impose any restrictions on this.

[0042] In embodiments of this application, the processing device can provide a user interface, which includes an input box for the target file type, an input box for the original file type, an upload button for uploading the original presentation file, and a conversion button to start the conversion process. The user can upload the original presentation file using the upload button on the user interface, enter the target file type in the target file type input box, enter the original file type in the original file type input box, and then touch the conversion button to start the file type conversion process for the presentation file. Correspondingly, the processing device can receive a conversion request carrying the original presentation file, the original file type of the original presentation file, and the target file type, and based on the conversion request, obtain the original presentation file, the original file type, and the target file type to be processed. The input method for entering the original file type in the input box and the target file type in the input box can be either selecting the desired file type from a drop-down menu or manually entering the file type; this application does not limit this method.

[0043] For example, suppose the original presentation file is generated in an online presentation editing application, saved as a PNG file, and named "Slide01.png", and the target file type is .fig. The processing device can provide, for example... Figure 2 The user interface shown is shown. For example, Figure 2 As shown, the user interface may include an input box 201 for the target file type, an input box 202 for the original file type, an upload button 203 for uploading the original presentation file, and a conversion button 204 for starting the conversion process.

[0044] refer to Figure 3 and Figure 4 The drop-down menu in the original file type input box 202 provides candidate original file types, and the drop-down menu in the target file type input box 201 provides candidate target file types. Users can select an original file type (e.g., PNG) from the original file type input box 202 and a target file type (e.g., .fig) from the target file type input box 201. Then, they can upload the original presentation file using the upload button 203. After uploading, the user interface will display as follows: Figure 5 As shown. Among them, Figure 5 File 205 in the document is the original presentation file uploaded by the user. The user can then touch the conversion button 204 to initiate the file type conversion process for the presentation file.

[0045] Accordingly, the processing device can receive a conversion request carrying the original presentation file, the original file type of the original presentation file, and the target file type, and based on the conversion request, obtain the original presentation file to be processed, the original file type, and the target file type, and when it is determined that the original file type and the target file type are different, perform the following step 102 to convert the original presentation file into a target presentation file with the target file type as the file type.

[0046] It should be noted that the original presentation file can also be uploaded using other methods, such as... Figure 4 As shown, the original presentation file is uploaded to the processing device by dragging and dropping the file to a specific area. This application does not restrict the method of uploading the original presentation file, i.e., the method by which the processing device obtains the original presentation file.

[0047] Step 102: Process the original briefing file according to the target file type to obtain a target briefing file of the target file type, so that the target briefing file can be edited in the target application.

[0048] In this embodiment of the application, after the processing device obtains the original presentation file and the target file type, it can process the original presentation file according to the target file type to obtain a target presentation file with the target file type. Then, the user can open the target presentation file through the target application and edit the target presentation file in the target application.

[0049] Continuing the example above, after the processing device obtains the original presentation file and the target file type, it can process the original presentation file according to the target file type. (Refer to...) Figure 6 During step 102, the user display interface provided by the processing device can be as follows: Figure 6 As shown, the conversion progress is displayed. After the conversion is complete and the target presentation file of type target file is obtained, it can be displayed as shown below. Figure 7 The user interface shown is shown. Among them, Figure 7 The user interface includes a download button 206. Users can tap the download button 206 to download the target presentation file named "Slide01.fig" to their local computer. Users can then use methods such as... Figure 8 The Figma image editing application is shown. Open the target presentation file named "Slide01.fig" and edit the target presentation file named "Slide01.fig" in the Figma image editing application.

[0050] This enables the conversion of original presentation files into target presentation files of a type supported by the target application, allowing for editing of the target presentation files within the target application. Users can quickly achieve the file type conversion of the original presentation files with simple operations, making the implementation simple and time-saving.

[0051] In summary, the method for processing presentation files in this application obtains the original presentation file to be processed and the target file type, wherein the target file type is a file type supported by the target application. Based on the target file type, the original presentation file is processed to obtain a target presentation file with the target file type, so that the target presentation file can be edited in the target application. This realizes the conversion of the original presentation file into a target presentation file with a target file type supported by the target application, thereby enabling the target presentation file to be edited in the target application.

[0052] To clearly illustrate how the above embodiments process the original presentation file according to the target file type to obtain a target presentation file of the target file type, the following will combine... Figure 9 The processing method for the briefing documents provided in this application is further explained.

[0053] Figure 9 This is a flowchart illustrating the method for processing briefing documents provided in Embodiment 2 of this application.

[0054] like Figure 9 As shown, the processing method for this briefing document may include the following steps 901-904.

[0055] Step 901: Obtain the original briefing file to be processed and the target file type, wherein the target file type is a file type supported by the target application.

[0056] The original presentation file can be a presentation file edited in an online presentation editing application or in other applications; this application does not impose any restrictions on this. The file type of the original presentation file, i.e., the original file type, differs from the target file type; the original file type is a file type not supported by the target application. The original file type can be PDF, PNG, or JPG; this application does not impose any restrictions on this.

[0057] The target file type can be a file type set as needed or a file type specified by the user; this application does not impose any restrictions on this. The target file type refers to the file types supported by the target application. The target application is an application that allows further editing of presentation files completed in an online presentation editing application, such as Figma image editing application, Adobe Illustrator vector drawing application, Adobe Photoshop image processing application, Sketch vector drawing application, etc. Correspondingly, the target file type can be any of the following file types: .svg and .ai file types supported by Adobe Illustrator vector drawing application, .fig file type supported by Figma image editing application, .psd file type supported by Adobe Photoshop image processing application, and .sketch file type supported by Sketch vector drawing application.

[0058] Among them, .svg is a graphic format, similar to JPG or PDF. Because .svg files are composed of vector graphics rather than pixels, scaling does not affect the resolution. Therefore, the characteristic of .svg files is that they are not limited to a certain resolution.

[0059] The specific implementation process and principle of step 901 can be referred to the description of the above embodiments, and will not be repeated here.

[0060] Step 902: Extract the original text layer and the original image layer from the original presentation file.

[0061] The original text layer contains the text from the original presentation file. The original image layer contains other graphic content besides text from the original presentation file.

[0062] In the embodiments of this application, the original text layer and the original image layer of the original presentation document can be extracted using machine learning techniques or Chinese character recognition techniques such as ultra-lightweight Chinese OCR (Optical Character Recognition). Specific implementation processes can be found in relevant technologies and will not be elaborated here.

[0063] Step 903: Using an image tracing algorithm, a vector map is drawn based on the original image layer to obtain a target image layer of type vector map.

[0064] In this embodiment of the application, an image tracing algorithm can be used to draw a vector map with the same content as the original image layer and whose content is editable, based on the original image layer, and this vector map is used as a layer to obtain a target image layer of type vector map.

[0065] In this embodiment of the application, step 903 can be implemented in the manner shown in steps 903a-903c:

[0066] Step 903a: Extract image features from the original image layer to obtain the first pixel value of each pixel in the original image layer, wherein the first pixel value is represented in binary form.

[0067] The first pixel value is represented in a form that the processing device can understand. For example, if the form that the processing device can understand is binary, then the first pixel value of each pixel in the original image layer obtained by the processing device is a pixel value represented in binary form.

[0068] It is understandable that for an image, the pixel values ​​of each pixel may be completely different. In this embodiment, an image feature extraction network, such as a CNN (Convolutional Neural Network), can be used to extract image features from the original image layer in order to obtain the first pixel value of each pixel in the original image layer.

[0069] In addition, while using an image feature extraction network to extract image features from the original image layer, image feature detection technology can also be combined to detect special structures or corner features in the original image layer. For example, when the original image layer contains a square, image feature detection technology can be used to determine whether the four sides of the square have special features, such as whether the four sides are regular straight lines or irregular curves, thereby achieving more accurate image feature extraction. This improves the accuracy of the first pixel value of each pixel in the original image layer, and further improves the accuracy of the target image layer obtained by drawing vector maps based on the original image layer.

[0070] Step 903b: Determine the first pixel value of each pixel as the second pixel value of the corresponding point in the target image layer.

[0071] Step 903c: Based on the second pixel value of each point in the target image layer, a vector map is drawn to obtain a target image layer of type vector map.

[0072] In the embodiments of this application, a layer with the same size as the original image layer and of type vector graph can be set as the target image layer. The target image layer includes multiple points, the positions of which correspond to the positions of pixels in the original image layer. For each point in the icon image layer, the first pixel value of the pixel corresponding to that point in the original image layer can be determined as the second pixel value of that point. Then, based on the second pixel values ​​of each point in the target image layer, a vector graph can be drawn, and the resulting vector graph is used as a layer, thus obtaining the target image layer of type vector graph.

[0073] Step 904: Process the original text layer and the target image layer according to the target file type to generate the target briefing file.

[0074] In the embodiments of this application, after obtaining the target image layer of type vector graph, the original text layer and the target image layer can be processed according to the target file type to generate a target presentation file of type target file, so that the target presentation file can be edited in the target application and meet the user's need for further editing of the target presentation file.

[0075] It is understood that the target file type in this application embodiment can be .svg, .ai, .psd, .sketch, .fig, etc. Among them, .svg type presentation files are scalable vector graphics, and the text in them is not editable; .ai, .psd, .sketch, or .fig type presentation files have editable text. For example, the text in a .svg type presentation file can be edited in Adobe Illustrator vector drawing application, the text in a .psd type presentation file can be edited in Adobe Photoshop image processing application, the text in a .sketch type presentation file can be edited in Sketch vector drawing application, and the text in a .fig type presentation file can be edited in Figma image editing application.

[0076] In this embodiment, the file type of a presentation file where the text is in an uneditable state, such as .svg, is referred to as the first file type, and the file type of a presentation file where the text is in an editable state, such as .ai, .psd, .sketch, .fig, etc., is referred to as the second file type. The following describes how to process the original text layer and the target image layer according to the target file type to generate a target presentation file of the first file type or the second file type.

[0077] In one possible implementation of this application, when the target file type is a first file type, an image tracing algorithm can be used to process the text in the original text layer to obtain a target text layer, wherein the text in the target text layer is in the form of an outline, and then the target text layer is superimposed with the target image layer to obtain a target presentation file of the first file type, wherein the text in the target presentation file of the first file type is in an uneditable state.

[0078] Specifically, when the target file type is a primary file type such as .svg, the text in the original text layer can be treated as graphics. Using an image tracing algorithm, a target text layer of vector map type is drawn based on the original text layer. The text in the target text layer is represented by an outline. This target text layer is then overlaid with the target image layer to obtain the target presentation file of primary file type. In this target presentation file, the text is in outline form, and the selected text content cannot be edited.

[0079] Taking a target file of type .svg as an example, after obtaining a target presentation file of type .svg (with the text "Outline created (uneditable)"), when opening the target presentation file in the Adobe Illustrator vector drawing application, the text "Outline created (uneditable)" in the target presentation file will appear as follows: Figure 10 The outline shown displays numerous nodes when text is selected, making the text content uneditable.

[0080] By converting the text in the original presentation file into an outline format, a target presentation file with uneditable text is obtained. This avoids the issue of different font styles when opening the same target presentation file on different terminal devices. For example, if a certain font is configured on terminal device A but not on terminal device B, the target presentation file will not display with different font styles when opened on terminal devices A and B. Therefore, if the user does not want the target presentation file to display with different font styles on different terminal devices, the target file type can be set to a first file type such as .svg. The processing device can then convert the original presentation file into a target presentation file of the .svg first file type, with the text in the target presentation file being uneditable, as described above.

[0081] In another possible implementation of this application, when the target file type is a second file type, the original text layer and the target image layer can be directly overlaid to obtain a target presentation file of the second file type, wherein the text in the target presentation file of the second file type is in an editable state.

[0082] Specifically, when the target file type is a second-class file type such as .ai, .psd, .sketch, or .fig, the original text layer can be treated as a regular text layer and directly overlaid on the target image layer to obtain a target presentation file of the second-class file type. In this presentation file, the text is in a non-framed format, and the selected text content can be edited.

[0083] Taking a target file of type .ai as an example, after obtaining a target presentation file of type .ai (with text content "text"), when opening the target presentation file in the Adobe Illustrator vector drawing application, the text "text" in the target presentation file will be selected as follows: Figure 11 The non-framed format shown displays a horizontal line below the selected text, which can then be edited as follows: Figure 12 As shown in the figure.

[0084] It should be noted that, Figure 9 , 10 The presence of a quadrilateral frame around Chinese characters does not indicate that the characters are in outline form. The quadrilateral frame is only a border that appears when the characters are selected by the cursor or when the Shift key on the keyboard is pressed.

[0085] By directly overlaying the original text layer with the target image layer, a target presentation file with editable text is obtained. This allows users to further edit the text in the target presentation file, thus satisfying their needs for further text editing. When a user wishes to further edit the text in the target presentation file, they can set the target file type to a second file type such as .ai, .psd, .sketch, or .fig. The processing device can then convert the original presentation file into a target presentation file of the second file type (.ai, .psd, .sketch, or .fig) in the manner described above, where the text in the target presentation file is editable.

[0086] In summary, the method for processing presentation files in this application involves obtaining the original presentation file to be processed and the target file type, wherein the target file type is a file type supported by the target application. The original text layer and the original image layer of the original presentation file are extracted. A vector map is drawn based on the original image layer using an image tracing algorithm to obtain a target image layer of type vector map. The original text layer and the target image layer are then processed according to the target file type to generate the target presentation file. This method converts the original presentation file into a target presentation file of a target file type supported by the target application, thereby enabling the target presentation file to be edited in the target application.

[0087] With the above Figures 1 to 12 Corresponding to the presentation document processing method provided in the embodiments, this application also provides a presentation document processing apparatus. Since the presentation document processing apparatus provided in the embodiments of this application is similar to the one described above... Figures 1 to 12 The presentation document processing method provided in the embodiments corresponds to the presentation document processing device provided in the embodiments of this application, and will not be described in detail in the embodiments of this application.

[0088] Figure 13 This is a schematic diagram of the structure of the briefing document processing device provided in Embodiment 3 of this application.

[0089] like Figure 13 As shown, the briefing document processing device 1300 may include: an acquisition module 1310 and a processing module 1320.

[0090] The acquisition module 1310 is used to acquire the original briefing file to be processed and the target file type, wherein the target file type is a file type supported by the target application;

[0091] The processing module 1320 is used to process the original briefing file according to the target file type to obtain a target briefing file of the target file type, so that the target briefing file can be edited in the target application.

[0092] It should be noted that the presentation file processing device 1300 provided in this application embodiment can execute the presentation file processing method in the above embodiments. This presentation file processing device can be an electronic device or can be configured within an electronic device to convert the original presentation file into a target presentation file of a target file type supported by the target application, thereby enabling editing of the target presentation file within the target application. This application embodiment uses an example where the processing device is configured within an electronic device. The electronic device can be any electronic device such as a mobile phone, computer, or smart wearable device; this embodiment does not impose any limitations on this.

[0093] As one possible implementation of this application embodiment, the processing module 1320 includes:

[0094] The extraction unit is used to extract the original text layer and the original image layer of the original presentation file.

[0095] The drawing unit is used to draw vector maps based on the original image layer using an image tracing algorithm to obtain a target image layer of type vector map.

[0096] The generation unit is used to process the original text layer and the target image layer according to the target file type to generate the target presentation file.

[0097] As another possible implementation of this application embodiment, the drawing unit is used for:

[0098] Image features are extracted from the original image layer to obtain the first pixel value of each pixel in the original image layer, where the first pixel value is represented in binary form;

[0099] The first pixel value of each pixel is determined as the second pixel value of the corresponding point in the target image layer;

[0100] Based on the second pixel value of each point in the target image layer, a vector map is drawn to obtain the target image layer of type vector map.

[0101] As another possible implementation of this application embodiment, the generation unit is used for:

[0102] When the target file type is the first file type, the text in the original text layer is processed using an image tracing algorithm to obtain the target text layer; wherein, the text in the target presentation file of the first file type is in an uneditable state; the text in the target text layer is in the form of an outline.

[0103] Overlay the target text layer with the target image layer to obtain a target presentation file with the first file type.

[0104] As another possible implementation of this application embodiment, the generation unit is used for:

[0105] When the target file type is the second file type, the original text layer is overlaid with the target image layer to obtain a target presentation file of the second file type; wherein, the text in the target presentation file of the second file type is in an editable state.

[0106] The presentation file processing apparatus of this application embodiment obtains the original presentation file to be processed and the target file type, wherein the target file type is a file type supported by the target application. Based on the target file type, the original presentation file is processed to obtain a target presentation file of the target file type, so that the target presentation file can be edited in the target application. This realizes the conversion of the original presentation file into a target presentation file of the target file type supported by the target application, thereby enabling the target presentation file to be edited in the target application.

[0107] To implement the above embodiments, this application also proposes an electronic device, which may include: a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the program, it performs the briefing document processing method proposed in the first aspect of the foregoing embodiments of this application.

[0108] The electronic devices in the embodiments of this application can be any electronic device such as mobile phones, computers, smart wearable devices, etc., and this disclosure does not limit them.

[0109] It should be noted that the explanation of the method for processing briefing documents proposed in the first aspect embodiment also applies to the electronic device of this embodiment, and will not be repeated here.

[0110] The electronic device of this application acquires the original presentation file to be processed and the target file type, wherein the target file type is a file type supported by the target application. Based on the target file type, the original presentation file is processed to obtain a target presentation file with the target file type, so that the target presentation file can be edited in the target application. This realizes the conversion of the original presentation file into a target presentation file with a target file type supported by the target application, thereby enabling the target presentation file to be edited in the target application.

[0111] To implement the above embodiments, this application also proposes a computer-readable storage medium storing a computer program thereon, characterized in that the program, when executed by a processor, implements the method for processing briefing documents as proposed in the first aspect of the present application.

[0112] To implement the above embodiments, this application also provides a computer program product, which includes a computer program that, when executed by a processor, implements the briefing document processing method proposed in the first aspect of the present application.

[0113] Figure 14 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application.

[0114] like Figure 14As shown, the electronic device may include:

[0115] The memory 1401, the processor 1402, and the computer program stored on the memory 1401 and executable on the processor 1402.

[0116] When processor 1402 executes the program, it implements Figures 1 to 12 The method for processing briefing documents provided in any of the illustrated embodiments.

[0117] Furthermore, the electronic device may also include:

[0118] Communication interface 1403 is used for communication between memory 1401 and processor 1402.

[0119] The memory 1401 is used to store computer programs that can run on the processor 1402.

[0120] The memory 1401 may include high-speed RAM memory, and may also include non-volatile memory, such as at least one disk storage device.

[0121] Processor 1402, used to implement when executing the program Figures 1 to 12 The method for processing briefing documents as described in any of the illustrated embodiments.

[0122] If the memory 1401, processor 1402, and communication interface 1403 are implemented independently, then the communication interface 1403, memory 1401, and processor 1402 can be interconnected via a bus to complete communication between them. The bus can be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, or an Extended Industry Standard Architecture (EISA) bus, etc. The bus can be divided into address bus, data bus, control bus, etc. For ease of representation, Figure 14 The bus is represented by a single thick line, but this does not mean that there is only one bus or one type of bus.

[0123] Optionally, in a specific implementation, if the memory 1401, processor 1402, and communication interface 1403 are integrated on a single chip, then the memory 1401, processor 1402, and communication interface 1403 can communicate with each other through an internal interface.

[0124] The processor 1402 may be a central processing unit (CPU), an application specific integrated circuit (ASIC), or one or more integrated circuits configured to implement embodiments of the present invention.

[0125] In the description of this specification, the references to terms such as "one embodiment," "some embodiments," "example," "specific example," or "some examples," etc., refer to specific features, structures, materials, or characteristics described in connection with that embodiment or example, which are included in at least one embodiment or example of this application. In this specification, the illustrative expressions of the above terms do not necessarily refer to the same embodiment or example. Furthermore, the specific features, structures, materials, or characteristics described may be combined in any suitable manner in one or more embodiments or examples. Moreover, without contradiction, those skilled in the art can combine and integrate the different embodiments or examples described in this specification, as well as the features of different embodiments or examples.

[0126] Furthermore, the terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one of that feature. In the description of this application, "multiple" means at least two, such as two, three, etc., unless otherwise explicitly specified.

[0127] Any process or method described in the flowchart or otherwise herein can be understood as representing a module, segment, or portion of code comprising one or more executable instructions for implementing custom logic functions or processes, and the scope of the preferred embodiments of this application includes additional implementations in which functions may be performed not in the order shown or discussed, including substantially simultaneously or in reverse order depending on the functions involved, as should be understood by those skilled in the art to which embodiments of this application pertain.

[0128] The logic and / or steps represented in the flowchart or otherwise described herein, for example, can be considered as a sequenced list of executable instructions for implementing logical functions, and can be embodied in any computer-readable medium for use by, or in conjunction with, an instruction execution system, apparatus, or device (such as a computer-based system, a processor-included system, or other system that can fetch and execute instructions from, an instruction execution system, apparatus, or device). For the purposes of this specification, "computer-readable medium" can be any means that can contain, store, communicate, propagate, or transmit programs for use by, or in conjunction with, an instruction execution system, apparatus, or device. More specific examples (a non-exhaustive list) of computer-readable media include: an electrical connection having one or more wires (electronic device), a portable computer disk drive (magnetic device), random access memory (RAM), read-only memory (ROM), erasable and editable read-only memory (EPROM or flash memory), fiber optic devices, and portable optical disc read-only memory (CDROM). Alternatively, the computer-readable medium may be paper or other suitable media on which the program can be printed, since the program can be obtained electronically, for example, by optically scanning the paper or other medium, followed by editing, interpreting, or otherwise processing as necessary, and then stored in a computer memory.

[0129] It should be understood that various parts of this application can be implemented using hardware, software, firmware, or a combination thereof. In the above embodiments, multiple steps or methods can be implemented using software or firmware stored in memory and executed by a suitable instruction execution system. For example, if implemented in hardware as in another embodiment, it can be implemented using any one or a combination of the following techniques known in the art: discrete logic circuits having logic gates for implementing logical functions on data signals, application-specific integrated circuits (ASICs) having suitable combinational logic gates, programmable gate arrays (PGAs), field-programmable gate arrays (FPGAs), etc.

[0130] Those skilled in the art will understand that all or part of the steps of the methods in the above embodiments can be implemented by a program instructing related hardware. The program can be stored in a computer-readable storage medium, and when executed, the program includes one or a combination of the steps of the method embodiments.

[0131] Furthermore, the functional units in the various embodiments of this application can be integrated into a processing module, or each unit can exist physically separately, or two or more units can be integrated into a module. The integrated module can be implemented in hardware or as a software functional module. If the integrated module is implemented as a software functional module and sold or used as an independent product, it can also be stored in a computer-readable storage medium.

[0132] The storage medium mentioned above can be a read-only memory, a disk, or an optical disk, etc. Although embodiments of this application have been shown and described above, it is understood that the above embodiments are exemplary and should not be construed as limiting this application. Those skilled in the art can make changes, modifications, substitutions, and variations to the above embodiments within the scope of this application.

Claims

1. A method for processing briefing documents, characterized in that, include: Obtain the original briefing file to be processed and the target file type, wherein the target file type is a file type supported by the target application; Based on the target file type, the original briefing file is processed to obtain a target briefing file with the target file type, so that the target briefing file can be edited in the target application; The step of processing the original presentation file according to the target file type to obtain a target presentation file of the target file type includes: Extract the original text layer and original image layer from the original presentation file; Using an image tracing algorithm, a vector map is drawn based on the original image layer to obtain a target image layer of type vector map. Based on the target file type, the original text layer and the target image layer are processed to generate the target presentation file; The step of using an image tracing algorithm to draw a vector map based on the original image layer to obtain a target image layer of type vector map includes: Image feature extraction is performed on the original image layer to obtain the first pixel value of each pixel in the original image layer, wherein the first pixel value is represented in binary form; The first pixel value of each pixel is determined as the second pixel value of the corresponding point in the target image layer; Based on the second pixel value of each point in the target image layer, a vector map is drawn to obtain the target image layer of type vector map. The step of processing the original text layer and the target image layer according to the target file type to generate the target presentation file includes: When the target file type is the first file type, the image tracing algorithm is used to process the text in the original text layer to obtain the target text layer; wherein, the text in the target presentation file of the first file type is in an uneditable state; the text in the target text layer is in the form of an outline; The target text layer and the target image layer are overlaid to obtain a target presentation file of the first file type; The step of processing the original text layer and the target image layer according to the target file type to generate the target presentation file includes: When the target file type is the second file type, the original text layer is overlaid with the target image layer to obtain a target presentation file of the second file type; wherein, the text in the target presentation file of the second file type is in an editable state.

2. A device for processing briefing documents, characterized in that, include: The acquisition module is used to acquire the original briefing file to be processed and the target file type, wherein the target file type is a file type supported by the target application; The processing module is used to process the original briefing file according to the target file type to obtain a target briefing file with the target file type, so as to edit the target briefing file in the target application; The processing module includes: The extraction unit is used to extract the original text layer and the original image layer of the original presentation file; The drawing unit is used to draw a vector map based on the original image layer using an image tracing algorithm to obtain a target image layer of type vector map. The generation unit is used to process the original text layer and the target image layer according to the target file type to generate the target presentation file; The drawing unit is used for: Image feature extraction is performed on the original image layer to obtain the first pixel value of each pixel in the original image layer, wherein the first pixel value is represented in binary form; The first pixel value of each pixel is determined as the second pixel value of the corresponding point in the target image layer; Based on the second pixel value of each point in the target image layer, a vector map is drawn to obtain the target image layer of type vector map. The generation unit is used for: When the target file type is the first file type, the image tracing algorithm is used to process the text in the original text layer to obtain the target text layer; wherein, the text in the target presentation file of the first file type is in an uneditable state; the text in the target text layer is in the form of an outline; The target text layer and the target image layer are overlaid to obtain a target presentation file of the first file type; The generation unit is used for: When the target file type is the second file type, the original text layer is overlaid with the target image layer to obtain a target presentation file of the second file type; wherein, the text in the target presentation file of the second file type is in an editable state.

3. An electronic device, characterized in that, The electronic device includes: a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the program, it performs the method for processing briefing documents as described in claim 1.

4. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the program is executed by the processor, it implements the briefing file processing method as described in claim 1.