CN117033672A - Slide deriving method, slide deriving device and storage medium - Google Patents
Slide deriving method, slide deriving device and storage medium Download PDFInfo
- Publication number
- CN117033672A CN117033672A CN202311067416.0A CN202311067416A CN117033672A CN 117033672 A CN117033672 A CN 117033672A CN 202311067416 A CN202311067416 A CN 202311067416A CN 117033672 A CN117033672 A CN 117033672A
- Authority
- CN
- China
- Prior art keywords
- slide
- fonts
- font
- file
- specific format
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 47
- 238000006243 chemical reaction Methods 0.000 claims abstract description 30
- 230000006835 compression Effects 0.000 claims abstract description 25
- 238000007906 compression Methods 0.000 claims abstract description 25
- 238000013507 mapping Methods 0.000 claims abstract description 18
- 230000001960 triggered effect Effects 0.000 claims abstract description 9
- 238000012545 processing Methods 0.000 claims description 22
- 238000004590 computer program Methods 0.000 claims description 16
- 238000009795 derivation Methods 0.000 claims description 12
- 230000006870 function Effects 0.000 description 10
- 238000010586 diagram Methods 0.000 description 8
- 230000006872 improvement Effects 0.000 description 8
- 238000005516 engineering process Methods 0.000 description 5
- 230000008569 process Effects 0.000 description 5
- 230000005540 biological transmission Effects 0.000 description 3
- 230000003287 optical effect Effects 0.000 description 3
- 230000009286 beneficial effect Effects 0.000 description 2
- 238000004891 communication Methods 0.000 description 2
- 238000013461 design Methods 0.000 description 2
- 238000004519 manufacturing process Methods 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 230000001413 cellular effect Effects 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 230000010365 information processing Effects 0.000 description 1
- 238000011068 loading method Methods 0.000 description 1
- 230000005055 memory storage Effects 0.000 description 1
- 229920001296 polysiloxane Polymers 0.000 description 1
- 230000000750 progressive effect Effects 0.000 description 1
- 239000010979 ruby Substances 0.000 description 1
- 229910001750 ruby Inorganic materials 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
- 230000000007 visual effect Effects 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/40—Information retrieval; Database structures therefor; File system structures therefor of multimedia data, e.g. slideshows comprising image and additional audio data
- G06F16/44—Browsing; Visualisation therefor
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/40—Information retrieval; Database structures therefor; File system structures therefor of multimedia data, e.g. slideshows comprising image and additional audio data
- G06F16/43—Querying
- G06F16/438—Presentation of query results
- G06F16/4387—Presentation of query results by the use of playlists
- G06F16/4393—Multimedia presentations, e.g. slide shows, multimedia albums
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F40/00—Handling natural language data
- G06F40/10—Text processing
- G06F40/103—Formatting, i.e. changing of presentation of documents
- G06F40/109—Font handling; Temporal or kinetic typography
Abstract
The embodiment of the application discloses a slide exporting method, a slide exporting device and a storage medium, wherein the slide exporting method comprises the following steps: determining a slide font exporting mode based on a selection instruction triggered by a user through a webpage; when the determined export mode is a non-full-scale font, reading the fonts used in the slide, and carrying out font subset, conversion and compression on the read fonts to obtain a font file with a specific format suitable for the slide; embedding the font file with the specific format into the file of the slide, and establishing a mapping relation between fonts in the font file with the specific format and characters in the slide, so as to realize the export of the slide. The method solves the problem that the required fonts cannot be embedded in the slide or the used fonts cannot be displayed correctly when the slide is opened in the prior art.
Description
Technical Field
The present application relates to the field of computer information processing technologies, and in particular, to a slide deriving method, apparatus, and storage medium.
Background
In existing slide show (PPT) web page online editors, the exported PPT file is typically not embedded with the required fonts. This is because existing font libraries mainly provide common font formats such as TTF and WOFF, while embedding fonts in PPT requires the use of EOT font formats.
Therefore, the prior art scheme has a problem that a desired font cannot be embedded in a slide or a used font cannot be correctly displayed when the slide is opened.
Disclosure of Invention
An embodiment of the application aims to provide a slide deriving method, a slide deriving device and a storage medium, which are used for solving the problem that the required fonts cannot be embedded in a slide or the used fonts cannot be displayed correctly when the slide is opened in the prior art.
In order to achieve the above object, an embodiment of the present application provides a slide deriving method, including:
determining a slide font exporting mode based on a selection instruction triggered by a user through a webpage;
when the determined export mode is a non-full-scale font, reading the fonts used in the slide, and carrying out font subset, conversion and compression on the read fonts to obtain a font file with a specific format suitable for the slide; embedding the font file with the specific format into the file of the slide, and establishing a mapping relation between fonts in the font file with the specific format and characters in the slide, so as to realize the export of the slide. Optionally, when the determined derivation mode is to derive the full-scale font, embedding the converted full-scale font file applicable to the slide into the file of the slide, and establishing a mapping relationship between the fonts in the full-scale font file and the characters in the slide.
Optionally, the reading the fonts used in the slide, and performing font subset and conversion compression on the read fonts to obtain a font file in a specific format suitable for the slide, including:
acquiring fonts used by text components of the slides read by the webpage;
and carrying out font subset and conversion compression processing on the fonts to obtain the font file with the specific format suitable for the slide.
Optionally, the acquiring the fonts used by the text component of the slide read by the web page includes: acquiring an address corresponding to a font used by a text component of the slide read by the webpage; and downloading the fonts based on the addresses, and carrying out font subset and conversion compression processing on the fonts to obtain the font file with the specific format, which is suitable for the slide.
In order to achieve the above object, the present application also provides a slide font deriving device, including a selection determining unit configured to determine a deriving manner of a slide font based on a selection instruction triggered by a user through a web page; the processing unit is configured to read fonts used in the slide when the determined export mode is a non-full-volume font, and to perform font subset, conversion and compression on the read fonts to obtain a font file with a specific format suitable for the slide; and the export unit is configured to embed the font file with the specific format into the file of the slide and establish a mapping relation between fonts in the font file with the specific format and characters in the slide so as to realize export of the slide.
Optionally, the processing unit is further configured to: and when the determined export mode is to export the full-scale fonts, embedding the converted full-scale font file applicable to the slide into the file of the slide, and establishing a mapping relation between the fonts in the full-scale font file and the characters in the slide.
Optionally, the reading the fonts used in the slide, and performing font subset and conversion compression on the read fonts to obtain a font file in a specific format suitable for the slide, including: acquiring fonts used by text components of the slides read by the webpage; and carrying out font subset and conversion compression processing on the fonts to obtain the font file with the specific format suitable for the slide.
Optionally, the acquiring the fonts used by the text component of the slide read by the web page includes: acquiring an address corresponding to a font used by a text component of the slide read by the webpage; and downloading the fonts based on the addresses, and carrying out font subset and conversion compression processing on the fonts to obtain the font file with the specific format, which is suitable for the slide.
To achieve the above object, the present application also provides a computer storage medium having stored thereon a computer program which, when executed by a machine, implements the steps of the method as described above.
To achieve the above object, the present application further provides an electronic device, including a memory, a processor, and a computer program stored on the memory and executable on the processor, wherein the processor implements the method according to any implementation manner of the first aspect when executing the program.
The embodiment of the application provides a slide exporting method, which comprises the following steps: determining a slide font exporting mode based on a selection instruction triggered by a user through a webpage; when the determined export mode is a non-full-scale font, reading the fonts used in the slide, and carrying out font subset, conversion and compression on the read fonts to obtain a font file with a specific format suitable for the slide; embedding the font file with the specific format into the file of the slide, and establishing a mapping relation between fonts in the font file with the specific format and characters in the slide, so as to realize the export of the slide.
By the method, the fonts used in the slide file can be detected and converted into the specific font format suitable for the slide, so that the reading, conversion and embedding of the fonts are realized, and the embedded fonts can be correctly displayed when the slide file is opened. The technical scheme has the beneficial effects of flexibly selecting the exporting mode, reducing the size of the font file, improving the exporting efficiency, correctly displaying the embedded fonts and the like, has higher flexibility and efficiency compared with the prior art scheme, and can meet various requirements of users on font exporting.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below. It will be apparent to those skilled in the art from this disclosure that the drawings described below are merely exemplary and that other embodiments may be derived from the drawings provided without undue effort.
FIG. 1 is a flowchart of a slide exporting method according to an embodiment of the present application;
fig. 2 is a block diagram of a slide font deriving device according to an embodiment of the present application.
Detailed Description
Other advantages and advantages of the present application will become apparent to those skilled in the art from the following detailed description, which, by way of illustration, is to be read in connection with certain specific embodiments, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the application without making any inventive effort, are intended to be within the scope of the application.
In addition, the technical features of the different embodiments of the present application described below may be combined with each other as long as they do not collide with each other.
An embodiment of the present application provides a slide derivation method, referring to fig. 1, fig. 1 is a flowchart of a slide derivation method provided in an embodiment of the present application, and it should be understood that the method may further include additional blocks not shown and/or may omit the blocks shown, and the scope of the present application is not limited in this respect.
At step 101, a manner of deriving the slide fonts is determined based on selection instructions sent by the user via the web page.
In the ppt editor in the web page, selectable options of the export mode can be presented in a selectable mode on the web page, and after detecting a user-triggered export mode selection instruction, the web page identifies the triggered export mode and sends the information to the server.
The user can choose to export the full-scale fonts or the non-full-scale fonts, namely the full-scale fonts files containing all fonts; the non-full fonts may be sub-set fonts, i.e. partial font files containing only used text fonts. The words used may be words in all ppt, or words in a derived page or pages of ppt.
This embodiment allows the user to select a full font or to embed a subset of the used text when deriving the font. Thus, the user can select a proper font deriving mode according to specific requirements, thereby not only meeting the full-scale font requirements, but also reducing the size of the font file after removing unused fonts in the slide.
At step 102, when the determined derivation mode is a non-full-scale font, the fonts used in the slide are read, and the read fonts are subjected to font sub-set and conversion compression, so as to obtain a font file with a specific format suitable for the slide.
In some embodiments, the font used by the text component of the slide is read through the front end, and the text and font URL corresponding to the read font are sent to the back end; downloading the URL through the back end, and carrying out font subset and conversion compression on the downloaded fonts to obtain the font file with the specific format suitable for the slide.
Specifically, if the determined derivation mode is embedding the used text into the subset font, the front end reads the font used by the text component and sends all the text corresponding to the font and the font URL to the back end for conversion.
The back-end downloads the font URL transmitted from the front-end, and uses sfntly and fonttools tools to perform font subset and conversion compression. Font sub-set refers to that only used character fonts in a slide are reserved, unused fonts are removed, and accordingly the size of a font file is reduced. Conversion compression refers to converting a font file into a specific format suitable for PPT or PPTX.
In some embodiments, the method further comprises: and when the determined export mode is to export the full-scale fonts, embedding the converted full-scale font file applicable to the slide into the file of the slide, and establishing a mapping relation between the fonts in the full-scale font file and the characters in the slide.
Specifically, in full font derivation, the front end uses the full font file that has been converted in the background (that has been converted in advance in the font library). When the full-volume fonts are exported, the front end can directly use the full-volume font files converted in the background without performing font conversion. Therefore, the font deriving efficiency can be improved, and the communication and processing time of the front end and the back end can be reduced.
At step 103, the font file with the specific format is embedded into the file of the slide, and a mapping relation between the fonts in the font file with the specific format and the characters in the slide is established, so that the slide is exported.
In some embodiments, when the determined derivation mode is to derive the full-scale font, embedding the converted full-scale font file applicable to the slide into a file of the slide, and establishing a mapping relationship between the fonts in the full-scale font file and the characters in the slide.
In some embodiments, the specific format font file is invoked to display text in the slide when the exported slide is opened.
Specifically, the front end sets up the mapping relation between fonts and slide characters by putting the font files into the fonts folder of PPT or PPTX. Thus, when the PPT or PPTX file (slide file) is opened, the embedded fonts can be correctly displayed according to the mapping relationship.
By embedding the used characters into the subset fonts, the technical scheme of the embodiment can remove unused fonts in the slide, thereby reducing the size of the font file. This helps reduce network transmission time and memory space usage of the font file.
In addition, by embedding the font file into the PPT or PPTX file and establishing the mapping relation between the fonts and the characters, the technical scheme of the application can ensure that the embedded fonts can be correctly displayed when the PPT or PPTX file is opened. Thus, the visual effect of the document can be ensured to be consistent with the original design.
According to the technical scheme, the fonts used in the PPT file can be detected and converted into the EOT font format suitable for the PPT by using the front end JS (JavaScript) and the rear end font conversion service of the webpage, so that the function of deriving the fonts in the webpage is realized, and the option of selecting the full fonts or embedding the used text subset fonts is provided. Through the cooperation of the front end and the rear end, the reading, conversion and embedding of fonts are realized, and the embedded fonts can be correctly displayed when the PPT or PPTX file (slide file) is opened.
The technical scheme of the embodiment of the application has the beneficial effects of flexibly selecting the export mode, reducing the size of the font file, improving the export efficiency, correctly displaying the embedded fonts and the like, has higher flexibility and efficiency compared with the prior art scheme, and can meet various demands of users on font export.
The above provides a slide deriving method according to one or more embodiments of the present application, and based on the same idea, the present application further provides a corresponding slide deriving device, including a selection determining unit configured to determine a deriving manner of a slide font based on a selection instruction triggered by a user through a web page; the processing unit is configured to read fonts used in the slide when the determined export mode is a non-full-volume font, and to perform font subset, conversion and compression on the read fonts to obtain a font file with a specific format suitable for the slide; and the export unit is configured to embed the font file with the specific format into the file of the slide and establish a mapping relation between fonts in the font file with the specific format and characters in the slide so as to realize export of the slide.
In some embodiments, the processing unit is further configured to:
and when the determined export mode is to export the full-scale fonts, embedding the converted full-scale font file applicable to the slide into the file of the slide, and establishing a mapping relation between the fonts in the full-scale font file and the characters in the slide.
In some embodiments, the reading the fonts used in the slide, and performing font subset and conversion compression on the read fonts to obtain a font file in a specific format suitable for the slide, including:
acquiring fonts used by text components of the slides read by the webpage;
and carrying out font subset and conversion compression processing on the fonts to obtain the font file with the specific format suitable for the slide.
In some embodiments, the embedding the particular format font file into the file of the slide and the embedding the converted full font file for the slide into the file of the slide comprises:
placing the font file with the specific format into a fonts folder of the slide; and
and placing the full font file into a fonts folder of the slide.
In some embodiments, the apparatus further comprises:
and when the exported slide is opened, calling the font file with the specific format to display the characters in the slide.
The present application also provides a computer readable medium storing a computer program operable to perform the method provided in fig. 1 above.
The present application also provides a computer readable medium storing a computer program operable to perform the method provided in fig. 1 above.
The application also provides a schematic block diagram of the electronic device shown in fig. 2, which corresponds to fig. 1. At the hardware level, as shown in fig. 2, the electronic device includes a processor, an internal bus, a network interface, a memory, and a nonvolatile storage, and may of course include hardware required by other services. The processor reads the corresponding computer program from the non-volatile memory into the memory and then runs to implement a model loading method as described above with respect to fig. 1. Of course, other implementations, such as logic devices or combinations of hardware and software, are not excluded from the present application, that is, the execution subject of the following processing flows is not limited to each logic unit, but may be hardware or logic devices.
In the 90 s of the 20 th century, improvements to one technology could clearly be distinguished as improvements in hardware (e.g., improvements to circuit structures such as diodes, transistors, switches, etc.) or software (improvements to the process flow). However, with the development of technology, many improvements of the current method flows can be regarded as direct improvements of hardware circuit structures. Designers almost always obtain corresponding hardware circuit structures by programming improved method flows into hardware circuits. Therefore, an improvement of a method flow cannot be said to be realized by a hardware entity module. For example, a programmable logic device (Programmable Logic Device, PLD) (e.g., field programmable gate array (Field Programmable Gate Array, FPGA)) is an integrated circuit whose logic function is determined by the programming of the device by a user. A designer programs to "integrate" a digital system onto a PLD without requiring the chip manufacturer to design and fabricate application-specific integrated circuit chips. Moreover, nowadays, instead of manually manufacturing integrated circuit chips, such programming is mostly implemented by using "logic compiler" software, which is similar to the software compiler used in program development and writing, and the original code before the compiling is also written in a specific programming language, which is called hardware description language (Hardware Description Language, HDL), but not just one of the hdds, but a plurality of kinds, such as ABEL (Advanced Boolean Expression Language), AHDL (Altera Hardware Description Language), confluence, CUPL (Cornell University Programming Language), HDCal, JHDL (Java Hardware Description Language), lava, lola, myHDL, PALASM, RHDL (Ruby Hardware Description Language), etc., VHDL (Very-High-Speed Integrated Circuit Hardware Description Language) and Verilog are currently most commonly used. It will also be apparent to those skilled in the art that a hardware circuit implementing the logic method flow can be readily obtained by merely slightly programming the method flow into an integrated circuit using several of the hardware description languages described above.
The controller may be implemented in any suitable manner, for example, the controller may take the form of, for example, a microprocessor or processor and a computer readable medium storing computer readable program code (e.g., software or firmware) executable by the (micro) processor, logic gates, switches, application specific integrated circuits (Application Specific Integrated Circuit, ASIC), programmable logic controllers, and embedded microcontrollers, examples of which include, but are not limited to, the following microcontrollers: ARC 625D, atmel AT91SAM, microchip PIC18F26K20, and Silicone Labs C8051F320, the memory controller may also be implemented as part of the control logic of the memory. Those skilled in the art will also appreciate that, in addition to implementing the controller in a pure computer readable program code, it is well possible to implement the same functionality by logically programming the method steps such that the controller is in the form of logic gates, switches, application specific integrated circuits, programmable logic controllers, embedded microcontrollers, etc. Such a controller may thus be regarded as a kind of hardware component, and means for performing various functions included therein may also be regarded as structures within the hardware component. Or even means for achieving the various functions may be regarded as either software modules implementing the methods or structures within hardware components.
The system, apparatus, module or unit set forth in the above embodiments may be implemented in particular by a computer chip or entity, or by a product having a certain function. One typical implementation is a computer. In particular, the computer may be, for example, a personal computer, a laptop computer, a cellular telephone, a camera phone, a smart phone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device, or a combination of any of these devices.
For convenience of description, the above devices are described as being functionally divided into various units, respectively. Of course, the functions of each element may be implemented in the same piece or pieces of software and/or hardware when implementing the present application.
It will be appreciated by those skilled in the art that embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable media (including but not limited to disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In one typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include volatile memory in a computer-readable medium, random Access Memory (RAM) and/or nonvolatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). Memory is an example of computer-readable media.
Computer readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of media for a computer include, but are not limited to, phase change memory (PRAM), static Random Access Memory (SRAM), dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), read Only Memory (ROM), electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, read only compact disc read only memory (CD-ROM), digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium, which can be used to store information that can be accessed by a computing device. Computer-readable media, as defined herein, does not include transitory computer-readable media (transmission media), such as modulated data signals and carrier waves.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article or apparatus that comprises the element.
It will be appreciated by those skilled in the art that embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable media (including but not limited to disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The application may be described in the general context of computer-executable instructions, such as program modules, being executed by a computer. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform particular tasks or implement particular abstract data types. The application may also be practiced in distributed computing environments where tasks are performed by remote processing devices that are linked through a communications network. In a distributed computing environment, program modules may be located in both local and remote computer media including memory storage devices.
The embodiments of the present application are described in a progressive manner, and the same and similar parts of the embodiments are all referred to each other, and each embodiment is mainly described in the differences from the other embodiments. In particular, for system embodiments, since they are substantially similar to method embodiments, the description is relatively simple, as relevant to see a section of the description of method embodiments.
The foregoing is merely exemplary of the present application and is not intended to limit the present application. Various modifications and variations of the present application will be apparent to those skilled in the art. Any modification, equivalent replacement, improvement, etc. which come within the spirit and principles of the application are to be included in the scope of the claims of the present application.
Claims (10)
1. A slide derivation method, comprising:
determining a slide font exporting mode based on a selection instruction triggered by a user through a webpage;
when the determined export mode is a non-full-scale font, reading the fonts used in the slide, and carrying out font subset, conversion and compression on the read fonts to obtain a font file with a specific format suitable for the slide;
embedding the font file with the specific format into the file of the slide, and establishing a mapping relation between fonts in the font file with the specific format and characters in the slide, so as to realize the export of the slide.
2. A slide derivation method as claimed in claim 1, further comprising:
and when the determined export mode is to export the full-scale fonts, embedding the converted full-scale font file applicable to the slide into the file of the slide, and establishing a mapping relation between the fonts in the full-scale font file and the characters in the slide.
3. The slide derivation method of claim 1, wherein the reading of fonts used in the slide, and the font subset and conversion compression of the read fonts, to obtain a font file of a specific format suitable for the slide, comprises:
acquiring fonts used by text components of the slides read by the webpage;
and carrying out font subset and conversion compression processing on the fonts to obtain the font file with the specific format suitable for the slide.
4. A slide derivation method as claimed in claim 3, wherein the acquiring fonts used by the text component of the slide read by the web page comprises:
acquiring an address corresponding to a font used by a text component of the slide read by the webpage;
and downloading the fonts based on the addresses, and carrying out font subset and conversion compression processing on the fonts to obtain the font file with the specific format, which is suitable for the slide.
5. A slide deriving device, comprising:
a selection determining unit configured to determine a derivation manner of the slide fonts based on a selection instruction triggered by the user through the web page;
the processing unit is configured to read fonts used in the slide when the determined export mode is a non-full-volume font, and to perform font subset, conversion and compression on the read fonts to obtain a font file with a specific format suitable for the slide;
and the export unit is configured to embed the font file with the specific format into the file of the slide and establish a mapping relation between fonts in the font file with the specific format and characters in the slide so as to realize export of the slide.
6. The slide deriving device according to claim 5, wherein the processing unit is further configured to:
and when the determined export mode is to export the full-scale fonts, embedding the converted full-scale font file applicable to the slide into the file of the slide, and establishing a mapping relation between the fonts in the full-scale font file and the characters in the slide.
7. The slide deriving device according to claim 6, wherein the reading of fonts used in the slide, and the font sub-set and conversion compression of the read fonts, to obtain a font file of a specific format suitable for the slide, comprises:
acquiring fonts used by text components of the slides read by the webpage;
and carrying out font subset and conversion compression processing on the fonts to obtain the font file with the specific format suitable for the slide.
8. The slide deriving device according to claim 7, wherein the acquiring fonts used by the text component of the slides read by the web page comprises:
acquiring an address corresponding to a font used by a text component of the slide read by the webpage;
and downloading the fonts based on the addresses, and carrying out font subset and conversion compression processing on the fonts to obtain the font file with the specific format, which is suitable for the slide.
9. A computer-readable storage medium, characterized in that the storage medium stores a computer program which, when executed by a processor, implements the method of any of the preceding claims 1-4.
10. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor implements the method of any of the preceding claims 1-4 when executing the program.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202311067416.0A CN117033672A (en) | 2023-08-23 | 2023-08-23 | Slide deriving method, slide deriving device and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202311067416.0A CN117033672A (en) | 2023-08-23 | 2023-08-23 | Slide deriving method, slide deriving device and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN117033672A true CN117033672A (en) | 2023-11-10 |
Family
ID=88635269
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202311067416.0A Pending CN117033672A (en) | 2023-08-23 | 2023-08-23 | Slide deriving method, slide deriving device and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN117033672A (en) |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110705210A (en) * | 2019-09-18 | 2020-01-17 | 北京中网易企秀科技有限公司 | Chinese font loading method and device |
WO2021218365A1 (en) * | 2020-04-30 | 2021-11-04 | 华为技术有限公司 | Annotation method and electronic device |
CN113656000A (en) * | 2021-08-11 | 2021-11-16 | 北京达佳互联信息技术有限公司 | Webpage processing method and device |
CN113934955A (en) * | 2021-10-25 | 2022-01-14 | 稿定(厦门)科技有限公司 | Method for generating display PPT file by browser, browser and storage medium |
-
2023
- 2023-08-23 CN CN202311067416.0A patent/CN117033672A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110705210A (en) * | 2019-09-18 | 2020-01-17 | 北京中网易企秀科技有限公司 | Chinese font loading method and device |
WO2021218365A1 (en) * | 2020-04-30 | 2021-11-04 | 华为技术有限公司 | Annotation method and electronic device |
CN113656000A (en) * | 2021-08-11 | 2021-11-16 | 北京达佳互联信息技术有限公司 | Webpage processing method and device |
CN113934955A (en) * | 2021-10-25 | 2022-01-14 | 稿定(厦门)科技有限公司 | Method for generating display PPT file by browser, browser and storage medium |
Non-Patent Citations (2)
Title |
---|
KUKU前端: ""PPT字体嵌入"", pages 1 - 2, Retrieved from the Internet <URL:https://zhuanlan.zhihu.com/p/90706046> * |
秦阳: ""换台电脑,PPT字体就崩了?你需要这篇文章!"", pages 1 - 3, Retrieved from the Internet <URL:https://zhuanlan.zhihu.com/p/62450885> * |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107391526B (en) | Data processing method and device based on block chain | |
CN110941784A (en) | Page generation method and device | |
CN107786630B (en) | Web application package processing method, device and equipment | |
CN105824830B (en) | Method, client and equipment for displaying page | |
CN107066519B (en) | Task detection method and device | |
CN109104327B (en) | Service log generation method, device and equipment | |
WO2021197140A1 (en) | Generation of applet file package | |
CN110263050B (en) | Data processing method, device, equipment and storage medium | |
CN112307509A (en) | Desensitization processing method, equipment, medium and electronic equipment | |
CN108255471B (en) | System configuration item configuration device, method and equipment based on configuration suite | |
CN107391529B (en) | Method and device for realizing Object Relation Mapping (ORM) | |
CN113079201B (en) | Information processing system, method, device and equipment | |
CN110276056B (en) | Document editing method, device, equipment and system | |
CN111538667A (en) | Page testing method and device | |
CN117033672A (en) | Slide deriving method, slide deriving device and storage medium | |
CN108769152B (en) | Service refresh policy registration method, service refresh request method, device and equipment | |
CN114780630A (en) | Data display method, device and equipment | |
CN109903165B (en) | Model merging method and device | |
CN111967767A (en) | Business risk identification method, device, equipment and medium | |
CN111651450B (en) | Block copy method, device, equipment and medium based on block chain | |
CN116737367B (en) | Minio-based data preservation method, device and medium | |
CN112434486B (en) | Automatic paging method, device, equipment and medium for device in PCB design | |
CN112925527B (en) | Calling method, calling device, storage medium and electronic equipment | |
CN114282510B (en) | Document generation method and device, storage medium and electronic equipment | |
CN117952074A (en) | Data importing method, device and medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |