An electronic device, comprising a memory, a processor, and a computer program stored on the memory and executable on the processor, wherein the program, when executed by the processor, implements a method for generating presentation file, comprising:
- in response to receiving a creation instruction for a presentation file from a user, determining target attribute information in the creation instruction;
- retrieving target index data corresponding to the target attribute information from a pre-constructed material database, and obtaining a target material file corresponding to the target index data, wherein the material database comprises index data of material files corresponding to different attribute information;
- and
- generating a target presentation file based on the target material file.