A method for determining a layout of a slide, which is applicable in an electronic device, the method comprising: obtaining file source code of the slide (S101, S501); obtaining feature information (S103, S503) of objects in the slide from the file source code (S102, S502); determining the layout of the slide based on the obtained feature information (S103, S503), wherein the feature information of the objects in the slide comprises the number of placeholders in the slide and a sequence of the placeholders in the slide, size information of the placeholders in the slide, type information of the placeholders in the slide, and position information of the placeholders in the slide; identifying, from slide templates, a slide template with the determined layout, wherein, identifying, from slide templates, a slide template with the determined layout comprises: comparing the number of the placeholders in the slide with the number of placeholders in each slide template to obtain slide templates having the same number of placeholders as the slide; comparing the size information of the placeholders in the slide with the size information of the placeholders having a same sequence number in the obtained slide templates to obtain a size comparison result; comparing the type information of the placeholders in the slide with the type information of the placeholders having a same sequence number in the obtained slide templates to obtain a type comparison result; comparing the position information of the placeholders in the slide with the position information of the placeholders having a same sequence number in the obtained slide templates to obtain a position information comparison result; and evaluating each slide template obtained according to the size comparison result, the type comparison result, and the position information comparison result, and determining a slide template having a score that meets a preset score condition as a slide template matching the slide; copying content of each of the objects in the slide to an object, having a same sequence number, in the slide template matching the slide to obtain a modified slide. obtaining file source code of the slide (S101, S501); obtaining feature information (S103, S503) of objects in the slide from the file source code (S102, S502); determining the layout of the slide based on the obtained feature information (S103, S503), wherein the feature information of the objects in the slide comprises the number of placeholders in the slide and a sequence of the placeholders in the slide, size information of the placeholders in the slide, type information of the placeholders in the slide, and position information of the placeholders in the slide; identifying, from slide templates, a slide template with the determined layout, wherein, identifying, from slide templates, a slide template with the determined layout comprises: comparing the number of the placeholders in the slide with the number of placeholders in each slide template to obtain slide templates having the same number of placeholders as the slide; comparing the size information of the placeholders in the slide with the size information of the placeholders having a same sequence number in the obtained slide templates to obtain a size comparison result; comparing the type information of the placeholders in the slide with the type information of the placeholders having a same sequence number in the obtained slide templates to obtain a type comparison result; comparing the position information of the placeholders in the slide with the position information of the placeholders having a same sequence number in the obtained slide templates to obtain a position information comparison result; and evaluating each slide template obtained according to the size comparison result, the type comparison result, and the position information comparison result, and determining a slide template having a score that meets a preset score condition as a slide template matching the slide; comparing the number of the placeholders in the slide with the number of placeholders in each slide template to obtain slide templates having the same number of placeholders as the slide; comparing the size information of the placeholders in the slide with the size information of the placeholders having a same sequence number in the obtained slide templates to obtain a size comparison result; comparing the type information of the placeholders in the slide with the type information of the placeholders having a same sequence number in the obtained slide templates to obtain a type comparison result; comparing the position information of the placeholders in the slide with the position information of the placeholders having a same sequence number in the obtained slide templates to obtain a position information comparison result; and evaluating each slide template obtained according to the size comparison result, the type comparison result, and the position information comparison result, and determining a slide template having a score that meets a preset score condition as a slide template matching the slide; copying content of each of the objects in the slide to an object, having a same sequence number, in the slide template matching the slide to obtain a modified slide.