Input file conversion method, system and equipment and storage medium
By parsing the object elements and attribute information of the input file, a target attribute list is generated, and compared with the pre-established file attribute list, an incompatible element is determined, a dynamic mapping table is created, and the input file is converted into a compatible file is solved, which solves the incompatibility problem during the import of the interactive whiteboard system file and achieves efficient file conversion and compatibility.
Patent Information
- Application Number
- CN202411966134.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-30
- Publication Date
- 2025-04-25
AI Technical Summary
When importing files, the interactive whiteboard system uses different file formats and software platforms, which leads to incompatibility, which limits file sharing and transmission, and increases the user's operation difficulty and time cost.
By obtaining the input file, parsing its object elements and attribute information, generating a target attribute list, and comparing it with the pre-established file attribute list, determining incompatible elements, creating a dynamic mapping table, and converting the input file into a compatible file.
It realizes efficient conversion of input files, makes them compatible with the file attributes of the target system, improves file compatibility, simplifies the operation process, and realizes rapid conversion of files.
Smart Images

Figure CN119886062A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of information processing technology, and in particular to an input file conversion method, system, device and storage medium. Background Art
[0002] As an advanced teaching and conference tool that integrates modern information technology, the interactive whiteboard system has demonstrated its great application potential and value in many occasions. The system not only adds electronic sensing and interactive functions to the traditional whiteboard, but also achieves seamless connection with computers, projectors and other equipment through the close cooperation of software and hardware, thus greatly enriching the way of information presentation and improving the efficiency of teaching and conference.
[0003] However, although the interactive whiteboard system has shown strong advantages in functions and applications, the compatibility problem of file import function has become increasingly prominent in actual use. Since interactive whiteboard systems of different brands and models may use different file formats and software platforms, incompatibility often occurs when importing files. This not only limits users' file sharing and transmission between different systems, but also increases the difficulty and time cost of users' operation during use. Summary of the invention
[0004] The embodiments of the present invention provide an input file conversion method, system, device and storage medium to solve the problems existing in the related technologies. The technical solutions are as follows:
[0005] In a first aspect, an embodiment of the present invention provides an input file conversion method, comprising:
[0006] Obtain an input file, parse the input file, determine the object elements contained in the input file and the attribute information corresponding to each object element, and generate a target attribute list according to the object elements and the attribute information;
[0007] Compare the target attribute list with the pre-established file attribute list to determine incompatible elements, and create a dynamic mapping table according to the incompatible elements; wherein the file attribute list contains standard attribute information pre-parsed according to a specified format file;
[0008] Convert the input file into the corresponding compatible file output based on the dynamic mapping table.
[0009] In one embodiment, it further includes:
[0010] Obtain multiple specified format files, identify all necessary elements in each specified format file, and extract standard attribute information of each necessary element;
[0011] The necessary elements and standard attribute information of all files in a specified format are integrated, and a structured file attribute list is generated according to the hierarchical relationship between the necessary elements and the standard attribute information.
[0012] In one implementation, the object elements include pages, texts, and images; the attribute information includes page aspect ratio, text font, text size, text color value, image format, and image resolution.
[0013] In one embodiment, comparing the target attribute list to a pre-established file attribute list to determine incompatible elements includes:
[0014] extracting the first page aspect ratio of the input file based on the target attribute list;
[0015] Extract the second page aspect ratio of the file in the specified format based on the file attribute list;
[0016] Comparing the aspect ratio of the first page with the aspect ratio of the second page to determine a matching value;
[0017] When the matching value is less than or equal to the preset size error range, determining the page element of the input file as a compatible element;
[0018] When the matching value is larger than the size error range, the page element is marked as an incompatible element.
[0019] In one embodiment, comparing the target attribute list to a pre-established file attribute list to determine incompatible elements includes:
[0020] Extracting text attributes of the input file based on the target attribute list, the text attributes including text font, text size and text color;
[0021] Determine the text attribute range supported by the specified format file according to the file attribute list;
[0022] Each text attribute is compared with the corresponding text attribute range. When any text attribute does not exist in the corresponding text attribute range, the current text element is marked as an incompatible element.
[0023] In one embodiment, comparing the target attribute list to a pre-established file attribute list to determine incompatible elements includes:
[0024] Extract the image attributes of the input file in the target attribute list, the image attributes include image format and image resolution;
[0025] Determine the image attribute range supported by the specified format file according to the file attribute list;
[0026] Each image attribute is compared with the corresponding image attribute range. When any image attribute does not exist in the corresponding image attribute range, the current image element is marked as an incompatible element.
[0027] In one embodiment, creating a dynamic mapping table based on incompatible elements includes:
[0028] Determine a page mapping ratio according to a first page aspect ratio of an input file and a second page aspect ratio of a specified format file, wherein the page mapping ratio is a page cropping ratio or a page scaling ratio;
[0029] Determine a text mapping scheme according to the text attributes of the input file and the text attribute range supported by the specified format file;
[0030] Determine the image mapping scheme according to the image attributes of the input file and the image attribute range supported by the specified format file;
[0031] Generate a dynamic mapping table based on page mapping ratio, text mapping scheme and image mapping scheme.
[0032] In a second aspect, an embodiment of the present invention provides an input file conversion system that executes the input file conversion method as described above.
[0033] In a third aspect, an embodiment of the present invention provides an electronic device, the device comprising: a memory and a processor. The memory and the processor communicate with each other through an internal connection path, the memory is used to store instructions, the processor is used to execute the instructions stored in the memory, and when the processor executes the instructions stored in the memory, the processor executes the method in any one of the above-mentioned embodiments.
[0034] In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, which stores a computer program. When the computer program runs on a computer, the method in any one of the above-mentioned embodiments is executed.
[0035] The advantages or beneficial effects of the above technical solution include at least:
[0036] The present invention constructs a corresponding target attribute list according to an input file, and compares the target attribute list with a pre-established file attribute list to determine incompatible elements, creates a dynamic mapping table according to the incompatible elements, and uses a dynamic attribute mapping method to perform file conversion, which can automatically adjust the attributes of the input file as required to match the target system, thereby improving file compatibility; instead of the traditional method of manually converting file formats, the dynamic attribute mapping of the present invention can automatically complete the file conversion process, thereby realizing rapid file conversion and greatly simplifying the operation process.
[0037] The above summary is for illustrative purposes only and is not intended to be limiting in any way. In addition to the illustrative aspects, embodiments and features described above, further aspects, embodiments and features of the present invention will be readily apparent by reference to the accompanying drawings and the following detailed description. BRIEF DESCRIPTION OF THE DRAWINGS
[0038] In the accompanying drawings, unless otherwise specified, the same reference numerals throughout the multiple drawings represent the same or similar parts or elements. These drawings are not necessarily drawn to scale. It should be understood that these drawings only depict some embodiments disclosed in the present invention and should not be regarded as limiting the scope of the present invention.
[0039] Figure 1 Schematic diagram of the process of input file conversion method of the present invention;
[0040] Figure 2 A schematic diagram of a process of converting an input file into an IWB format file according to the present invention;
[0041] Figure 3 The structure block diagram of an electronic device according to an embodiment of the present invention. DETAILED DESCRIPTION
[0042] In the following, only some exemplary embodiments are briefly described. As those skilled in the art will appreciate, the described embodiments may be modified in various ways without departing from the spirit or scope of the present invention. Therefore, the drawings and descriptions are considered to be exemplary and non-restrictive in nature.
[0043] At present, interactive whiteboard systems have shown strong advantages in functions and applications, and can be used as teaching and conference tools to realize electronic sensing and interactive functions. However, in actual use, the compatibility problem of file import function has become increasingly prominent. Since interactive whiteboard systems of different brands and models may use different file formats and software platforms, incompatibility often occurs when importing files. This not only limits users' file sharing and transmission between different systems, but also increases the difficulty and time cost of users' operation during use.
[0044] In order to solve the above problems, a first embodiment of the present invention provides an input file conversion method to achieve efficient conversion of imported files, make them compatible with IWB file attributes, and maintain a high degree of restoration.
[0045] like Figure 1 As shown, this embodiment provides an input file conversion method which specifically includes the following steps:
[0046] Step S1: obtain an input file, parse the input file, determine the object elements contained in the input file and the attribute information corresponding to each object element, and generate a target attribute list according to the object elements and the attribute information.
[0047] It should be noted that, since the present embodiment converts the input file into an IWB format file to be compatible with the electronic whiteboard system, the format of the input file is generally a non-IWB format, such as PPT, PDF, etc. In other embodiments, the input file can be converted into other specified format files according to actual needs for use by other systems, and the specific format of the file is not limited here.
[0048] This embodiment parses the file content structure of the input file. The key to file parsing is to identify and extract object elements such as pages, texts, images and multimedia, and extract the core information of each object element, thereby obtaining the attribute information of each object element.
[0049] For page elements, the page size of the input file is analyzed to obtain the width and height of the page content, and the page aspect ratio is calculated based on the width and height. The page aspect ratio is the attribute information of the page element.
[0050] For text elements, the text content in the input file is analyzed to determine the features of the text content such as the text font, font size, style, color value, etc., and the text features are the attribute information of the text element.
[0051] For image elements, the image in the input file is identified, and image features such as image format, resolution, image position in the page, and image size are analyzed to obtain attribute information of the image element.
[0052] After the above analysis, a target attribute list is generated according to the object elements and attribute information of the input file, and the structure and composition of the target attribute list are similar to the pre-built file attribute list, so as to facilitate the subsequent comparison between the target attribute list and the file attribute list.
[0053] It should be noted that the target attribute list is a structured data representation method used to record each object element in the input file and the attribute information corresponding to each object element. Each object element has a unique identifier in the target attribute list and is associated with its related attribute information. The target attribute table records information such as object elements, attribute names, attribute values, etc. The target attribute list can clearly display the hierarchical structure and attribute relationship between object elements, which is convenient for data query, analysis and processing.
[0054] Step S2: Compare the target attribute list with the pre-established file attribute list to determine incompatible elements, and create a dynamic mapping table according to the incompatible elements.
[0055] The file attribute list contains standard attribute information pre-parsed from a specified format file; and the pre-establishment of the file attribute list needs to be completed before the user imports the input file, such as Figure 2 As shown, the method for creating a file attribute list is:
[0056] Obtain multiple specified format files, identify all necessary elements in each specified format file, and extract standard attribute information of each necessary element;
[0057] The necessary elements and standard attribute information of all files in a specified format are integrated, and a structured file attribute list is generated according to the hierarchical relationship between the necessary elements and the standard attribute information.
[0058] It should be noted that, since the present embodiment aims to convert the input file into an IWB format file, the specified format file obtained in the process of establishing the file attribute list in the present embodiment refers to an IWB format file. In other embodiments, if other format conversions are to be achieved, the specified format file corresponding to the established file attribute list can be in other formats, and the specific format is not limited here and can be changed according to actual conditions.
[0059] This embodiment identifies the elements contained in each specified format file, and the purpose of obtaining multiple specified format files is to ensure that the elements extracted from the multiple specified format files must contain all necessary elements. For example, assuming that the necessary elements must contain pages, texts, and images; and the elements of the first specified format file only contain pages and texts, it is necessary to obtain a second specified format file containing image elements, and extract all elements of the two specified format files, so that the extracted page, text, and image elements contain all necessary elements.
[0060] At the same time, standard attribute information compatible with the IWB format is also set, that is, the attribute information of each necessary element in each specified format file is extracted to obtain the attribute value or attribute range compatible with the IWB format. For example, for the font size attribute of the text element, multiple font size types are extracted from multiple specified format files, font size A, font size B, font size C, and the three types of font size A, B, and C are all used as standard attribute values compatible with the IWB format. In addition, according to actual needs, the three specific font sizes of font size A, B, and C can be extended to the font size range [A~C] including font size A, B, and C. All font sizes within the range [A~C] are used as standard attribute values compatible with the IWB format. During the extraction process, it is also necessary to determine whether all standard attributes have been successfully extracted. If the extraction fails, the user is prompted to re-import.
[0061] In this embodiment, the extracted attribute information of each necessary element is used as standard attribute information, and a corresponding file attribute list is generated according to the necessary elements and the standard attribute information.
[0062] The composition of the file attribute list is similar to that of the target attribute list. The structured file attribute list ensures the accuracy of the input file content conversion and enables efficient and accurate file matching and conversion in subsequent processing steps. The file attribute list serves as the only reference input for input file content conversion.
[0063] In this embodiment, the target attribute list is compared with the pre-established file attribute list to determine the incompatible elements. That is, each attribute information of each object element in the target attribute list is compared with the standard attribute information of the corresponding necessary element in the file attribute list one by one to achieve the structural docking of the input file content with the IWB standard. If an attribute mismatch is encountered, the mismatched element is marked as an incompatible element, and a dynamic mapping table is established. The following describes the comparison method of different elements respectively:
[0064] 1. For the page elements in the target attribute list, extract the attribute information of the page elements of the input file from the target attribute list, that is, the first page aspect ratio; extract the second page aspect ratio compatible with the IWB format based on the file attribute list; compare the first page aspect ratio with the second page aspect ratio, and calculate the matching value according to the first page aspect ratio and the second page aspect ratio. The expression of the matching value is as follows:
[0065] Matching value = [(aspect ratio of the first page - aspect ratio of the second page) / aspect ratio of the second page] * 100*;
[0066] When the matching value is less than or equal to a preset size error range (such as ±5%), the page element of the input file is determined to be a compatible element; when the matching value is greater than 5%, the page element is marked as an incompatible element.
[0067] 2. For the text elements in the target attribute list, the attribute information of the text elements in the input file is extracted based on the target attribute list. The attribute information also reflects the text features of the input file, including text font, text size and text color, etc.; the text attribute range supported by the IWB format is determined according to the file attribute list; each text attribute value is compared with the corresponding text attribute range. For example, it is determined whether the font of the input text is within the font type compatible with the IWB format, and whether the text color value of the input text is within the color attribute range compatible with the IWB format, etc.; when any text attribute value does not exist in the corresponding text attribute range, the current text element is marked as an incompatible element.
[0068] 3. For the image elements in the target attribute list, extract the image attributes of the input file in the target attribute list, the image attributes include image format, image resolution, etc.; determine the image attribute range supported by the IWB format according to the file attribute list; compare each image attribute with the corresponding image attribute range, and when any image attribute does not exist in the corresponding image attribute range, mark the current image element as an incompatible element.
[0069] Prompt incompatible elements and create a dynamic mapping table based on the incompatible elements. The dynamic mapping table records the attribute mapping ratio of each incompatible element. According to the attribute mapping ratio, the attribute value of the incompatible element can be corrected to the attribute value compatible with the IWB format to ensure that the input file meets the IWB file display requirements after conversion.
[0070] Determine the page cropping ratio or page zooming ratio according to the first page aspect ratio and the second page aspect ratio, and determine the page mapping scheme according to the page cropping ratio or page zooming ratio; select any appropriate specified attribute value from the text attribute range compatible with the IWB format, convert the text attribute of the input file to the specified attribute value, thereby determining the text mapping scheme; select an appropriate specified attribute value from the image attribute range compatible with the IWB format, convert the image attribute of the input file to the specified attribute value, thereby determining the image mapping scheme; integrate and generate a dynamic mapping table according to the mapping schemes of elements such as pages, texts, and images. In addition, a corresponding attribute mapping scheme can also be generated according to the diversity of attributes, so that the input file can be directly adjusted according to the dynamic mapping table to ensure that the adjusted input file is displayed with high restoration in the IWB system.
[0071] Step S3: Convert the input file into a corresponding compatible file output based on the dynamic mapping table.
[0072] When the page size is incompatible, the page content of the input file can be adjusted to adapt to the IWB page standard by scaling or cropping, for example, cropping 2000×1500 pixels to 1920×1080 pixels, or adjusting its proportion to a compatible range by scaling.
[0073] When the font of the text is incompatible, select a compatible alternative font, such as replacing "Comic Sans MS" with "Arial", and keep the color and size unchanged.
[0074] When the image format is incompatible, you can convert the format or adjust the resolution. For example, convert the TIFF image to PNG format and compress it to less than 300dpi.
[0075] At the same time, various attribute conversions can be processed in parallel. By synchronously executing various mapping schemes in the dynamic mapping table through multiple lines, the input file content can be adjusted to the format supported by the IWB file, thereby improving the conversion efficiency.
[0076] After the conversion is completed, the integrity and compatibility of the generated compatible file are verified. Through automated comparison, it is detected and adjusted whether the input file and the converted compatible file content are completely matched. According to the comparison results, the graphics and text styles are adjusted to ensure the high restoration degree of the converted compatible file in the IWB format.
[0077] The verified IWB-compatible files are finally saved to the specified path for users or whiteboard system to call. After the user finally confirms the conversion result, the converted IWB-compatible files are stored in a standard format for calling, ensuring the application effect in the interactive whiteboard and providing an efficient multi-file format compatibility solution.
[0078] Embodiment 2 of the present invention provides an input file conversion system, which can be directly applied to an electronic whiteboard. When a user imports an input file into the electronic whiteboard, the system executes the input file conversion method as described above to synchronously convert the input file. During this period, dynamic attribute mapping, synchronous conversion, and parallel processing are used to achieve efficient conversion of the imported file, making it compatible with IWB file attributes and maintaining a high degree of restoration.
[0079] The functions of each module in the system of the embodiment of the present invention can refer to the corresponding description in the above method, which will not be repeated here.
[0080] A third embodiment of the present invention provides an electronic device, Figure 3 FIG. 2 shows a structural block diagram of an electronic device according to an embodiment of the present invention. Figure 3 As shown, the electronic device includes: a memory 100 and a processor 200, wherein the memory 100 stores a computer program that can be run on the processor 200. When the processor 200 executes the computer program, the input file conversion method in the above embodiment is implemented. The number of the memory 100 and the processor 200 can be one or more.
[0081] The electronic device also includes:
[0082] The communication interface 300 is used to communicate with external devices and perform data exchange transmission.
[0083] If the memory 100, the processor 200 and the communication interface 300 are implemented independently, the memory 100, the processor 200 and the communication interface 300 can be connected to each other through a bus and communicate with each other. The bus can be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. The bus can be divided into an address bus, a data bus, a control bus, etc.
[0084] Optionally, in a specific implementation, if the memory 100, the processor 200 and the communication interface 300 are integrated on a chip, the memory 100, the processor 200 and the communication interface 300 can communicate with each other through an internal interface.
[0085] An embodiment of the present invention provides a computer-readable storage medium storing a computer program, which implements the method provided in the embodiment of the present invention when the program is executed by a processor.
[0086] An embodiment of the present invention further provides a chip, which includes a processor for calling and executing instructions stored in a memory from the memory, so that a communication device equipped with the chip executes the method provided by the embodiment of the present invention.
[0087] An embodiment of the present invention also provides a chip, including: an input interface, an output interface, a processor and a memory, wherein the input interface, the output interface, the processor and the memory are connected via an internal connection path, and the processor is used to execute the code in the memory. When the code is executed, the processor is used to execute the method provided by the embodiment of the invention.
[0088] It should be understood that the processor may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application specific integrated circuits (ASIC), field programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor may be a microprocessor or any conventional processor, etc. It is worth noting that the processor may be a processor supporting the advanced RISC machines (ARM) architecture.
[0089] Further, optionally, the above-mentioned memory may include a read-only memory and a random access memory, and may also include a non-volatile random access memory. The memory may be a volatile memory or a non-volatile memory, or may include both volatile and non-volatile memories. Among them, the non-volatile memory may include a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory may include a random access memory (RAM), which is used as an external cache. By way of example but not limitation, many forms of RAM are available. For example, static RAM (SRAM), dynamic random access memory (DRAM), synchronous DRAM (SDRAM), double data rate synchronous dynamic random access memory (DDR SDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM) and direct rambus RAM (DR RAM).
[0090] In the above embodiments, all or part of the embodiments may be implemented by software, hardware, firmware or any combination thereof. When implemented by software, all or part of the embodiments may be implemented in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function according to the present invention is generated in whole or in part. The computer may be a general-purpose computer, a special-purpose computer, a computer network or other programmable device. The computer instructions may be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another computer-readable storage medium.
[0091] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner. In addition, those skilled in the art may combine and combine different embodiments or examples described in this specification and the features of different embodiments or examples, unless they are contradictory.
[0092] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first" and "second" may explicitly or implicitly include at least one of the features. In the description of the present invention, the meaning of "plurality" is two or more, unless otherwise clearly and specifically defined.
[0093] The above is only a specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any person skilled in the art can easily think of various changes or substitutions within the technical scope disclosed by the present invention, which should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention should be based on the protection scope of the claims.
Claims
1. A method for converting an input file, characterized in that: include: Acquire an input file, parse the input file, determine the object elements contained in the input file and the attribute information corresponding to each of the object elements, and generate a target attribute list according to the object elements and the attribute information; Comparing the target attribute list with a pre-established file attribute list to determine incompatible elements, and creating a dynamic mapping table according to the incompatible elements; wherein the file attribute list includes standard attribute information pre-parsed according to a specified format file; The input file is converted into a corresponding compatible file and outputted based on the dynamic mapping table.
2. The input file conversion method according to claim 1, characterized in that: Also includes: Acquire a plurality of the specified format files, identify all necessary elements in each of the specified format files, and extract standard attribute information of each of the necessary elements; The necessary elements and the standard attribute information of all the files in the specified format are integrated, and a structured file attribute list is generated according to the hierarchical relationship between the necessary elements and the standard attribute information.
3. The input file conversion method according to claim 1, characterized in that: The object elements include pages, texts and images; the attribute information includes page aspect ratio, text font, text font size, text color value, image format and image resolution.
4. The input file conversion method according to claim 1, characterized in that: The comparing the target attribute list with a pre-established file attribute list to determine incompatible elements comprises: extracting a first page aspect ratio of the input file based on the target attribute list; Extracting a second page aspect ratio of the file in the specified format based on the file attribute list; Comparing the first page aspect ratio with the second page aspect ratio to determine a matching value; In a case where the matching value is less than or equal to a preset size error range, determining that the page element of the input file is a compatible element; When the matching value is greater than the size error range, the page element is marked as an incompatible element.
5. The input file conversion method according to claim 1, characterized in that: The comparing the target attribute list with a pre-established file attribute list to determine incompatible elements comprises: Extracting text attributes of the input file based on the target attribute list, the text attributes including text font, text size and text color; Determining the text attribute range supported by the specified format file according to the file attribute list; Each of the text attributes is compared with the corresponding text attribute range, and when any of the text attributes does not exist in the corresponding text attribute range, the current text element is marked as an incompatible element.
6. The input file conversion method according to claim 1, characterized in that: The comparing the target attribute list with a pre-established file attribute list to determine incompatible elements comprises: Extracting the image attributes of the input file in the target attribute list, wherein the image attributes include image format and image resolution; Determine the image attribute range supported by the file in the specified format according to the file attribute list; Each of the image attributes is compared with the corresponding image attribute range, and when any of the image attributes does not exist in the corresponding image attribute range, the current image element is marked as an incompatible element.
7. The input file conversion method according to claim 1, characterized in that: The creating a dynamic mapping table according to the incompatible elements comprises: Determine a page mapping ratio according to a first page aspect ratio of the input file and a second page aspect ratio of the specified format file, wherein the page mapping ratio is a page cropping ratio or a page scaling ratio; Determining a text mapping scheme according to the text attribute of the input file and the text attribute range supported by the specified format file; Determine an image mapping scheme according to the image attribute of the input file and the image attribute range supported by the specified format file; The dynamic mapping table is generated according to the page mapping ratio, the text mapping scheme, and the image mapping scheme.
8. An input file conversion system, characterized in that: Execute the input file conversion method as described in any one of claims 1 to 7.
9. An electronic device, characterized in that: include: A processor and a memory, wherein the memory stores instructions, and the instructions are loaded and executed by the processor to implement the input file conversion method according to any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the input file conversion method according to any one of claims 1 to 7 is implemented.