A content processing method, apparatus, device, medium, and program product

By performing isolated rendering and layered processing on the execution device side, the problems of hierarchical chaos and style pollution in the format conversion of content generated by the intelligent system are solved, realizing stable conversion of web page content to target file format and ensuring content consistency and file standardization.

CN122491208APending Publication Date: 2026-07-31BEIJING ZITIAO NETWORK TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
BEIJING ZITIAO NETWORK TECH CO LTD
Filing Date
2026-04-29
Publication Date
2026-07-31

AI Technical Summary

Technical Problem

The presentation content generated by existing intelligent systems is prone to problems such as hierarchical disorder, style pollution, and unstable display when converted from web page format to presentation format, affecting the generation and conversion effect.

Method used

By performing isolated rendering and layering on the execution device side, the first rendering result of the first generated content is obtained, and layering is performed according to the content type to form the first layer and the second layer of content, which are then filled into the target file format template.

Benefits of technology

It effectively avoids hierarchical chaos and style pollution during the rendering process, ensures that the converted content is highly consistent with the original content, improves rendering stability and accuracy, achieves differentiation and regularization of different types of content, and ensures clear file structure and normal display.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122491208A_ABST
    Figure CN122491208A_ABST
Patent Text Reader

Abstract

This paper provides a content processing method, apparatus, device, medium, and program product, relating to the field of computer processing technology. The method includes: displaying first generated content, which is generated by a model based on content requirement description information; responding to a first trigger operation, acquiring first file content, which has a first file format, obtained based on first layered content and second layered content, wherein the first and second layered content are obtained by performing layered processing on a first rendering result, and the first rendering result is obtained by performing first isolated rendering on the first generated content. This solves the problems of hierarchical chaos, style pollution, and unstable display that occur in content format conversion, achieving the effect of effectively converting generated content into file content that conforms to format requirements. It improves the effectiveness and reliability of content conversion and also ensures the clarity and regularity of the content structure formed by the conversion.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of computer processing technology, and in particular to a content processing method, apparatus, device, medium, and program product. Background Technology

[0002] With the widespread use of presentation documents, automatically generating presentation content through intelligent systems can effectively improve production efficiency.

[0003] However, the presentation content generated by these intelligent systems is often presented in web page format. When converting web page content to presentation file format, direct rendering can easily lead to problems such as hierarchical disorder, style contamination, and unstable display. This affects the generation and conversion effect of the presentation content. Summary of the Invention

[0004] This invention provides a content processing method, apparatus, device, medium, and program product that enables the efficient acquisition of content files that meet format requirements.

[0005] In one scenario, this paper provides a content processing method that includes: Display the first generated content, which is generated by the model based on the content requirement description information; In response to a first trigger operation, the first file content is obtained. The first file content has a first file format. The first file content is obtained based on a first layered content and a second layered content. The first layered content and the second layered content are obtained by performing layered processing on a first rendering result. The first rendering result is obtained by performing first isolated rendering on the first generated content.

[0006] In one instance, this document also provides a content processing apparatus comprising: The display module is used to display the first generated content, which is generated by the model based on the content requirement description information. A response module is used to respond to a first trigger operation and obtain first file content. The first file content has a first file format. The first file content is obtained based on first layered content and second layered content. The first layered content and the second layered content are obtained by performing layered processing on the first rendering result. The first rendering result is obtained by performing first isolated rendering on the first generated content.

[0007] In one instance, this document also provides an electronic device comprising: One or more processors; Storage device for storing one or more programs. When the one or more programs are executed by the one or more processors, the one or more processors implement the content processing methods as described herein.

[0008] In one instance, this document also provides a storage medium containing computer-executable instructions that, when executed by a computer processor, are used to perform content processing methods as described herein.

[0009] In another instance, this document also provides a computer program product, including a computer program that, when executed by a processor, implements the content processing methods as described herein.

[0010] The above content processing method first displays the first generated content, which is generated by the model based on content requirement description information. In response to a first trigger operation, it acquires the first file content, which has a first file format. The first file content is obtained based on first layered content and second layered content. The first and second layered content are obtained by layering the first rendering result, and the first rendering result is obtained by performing first isolation rendering on the first generated content. The technical solution involved in this scenario effectively avoids problems such as hierarchical chaos, style pollution, and display instability that occur during the rendering process before format conversion, ensuring that the converted content is highly consistent with the original content and improving the stability and accuracy of rendering during content conversion. It also enables the differentiation and organization of different types of content in the first generated content, avoiding interference between different types of content, and effectively converting webpage-style content to the first file format content, resulting in a clear and correctly displayed final file structure. This technical solution further improves the effect and reliability of content format conversion, ensuring the usability and standardization of the converted file content. Attached Figure Description

[0011] The above and other features, advantages, and aspects of the embodiments described herein will become more apparent when taken in conjunction with the accompanying drawings and the following detailed description. Throughout the drawings, the same or similar reference numerals denote the same or similar elements. It should be understood that the drawings are schematic, and the originals and elements are not necessarily drawn to scale.

[0012] Figure 1 This is a schematic diagram illustrating an application scenario involving content processing methods in one particular case. Figure 2 This is a flowchart illustrating a content processing method for one scenario. Figure 3 This is a flowchart illustrating a content processing method for another scenario. Figure 4A flowchart illustrating an optional instance of a content processing method in one scenario; Figure 5 This is a diagram demonstrating the effect of a content processing method in one scenario. Figure 6 This is a schematic diagram of a content processing device in one scenario. Figure 7 This is a schematic diagram of the structure of an electronic device used in one scenario. Detailed Implementation

[0013] The embodiments will now be described in more detail with reference to the accompanying drawings. While some embodiments are shown in the drawings, it should be understood that the technical solutions can be implemented in various forms and should not be construed as limited to the embodiments set forth herein. Rather, these embodiments are provided to provide a more thorough and complete understanding of the technical solutions herein. It should be understood that the illustrated drawings and embodiments are for illustrative purposes only and are not intended to limit the scope of protection of the technical solutions.

[0014] It should be understood that the steps described in the method implementation may be performed in different orders and / or in parallel. Furthermore, the method implementation may include additional steps and / or omit the steps shown. The scope of this document is not limited in this respect.

[0015] The term "comprising" and its variations as used herein are open-ended inclusions, meaning "including but not limited to". The term "based on" means "at least partially based on". The term "one situation" means "at least one situation"; the term "another situation" means "at least one additional situation"; the term "some situations" means "at least some situations". Definitions of other terms will be given in the following description.

[0016] It should be noted that the concepts of "first" and "second" mentioned are only used to distinguish different devices, modules or units, and are not used to limit the order of the functions performed by these devices, modules or units or their interdependencies.

[0017] It should be noted that the terms "one" and "more" used in this document are illustrative rather than restrictive, and those skilled in the art should understand that, unless otherwise expressly indicated in the context, they should be understood as "one or more".

[0018] The names of messages or information exchanged between multiple devices in this document are for illustrative purposes only and are not intended to limit the scope of these messages or information.

[0019] It is understood that before using the technical solutions disclosed in the various embodiments of this document, users should be informed of the types, scope of use, and usage scenarios of the personal information involved in this document in an appropriate manner in accordance with relevant laws and regulations, and user authorization should be obtained.

[0020] For example, upon receiving a user's active request, a prompt message is sent to the user to explicitly inform them that the requested operation will require the acquisition and use of the user's personal information. This allows the user to independently choose whether to provide personal information to the software or hardware, such as electronic devices, applications, servers, or storage media, that perform the operations described herein, based on the prompt message.

[0021] As an optional but non-limiting implementation, in response to a user's active request, sending a prompt message to the user can be done via a pop-up window, where the prompt message can be presented in text format. Furthermore, the pop-up window can also include a selection control allowing the user to choose "agree" or "disagree" to provide personal information to the electronic device.

[0022] It is understood that the above notification and user authorization process is merely illustrative and does not constitute a limitation on the implementation method described in this article. Other methods that comply with relevant laws and regulations may also be applied to the implementation method described in this article.

[0023] It is understood that the data involved in the technical solutions in this article (including but not limited to the data itself, the acquisition or use of the data) shall comply with the requirements of relevant laws, regulations and related provisions.

[0024] Figure 1 This is a schematic diagram illustrating an application scenario involving content processing using a content processing method. In some cases, the provided solution can be applied to this application scenario. The system involved in this application scenario may include a client 101 and a server 102. The client 101 may include, but is not limited to, browsers, applications (Apps), HyperText Markup Language (HTML) applications, lightweight applications (also known as mini-programs), or cloud applications. The client 101 may be deployed on an electronic device, relying on the operation of that device or certain applications within the device to implement its functions. The electronic device may be, for example, a device with a display screen that supports information browsing, such as a smartphone, tablet, personal computer, or other client terminal. For ease of understanding, Figure 1The client is primarily represented in the form of a device. Other types of applications can also be configured on the electronic device, such as media content publishing applications, session applications, etc. Server 102 can be one or more servers providing various services. That is, it can be implemented as a distributed server cluster composed of multiple servers, or as a single server; furthermore, it can be a server for a distributed system, a server integrating blockchain technology, a cloud server, or an intelligent cloud computing server or intelligent cloud host deployed with machine learning models, etc.

[0025] The content processing method described in this paper can be implemented through client 101. Before implementation through client 101, it can interact with server 102, such as receiving or sending messages. For example, in this paper, server 102 can receive a content generation request sent by client 101 based on an information carrier, use its intelligent system to combine the content requirement description information in the content generation request to generate first generated content, and send the first generated content to client 101 for display on the display interface.

[0026] It should be noted that the content processing method can be executed on client 101, or by client 101 and server 102. Different functions of the corresponding content processing device can be deployed on client 101. Before executing the content processing method, client 101 and server 102 can achieve data interaction and functional collaboration through network communication. It should be understood that... Figure 1 The number of clients and servers shown is for illustrative purposes only. Any number of clients and servers can be configured to meet specific implementation requirements.

[0027] Figure 2 This is a flowchart illustrating a content processing method for one scenario. This method is applicable to content processing scenarios, particularly those involving format conversion, such as converting webpage content to presentation format. This content processing method can be executed by a content processing device, which can be implemented in software and / or hardware, optionally through an electronic device such as a mobile terminal, computer, or server. Figure 2 As shown, the content processing method may specifically include: S201. Display the first generated content, which is generated by the model based on the content requirement description information.

[0028] In one scenario, this step can be used to display the first generated content. This first generated content can be considered as being received from a server with content generation capabilities. The server with content generation capabilities can generate the first generated content based on the model. The content requirement description information of the first generated content generated by the model can be sent by the execution device that executes the method provided herein.

[0029] In one scenario, the model that the server can employ can be provided by the integrated intelligent system. In this paper, an intelligent system refers to a system capable of autonomous control based on a machine learning model. An intelligent system is, for example, a virtual object or entity that can make decisions and autonomously execute actions based on a machine learning model to achieve preset goals or complete preset tasks. An intelligent system can be an automated program that understands the user's intent and can utilize models or invoke tools to complete various types of tasks. In some cases, examples of intelligent systems may include, but are not limited to: intelligent agents, robot programs, chatbots, digital avatars, intelligent customer service, digital assistants, etc. Alternatively, an intelligent system can also be an intelligent role implemented based on a machine learning model. An "intelligent system" can process user requests based on generative models (e.g., language models, multimodal models) to perform specified types of tasks. In some cases, an intelligent system may also relate to virtual accounts, which may have corresponding avatars or nicknames.

[0030] In one context, content requirement description information can be considered as text, audio, or visual information that describes the content generation requirements. In the context of presentation content generation, this content requirement description information can be used to describe the requirements for generating the presentation, such as the presentation style, theme, and length.

[0031] In one scenario, the input of content requirement description information can be achieved by presenting an interactive interface on the screen of the aforementioned execution device. This interactive interface can be considered as the interactive entry point presented by the intelligent system on the execution device side. Specifically, the first generated content shown in this step can also be displayed in this interactive interface, and the first generated content can be rendered into a page style and displayed on the interactive interface.

[0032] In one scenario, the first generated content can be in a Hypertext Markup Language (HTML) style or a structured description style. The page displaying the first generated content can be a webpage. It can be seen that the method provided in this paper does not impose constraints on the format of the first generated content. For example, the server does not need to use the file format corresponding to the content requirement description information to require the format of the first generated content, allowing for flexibility in the format of the first generated content. The method provided in this paper is better compatible with the generation capabilities of intelligent systems, expanding the range of adaptability for content generation requirements.

[0033] In one scenario, this paper can also provide editing capabilities for the first generated content displayed. In this context, it essentially provides users with WYSIWYG editing capabilities for the text, styles, and positions within the first generated content. One implementation allows for the construction of editable attributes for the page displaying the first generated content, specifically through a provided editing interaction interface. Editable interaction capabilities can be assigned to page elements within the page, allowing users to respond to editing operations performed on those elements through this interface.

[0034] S202. In response to the first trigger operation, obtain the content of the first file. The content of the first file has a first file format. The content of the first file is obtained based on the first layer content and the second layer content. The first layer content and the second layer content are obtained by performing layer processing on the first rendering result. The first rendering result is obtained by performing first isolation rendering on the first generated content.

[0035] In one scenario, the trigger condition for the first operation could be the occurrence of a content format conversion. In practical applications, one way to trigger this content format conversion function is to issue an instruction to convert the first generated content to a first file format. This instruction can be provided through triggering a corresponding control or through voice input. Another way to trigger it is to automatically generate a content format conversion instruction after detecting the display of the first generated content, thereby automatically displaying the first generated content in the first file format.

[0036] In one scenario, after responding to the first trigger operation, this step can obtain the first file content with a first file format, which can be considered the format to which the content is expected to be converted. In one application implementation, the first file format can be a presentation format. The first generated content converted to this presentation format can be viewed, edited, and presented in applications that support presentation format display. The first file format can also be a file format that provides more additional operational functions for the first generated content; this document does not impose specific limitations.

[0037] In one implementation, the first file content can be filled into a template with a first file format. In related implementations of filling the first generated content, one approach is to map the first generated content to template parameters, thus achieving the filling of the first generated content into the template. The problem with this approach is that the first generated content generated by the model has a highly variable form, requiring the calculation of dilation mapping rules to accurately fill it. Furthermore, the first generated content often contains more complex visual information, such as gradients, filters, shadows, and blending layers. This visual information is difficult to accurately reproduce through simple filling, and the template dimension of the first text format has high costs.

[0038] Another related implementation considers directly rendering the first generated content as an image and directly filling the image content into the template of the first file format as the first file content. This implementation method will result in the text in the first file content being uneditable, and it will not provide secondary editing of the file content. If you want to modify the content, you need to resubmit the generation request and have the server regenerate the first generated content. It can be seen that this implementation method also has the problem of high editing cost.

[0039] In another related implementation, a server-side rendering cluster is required. The execution device needs to pass the first generated content to a server with content conversion capabilities. The server then uses a template of the first file format to render and convert the first generated content. This implementation requires the introduction of additional service deployment and maintenance. When the conversion demand is concentrated, the conversion demand needs to be cached through a cache queue. In addition, after the content conversion is completed, additional file storage or download operations are required. The entire conversion process will result in high latency, large computational resource consumption, and resource fluctuations affecting stability.

[0040] To address the issues identified in the aforementioned implementations, the method presented in this paper considers directly implementing the efficient filling of the first generated content into the first file format template on the execution device side through isolated rendering of the first generated content and layered content filling. Specifically, after responding to the first trigger operation, this paper employs isolated rendering to render the first generated content, obtaining a first rendering result that can be used to draw the first generated content. Then, the first rendering result can be layered according to content type to obtain first layer content and second layer content. Finally, the first layer content and second layer content can be filled into the template associated with the first file format according to an adapted filling presentation format, thereby forming the first file content with the first file format.

[0041] In one scenario, the isolated rendering process for the first generated content can be described as follows: An independent rendering container is created. Within this container, a number of rendering layers are constructed, matching the number of pages involved in the first generated content. The size of these rendering layers can be a fixed size related to the page parameters of the first file format. Then, information from each page of the first generated content is loaded into the corresponding rendering layer. This loaded information can include the structure, style, and content of the first generated content. After loading, the loaded information is rendered within this independent rendering container, resulting in a first rendering result suitable for drawing the pages of the first generated content.

[0042] In one scenario, the process of layering the first rendering result can be described as follows: Obtain the rendered page after rendering the first rendering result, and extract the page element nodes that constitute the page elements from the rendered page. The page element nodes can be classified as text nodes based on their node type. This paper can involve copying the rendered page. In the copied first rendered page, the identified text nodes are hidden, and only the non-text nodes are retained. The page element content presented by these non-text nodes constitutes a type of layered content, which can be used as the first layered content. Alternatively, the page element content corresponding to the text nodes can be extracted from the rendered page. This type of page element content can also constitute a type of layered content and be used as the second layered content.

[0043] In one scenario, the first layer of content may include multiple non-text page elements. This paper determines the stacking order of page elements based on their hierarchical information within the rendered page. Then, image format content of the corresponding page elements can be obtained according to the stacking order through methods such as screenshotting, panning, or region cropping. This image format content can then be filled into the template of the first file format. This writing method can largely preserve the visual effect of non-text page elements.

[0044] In one scenario, the second layer of content may contain multiple text-based page elements. This paper can extract the element content and style information of each text-based page element from the rendered page, as well as obtain the geometric position and size information of the page elements. Then, the extracted element content and style information can be vectorized and overlaid into a template of the first file format according to the geometric position and size information. This writing method preserves the editable attributes of the text-based page elements, allowing for flexible secondary editing of the text-based element content.

[0045] It is known that after writing the first layer content and the second layer content in the template of the first file format, the resulting file content can be used as the first file content. The first file content has the original complex visual effects of the first generated content, and also has the ability to edit the text content. At the same time, the first file content can be viewed, edited and displayed through application software that supports the first file format.

[0046] The aforementioned technical solution effectively avoids issues such as hierarchical chaos, style pollution, and display instability that occur during the rendering process before format conversion, ensuring a high degree of consistency between the converted and original content and improving the stability and accuracy of rendering during content conversion. It also enables the differentiation and organization of different content types within the first generated content, preventing interference between different content types. Furthermore, it effectively converts webpage-style content to the first file format, resulting in a clear and correctly displayed final file structure. This technical solution significantly improves the effectiveness and reliability of content format conversion, ensuring the usability and standardization of the converted file content.

[0047] Figure 3 This is a flowchart illustrating a content processing method under another scenario. The technical solution in this scenario can be combined with implementation methods in other scenarios. For identical or related parts, descriptions of other scenarios can be used, and will not be repeated here. Figure 3 As shown, the method in this case may specifically include: S301. Render the Hypertext Markup Language content to generate a second rendered page. The Hypertext Markup Language content is used to represent the first generated content.

[0048] In one scenario, S301 and S302 provide an implementation for displaying the first generated content. It is understood that the first generated content generated from the server is preferably transmitted in a structured description format such as Hypertext Markup Language content. The execution device of the method provided in this paper can display the first generated content by rendering it.

[0049] In one scenario, the Hypertext Markup Language (HTML) content representing the first generated content can be obtained. In practical applications, the first generated content may not be contained within a single page; it can be content presented across multiple pages. This paper uses pages as units to represent one page of the first generated content through HTML string content.

[0050] During this process, the execution device, while acquiring the first generated content, can also acquire the content attributes and rendering configuration information of the first generated content. The rendering configuration information may include at least one of the following: whether to prioritize vector graphics, whether to capture all page elements, and whether to set debug breakpoints. This step can render the first generated content by combining the rendering configuration information with the content attributes, and the resulting rendered page can be referred to as the second rendered page.

[0051] S302. Display the second rendering page, where the first generated content is presented on the second rendering page.

[0052] As can be seen, this solution displays the first generated content by showing a second rendered page, which can include the first generated content rendered page by page. In the application scenario of a presentation, the second rendered page is equivalent to containing one or more slides, and the presentation of the slide content can be considered as the presentation of the obtained first generated content.

[0053] The implementation described above can accurately reproduce the layout, style, and visual effects of the first generated content during the editing and display stages, effectively avoiding display problems caused by abnormal format parsing, style deviations, or rendering differences, and improving the accuracy of content editing and display effects.

[0054] S303. By calling the editing interaction interface, respond to the editing operation performed on the page element and display the edited second rendered page, in which the page element is contained.

[0055] In one scenario, an online editing environment built upon the Document Object Model (DOM) can provide an editing interface for the second-rendered page. In practical applications, this interface essentially endows the second-rendered page with editing capabilities, allowing page elements to be in an editable state. Users can select these elements using touch, the cursor, or physical buttons.

[0056] Following the above description, editing of the selected page elements can be triggered by operations such as selecting, dragging, or scaling configuration items. This step responds to editing operations triggered on the page elements by calling the editing interaction interface. Editing operations can include at least one of text content modification, style adjustment, and position adjustment. The response to editing operations in this paper can be WYSIWYG (What You See Is What You Get) editing, which can display the edited second-rendered page in real time through the response to the editing operation.

[0057] The above implementation eliminates the need to switch interfaces or regenerate files, significantly improving the convenience and real-time nature of editing operations. It also ensures that the modified visual effects remain consistent with the final format conversion results, thereby improving content processing efficiency.

[0058] S304. In response to the first triggering operation, obtain the editing control attributes of the first generated content, and determine the first page element related to editing from the first generated content.

[0059] It should be noted that the second rendered page is essentially a display page for showcasing the first generated content. In the context of generating a presentation, the second rendered page can satisfy the needs for editing, viewing, and demonstrating the first generated content. For example, one can edit the page elements by selecting them on the second rendered page, browse the content of each page of the first generated content on the second rendered page, and play the first generated content by triggering the slideshow control.

[0060] In one scenario, the first triggering operation can be considered as triggering a format conversion of the first generated content. One application scenario could be triggering the "Download to First File Format" option in the download function of the second rendering page. After this triggering, the first triggering operation can be generated, and this step can respond to the first triggering operation.

[0061] In one scenario, the format conversion in this paper revolves around the first generated content. As described above, the first generated content is preferably presented in the form of a second rendered page. The first generated content presented as page elements in the second rendered page is in an editable state, which is equivalent to setting the editing control attribute to start the editing function. In addition, the second rendered interface will also load temporary interface elements such as selection boxes and toolbars that are only used for editing operations.

[0062] In one scenario, temporary interface elements and editing control attributes used only for editing operations are not part of the actual content that needs to be converted during content conversion. If the first generated content containing the above content is directly converted, it will lead to problems such as redundant interface elements, display abnormalities, and messy content structure in the generated first file content, making the first file content after conversion inconsistent with the first generated content that has actually been edited.

[0063] Based on this, when responding to the first trigger operation of content transformation, this paper first considers locating the temporary interface elements related to the editing operation in the first generated content through this step. These temporary interface elements can be denoted as the first page element. It can also identify and obtain the editing control attributes set for the first generated content in the second rendered page.

[0064] S305. Remove the editing control attributes and the first page element, obtain the second generated content, and use the second generated content as the updated first generated content.

[0065] In one scenario, based on the aforementioned issues, this paper further considers removing the identified first page elements and editing control attributes through this step, and recording the page content after the removal operation as the second generated content. This second generated content can also be used as the updated first generated content to participate in content transformation.

[0066] For example, the editing control attributes include editing interface elements and editing control information. The editing interface elements include one or more of editing selection boxes, toolbars, and auxiliary markers. The editing control information includes editable markers and / or editing status attributes.

[0067] S306. Perform first isolation rendering on the first generated content to obtain the first rendering result.

[0068] In one scenario, the first isolated rendering can refer to a processing method in which the first generated content is rendered and parsed separately in an independent rendering environment that is not affected by external styles and structures. This method can isolate styles, hierarchical structures, and page environment interference that are unrelated to the first generated content from the displayed second rendered page.

[0069] In one scenario, the first rendering result may refer to the rendering data formed after the first generated content is rendered in a first isolation, which has a regular structure and accurate style and can be used to present the first generated content. It may include content layout data, style drawing data and resource rendering data required for page rendering of the first generated content, such as text, graphics and layout.

[0070] In one scenario, the implementation of first isolated rendering of the first generated content can be as follows: construct an independent rendering isolation environment, separating the rendering isolation environment from the style rules, structural constraints, etc. of other pages in the second rendering page besides the first generated content; then the first generated content can be loaded into the above-mentioned isolated rendering environment, and parsed and rendered according to the style definition, layout parameters and hierarchical relationship carried by the first generated content itself.

[0071] During the rendering process, external style overlays, structural nesting interference, and the influence of non-content-related elements can be shielded to ensure that the first generated content is presented accurately according to the original settings. After all the rendering and drawing of the first generated content is completed, a first rendering result with clear structure, unified style, and stable display can be obtained.

[0072] In one scenario, one implementation of performing a first isolated rendering on the first generated content to obtain a first rendering result may include: creating a first rendering container and constructing a rendering layer of a first size in the first rendering container, the first size being related to the page parameters of the first file format; loading the first generated content into the rendering layer, and rendering the first generated content in the first rendering container after loading is complete to obtain the first rendering result.

[0073] In one scenario, the first rendering container may refer to an independent rendering environment specifically designed to carry out the first isolated rendering, which is isolated from the page environment of the second rendering page. This avoids interference from other page styles and structures in the second rendering page with the rendering result of the first generated content, thus providing a clean space for the stable rendering of the first generated content.

[0074] For example, the first rendering container is an independent rendering container, which is isolated from the rendering page displaying the first generated content. The document structure, style layout, and script running environment of the first rendering container are the same as those of the first generated content on the rendering page.

[0075] In one scenario, the first size can refer to a fixed size set for the first isolated rendering. Its size can be considered to match the size standard in the page parameters involved in the first file format. This can ensure that the size of the rendered content is consistent with the page parameters of the final first file content, and can also avoid abnormal display of the first file content due to size mismatch.

[0076] As can be seen, in the above implementation of the first isolated rendering, an independent first rendering container is first constructed, and the boundary range of the first rendering container is clearly defined to form a rendering environment isolated from the external page, eliminating interference from irrelevant elements in the rendering process and ensuring the independence of the rendering environment. Then, the first generated content (which can be generated by the intelligent system or edited on the execution device) can be loaded into the rendering layer constructed in the first rendering container according to the first size requirement, ensuring that the rendering layer can adapt to the presentation size after format conversion. Loading the first generated content according to the first size may involve adjustments to the content display ratio and layout. Specifically, the structural information, style information, media resource information, and text information of the first generated content can be loaded, and rendering needs to be performed after loading to ensure a complete and accurate presentation of the first generated content.

[0077] The first rendering container synchronously contains the style information of the first generated content; the rendering layer loads the structural information, style information, media resource information, and text information of the first generated content; the first rendering result is used for page rendering of the first generated content, including content layout data, style rendering data, and resource rendering data.

[0078] It is known that the role of the first rendering container is to achieve isolated rendering to avoid interference from external page elements and styles. It can synchronously store all style information of the first generated content (including font, color, spacing, layout, etc.) to ensure that the original style of the first generated content is not tampered with or deviated during subsequent rendering, and to provide accurate style basis for the rendering layer to load content.

[0079] Meanwhile, the rendering layer, as the presentation carrier of the first generated content, also needs to fully load the structural information (such as the layout of the slideshow and the arrangement of elements), style information (such as font styles and color schemes), media resource information (such as images and audio), and text information of the first generated content. In this article, all the content loaded in the rendering layer is consistent with the original settings of the first generated content, without adding unnecessary elements or modifying the original styles, thus ensuring the consistency between the first rendering result and the first generated content.

[0080] In addition, the first rendering result, as the final intermediate product after the first generated content (such as the content related to the generated slides) is rendered in isolation, is mainly used for subsequent layering processing and file content format conversion. It contains content layout data, style parameters, and media resource parameters to match the content format conversion scenario.

[0081] S307. Perform layered processing on the first rendering result to obtain the first layer content and the second layer content.

[0082] In one scenario, the first layered content can correspond to the non-textual content obtained after layering processing, mainly including non-textual content such as images, icons, audio, and video. It can be regarded as the non-textual resource after stripping the text in the first rendering result, and is also equivalent to the main layered object of layering processing. It can be considered as not containing textual information and only carrying non-textual presentation content.

[0083] In one scenario, the second layer content can correspond to the text content obtained after layer processing. It mainly includes all the text information in the first rendering result. It is independent of the first layer content and does not interfere with each other. Together, they constitute complete content that can be converted into a format, ensuring that no content is omitted during subsequent file content format conversion.

[0084] In one scenario, the first rendering result used for drawing the first generated content page can be considered obtained through the first isolated rendering. In one layered processing implementation, the first rendering result can be split based on preset rules that can distinguish between non-text and text, thereby extracting non-text content and classifying it as the first layer content. Subsequently, the remaining text content in the first rendering result can be separately classified as the second layer content, clearly distinguishing the boundary between the first and second layers and avoiding confusion between the two types of content.

[0085] In another layered processing implementation, a rendered page can be formed based on the first rendered result, and this can be referred to as the first rendered page. The first rendered page may not be explicitly displayed; its formation is merely a means to analyze and locate page element nodes. Specifically, this paper can copy the page structure corresponding to the rendered result to generate an independent page copy. This page copy can include the first page element nodes formed by copying the page element nodes from the first rendered page.

[0086] Following the above description, on the copied page, text element nodes (which can also overlay text nodes in scalable vector graphics) can be identified. In this implementation, all text nodes can be made transparent and hidden; that is, the text element nodes are not deleted or replaced, but only their fill, stroke, and other styles are set to transparent. After the hiding process is completed, the text in the page copy is visually invisible, but the layout remains unchanged. Only non-text visual elements such as images, backgrounds, and graphics are retained, thus obtaining the first layer of content.

[0087] In addition, it is necessary to traverse all text element nodes in the first rendering page associated with the first rendering result, extract the content information and style information (including font, font size, color, bold, italic, underline, etc.) of each text fragment, and obtain the geometric position and size data of each text fragment. Organizing all the extracted text content, style, and position data into a structured set will yield the second layer of content.

[0088] In one scenario, one implementation of layering the first rendering result to obtain the first layered content and the second layered content can be described as follows: obtaining page element nodes and copying the page element nodes to form a first page element node, the page element node being used to represent page elements in the first rendered page, the first rendered page being drawn using the first rendering result; identifying text element nodes in the first page element nodes and hiding the text element nodes, and obtaining non-hidden element nodes in the first page element nodes; generating the first layered content based on the non-hidden element nodes, and generating the second layered content based on the text element nodes.

[0089] The page element node refers to the basic carrier unit in the first rendered page that carries various types of first-generated content. It represents all page elements involved in the first-generated content, including text nodes, graphic nodes, image nodes, scalable vector graphic nodes, etc., and can be considered the basic operation object for layered processing. The first page element node can refer to a copy node obtained by copying the original page element node. It is essentially identical to the original page element node in structure, style, and layout, and can be edited independently of the original page element node to construct non-text layered content. Its modification will not affect the original page or the rendering result.

[0090] The text element nodes refer to node units within page element nodes that specifically carry text content, including ordinary text nodes and text nodes within scalable vector graphics. These can be considered the objects to be hidden and extracted within the first page element nodes, used to generate the second layer of content. The non-hidden element nodes refer to all non-text nodes remaining after the text element nodes are hidden within the first page element nodes, including visual element nodes such as images, graphics, backgrounds, and scalable vector graphics, used to generate the first layer of content.

[0091] In one scenario, a non-explicit first rendered page can be drawn based on the first rendered result. Alternatively, all page element nodes within the first rendered page can be traversed and retrieved, with these page element nodes completely corresponding to the layout, hierarchy, and style of the first rendered page. Then, a complete deep copy of all retrieved page element nodes can be performed to generate a first page element node whose structure, style, layout, and size are identical to the original page element nodes. This first page element node is an independent copy object, isolated from the original page element nodes; subsequent editing, hiding, or other operations performed on it will not change the content or state of the first rendered page or the first rendered result.

[0092] In one scenario, within a single first-page element node, all text element nodes, including regular text nodes and text nodes within scalable vector graphics, can be identified using node type matching rules. Then, a style-hiding method is applied to all identified text element nodes, maintaining their layout and page structure while making the text content visually invisible. After hiding the text element nodes, all non-text nodes that were not hidden can be extracted from the first-page element nodes as non-hidden element nodes. These non-hidden element nodes can retain visual elements such as images, graphics, backgrounds, borders, and scalable vector graphics from the first rendered page, along with their corresponding layout, style, hierarchy, and size information.

[0093] For example, after the first page element node is hidden as a text element node, the position, size, and placeholder status of the text element node in the first rendered page remain unchanged. The text element node includes text type nodes and text nodes within a scalable graphic.

[0094] As described above, the extracted non-hidden element nodes can be reorganized and drawn according to the rendering rules of the first rendering page to generate the first layer of content; or, based on all text element nodes identified from the page element nodes, text content, text style, text position coordinates, text size and layout information can be extracted, and the extracted information can be structurally integrated to generate the second layer of content.

[0095] The above implementation can separate non-text visual content from text content without disrupting the rendered page structure; thereby generating first-layer content and second-layer content respectively. This ensures the layout integrity and visual consistency of the non-text layer while preserving the information and positional attributes of the text, providing a reliable data foundation for the subsequent generation of formatted and editable text files, and avoiding interference with the original first-generation content caused by the layering process.

[0096] In one scenario, one way to identify and hide a text element node in the first page element node can be described as follows: obtain the node attributes of the first page element node, obtain the text element node carrying the text content from the first page element node based on the node attributes, and adjust the transparency of the text element node to control the text element node to be in a hidden state.

[0097] This paper can perform a full traversal of the copied first page element nodes, extracting node attribute information such as node type, tag name, rendering characteristics, and content attributes for each first page element node, forming a node attribute set. This paper can also match and determine the node attribute set according to preset text node recognition rules. For example, nodes with text-carrying tags, text content attributes, and text rendering characteristics can be identified as text element nodes used to carry text content; simultaneously, text child nodes contained within vector graphics are identified, ensuring that all text-type nodes are completely recognized without omission.

[0098] This paper also allows for the location marking of identified text element nodes, clarifying their scope and hierarchical relationship to ensure that subsequent transparency adjustments only affect these text element nodes. In one scenario, the paper can call the node style modification interface to perform transparency adjustments on the located text element nodes, such as setting their display transparency parameter to completely transparent, making the text content visually invisible. It's important to understand that during transparency adjustments, the original size, position, layout, and hierarchical structure of the text element nodes must remain unchanged; only the visual display state should be modified without disrupting the overall layout and rendering structure of the first page's element nodes. Ultimately, after completing the transparency adjustment, this effectively hides all text element nodes visually, while non-text nodes remain normally displayed.

[0099] The above implementation can reliably distinguish between text and non-text content, and can achieve visual hiding without deleting nodes or changing the page layout. It ensures that the layout of non-text content after layering is consistent with the original page of the first generated content, while avoiding structural disorder caused by directly deleting nodes, thus improving the stability and restoration accuracy of layering processing.

[0100] In one scenario, an implementation of generating a first layered content based on the non-hidden element nodes and generating a second layered content based on the text element nodes can be described as follows: based on the first rendering result, obtain the node position information and stacking order of the non-hidden element nodes, and obtain the text content, style, and position information of the text element nodes; generate the first layered content based on the node position information and stacking order; generate the second layered content based on the text content, style, and position information.

[0101] Specifically, for the non-hidden element nodes obtained through the above-described method, the node position information corresponding to these non-hidden element nodes can be obtained from the first rendering result. Simultaneously, the stacking order between each non-hidden element node can be parsed and determined. Furthermore, for the text element nodes identified using the above method, the text content they carry, the style information representing the display effect, and the position information representing the display area can be extracted from the first rendering result.

[0102] As described above, after completing the above information collection, the content can be integrated and constructed based on the position information and stacking order of the collected non-hidden element nodes to form the first layer of content; or the content can be integrated and constructed based on the text content, style and position information of the collected text element nodes to form the second layer of content.

[0103] For example, generating the first layered content based on the node position information and the stacking order includes: determining the stacking relationship and level attribute based on the node position information, using the stacking order as the document rendering order, obtaining the visual content of non-hidden element nodes from bottom to top according to the document rendering order, combined with the stacking relationship and level attribute, and determining the visual content as the first layered content.

[0104] The above implementation can preserve the layout features and display attributes of various page elements during the layering process, so that the generated first layer content and second layer content can be effectively aligned when superimposed, thus better avoiding problems such as misalignment and layering chaos.

[0105] S308. Obtain the content of the first file based on the content of the first layer and the content of the second layer.

[0106] In one scenario, to generate the first text content, the already generated first-layer and second-layer content can be loaded separately. Both types of content are then structurally parsed to confirm the integrity of non-text visual elements and the absence of missing text information and positional style data. Next, a file template with the exact same size as the first rendered page is created according to the preset page parameters of the first file format. This template serves as the carrier for the converted first file content. The first-layer content can then be used as the underlying visual foundation and written into the file template to render non-text elements, including graphics, images, backgrounds, and vector graphics. This maintains the hierarchy, transparency, and layout of the first generated content, forming a stable underlying display foundation.

[0107] Following the above description, based on the text position coordinates, size, and hierarchy information in the second layer of content, all text data can be overlaid onto the first layer of content according to its position information; simultaneously, text style information, including font, font size, color, alignment, line spacing, etc., can be written to ensure that the text remains editable and consistent with the original rendering effect of the first generated content. In one scenario, the overlaid layered content, page parameters, style data, and resource reference information can be uniformly encapsulated in a file template according to the standard structure of the first file format, thereby forming the first file content after format conversion.

[0108] In one scenario, one implementation of obtaining the first file content based on the first layer content and the second layer content can be described as follows: obtaining a first file template of the first file format; writing the first layer content into the first file template in the form of image data according to the corresponding position information; writing the second layer content into the first file template in the form of an editable text object according to the corresponding position information; and generating the first file content based on the written image data and the editable text object.

[0109] Specifically, a matching first file template can be obtained by specifying the first file format type and page parameters. This first file template is a blank template that conforms to content format conversion standards and includes basic elements such as standard page size, layout baseline, layer structure, and basic style framework.

[0110] In one scenario, when writing content to the first layer, the entire first layer can be rendered and converted into standard image data according to the image format requirements of the first file template. This conversion process preserves the visual effects, layout details, color parameters, and hierarchical relationships of the first layer, ensuring complete visual consistency between the image data and the first layer. Simultaneously, the corresponding positional information (including coordinate parameters, size parameters, and relative layout relationships) of each non-text element in the first layer can be extracted to define the writing coordinates and range of the image data within the first file template, preventing offsets, cropping, or stretching during writing. Finally, the image data can be tiled onto the corresponding page of the file template according to the coordinate and size parameters in the aforementioned positional information, ensuring the edges and layout of the image data match the template page.

[0111] For example, the step of filling based on the first layered content according to the image formation includes: obtaining a copy page formed based on the first page element nodes, cropping the copy page in the form of an image to obtain a page image; determining the position and size of the non-hidden element nodes in the first layered content in the page image, and cropping a region in the page image according to the position and size to obtain a non-hidden element region, and filling the non-hidden element region into the first file template according to the position.

[0112] In one scenario, when writing the second layer of content, the text data, style information, and position information in the second layer of content can be integrated according to the editable text specifications of the first file template, and converted into an editable text object supported by the first file format. Each text fragment can correspond to an independent editable text object, which can retain the style and position characteristics of the text, ensuring that the text object can be edited and modified individually without destroying the overall layout. At the same time, the position information of each text object can be obtained, and the coordinate parameters and size parameters of each editable text object can be read one by one using the position information to place it in the placeholder position in the text template corresponding to the image data of the first layer of content.

[0113] In one scenario, during the writing of the second layer of content, the editable properties of text objects can be preserved, ensuring that after the subsequent content format conversion, the text in the resulting first file can still be individually modified and its style adjusted. This paper also considers that text objects are at a higher level than image data to avoid text elements being obscured by non-text elements, ensuring visual consistency with the first rendered page.

[0114] For example, the step of writing the second layered content into the first file template includes: extracting style information of text element nodes in the second layered content, the style information including one or more of the following: extracted text content, font, font size, color, bold, italic, and underline; determining the position and size of the text segment corresponding to the text element node according to the style information; forming an editable text box from the text segment according to the position and size, and writing the editable text box into the first file template; and correcting the size deviation of the editable text box during scaling transformation.

[0115] In one scenario, after writing the first and second layer content into the first file template, all content in the first file template (image data, editable text objects, page parameters, style information) can be uniformly encapsulated. This encapsulates the content into complete first file content according to the standard structure of the first file format. It is understood that this first file content retains the visual effects of the first rendered page while simultaneously achieving the complete presentation of non-text elements and the independent editability of text elements.

[0116] The above implementation ensures that the visual integrity of the page is restored while keeping the text editable. This avoids the text blurring and unmodifiable issues caused by pure image content format conversion, and ensures that the final generated first file has a standardized content format and clear structure, effectively improving the practicality and standardization of the content format conversion file.

[0117] Figure 4 This is a flowchart illustrating an optional instance of a content processing method in one scenario. For example... Figure 4 As shown, the first generated content can be optimized into presentation content. This article describes how to process presentation content using this content processing method. The processing steps may include: S401. Obtain the presentation content, render and display the first page, which includes the presentation content and is in an editable state.

[0118] S402. In response to an editing operation on a page element in the first page, display the edited first page, wherein the page elements are associated with the presentation content.

[0119] S403. In response to the content conversion operation, identify editing-related first page elements and obtain editing control attributes of the presentation content from the first page, remove the first page elements and editing control attributes, and form a second page of the first page, the second page including the edited presentation content.

[0120] S404. Create an isolated rendering container and synchronize the style information of the presentation content to the isolated rendering container, and construct a rendering layer of a first size in the isolated rendering container corresponding to the presentation page. The presentation content is represented by one or more presentation pages, and the first size is related to the page parameters of the presentation format.

[0121] S405. Load the presentation content from the presentation page into the corresponding rendering layer, and form the presentation rendering result after loading is complete. The rendering layer contains the content structure, style, media resources and text content of the presentation content.

[0122] S406. Generate a non-explicit second page based on the presentation rendering result. The second page includes page elements associated with the presentation content, and the page elements are represented by page element nodes.

[0123] S407. Copy the page element node to form the first page element node, and determine the text element node of the text type from the first page element node.

[0124] S408. Hide the text element nodes in the first page element nodes by adjusting the transparency. After hiding, obtain the non-hidden element nodes and determine the stacking order and position information of the non-hidden element nodes.

[0125] S409. Capture the visual content of the corresponding non-hidden element nodes one by one according to the stacking order, obtain the image data of the non-hidden element nodes, and write the image data into the presentation format document template according to the position information.

[0126] S410. On the second page, extract the text content and style of the text element nodes, obtain the geometric position and size of the text fragments, and vectorize and overlay the extracted text content and style according to the geometric position and size into the document template.

[0127] S411. The document template containing both non-text document content and text document content is identified as the content of a presentation file with presentation format.

[0128] Through the content processing method of this exemplary application, it can be seen that the method can provide a visual and editable presentation preview page to support users to edit in real time and display the modification effect synchronously, which effectively improves the ease of editing and intuitiveness of the generated presentation content; the method can also remove the content that is introduced extra during the editing stage of the displayed presentation content, ensuring the purity of the content processed later.

[0129] Simultaneously, this method can construct standardized rendering layers using isolated rendering containers, achieving accurate and interference-free rendering of presentation content while fully preserving content structure, styles, and various resources. It can also separate non-text content from text content and implement different writing methods by copying page element nodes, hiding text, and layered capture and writing. The entire content processing implementation preserves the visual integrity of non-text content in image form while retaining text content, styles, and positional information in a vectorized and editable format. Ultimately, this results in presentation files with standardized formatting, high visual fidelity, and editable text, effectively solving problems such as visual deviations, uneditable text, and layout misalignment that occur during presentation editing and format conversion. The content processing method presented in this paper effectively balances the efficiency of presentation content editing, visual fidelity, and the practicality and standardization of document format conversion.

[0130] Figure 5 This is a diagram demonstrating the effect of a content processing method in one scenario. For example... Figure 5 As shown, this can be considered as a preview of a presentation after processing using content processing methods. This preview can be a display of a presentation file in an application that supports presentation formats, essentially a complete reproduction of the presentation content generated by the intelligent system.

[0131] Specifically, such as Figure 5 As shown, the presentation effect Figure 5 This includes the slide navigation area 51 of the presentation, which can display thumbnails of all presentation pages; presentation effects. Figure 5 It also includes a page demonstration area 52, in which any one of the slides in the slide navigation area 51 is displayed. The slide content displayed in the page demonstration area 52 includes non-text elements such as backgrounds, images, and pictures. These non-text elements have the characteristics of clear colors and neat layout.

[0132] Meanwhile, the slide content displayed in the page demonstration area 52 also includes text content such as titles and body text. All of this text content maintains the same font, size, color (black), and layout style (bold and italic font) as the presentation content before it was converted to presentation format, and is in editable condition. Furthermore, the relative positions of the text content with the background and graphics are effectively aligned, without misalignment, offset, or hierarchical errors. Figure 5 As you can see, the presentation effect Figure 5 The overall page style is consistent and well-organized, achieving a balance between visual fidelity and text editability.

[0133] pass Figure 5 The illustrated diagrams also demonstrate that, compared to the rendering issues of presentation content generated by related intelligent systems, the presentation page generated by processing the content using the method presented in this paper avoids the problems of blurry and uneditable text caused by exporting pure images, and also solves the layout misalignment defects caused by extracting only text, thus balancing the aesthetics and practicality of the presentation.

[0134] Figure 6 This is a schematic diagram of the structure of a content processing device in one scenario, such as... Figure 6 As shown, the device includes a display module 61 and a response module 62.

[0135] Among them, the display module 61 is used to display the first generated content, which is generated by the model according to the content requirement description information; The response module 62 is used to respond to the first trigger operation and obtain the first file content. The first file content has a first file format. The first file content is obtained based on the first layered content and the second layered content. The first layered content and the second layered content are obtained by performing layered processing on the first rendering result. The first rendering result is obtained by performing first isolation rendering on the first generated content.

[0136] The aforementioned content processing device can effectively avoid problems such as hierarchical confusion, style pollution, and display instability that occur during the rendering process before format conversion, ensuring that the converted content is highly consistent with the original content and improving the stability and accuracy of rendering during content conversion. It can also distinguish and organize different types of content in the first generated content, avoiding interference between different types of content, and effectively convert web page content to the first file format content, making the final generated file structure clear and display normally, thus improving the effect and reliability of content format conversion and ensuring the usability and standardization of the converted file content.

[0137] In one scenario, the device may include a content rendering module for performing a first isolated rendering on the first generated content to obtain a first rendering result. Specifically, the content rendering module may be used to: create a first rendering container and construct a rendering layer of a first size in the first rendering container, the first size being related to the page parameters of the first file format; load the first generated content into the rendering layer, and render the first generated content in the first rendering container after loading is complete to obtain the first rendering result.

[0138] In one scenario, the first rendering container synchronously contains style information of the first generated content; the rendering layer loads structural information, style information, media resource information, and text information of the first generated content; the first rendering result is used for page rendering of the first generated content, including content layout data, style rendering data, and resource rendering data.

[0139] In one scenario, the device may further include a layering processing module for performing layering processing on the first rendering result to obtain the first layered content and the second layered content; the layering processing module may specifically include: The first acquisition unit is used to acquire page element nodes and copy the page element nodes to form a first page element node. The page element nodes are used to represent page elements in the first rendered page. The first rendered page is drawn using the first rendering result. The identification unit is used to identify text element nodes in the first page element nodes and hide the text element nodes, and to obtain non-hidden element nodes in the first page element nodes. A layered unit is used to generate a first layered content based on the non-hidden element nodes and a second layered content based on the text element nodes.

[0140] In one scenario, the identification unit can specifically be used to obtain the node attributes of the first page element node, obtain the text element node carrying the text content from the first page element node based on the node attributes, and adjust the transparency of the text element node to control the text element node to be in a hidden state.

[0141] In one scenario, the layering unit can be specifically used to obtain the node position information and stacking order of the non-hidden element nodes based on the first rendering result, and to obtain the text content, style, and position information of the text element nodes; generate the first layered content based on the node position information and stacking order; and generate the second layered content based on the text content, style, and position information.

[0142] In one scenario, the device may further include a content determination module, configured to obtain the first file content based on the first layer content and the second layer content; specifically, the content determination module may be configured to: obtain a first file template of the first file format; write the first layer content into the first file template in the form of image data according to corresponding position information; write the second layer content into the first file template in the form of an editable text object according to corresponding position information; and generate the first file content based on the written image data and the editable text object.

[0143] In one scenario, the display module 61 can specifically be used for: The hypertext markup language content is rendered to generate a second rendered page, wherein the hypertext markup language content is used to represent the first generated content; The second rendered page is displayed, and the first generated content is presented on the second rendered page.

[0144] In one scenario, the device may include: a page editing module, configured to respond to editing operations performed on page elements via an invoked editing interaction interface, and display an edited second rendered page, wherein the page elements are contained within the second rendered page.

[0145] In one instance, the device may further include: The second acquisition module is used to acquire the editing control attributes of the first generated content, and to determine the first page elements related to editing from the first generated content; The content update module is used to remove the editing control attribute and the first page element, obtain the second generated content, and use the second generated content as the updated first generated content.

[0146] The above-described content processing apparatus can execute the content processing method provided in any of the embodiments described herein, and has the corresponding functional modules and beneficial effects for executing the content processing method.

[0147] It is worth noting that the various units and modules included in the above-mentioned content processing device are only divided according to functional logic, but are not limited to the above division, as long as the corresponding functions can be realized; in addition, the specific names of each functional unit are only for easy differentiation and are not used to limit the protection scope of the embodiments described herein.

[0148] The following is for reference. Figure 7This document illustrates a schematic diagram of an electronic device (e.g., a terminal device or server) 700 suitable for implementing the above-described methods. The terminal device referred to herein may include, but is not limited to, mobile terminals such as mobile phones, laptops, digital radio receivers, personal digital assistants (PDAs), tablet computers (PADs), portable multimedia players (PMPs), in-vehicle terminals (e.g., in-vehicle navigation terminals), and fixed terminals such as digital televisions and desktop computers. Figure 7 The electronic device shown is merely an example and should not be construed as limiting the functionality and scope of the embodiments described herein.

[0149] like Figure 7 As shown, the electronic device 700 may include a processing unit (e.g., a central processing unit, a graphics processing unit, etc.) 701, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 702 or a program loaded from a storage device 708 into a random access memory (RAM) 703. The RAM 703 also stores various programs and data required for the operation of the electronic device 700. The processing unit 701, ROM 702, and RAM 703 are interconnected via a bus 704. An input / output (I / O) interface 705 is also connected to the bus 704.

[0150] Typically, the following devices can be connected to I / O interface 705: input devices 706 including, for example, touchscreens, touchpads, keyboards, mice, cameras, microphones, accelerometers, gyroscopes, etc.; output devices 707 including, for example, liquid crystal displays (LCDs), speakers, vibrators, etc.; storage devices 708 including, for example, magnetic tapes, hard disks, etc.; and communication devices 709. Communication device 709 allows electronic device 700 to communicate wirelessly or wiredly with other devices to exchange data. Although Figure 7 An electronic device 700 with various devices is shown; however, it should be understood that it is not required to implement or possess all of the devices shown. More or fewer devices may be implemented or possessed alternatively.

[0151] In particular, according to embodiments of this document, the processes described in the above-referenced flowcharts can be implemented as computer software programs. For example, the technical solutions of this document include a computer program product comprising a computer program carried on a non-transitory computer-readable medium, the computer program containing program code for performing the methods shown in the flowcharts. In such embodiments, the computer program can be downloaded and installed from a network via communication device 709, or installed from storage device 708, or installed from ROM 702. When the computer program is executed by processing device 701, it performs the functions defined in the methods of the embodiments of this document.

[0152] The names of messages or information exchanged between multiple devices in this document are for illustrative purposes only and are not intended to limit the scope of these messages or information.

[0153] The electronic device provided in this embodiment and the content processing method provided in the above technical solutions belong to the same inventive concept. Technical details not described in detail in this document can be found in the above embodiments, and this embodiment has the same beneficial effects as the above embodiments.

[0154] This article provides a computer storage medium on which a computer program is stored, which, when executed by a processor, implements the content processing method provided in the above embodiments.

[0155] It should be noted that the computer-readable medium mentioned above can be a computer-readable signal medium, a computer-readable storage medium, or any combination thereof. A computer-readable storage medium can be, for example,—but not limited to—an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples of a computer-readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer disk, a hard disk, a random access memory, a read-only memory, an erasable programmable read-only memory (EPROM, also known as flash memory), an optical fiber, a portable compact disc 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 connection with an instruction execution system, apparatus, or device. In this document, a computer-readable signal medium can include a data signal propagated in baseband or as part of a carrier wave, carrying computer-readable program code. The transmitted data signal can take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. The computer-readable signal medium can also be any computer-readable medium other than a computer-readable storage medium, which can send, propagate, or transmit a program for use by or in connection with an instruction execution system, apparatus, or device. The program code contained on the computer-readable medium can be transmitted using any suitable medium, including but not limited to: wires, optical fibers, RF (radio frequency), etc., or any suitable combination thereof.

[0156] Based on one or more scenarios described herein, Example 1 provides a content processing method, including: displaying first generated content, the first generated content being generated by a model according to content requirement description information; in response to a first triggering operation, obtaining first file content, the first file content having a first file format, the first file content being obtained based on first layered content and second layered content, the first layered content and the second layered content being obtained by performing layered processing on a first rendering result, the first rendering result being obtained by performing first isolated rendering on the first generated content.

[0157] According to one or more scenarios in this article, Example 2 provides the method of Example 1, which further includes: Optionally, performing a first isolated rendering on the first generated content to obtain a first rendering result includes: creating a first rendering container and constructing a rendering layer of a first size in the first rendering container, the first size being related to the page parameters of the first file format; loading the first generated content into the rendering layer, and rendering the first generated content in the first rendering container after loading is completed to obtain the first rendering result.

[0158] Based on one or more scenarios described herein, Example 3 provides the method of Example 2, which further includes: Optionally, the first rendering container synchronously contains style information of the first generated content; the rendering layer loads structural information, style information, media resource information, and text information of the first generated content; the first rendering result is used for page rendering of the first generated content, including content layout data, style rendering data, and resource rendering data.

[0159] According to one or more scenarios in this paper, Example 4 provides the method of Example 1, which further includes: Optionally, performing layered processing on the first rendering result to obtain the first layered content and the second layered content includes: obtaining page element nodes and copying the page element nodes to form a first page element node, the page element node being used to represent page elements in the first rendered page, the first rendered page being drawn using the first rendering result; identifying text element nodes in the first page element nodes and hiding the text element nodes, and obtaining non-hidden element nodes in the first page element nodes; generating the first layered content based on the non-hidden element nodes, and generating the second layered content based on the text element nodes.

[0160] According to one or more scenarios in this article, Example 5 provides the method of Example 4, which further includes: Optionally, identifying the text element node in the first page element node and hiding the text element node includes: obtaining the node attribute of the first page element node, and obtaining the text element node carrying the text content from the first page element node based on the node attribute; Adjust the transparency of the text element node to keep it hidden.

[0161] According to one or more scenarios in this document, Example Six provides the method of Example Four, which further includes: Optionally, generating the first layered content based on the non-hidden element nodes and generating the second layered content based on the text element nodes includes: obtaining the node position information and stacking order of the non-hidden element nodes based on the first rendering result, and obtaining the text content, style, and position information of the text element nodes; generating the first layered content based on the node position information and the stacking order; and generating the second layered content based on the text content, the style, and the position information.

[0162] According to one or more scenarios in this document, Example 7 provides the method of Example 1, which further includes: Optionally, obtaining the first file content based on the first layered content and the second layered content includes: obtaining a first file template of the first file format; writing the first layered content into the first file template in the form of image data according to the corresponding position information; writing the second layered content into the first file template in the form of an editable text object according to the corresponding position information; and generating the first file content based on the written image data and the editable text object.

[0163] According to one or more scenarios in this article, Example 8 provides the method of Example 1, which further includes: Optionally, displaying the first generated content includes: rendering the Hypertext Markup Language content to generate a second rendered page, wherein the Hypertext Markup Language content is used to represent the first generated content; and displaying the second rendered page, wherein the first generated content is presented on the second rendered page.

[0164] According to one or more scenarios in this document, Example 9 provides the method of Example 8, which optionally further includes: responding to an editing operation performed on a page element by invoking an editing interaction interface, and displaying the edited second rendered page, wherein the page element is contained in the second rendered page.

[0165] Based on one or more scenarios described herein, Example 10 provides the method of Example 1, which optionally further includes: obtaining the editing control attributes of the first generated content, and determining the first page element related to editing from the first generated content; removing the editing control attributes and the first page element to obtain the second generated content, and using the second generated content as the updated first generated content.

[0166] According to one or more scenarios described herein, Example 11 provides a content processing apparatus, comprising: a display module for displaying first generated content, the first generated content being generated by a model based on content requirement description information; and a response module for responding to a first trigger operation to obtain first file content, the first file content having a first file format, the first file content being obtained based on first layered content and second layered content, the first layered content and the second layered content being obtained by performing layered processing on a first rendering result, the first rendering result being obtained by performing first isolated rendering on the first generated content.

[0167] In some implementations, clients and servers can communicate using any currently known or future-developed network protocol, such as HTTP (Hypertext Transfer Protocol), and can interconnect with digital data communication (e.g., communication networks) of any form or medium. Examples of communication networks include Local Area Networks (LANs), Wide Area Networks (WANs), the Internet (e.g., the Internet), and peer-to-peer networks (e.g., ad hoc peer-to-peer networks), as well as any currently known or future-developed networks.

[0168] The aforementioned computer-readable medium may be included in the aforementioned electronic device; or it may exist independently and not assembled into the electronic device.

[0169] The aforementioned computer-readable medium carries one or more programs, which, when executed by the electronic device, cause the electronic device to: display first generated content, the first generated content being generated by a model based on content requirement description information; and, in response to a first trigger operation, acquire first file content, the first file content having a first file format, the first file content being obtained based on first layered content and second layered content, the first layered content and the second layered content being obtained by performing layered processing on a first rendering result, the first rendering result being obtained by performing first isolated rendering on the first generated content.

[0170] Computer program code for performing the operations described herein can be written in one or more programming languages ​​or a combination thereof, including but not limited to object-oriented programming languages ​​such as Java, Smalltalk, and C++, as well as conventional procedural programming languages ​​such as the "C" programming language or similar programming languages. The program code can be executed entirely on the user's computer, partially on the user's computer, as a standalone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving remote computers, the remote computer can be connected to the user's computer via any type of network—including local area networks (LANs) or wide area networks (WANs), or it can be connected to an external computer (e.g., via the Internet using an Internet service provider).

[0171] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of this document. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of code containing one or more executable instructions for implementing the specified logical function. It should also be noted that in some alternative implementations, the functions indicated in the blocks may occur in a different order than those indicated in the drawings. For example, two consecutively indicated blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, may be implemented using a dedicated hardware-based system that performs the specified function or operation, or using a combination of dedicated hardware and computer instructions.

[0172] The modules or units described herein can be implemented in software or hardware. The names of modules or units do not necessarily constitute a limitation on the module or unit itself.

[0173] The functions described above in this document can be performed at least in part by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that can be used include at least one of the following: Field-Programmable Gate Array (FPGA), Application-Specific Integrated Circuit (ASIC), Application-Specific Standard Product (ASSP), System on Chip (SOC), Complex Programmable Logic Device (CPLD), etc.

[0174] In the context of this document, a machine-readable medium can be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, apparatus, or device. A machine-readable medium can be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium can be, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination of the foregoing. More specific examples of machine-readable storage media include electrical connections based on one or more wires, portable computer disks, hard disks, random access memory, read-only memory, erasable programmable read-only memory (flash memory), optical fibers, portable compact disk read-only memory, optical storage devices, magnetic storage devices, or any suitable combination of the foregoing.

[0175] The above description is merely a preferred embodiment and an explanation of the technical principles employed. Those skilled in the art should understand that the scope of disclosure herein is not limited to technical solutions formed by specific combinations of the above-described technical features, but should also cover other technical solutions formed by arbitrary combinations of the above-described technical features or their equivalents without departing from the above-described concept. For example, technical solutions formed by substituting the above features with (but not limited to) technical features disclosed herein that have similar functions.

[0176] Furthermore, while the operations are described in a specific order, this should not be construed as requiring these operations to be performed in the specific order shown or in a sequential order. In certain circumstances, multitasking and parallel processing may be advantageous. Similarly, while several specific implementation details are included in the above discussion, these should not be interpreted as limiting the scope of this document. Certain features described in the context of individual implementations may also be implemented in combination in a single implementation. Conversely, various features described in the context of a single implementation may also be implemented individually or in any suitable sub-combination in multiple implementations.

[0177] Although the subject matter has been described using a programming language specific to structural features and / or methodological logic, it should be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or actions described above. Rather, the specific features and actions described above are merely illustrative forms of implementing the claims.

Claims

1. A content processing method, comprising: Display the first generated content, which is generated by the model based on the content requirement description information; In response to a first trigger operation, the first file content is obtained. The first file content has a first file format. The first file content is obtained based on a first layered content and a second layered content. The first layered content and the second layered content are obtained by performing layered processing on a first rendering result. The first rendering result is obtained by performing first isolated rendering on the first generated content.

2. The method according to claim 1, wherein performing first isolation rendering on the first generated content to obtain the first rendering result includes: Create a first rendering container and construct a rendering layer of a first size within the first rendering container, the first size being related to the page parameters of the first file format; The first generated content is loaded into the rendering layer, and after loading is complete, the first generated content is rendered in the first rendering container to obtain the first rendering result.

3. The method according to claim 2, wherein the first rendering container synchronously contains the style information of the first generated content; The rendering layer contains the structural information, style information, media resource information, and text information of the first generated content; The first rendering result is used for page rendering of the first generated content, including content layout data, style rendering data, and resource rendering data.

4. The method according to claim 1, wherein performing layered processing on the first rendering result to obtain the first layered content and the second layered content includes: Obtain page element nodes and copy the page element nodes to form a first page element node. The page element nodes are used to represent page elements in the first rendered page. The first rendered page is drawn using the first rendering result. Identify text element nodes in the first page element nodes and hide the text element nodes, and obtain non-hidden element nodes in the first page element nodes; The first layered content is generated based on the non-hidden element nodes, and the second layered content is generated based on the text element nodes.

5. The method according to claim 4, wherein identifying the text element node in the first page element node and hiding the text element node comprises: Obtain the node attributes of the first page element node, and obtain the text element node carrying the text content from the first page element node based on the node attributes; Adjust the transparency of the text element node to keep it hidden.

6. The method according to claim 4, wherein generating the first layered content based on the non-hidden element nodes and generating the second layered content based on the text element nodes comprises: Based on the first rendering result, obtain the node position information and stacking order of the non-hidden element node, and obtain the text content, style and position information of the text element node; The first layered content is generated based on the node location information and the stacking order; The second layered content is generated based on the text content, the style, and the location information.

7. The method according to claim 1, wherein obtaining the first file content based on the first layered content and the second layered content comprises: Obtain the first file template of the first file format; Write the first layered content into the first file template in the form of image data according to the corresponding location information; Write the second layer of content into the first file template in the form of an editable text object according to the corresponding position information; The content of the first file is generated based on the written image data and the editable text object.

8. The method according to claim 1, wherein displaying the first generated content includes: The hypertext markup language content is rendered to generate a second rendered page, wherein the hypertext markup language content is used to represent the first generated content; The second rendered page is displayed, and the first generated content is presented on the second rendered page.

9. The method according to claim 8, further comprising: By invoking the editing interaction interface, the system responds to editing operations performed on page elements and displays the edited second rendered page, wherein the page elements are contained within the second rendered page.

10. The method according to claim 1, further comprising: Obtain the editing control attributes of the first generated content, and determine the first page elements related to editing from the first generated content; Remove the edit control attribute and the first page element to obtain the second generated content, and use the second generated content as the updated first generated content.

11. A content processing apparatus, comprising: The display module is used to display the first generated content, which is generated by the model based on the content requirement description information. A response module is used to respond to a first trigger operation and obtain first file content. The first file content has a first file format. The first file content is obtained based on first layered content and second layered content. The first layered content and the second layered content are obtained by performing layered processing on the first rendering result. The first rendering result is obtained by performing first isolated rendering on the first generated content.

12. An electronic device, characterized in that, The electronic device includes: One or more processors; Storage device for storing one or more programs. When the one or more programs are executed by the one or more processors, the one or more processors implement the content processing method as described in any one of claims 1-10.

13. A storage medium containing computer-executable instructions, characterized in that, The computer-executable instructions, when executed by a computer processor, are used to perform the content processing method as described in any one of claims 1-10.

14. A computer program product, comprising a computer program, characterized in that, When the computer program is executed by a processor, it implements the content processing method as described in any one of claims 1-10.