CN105786784A - PowerPoint template replacing method and device - Google Patents

PowerPoint template replacing method and device Download PDF

Info

Publication number
CN105786784A
CN105786784A CN201410820947.7A CN201410820947A CN105786784A CN 105786784 A CN105786784 A CN 105786784A CN 201410820947 A CN201410820947 A CN 201410820947A CN 105786784 A CN105786784 A CN 105786784A
Authority
CN
China
Prior art keywords
lantern slide
template
pending
powerpoint
slide
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.)
Granted
Application number
CN201410820947.7A
Other languages
Chinese (zh)
Other versions
CN105786784B (en
Inventor
胡娟
冯艳珊
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Kingsoft Office Software Inc
Zhuhai Kingsoft Office Software Co Ltd
Guangzhou Jinshan Mobile Technology Co Ltd
Original Assignee
Beijing Kingsoft Office Software Inc
Zhuhai Kingsoft Office Software Co Ltd
Guangzhou Jinshan Mobile Technology Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Beijing Kingsoft Office Software Inc, Zhuhai Kingsoft Office Software Co Ltd, Guangzhou Jinshan Mobile Technology Co Ltd filed Critical Beijing Kingsoft Office Software Inc
Priority to CN201410820947.7A priority Critical patent/CN105786784B/en
Publication of CN105786784A publication Critical patent/CN105786784A/en
Application granted granted Critical
Publication of CN105786784B publication Critical patent/CN105786784B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Processing Or Creating Images (AREA)

Abstract

The embodiment of the invention discloses a PowerPoint template replacing method and device. The PowerPoint template replacing method comprises the following steps: receiving a template replacing instruction which aims at a PowerPoint document to be processed by a user; determining a target PowerPoint template; according to a preset matching algorithm, calculating an object matching degree between each slide and a slide to be processed in the target PowerPoint template; determining the slide which has a highest object matching degree with the slide to be processed in the target PowerPoint template as a template slide; according to an object type in the slide to be processed, filling object contents in the slide to be processed into an object frame of a corresponding type in the template slide to obtain a processed slide; and replacing the slide to be processed with the processed slide. The technical scheme provided by the embodiment of the invention can achieve a better display effect and improves user experience.

Description

A kind of PowerPoint template replacing method and device
Technical field
The present invention relates to technical field of office software, particularly to a kind of PowerPoint template replacing method and device.
Background technology
In routine work is lived, PowerPoint is one of documents editing instrument of often using of user.The PowerPoint document that user makes generally to show other people, expresses the thought of oneself.In order to reach good bandwagon effect, user would generally use PowerPoint template that made PowerPoint document is beautified.
Existing PowerPoint document beautification method, is Background and the theme color set of PowerPoint template are used in PowerPoint document.
Beautifying of PowerPoint document should be carried out in this way, simply have changed Background and the theme color of PowerPoint document, Background or theme color after so may result in the original format structure of PowerPoint document and changing do not match that, such as, the mid portion of a certain lantern slide of PowerPoint document has picture and word content, Background after change just has important symbol in this region, such as trade mark etc., and this important symbol is user wishes to display, after so processing, this important symbol will be blocked by the picture in this region and word content, differ bigger with the desired bandwagon effect of user, affect Consumer's Experience.
Summary of the invention
For solving the problems referred to above, the embodiment of the invention discloses a kind of PowerPoint template replacing method and device.Technical scheme is as follows:
A kind of PowerPoint template replacing method, including:
Receive user's template replacement instruction for pending PowerPoint document;
According to described template replacement instruction, it is determined that target PowerPoint template;
For each pending lantern slide of described pending PowerPoint document, perform following operation:
According to preset matching algorithm, calculate the object matching degree of every lantern slide and pending lantern slide in described target PowerPoint template;
Lantern slide the highest with the object matching degree of described pending lantern slide in described target PowerPoint template is defined as template lantern slide;
According to the object type in described pending lantern slide, the contents of object in described pending lantern slide is filled in described template lantern slide in the object-oriented framework of respective type, obtains processed lantern slide;
Obtained processed lantern slide is utilized to replace described pending lantern slide.
Concrete, described according to described template replacement instruction, it is determined that target PowerPoint template, including:
According to described template replacement instruction, extract described pending PowerPoint document package containing object-type information;
Select a PowerPoint template comprising the object-type information extracted to some extent as target PowerPoint template from default template base.
Concrete, described basis presets the first matching algorithm, calculates the object matching degree of every lantern slide and pending lantern slide in described target PowerPoint template, including:
According to the number of same type object in different lantern slides, calculate the object matching degree of every lantern slide and described pending lantern slide in described target PowerPoint template.
Concrete, described basis presets the first matching algorithm, calculates the object matching degree of every lantern slide and pending lantern slide in described target PowerPoint template, including:
According to the similarity degree of characteristics of objects in different lantern slides, calculating the object matching degree of every lantern slide and pending lantern slide in described target PowerPoint template, described characteristics of objects comprises text box size, dimension of picture size, chart size size.
Concrete, described according to the object type in described pending lantern slide, the contents of object in described pending lantern slide is filled in described template lantern slide in the object-oriented framework of respective type, obtains processed lantern slide, including:
Extract the contents of object in described pending lantern slide;
Determine the object type that described contents of object is corresponding;
Described contents of object is filled in described template lantern slide in the object-oriented framework of respective type, obtains processed lantern slide.
A kind of PowerPoint template replacement device, including:
Change command reception module, for receiving user's template replacement instruction for pending PowerPoint document;
To Template determines module, for according to described template replacement instruction, it is determined that target PowerPoint template;
Module changed by lantern slide, for each the pending lantern slide for described pending PowerPoint document, performs lantern slide replacement operation, and wherein, described lantern slide is changed module and included:
Matching degree calculating sub module, for calculating the object matching degree of every lantern slide and pending lantern slide in described target PowerPoint template;
Submodule determined by template lantern slide, for lantern slide the highest with the object matching degree of described pending lantern slide in described target PowerPoint template is defined as template lantern slide;
Processed lantern slide obtains submodule, for according to the object type in described pending lantern slide, being filled in described template lantern slide by the contents of object in described pending lantern slide in the object-oriented framework of respective type, obtain processed lantern slide;
Submodule replaced by lantern slide, for utilizing obtained processed lantern slide to replace described pending lantern slide.
Concrete, described To Template determines module, including:
Object-type information extracts submodule, for according to described template replacement instruction, extract described pending PowerPoint document package containing object-type information;
To Template determines submodule, for selecting a PowerPoint template comprising the object-type information extracted to some extent as target PowerPoint template from default template base.
Concrete, described matching degree calculating sub module, specifically for:
According to the number of same type object in different lantern slides, calculate the object matching degree of every lantern slide and described pending lantern slide in described target PowerPoint template.
Concrete, described matching degree calculating sub module, specifically for:
According to the similarity degree of characteristics of objects in different lantern slides, calculating the object matching degree of every lantern slide and pending lantern slide in described target PowerPoint template, described characteristics of objects comprises text box size, dimension of picture size, chart size size.
Concrete, described processed lantern slide obtains submodule, including:
Contents of object extraction unit, for extracting the contents of object in described pending lantern slide;
Object type determines unit, for determining the object type that described contents of object is corresponding;
Processed lantern slide obtains unit, for being filled in described template lantern slide by described contents of object in the object-oriented framework of respective type, obtains processed lantern slide.
The technical scheme that the application embodiment of the present invention provides, every pending lantern slide for PowerPoint document, contents of object in pending lantern slide is filled in the object-oriented framework of the template lantern slide respective type determined, obtain processed lantern slide, and utilize processed lantern slide to replace pending lantern slide, so not only change the Background of PowerPoint document, theme color, also changed the format structure in PowerPoint document lantern slide simultaneously, make the format structure of whole PowerPoint document, Background, the comparison match such as theme color, reach more preferably bandwagon effect, improve Consumer's Experience.
Accompanying drawing explanation
In order to be illustrated more clearly that the embodiment of the present invention or technical scheme of the prior art, the accompanying drawing used required in embodiment or description of the prior art will be briefly described below, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, under the premise not paying creative work, it is also possible to obtain other accompanying drawing according to these accompanying drawings.
A kind of implementing procedure figure that Fig. 1 show in the embodiment of the present invention PowerPoint template replacing method;
Fig. 2 show in the embodiment of the present invention for a kind of implementing procedure figure of pending lantern slide processing method;
A kind of schematic diagram that Fig. 3 a show in the embodiment of the present invention pending lantern slide;
A kind of schematic diagram that Fig. 3 b show in the embodiment of the present invention processed lantern slide;
A kind of implementing procedure figure that Fig. 4 show in the embodiment of the present invention PowerPoint template replacement device;
The another kind of implementing procedure figure that Fig. 5 show in the embodiment of the present invention PowerPoint template replacement device.
Detailed description of the invention
First a kind of PowerPoint template replacing method embodiment of the present invention provided illustrates, and the method may comprise steps of:
Receive user's template replacement instruction for pending PowerPoint document;
According to described template replacement instruction, it is determined that target PowerPoint template;
For each pending lantern slide of described pending PowerPoint document, perform following operation:
According to preset matching algorithm, calculate the object matching degree of every lantern slide and pending lantern slide in described target PowerPoint template;
Lantern slide the highest with the object matching degree of described pending lantern slide in described target PowerPoint template is defined as template lantern slide;
According to the object type in described pending lantern slide, the contents of object in described pending lantern slide is filled in described template lantern slide in the object-oriented framework of respective type, obtains processed lantern slide;
Obtained processed lantern slide is utilized to replace described pending lantern slide.
The technical scheme that the application embodiment of the present invention provides, every pending lantern slide for PowerPoint document, contents of object in pending lantern slide is filled in the object-oriented framework of the template lantern slide respective type determined, obtain processed lantern slide, and utilize processed lantern slide to replace pending lantern slide, so not only change the Background of PowerPoint document, theme color, also changed the format structure in PowerPoint document lantern slide simultaneously, make the format structure of whole PowerPoint document, Background, the comparison match such as theme color, reach more preferably bandwagon effect, improve Consumer's Experience.
In order to make those skilled in the art be more fully understood that the technical scheme in the embodiment of the present invention, below in conjunction with the accompanying drawing in the embodiment of the present invention, technical scheme in the embodiment of the present invention is clearly and completely described, obviously, described embodiment is only a part of embodiment of the present invention, rather than whole embodiments.Based on the embodiment in the present invention, the every other embodiment that those of ordinary skill in the art obtain under not making creative work premise, broadly fall into the scope of protection of the invention.
Shown in Figure 1, for the implementing procedure figure of a kind of PowerPoint template replacing method that the embodiment of the present invention provides, the method may comprise steps of:
S110: receive user's template replacement instruction for pending PowerPoint document;
Pending PowerPoint document, makes for user, it is necessary to be replaced the document that template processes.When the bandwagon effect of the dissatisfied current presentation manuscript document of user, it is necessary to this PowerPoint document is replaced template and processes, it is possible to send template replacement instruction.In actual applications, it is possible to providing a quick botton in the menu of PowerPoint, user clicks on, and can send template replacement instruction.After receiving user's template replacement instruction for pending PowerPoint document, continue executing with the operation of step S120.
S120: according to described template replacement instruction, it is determined that target PowerPoint template;
It is understandable that, replacing for PowerPoint template, need in PowerPoint system, pre-set a template base, this template base can be saved on local terminal when installing PowerPoint software simultaneously, it is also possible to is stored in PowerPoint server end, after client receives template replacement instruction, by obtaining corresponding PowerPoint template with the mutual of server end, or template replacement operation can directly complete at server end.Template base can comprise the PowerPoint template of polytype, multiple pattern, and certainly, these templates can be that system operation personnel preset setting, it is also possible to is that user oneself creates.
In actual applications, it is determined that the method for target PowerPoint template can include but not limited to following three kinds:
The first: is when user has for the demand of the replacing template of PowerPoint document, a PowerPoint template can be specified from template base, in this case, template replacement instruction carries PowerPoint Template Information, after the executive agent of the embodiment of the present invention receives template replacement instruction, it is possible to directly the PowerPoint template specified by user is defined as target PowerPoint template.
The second: user has no way of selecting for the numerous PowerPoint templates in template base, can according to certain matching process, as similar in characteristics of objects, object type is mutually equal, the multiple PowerPoint templates matched with pending PowerPoint document are found out from template base, and these PowerPoint templates are showed user in default a kind of mode (such as thumbnail mode), to be selected by user, further according to the selection instruction of user, it is determined that target PowerPoint template.
The third: user need not select, after receiving the template replacement instruction of user, by certain matching process, find out the PowerPoint template matched most with pending PowerPoint document, and it can be used as target PowerPoint template.
In a kind of detailed description of the invention of the present invention, this step may comprise steps of:
Step one: according to described template replacement instruction, extract described pending PowerPoint document package containing object-type information;
Step 2: select a PowerPoint template comprising the object-type information extracted to some extent as target PowerPoint template from default template base.
For convenience of description, above-mentioned two step is combined illustrate.
It is understood that PowerPoint document is including at least a lantern slide, every lantern slide is made up of specific object, and object type can have the types such as text box, picture, chart.According to template replacement instruction, extract all object-type information that pending PowerPoint document comprises, and the object-type information extracted is compared with the object-type information that the PowerPoint template in default template base comprises, determine the PowerPoint template including at least the object-type information extracted, and from these qualified PowerPoint templates, select one as target PowerPoint template.Can randomly choose, it is also possible to these qualified PowerPoint templates are showed user, user after specifying, using the PowerPoint template specified by user as target PowerPoint template.According to the target PowerPoint template that object-type information is determined, it is possible to pending PowerPoint document, there is stronger matching.
Such as, from pending PowerPoint document extract object-type information have three kinds, text box, picture and subtype, in this case, it is determined that target PowerPoint template be also required to include at least these three object type.In actual applications, it is possible to the object type of PowerPoint document is carried out more careful division, as text box being divided into horizontally-arranged text box, vertical setting of types text box etc., so can determine that the target PowerPoint template more mated.
Certainly, those skilled in the art can also according to other features of PowerPoint document, such as the number etc. of same type object, it is determined that target PowerPoint template, the present invention is without limitation.
By step S110 and step S120, it is thus achieved that pending PowerPoint document and target PowerPoint template, continue executing with the operation of step S130.
S130: for each pending lantern slide of pending PowerPoint document, performs lantern slide replacement operation;
Concrete, may comprise steps of for each pending lantern slide replacement operation, shown in Figure 2:
S131: according to preset matching algorithm, calculates the object matching degree of every lantern slide and pending lantern slide in described target PowerPoint template;
It is understood that determined target PowerPoint template comprises multiple lantern slides, the possible difference of object that every lantern slide comprises, there is different format structures.For pending lantern slide, it is necessary to determine, in target PowerPoint template, the lantern slide matched with it.The matching algorithm preset can be passed through, calculate the object matching degree of every lantern slide and pending lantern slide in target PowerPoint template.
In a kind of detailed description of the invention of the present invention, it is possible to according to the number of same type object in different lantern slides, calculate the object matching degree of every lantern slide and described pending lantern slide in described target PowerPoint template.
For any two lantern slides, if these two lantern slides have identical object type, then the number of same type object is more many, it was shown that the object matching degree of these two lantern slides is more high.Such as, lantern slide 1 contrasts with lantern slide 2, lantern slide 3 respectively, lantern slide 1 has 3, picture, text box 4, lantern slide 2 has 1, picture, text box 2, lantern slide 3 has 3, picture, text box 3, then lantern slide 1 is 3 with the number of lantern slide 2 same type object, and the number of lantern slide 1 and lantern slide 3 same type object is 6, and the object matching degree of lantern slide 1 and lantern slide 3 is higher than the object matching degree with lantern slide 2.
Concrete, in target PowerPoint template, every lantern slide can utilize formula with the object matching degree of pending lantern slide: in the number sum of same type object/pending lantern slide, the total number of object calculates and obtains.Compare with the object of every lantern slide in target PowerPoint template by pending lantern slide, obtain pending lantern slide relative to the number of the same type object of every lantern slide in target PowerPoint template, by being divided by with the total number of object in pending lantern slide, obtain the object matching degree of every lantern slide and pending lantern slide in target PowerPoint template.
In the another kind of detailed description of the invention of the present invention, can also according to the similarity degree of characteristics of objects in different lantern slides, calculating the object matching degree of every lantern slide and pending lantern slide in described target PowerPoint template, described characteristics of objects comprises text box size, dimension of picture size, chart size size.
For any two lantern slides, the characteristics of objects in these two lantern slides can be extracted, such as text box size, dimension of picture size, chart size size etc., the numerical value that the characteristics of objects of same type object characterizes is compared, obtain the similarity of the characteristics of objects of each type object, the characteristics of objects Similarity-Weighted of different object is sued for peace or weighting is multiplied and can obtain object matching degree.
Certainly, the scheme that those skilled in the art can also pass through the embodiment of the present invention and provide obtains other computing formula, obtains the object matching degree of every lantern slide and pending lantern slide in target PowerPoint template thus calculating.
S132: lantern slide the highest with the object matching degree of described pending lantern slide in described target PowerPoint template is defined as template lantern slide;
By step S131, calculate and obtain the object matching degree of every lantern slide and pending lantern slide in target PowerPoint template, lantern slide the highest for matching degree is defined as template lantern slide, continues executing with the operation of step S133.
S133: according to the object type in described pending lantern slide, is filled in described template lantern slide by the contents of object in described pending lantern slide in the object-oriented framework of respective type, obtains processed lantern slide;
Template lantern slide is the lantern slide mated the most with pending lantern slide in PowerPoint template, the object wherein comprised exists with object-oriented framework form, pending lantern slide and in processed lantern slide logical relation between each object can pass through to extract characteristics of objects and obtain.According to the object type in pending lantern slide, contents of object in pending lantern slide is filled in the object-oriented framework of template lantern slide respective type, obtaining processed lantern slide, certainly, processed lantern slide contains the Background in template lantern slide and theme color.
For convenience of understanding, illustrate for the processed lantern slide schematic diagram of Fig. 3 a pending lantern slide schematic diagram and Fig. 3 b.
The object comprised in the pending lantern slide schematic diagram of Fig. 3 a is respectively as follows: two pictures, two text boxes comprising word, extract characteristics of objects, the logical relation between word in picture and text box can be obtained, according to the object type in pending lantern slide, two pictures are filled into respectively in the framework of picture/mb-type of template lantern slide, and according to logical relation between word in picture and text box, word content in two text boxes is filled in the framework of text box type of template lantern slide respectively, obtain the lantern slide shown in the processed lantern slide schematic diagram of Fig. 3 b.Therefrom visible, pending lantern slide background is more dull, and layout is in disorder, and processed lantern slide background is exquisite, and layout comparison is reasonable.
In a kind of detailed description of the invention of the present invention, this step may comprise steps of:
Extract the contents of object in described pending lantern slide;
Determine the object type that described contents of object is corresponding;
Described contents of object is filled in described template lantern slide in the object-oriented framework of respective type, obtains processed lantern slide.
Contents of object, is the content specifically comprised in object, the word in text box.Contents of object in pending lantern slide is extracted, and determines the object type corresponding with this contents of object, contents of object is filled in template lantern slide in the object-oriented framework of respective type, it is thus achieved that processed lantern slide.
S134: utilize obtained processed lantern slide to replace described pending lantern slide.
When all pending lantern slides of PowerPoint document replace with corresponding processed lantern slide, namely complete the replacing of PowerPoint template.
The technical scheme that the application embodiment of the present invention provides, every pending lantern slide for PowerPoint document, contents of object in pending lantern slide is filled in the object-oriented framework of the template lantern slide respective type determined, obtain processed lantern slide, and utilize processed lantern slide to replace pending lantern slide, so not only change the Background of PowerPoint document, theme color, also changed the format structure in PowerPoint document lantern slide simultaneously, make the format structure of whole PowerPoint document, Background, the comparison match such as theme color, reach more preferably bandwagon effect, improve Consumer's Experience.
Corresponding to above method embodiment, the embodiment of the present invention additionally provides a kind of PowerPoint template replacement device, and described in Fig. 4, this device can include with lower module:
Change command reception module 210, for receiving user's template replacement instruction for pending PowerPoint document;
To Template determines module 220, for according to described template replacement instruction, it is determined that target PowerPoint template;
Module 230 changed by lantern slide, for each the pending lantern slide for described pending PowerPoint document, performs lantern slide replacement operation.
Wherein, module 230 changed by described lantern slide can also include following submodule, shown in Figure 5:
Matching degree calculating sub module 231, for calculating the object matching degree of every lantern slide and pending lantern slide in described target PowerPoint template;
Submodule 232 determined by template lantern slide, for lantern slide the highest with the object matching degree of described pending lantern slide in described target PowerPoint template is defined as template lantern slide;
Processed lantern slide obtains submodule 233, for according to the object type in described pending lantern slide, being filled in described template lantern slide by the contents of object in described pending lantern slide in the object-oriented framework of respective type, obtain processed lantern slide;
Submodule 234 replaced by lantern slide, for utilizing obtained processed lantern slide to replace described pending lantern slide.
The device that the application embodiment of the present invention provides, every pending lantern slide for PowerPoint document, contents of object in pending lantern slide is filled in the object-oriented framework of the template lantern slide respective type determined, obtain processed lantern slide, and utilize processed lantern slide to replace pending lantern slide, so not only change the Background of PowerPoint document, theme color, also changed the format structure in PowerPoint document lantern slide simultaneously, make the format structure of whole PowerPoint document, Background, the comparison match such as theme color, reach more preferably bandwagon effect, improve Consumer's Experience.
In a kind of detailed description of the invention of the present invention, described To Template determines module 220, it is possible to include following submodule:
Object-type information extracts submodule, for according to described template replacement instruction, extract described pending PowerPoint document package containing object-type information;
To Template determines submodule, for selecting a PowerPoint template comprising the object-type information extracted to some extent as target PowerPoint template from default template base.
In a kind of detailed description of the invention of the present invention, described matching degree calculating sub module 231, specifically for:
According to the number of same type object in different lantern slides, calculate the object matching degree of every lantern slide and described pending lantern slide in described target PowerPoint template.
In a kind of detailed description of the invention of the present invention, described matching degree calculating sub module 231, specifically for:
According to the similarity degree of characteristics of objects in different lantern slides, calculating the object matching degree of every lantern slide and pending lantern slide in described target PowerPoint template, described characteristics of objects comprises text box size, dimension of picture size, chart size size.
In a kind of detailed description of the invention of the present invention, described processed lantern slide obtains submodule 233, it is possible to include with lower unit:
Contents of object extraction unit, for extracting the contents of object in described pending lantern slide;
Object type determines unit, for determining the object type that described contents of object is corresponding;
Processed lantern slide obtains unit, for being filled in described template lantern slide by described contents of object in the object-oriented framework of respective type, obtains processed lantern slide.
It should be noted that, in this article, the relational terms of such as first and second or the like is used merely to separate an entity or operation with another entity or operating space, and not necessarily requires or imply the relation that there is any this reality between these entities or operation or sequentially.And, term " includes ", " comprising " or its any other variant are intended to comprising of nonexcludability, so that include the process of a series of key element, method, article or equipment not only include those key elements, but also include other key elements being not expressly set out, or also include the key element intrinsic for this process, method, article or equipment.When there is no more restriction, statement " including ... " key element limited, it is not excluded that there is also other identical element in including the process of described key element, method, article or equipment.
Each embodiment in this specification all adopts relevant mode to describe, between each embodiment identical similar part mutually referring to, what each embodiment stressed is the difference with other embodiments.Especially for device embodiment, owing to it is substantially similar to embodiment of the method, so what describe is fairly simple, relevant part illustrates referring to the part of embodiment of the method.
One of ordinary skill in the art will appreciate that all or part of step realizing in said method embodiment can be by the hardware that program carrys out instruction relevant and completes, described program can be stored in computer read/write memory medium, the storage medium obtained designated herein, as: ROM/RAM, magnetic disc, CD etc..
The foregoing is only presently preferred embodiments of the present invention, be not intended to limit protection scope of the present invention.All make within the spirit and principles in the present invention any amendment, equivalent replacement, improvement etc., be all contained in protection scope of the present invention.

Claims (10)

1. a PowerPoint template replacing method, it is characterised in that including:
Receive user's template replacement instruction for pending PowerPoint document;
According to described template replacement instruction, it is determined that target PowerPoint template;
For each pending lantern slide of described pending PowerPoint document, perform following operation:
According to preset matching algorithm, calculate the object matching degree of every lantern slide and pending lantern slide in described target PowerPoint template;
Lantern slide the highest with the object matching degree of described pending lantern slide in described target PowerPoint template is defined as template lantern slide;
According to the object type in described pending lantern slide, the contents of object in described pending lantern slide is filled in described template lantern slide in the object-oriented framework of respective type, obtains processed lantern slide;
Obtained processed lantern slide is utilized to replace described pending lantern slide.
2. method according to claim 1, it is characterised in that described according to described template replacement instruction, it is determined that target PowerPoint template, including:
According to described template replacement instruction, extract described pending PowerPoint document package containing object-type information;
Select a PowerPoint template comprising the object-type information extracted to some extent as target PowerPoint template from default template base.
3. method according to claim 1, it is characterised in that described basis presets the first matching algorithm, calculates the object matching degree of every lantern slide and pending lantern slide in described target PowerPoint template, including:
According to the number of same type object in different lantern slides, calculate the object matching degree of every lantern slide and described pending lantern slide in described target PowerPoint template.
4. method according to claim 1, it is characterised in that described basis presets the first matching algorithm, calculates the object matching degree of every lantern slide and pending lantern slide in described target PowerPoint template, including:
According to the similarity degree of characteristics of objects in different lantern slides, calculating the object matching degree of every lantern slide and pending lantern slide in described target PowerPoint template, described characteristics of objects comprises text box size, dimension of picture size, chart size size.
5. method according to claim 1, it is characterized in that, described according to the object type in described pending lantern slide, the contents of object in described pending lantern slide is filled in described template lantern slide in the object-oriented framework of respective type, obtain processed lantern slide, including:
Extract the contents of object in described pending lantern slide;
Determine the object type that described contents of object is corresponding;
Described contents of object is filled in described template lantern slide in the object-oriented framework of respective type, obtains processed lantern slide.
6. a PowerPoint template replacement device, it is characterised in that including:
Change command reception module, for receiving user's template replacement instruction for pending PowerPoint document;
To Template determines module, for according to described template replacement instruction, it is determined that target PowerPoint template;
Module changed by lantern slide, for each the pending lantern slide for described pending PowerPoint document, performs lantern slide replacement operation, and wherein, described lantern slide is changed module and included:
Matching degree calculating sub module, for calculating the object matching degree of every lantern slide and pending lantern slide in described target PowerPoint template;
Submodule determined by template lantern slide, for lantern slide the highest with the object matching degree of described pending lantern slide in described target PowerPoint template is defined as template lantern slide;
Processed lantern slide obtains submodule, for according to the object type in described pending lantern slide, being filled in described template lantern slide by the contents of object in described pending lantern slide in the object-oriented framework of respective type, obtain processed lantern slide;
Submodule replaced by lantern slide, for utilizing obtained processed lantern slide to replace described pending lantern slide.
7. device according to claim 6, it is characterised in that described To Template determines module, including:
Object-type information extracts submodule, for according to described template replacement instruction, extract described pending PowerPoint document package containing object-type information;
To Template determines submodule, for selecting a PowerPoint template comprising the object-type information extracted to some extent as target PowerPoint template from default template base.
8. device according to claim 6, it is characterised in that described matching degree calculating sub module, specifically for:
According to the number of same type object in different lantern slides, calculate the object matching degree of every lantern slide and described pending lantern slide in described target PowerPoint template.
9. device according to claim 6, it is characterised in that described matching degree calculating sub module, specifically for:
According to the similarity degree of characteristics of objects in different lantern slides, calculating the object matching degree of every lantern slide and pending lantern slide in described target PowerPoint template, described characteristics of objects comprises text box size, dimension of picture size, chart size size.
10. device according to claim 6, it is characterised in that described processed lantern slide obtains submodule, including:
Contents of object extraction unit, for extracting the contents of object in described pending lantern slide;
Object type determines unit, for determining the object type that described contents of object is corresponding;
Processed lantern slide obtains unit, for being filled in described template lantern slide by described contents of object in the object-oriented framework of respective type, obtains processed lantern slide.
CN201410820947.7A 2014-12-23 2014-12-23 A kind of PowerPoint template replacing method and device Active CN105786784B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410820947.7A CN105786784B (en) 2014-12-23 2014-12-23 A kind of PowerPoint template replacing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410820947.7A CN105786784B (en) 2014-12-23 2014-12-23 A kind of PowerPoint template replacing method and device

Publications (2)

Publication Number Publication Date
CN105786784A true CN105786784A (en) 2016-07-20
CN105786784B CN105786784B (en) 2018-10-16

Family

ID=56378509

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410820947.7A Active CN105786784B (en) 2014-12-23 2014-12-23 A kind of PowerPoint template replacing method and device

Country Status (1)

Country Link
CN (1) CN105786784B (en)

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108121693A (en) * 2016-11-29 2018-06-05 珠海金山办公软件有限公司 A kind of lantern slide beautification method and device
CN108268436A (en) * 2016-12-30 2018-07-10 珠海金山办公软件有限公司 A kind of lantern slide beautifies matched method and device
CN108269295A (en) * 2016-12-30 2018-07-10 珠海金山办公软件有限公司 The method and device that a kind of lantern slide subject color is intelligently quoted
CN110196917A (en) * 2019-05-30 2019-09-03 厦门一品威客网络科技股份有限公司 Personalized LOGO format method for customizing, system and storage medium
CN110390087A (en) * 2018-04-20 2019-10-29 成都野望数码科技有限公司 A kind of image processing method and device applied to PowerPoint
CN110705242A (en) * 2019-09-30 2020-01-17 北京金山安全软件有限公司 Method and device for manufacturing slide template and electronic equipment
CN111553136A (en) * 2019-02-11 2020-08-18 珠海金山办公软件有限公司 Method and device for generating demonstration document template and electronic equipment
CN111930976A (en) * 2020-07-16 2020-11-13 平安科技(深圳)有限公司 Presentation generation method, device, equipment and storage medium
CN112528604A (en) * 2019-09-04 2021-03-19 珠海金山办公软件有限公司 Method, system, storage medium and terminal for automatic image-text typesetting
CN113254125A (en) * 2021-05-12 2021-08-13 北京字跳网络技术有限公司 Information display method and device and electronic equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050223314A1 (en) * 2004-03-31 2005-10-06 Satyam Computer Services Inc. System and method for automatic generation of presentations based on agenda
CN101046808A (en) * 2006-03-31 2007-10-03 株式会社理光 File process system and method
US7577905B2 (en) * 2005-06-13 2009-08-18 Microsoft Corporation Applying a design to a slide using equivalent layouts
CN103279259A (en) * 2012-03-12 2013-09-04 微软公司 Providing theme variations in a user interface
CN103714113A (en) * 2012-10-02 2014-04-09 波音公司 Panoptic visualization document access control

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050223314A1 (en) * 2004-03-31 2005-10-06 Satyam Computer Services Inc. System and method for automatic generation of presentations based on agenda
US7577905B2 (en) * 2005-06-13 2009-08-18 Microsoft Corporation Applying a design to a slide using equivalent layouts
CN101046808A (en) * 2006-03-31 2007-10-03 株式会社理光 File process system and method
CN103279259A (en) * 2012-03-12 2013-09-04 微软公司 Providing theme variations in a user interface
CN103714113A (en) * 2012-10-02 2014-04-09 波音公司 Panoptic visualization document access control

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108121693A (en) * 2016-11-29 2018-06-05 珠海金山办公软件有限公司 A kind of lantern slide beautification method and device
CN108268436B (en) * 2016-12-30 2021-08-20 珠海金山办公软件有限公司 Method and device for beautifying and matching slides
CN108268436A (en) * 2016-12-30 2018-07-10 珠海金山办公软件有限公司 A kind of lantern slide beautifies matched method and device
CN108269295A (en) * 2016-12-30 2018-07-10 珠海金山办公软件有限公司 The method and device that a kind of lantern slide subject color is intelligently quoted
CN108269295B (en) * 2016-12-30 2021-09-24 珠海金山办公软件有限公司 Method and device for intelligently quoting theme colors of slides
CN110390087A (en) * 2018-04-20 2019-10-29 成都野望数码科技有限公司 A kind of image processing method and device applied to PowerPoint
CN111553136A (en) * 2019-02-11 2020-08-18 珠海金山办公软件有限公司 Method and device for generating demonstration document template and electronic equipment
CN110196917A (en) * 2019-05-30 2019-09-03 厦门一品威客网络科技股份有限公司 Personalized LOGO format method for customizing, system and storage medium
CN112528604A (en) * 2019-09-04 2021-03-19 珠海金山办公软件有限公司 Method, system, storage medium and terminal for automatic image-text typesetting
CN110705242A (en) * 2019-09-30 2020-01-17 北京金山安全软件有限公司 Method and device for manufacturing slide template and electronic equipment
CN111930976A (en) * 2020-07-16 2020-11-13 平安科技(深圳)有限公司 Presentation generation method, device, equipment and storage medium
CN111930976B (en) * 2020-07-16 2024-05-28 平安科技(深圳)有限公司 Presentation generation method, device, equipment and storage medium
CN113254125A (en) * 2021-05-12 2021-08-13 北京字跳网络技术有限公司 Information display method and device and electronic equipment

Also Published As

Publication number Publication date
CN105786784B (en) 2018-10-16

Similar Documents

Publication Publication Date Title
CN105786784A (en) PowerPoint template replacing method and device
US10831819B2 (en) Hue-based color naming for an image
US9135719B1 (en) Color name generation from images and color palettes
US9633448B1 (en) Hue-based color naming for an image
US10554803B2 (en) Method and apparatus for generating unlocking interface, and electronic device
CN105740213A (en) Presentation template providing method and device
WO2015200505A1 (en) Color name generation from images and color palettes
CN104428792A (en) Parameter selection and coarse localization of regions of interest for MSER processing
CN110392904B (en) Method for dynamic image color remapping using alpha blending
EP3618000A1 (en) Method and apparatus for generating file colour matching solution
CN107766349B (en) Method, device, equipment and client for generating text
US20140052763A1 (en) Information processing device, information processing method and computer program product
US9563973B2 (en) Color selector for desktop publishing
CN109947857A (en) Method for exhibiting data and device, storage medium, processor
CN104462044A (en) Recognizing and editing method and device of tabular images
CN105139342A (en) Method and device for zooming pictures
CN104679391A (en) Icon display method and device of smart watch
CN105045587A (en) Picture display method and apparatus
CN105094615A (en) Information processing method and electronic equipment
CN103955713A (en) Icon recognition method and device
US20150317075A1 (en) Method and device for providing virtual input keyboard
US10698943B2 (en) Method and apparatus for recognizing slide
EP3161830A1 (en) Method for processing a video scene and corresponding device
JP7264171B2 (en) Image retrieval system, image retrieval method, and program
JP6194781B2 (en) Image processing apparatus and program

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information

Address after: Jinshan software building No. 8 Jingshan Hill Road, Lane 519015 Lianshan Jida Zhuhai city in Guangdong Province

Applicant after: Zhuhai Kingsoft Office Software Co., Ltd.

Applicant after: Beijing Kingsoft office software Limited by Share Ltd

Applicant after: GUANGZHOU JINSHAN JINSHAN MOBILE TECHNOLOGY CO., LTD.

Address before: Jinshan software building No. 8 Jingshan Hill Road, Lane 519015 Lianshan Jida Zhuhai city in Guangdong Province

Applicant before: Zhuhai Kingsoft Office Software Co., Ltd.

Applicant before: Beijing Kingsoft WPS Office Co., Ltd.

Applicant before: GUANGZHOU JINSHAN JINSHAN MOBILE TECHNOLOGY CO., LTD.

COR Change of bibliographic data
GR01 Patent grant
GR01 Patent grant