Disclosure of Invention
The method and the device for slide template proportional configuration provided by the embodiment of the invention solve the technical problem of low experience caused by the fact that the typesetting layout automatically becomes unattractive and can be deformed after the user modifies the page size of the presentation at present.
The method for configuring the slide template proportion provided by the embodiment of the invention comprises the following steps:
determining that a user document meets a preset beautification specification, and acquiring a user document size switching instruction;
according to the switching instruction, the user document is subjected to corresponding size according to the size to be replaced, and a pre-made association template is searched;
and switching the page of the user document into the searched associated template.
Optionally, determining that the user document meets a preset beautification specification, and before obtaining the user document size switching instruction, the method further includes:
pre-making the associated templates corresponding to a plurality of sizes, and marking the associated templates as the same group of associated templates;
and acquiring the user document which is made by the user according to a preset mode and accords with the preset beautification standard.
Optionally, the acquiring the user document which is made by the user according to a preset mode and meets the preset beautification specification specifically includes:
acquiring the user document which is made by a user according to a slide or a template of a preset format and accords with the preset beautification specification;
or
And acquiring the user document which is manufactured by the user through preset manufacturing software and accords with the preset beautifying specification.
Optionally, the size of the user document is corresponded according to the size to be replaced according to the switching instruction, and the searching of the pre-made association template specifically includes:
and searching the associated templates with the corresponding sizes of the slide film pages one by one according to the switching instruction for the user document according to the size to be replaced.
Optionally, the size of the user document is corresponded according to the size to be replaced according to the switching instruction, and the searching of the pre-made association template specifically includes:
and searching the associated template with the corresponding size of the whole set of templates according to the size to be replaced for the user document according to the switching instruction.
The device for slide template proportion configuration provided by the embodiment of the invention comprises:
the determining and obtaining unit is used for determining that the user document accords with a preset beautification standard and obtaining a user document size switching instruction;
the searching unit is used for searching the pre-made associated template according to the corresponding size of the user document according to the size to be replaced by the switching instruction;
and the switching unit is used for switching the page of the user document into the searched associated template.
Optionally, the apparatus for slide template scale configuration further includes:
the manufacturing unit is used for manufacturing the associated templates corresponding to a plurality of sizes in advance and marking the associated templates as the same group of associated templates;
and the obtaining subunit is used for obtaining the user document which is made by the user according to a preset mode and accords with the preset beautifying specification.
Optionally, the manufacturing unit specifically includes:
the first acquisition subunit is used for acquiring the user document which is made by a user according to a slide or template of a preset format and accords with the preset beautification specification;
or
And the second acquisition subunit is used for acquiring the user document which is manufactured by the user through preset manufacturing software and accords with the preset beautifying specification.
Optionally, the searching unit specifically includes:
and the first searching subunit is used for searching the associated templates with the corresponding sizes of the slide pages one by one according to the switching instruction for the user document according to the size to be replaced.
Optionally, the searching unit specifically includes:
and the second searching subunit is used for searching the associated template with the corresponding size of the whole set of templates for the user document according to the size to be replaced according to the switching instruction.
According to the technical scheme, the embodiment of the invention has the following advantages:
the embodiment of the invention provides a method and a device for slide template proportion configuration, wherein the method for slide template proportion configuration comprises the following steps: determining that the user document meets a preset beautification standard, and acquiring a user document size switching instruction; according to the switching instruction, carrying out corresponding size on the user document according to the size to be replaced, and searching a pre-made association template; and switching the page of the user document into the searched associated template. In the embodiment, a user document size switching instruction is obtained by determining that the user document meets a preset beautification standard; according to the switching instruction, carrying out corresponding size on the user document according to the size to be replaced, and searching a pre-made association template; the page of the user document is switched into the searched associated template, so that the technical problem of low experience caused by the fact that the typesetting layout automatically becomes unattractive and can be deformed after the user modifies the page size of the presentation at present is solved.
Detailed Description
The method and the device for slide template proportional configuration provided by the embodiment of the invention solve the technical problem of low experience caused by the fact that the typesetting layout automatically becomes unattractive and can be deformed after the user modifies the page size of the presentation at present.
In order to make the objects, features and advantages of the present invention more obvious and understandable, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention, and it is obvious that the embodiments described below are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Referring to fig. 1, an embodiment of a method for configuring a slide template scale according to an embodiment of the present invention includes:
101. determining that the user document meets a preset beautification standard, and acquiring a user document size switching instruction;
in this embodiment, when the user does not need to perform typesetting again for size adjustment after modifying the page size of the presentation, it is first necessary to determine that the user document meets the preset beautification specification, and obtain a user document size switching instruction.
102. According to the switching instruction, carrying out corresponding size on the user document according to the size to be replaced, and searching a pre-made association template;
when the user document is determined to accord with the preset beautification specification, after a user document size switching instruction is obtained, the corresponding size of the user document is required to be carried out according to the switching instruction, and the pre-made associated template is searched.
103. And switching the page of the user document into the searched associated template.
And when the user document is subjected to corresponding size according to the size to be replaced according to the switching instruction and the pre-made associated template is searched, switching the page of the user document into the searched associated template.
In the embodiment, a user document size switching instruction is obtained by determining that the user document meets a preset beautification standard; according to the switching instruction, carrying out corresponding size on the user document according to the size to be replaced, and searching a pre-made association template; the page of the user document is switched into the searched associated template, so that the technical problem of low experience caused by the fact that the typesetting layout automatically becomes unattractive and can be deformed after the user modifies the page size of the presentation at present is solved.
In the above, a detailed description is given to the process of the method for slide template scale configuration, and in the following, an additional process is described in detail, referring to fig. 2, an embodiment of the method for slide template scale configuration according to the present invention includes:
201. pre-making associated templates corresponding to a plurality of sizes, and marking the associated templates as the same group of associated templates;
in this embodiment, after the user modifies the page size of the presentation, before performing size adjustment without typesetting again, associated templates corresponding to a plurality of sizes need to be pre-manufactured and identified as the same group of associated templates.
202. Acquiring a user document which is made by a user according to a preset mode and accords with preset beautification specifications;
after the associated templates corresponding to the multiple sizes are pre-made and identified as the associated templates of the same group, a user document which is made by a user according to a preset mode and accords with preset beautification specifications needs to be acquired.
The user document which is manufactured by the user according to the preset mode and accords with the preset beautification specification can be obtained by the user according to a slide or a template of a preset format or by the user through preset manufacturing software.
203. Determining that the user document meets a preset beautification standard, and acquiring a user document size switching instruction;
in this embodiment, after the user modifies the page size of the presentation, when the user does not need to perform typesetting again for size adjustment, it is necessary to determine that the user document meets the preset beautification specification, and obtain a user document size switching instruction.
204. Searching the associated templates of the corresponding sizes of the slide pages one by one according to the switching instruction for the user document according to the size to be replaced;
when the user document is determined to accord with the preset beautification specification, after a user document size switching instruction is obtained, searching for the associated templates of the corresponding sizes of the slide pages one by one according to the switching instruction.
205. And searching the associated templates with the corresponding sizes of the whole set of templates according to the sizes to be replaced for the user documents according to the switching instruction.
When the user document is determined to accord with the preset beautification specification, after a user document size switching instruction is obtained, searching for the associated template with the corresponding size of the whole set of templates according to the size to be replaced for the user document according to the switching instruction is needed.
206. And switching the page of the user document into the searched associated template.
After step 204 or step 205, the page of the user document needs to be switched to the found associated template.
A specific application scenario is described below, and examples of the application scenario include:
1) slide sheets or set of templates of commonly used sizes are prefabricated (e.g. 16: 9,4: 3,9: 16, etc.) that are placed on the server or packaged locally, and a system that manages the association between slide pages of different sizes or sets of templates, which are in one-to-one correspondence, and identifies them as a set of associated templates.
2) The user creates a new document using a pre-made format, for example, 4: during or after production, the program provides an entry to switch the size of the slide pages of the current presentation, such as 9: 16 (scale adapted to the handset).
For example, the user document uses a template with size A in 1, the user changes the slide to size B, and the server side finds the same group of templates B associated with A.
3) After the size of the program is switched, the program is automatically typeset according to a pre-made template, and the realization mode is as follows:
a) finding out the corresponding slide pages one by one, and replacing the slide pages one by one;
b) matching the whole set of templates, finding matched pages in the set of templates, and replacing the pages one by one.
4) After finding the matching page, the utility model can be used.
In the embodiment, a user document size switching instruction is obtained by determining that the user document meets a preset beautification standard; according to the switching instruction, carrying out corresponding size on the user document according to the size to be replaced, and searching a pre-made association template; the page of the user document is switched into the searched associated template, so that the technical problem of low experience caused by the fact that the typesetting layout automatically becomes unattractive and can be deformed after the user modifies the page size of the presentation at present is solved.
Referring to fig. 3, an embodiment of an apparatus for slide template scale configuration according to an embodiment of the present invention includes:
a determining and acquiring unit 301, configured to determine that the user document meets a preset beautification specification, and acquire a user document size switching instruction;
a searching unit 302, configured to perform, according to the switching instruction, a corresponding size on the user document according to the size to be replaced, and search for a pre-made association template;
a switching unit 303, configured to switch a page of the user document into the found associated template.
In this embodiment, the determining and obtaining unit 301 determines that the user document meets the preset beautification specification, and obtains a user document size switching instruction; the searching unit 302 performs corresponding size on the user document according to the size to be replaced according to the switching instruction, and searches a pre-made association template; the switching unit 303 switches the page of the user document into the searched associated template, so as to solve the technical problem that the layout automatically becomes unattractive and can be deformed to cause low experience when the user modifies the page size of the presentation at present.
In the above, the units of the apparatus for slide template scale configuration are described in detail, and in the following, additional units are described in detail, referring to fig. 4, another embodiment of the apparatus for slide template scale configuration provided in the embodiment of the present invention includes:
a making unit 401, configured to make association templates corresponding to multiple sizes in advance, and identify the association templates as a same group;
an obtaining unit 402, configured to obtain a user document that meets a preset beautification specification and is made by a user in a preset manner.
The obtaining unit 402 specifically includes:
the first obtaining subunit 4021, configured to obtain a user document that meets a preset beautification specification and is made by a user according to a slide or template of a preset layout;
or
The second obtaining subunit 4022 is configured to obtain a user document that is made by a user through preset making software and meets preset beautification specifications.
A determining and obtaining unit 403, configured to determine that the user document meets a preset beautification specification, and obtain a user document size switching instruction;
a searching unit 404, configured to perform, according to the switching instruction, a corresponding size on the user document according to the size to be replaced, and search for a pre-made association template;
the search unit 404 specifically includes:
a first searching subunit 4031, configured to search, according to the switching instruction, associated templates of corresponding sizes of slide pages one by one for the user document according to the size to be replaced.
And/or
The second searching subunit 4042 is configured to search, according to the switching instruction, the associated template of the size corresponding to the whole set of templates for the user document according to the size to be replaced.
A switching unit 405, configured to switch a page of the user document into the found associated template.
In this embodiment, the determining and obtaining unit 403 determines that the user document meets the preset beautification specification, and obtains a user document size switching instruction; the searching unit 404 performs corresponding size on the user document according to the size to be replaced according to the switching instruction, and searches a pre-made association template; the switching unit 405 switches the page of the user document into the searched associated template, and solves the technical problem that the layout automatically becomes unattractive and can be deformed to cause low experience after the user modifies the page size of the presentation at present.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the several embodiments provided in the present application, it should be understood that the disclosed system, apparatus and method may be implemented in other manners. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units is only one logical division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
The above-mentioned embodiments are only used for illustrating the technical solutions of the present invention, and not for limiting the same; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.