Slide typesetting generation method based on template content replacement

Through the method of template content replacement, automatically identifying and replacing slide content, the problem of inefficient PPT production in the existing technology is solved, fully automatic layout is realized, and user experience is improved.

CN118886407APending Publication Date: 2024-11-01刘俊平
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310454124.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-04-25
Publication Date
2024-11-01

AI Technical Summary

Technical Problem

The prior art consumes a lot of time and is inefficient in the process of producing PPT documents. Users need to manually replace the content of the slide template page, resulting in inefficiency.

Method used

The slide layout generation method based on template content replacement is adopted. Through the database module and file editing module, the slide content is automatically identified and replaced, including titles, paragraphs, pictures and lists, and matches the template files in the database to achieve fully automatic layout.

Benefits of technology

It realizes fully automatic layout, improves PPT production efficiency and improves user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure HDA0004198484860000011
    Figure HDA0004198484860000011
Patent Text Reader

Abstract

The invention discloses a slide typesetting generation method based on template content replacement, and relates to the technical field of slide typeset.The slide typesetting generation method based on template content replacement comprises the following steps that firstly, a program is composed of a database module and a file editing module; the database module is responsible for storing all slide page template files and description information of the template files. Each template file records the typesetting style of one page. The file editing module is responsible for performing read-write operation on the slide template file; step 2, a user manually inputs or pastes the image-text content of a certain page of slide; the system judges titles, texts, pictures and list structures in the content by reading the image-text content. According to the method, automatic content identification and replacement of a manual modification process are carried out, full-automatic typesetting is realized, PPT making efficiency is improved, and thus the use experience of a user is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of slide layout, and in particular to a slide layout generation method based on template content replacement. Background Art

[0002] Different from the current method of manually replacing the content of the slide template page by the user, the present application provides a method for automatically replacing the content of the slide template to solve the problem of time-consuming and low efficiency in the process of making PPT documents in the prior art. Summary of the invention

[0003] The purpose of this application is to provide a slide layout generation method based on template content replacement, so as to solve the problems raised in the above background technology.

[0004] To achieve the above purpose, the present application provides the following technical solution: a slide layout generation method based on template content replacement, comprising the following steps:

[0005] Step 1: The program consists of a database module and a file editing module. The database module is responsible for storing all slide page template files and description information of the template files. Each template file records the layout style of a page. The file editing module is responsible for reading and writing slide template files;

[0006] Step 2: The user manually inputs or pastes the text and image content of a certain page of slides. The system determines the title, text, picture, and list structure of the content by reading the text and image content. Based on this structure, the number of pictures, title length, paragraph length, number of lists, list title length, and list text length are counted. The system compares the information with the description in the database, finds all matching data items in the database, and finds the corresponding page template file from the data items;

[0007] Step 3: The system then starts the file editing module to read all matching page template files. Replace the title in the template file with the title of the actual content, replace the paragraph with the paragraph of the actual content, and replace the picture with the picture of the actual content. Replace the list with the list of the actual content. After the replacement is completed, save the new slide file and display all page results to the user;

[0008] Step 4: The user selects the page they like;

[0009] Step 5. The page layout is generated.

[0010] Preferably, in step 2, the database module is responsible for storing all slide page template files and description information of the template files. The folder-based management system and database-based management system having this function are collectively referred to as a database module.

[0011] Preferably, in step one, each template file contains at least the following description information: supported number of pictures, supported title length, supported paragraph length, supported number of lists, supported list title length, supported list body length, thumbnails, and template path.

[0012] Preferably, in step 2, the described information is the number of supported pictures, the supported title length, the supported paragraph length, the number of supported lists, the supported list title length, and the supported list body length.

[0013] In summary, the technical effects and advantages of the present invention are as follows:

[0014] The present invention realizes full-automatic typesetting and improves PPT production efficiency through automatic content recognition and replacement of manual modification process, thereby improving the user experience of users. BRIEF DESCRIPTION OF THE DRAWINGS

[0015] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For those skilled in the art, other drawings can be obtained based on these drawings without paying any creative work.

[0016] Figure 1 The figure is a flow chart of the method of the present invention. DETAILED DESCRIPTION

[0017] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0018] Embodiment 1

[0019] A slide layout generation method based on template content replacement includes the following steps:

[0020] Step 1. The program consists of a database module and a file editing module. The database module is responsible for storing all slide page template files and description information of the template files. Each template file records the typesetting style of a page, and each template file contains at least the following description information: the number of supported pictures, the supported title length, the supported paragraph length, the number of supported lists, the supported list title length, the supported list body length, thumbnails, and template paths. The file editing module is responsible for reading and writing slide template files;

[0021] Step 2. The user manually inputs or pastes the graphic content of a certain page of slides. The system determines the title, text, picture, and list structure in the content by reading the graphic content. According to this structure, the number of pictures, title length, paragraph length, number of lists, list title length, and list text length are counted. And compare with the description information in the database, find all matching data items in the database, and find the corresponding page template file from this data item. The database module is responsible for storing all slide page template files and description information of this template file. The description information is the supported number of pictures, supported title length, supported paragraph length, supported number of lists, supported list title length, and supported list text length. The folder-based management system and database-based management system with this function are collectively referred to as database modules;

[0022] Step 3: The system then starts the file editing module to read all matching page template files. Replace the title in the template file with the title of the actual content, replace the paragraph with the paragraph of the actual content, and replace the picture with the picture of the actual content. Replace the list with the list of the actual content. After the replacement is completed, save the new slide file and display all page results to the user;

[0023] Step 4: The user manually inputs or pastes the text and image content of a certain page of slides. The system determines the title, text, picture, and list structure of the content by reading the text and image content. This step can also be achieved by the user directly inputting the title, text, picture, and list to select the page they like;

[0024] Step 5. The page layout is generated.

[0025] Embodiment 2

[0026] A slide layout generation method based on template content replacement includes the following steps:

[0027] Step 1. The program consists of a database module and a file editing module. The database module is responsible for storing all slide page template files and description information of the template files. Each template file records the typesetting style of a page, and each template file contains at least the following description information: the number of supported pictures, the supported title length, the supported paragraph length, the number of supported lists, the supported list title length, the supported list body length, thumbnails, and template paths. The file editing module is responsible for reading and writing slide template files;

[0028] Step 2. The user manually inputs or pastes the graphic content of a certain page of slides. The system determines the title, text, picture, and list structure in the content by reading the graphic content. According to this structure, the number of pictures, title length, paragraph length, number of lists, list title length, and list text length are counted. And compare with the description information in the database, find all matching data items in the database, and find the corresponding page template file from this data item. The database module is responsible for storing all slide page template files and description information of this template file. The description information is the supported number of pictures, supported title length, supported paragraph length, supported number of lists, supported list title length, and supported list text length. The folder-based management system and database-based management system with this function are collectively referred to as database modules;

[0029] Step 3: The system then starts the file editing module to read all matching page template files. Replace the title in the template file with the title of the actual content, replace the paragraph with the paragraph of the actual content, and replace the picture with the picture of the actual content. Replace the list with the list of the actual content. After the replacement is completed, save the new slide file and display all page results to the user;

[0030] Step 4: The system determines the title, text, picture, and list structure in the content by reading the graphic content. This is just an example. It may also include: event sequence, title 2, title 3, title 4, title 5, business card, table, bar chart, pie chart, Gantt chart and other structures to generate the page that the user likes;

[0031] Step 5. The page layout is generated.

[0032] Finally, it should be noted that the above is only a preferred embodiment of the present invention and is not intended to limit the present invention. Although the present invention has been described in detail with reference to the aforementioned embodiments, it is still possible for those skilled in the art to modify the technical solutions described in the aforementioned embodiments or to make equivalent substitutions for some of the technical features therein. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the protection scope of the present invention.

Claims

1. A slide layout generation method based on template content replacement, characterized in that: The following steps are involved: Step 1: The program consists of a database module and a file editing module. The database module is responsible for storing all slide page template files and description information of the template files. Each template file records the layout style of a page. The file editing module is responsible for reading and writing slide template files; Step 2: The user manually inputs or pastes the text and image content of a certain page of slides. The system determines the title, text, picture, and list structure of the content by reading the text and image content. Based on this structure, the number of pictures, title length, paragraph length, number of lists, list title length, and list text length are counted. The system compares the information with the description in the database, finds all matching data items in the database, and finds the corresponding page template file from the data items; Step 3: The system then starts the file editing module to read all matching page template files. Replace the title in the template file with the title of the actual content, replace the paragraph with the paragraph of the actual content, and replace the picture with the picture of the actual content. Replace the list with the list of the actual content. After the replacement is completed, save the new slide file and display all page results to the user; Step 4: The user selects the page they like; Step 5. The page layout is generated.

2. The method for generating slide layout based on template content replacement according to claim 1, characterized in that: In step 2, the database module is responsible for storing all slide page template files and description information of the template files. The folder-based management system and database-based management system having this function are collectively referred to as a database module.

3. The method for generating slide layout based on template content replacement according to claim 1, characterized in that: In step 1, each template file contains at least the following description information: supported number of images, supported title length, supported paragraph length, supported number of lists, supported list title length, supported list body length, thumbnail, and template path.

4. The method for generating slide layout based on template content replacement according to claim 1, characterized in that: In step 2, the information described is the supported number of images, supported title length, supported paragraph length, supported number of lists, supported list title length, and supported list body length.