Document page number template setting and use method, device and electronic equipment

By acquiring and storing official document page number setting items, automatically loading and setting page number elements, the problem of low efficiency and inaccuracy in setting official document page numbers in the prior art is solved, and fast and accurate page number insertion is achieved.

CN113901757BActive Publication Date: 2024-10-25ZHUHAI KINGSOFT OFFICE SOFTWARE +2
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202111216609.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-10-19
Publication Date
2024-10-25
Estimated Expiration
2041-10-19

AI Technical Summary

Technical Problem

In the prior art, document page number setting is inefficient and inaccurate. Users need to manually adjust it multiple times, which leads to a cumbersome process and reduces the accuracy of the position.

Method used

By obtaining the setting items of the page number element, storing it as a document page number template, and loading it in the document program, the page number settings are automatically performed according to the setting items, including home page display status, character size and position settings, to avoid manual adjustments every time a page number is inserted.

Benefits of technology

It improves the efficiency and accuracy of document page number setting, reduces multiple adjustment operations, and ensures that page numbers meet the document format requirements.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113901757B_ABST
    Figure CN113901757B_ABST
Patent Text Reader

Abstract

Disclosed are a method, device and electronic device for setting and using a document page number template. The document page number template setting method comprises: obtaining a setting item of at least one page number element, the setting item comprising the name of the page number element and a first parameter value corresponding to the page number element; storing the setting item as a document page number template; loading the document page number template into a document program, so that when the document page number template is called, the page number is set according to the setting item of the page number element, so that the display of the page number meets the requirements of the document format, so that the document page number characters that meet the requirements can be quickly inserted, avoiding multiple adjustment operations, and improving the efficiency of document page number setting.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of office automation, and in particular to a method, device and electronic equipment for setting and using a document page number template. Background Art

[0002] In government agencies, organizations, and even companies, official documents are often needed to convey government policies and handle official business. In order to ensure the validity and integrity of official documents and facilitate the review, statistics, retrieval, printing and binding of official documents, the page numbering of official documents needs to comply with specified normative requirements.

[0003] In the prior art, the process for setting the page number of official documents is as follows: after the user inserts a page number text box for editing the document page number in the footer of the official document, the text wrapping property of the page number text box with the document page number edited is set to float above the text, drag it to an approximate position, and then insert a rectangular shape box, and then fine-tune the page number text box according to the height of the rectangular shape box.

[0004] It can be seen that since the position of the page number text box requires the user to manually adjust it multiple times, the steps for setting the document page number are cumbersome and inefficient. Moreover, since the adjustment accuracy is determined by the user's naked eye, the accuracy of the document page number position is reduced. Summary of the invention

[0005] In order to overcome the problems existing in the related art, the present invention provides a method, device and electronic device for setting and using a document page number template to solve the problem of low efficiency and inaccuracy in document page number setting in the prior art.

[0006] According to a first aspect of the present disclosure, a method for setting a document page number template is provided, comprising: obtaining a setting item of at least one page number element, the setting item comprising a name of the page number element and a first parameter value corresponding to the page number element; storing the setting item as a document page number template; loading the document page number template into a document program, so as to perform page number setting according to the setting item of the page number element when the document page number template is called.

[0007] In some embodiments, storing the setting item as an official document page number template includes: obtaining a second parameter value corresponding to the setting object of the page number element based on a first parameter value corresponding to the page number element; updating the setting item using the setting object corresponding to the page number element and the second parameter value corresponding to the setting object, and storing the updated setting item as an official document page number template.

[0008] In some embodiments, the method also includes: receiving information input for setting items of each page number element in the official document page number template as the first parameter value of the page number element; and / or obtaining pre-set default values ​​for the setting items of each page number element in the official document page number template as the first parameter value of the page number element.

[0009] In some embodiments, the setting items of at least one page number element include a first setting item for setting the display status of the first page number, and the first parameter value in the first setting item is used to indicate whether to display page number characters on the first page of the document when the official document page number template is called.

[0010] In some embodiments, the setting items of the at least one page number element include a second setting item for setting the size of page number characters, and the first parameter value in the second setting item is used to indicate the size of the page number characters when the official document page number template is called.

[0011] In some embodiments, the setting items of at least one page number element include a third setting item for setting the position of page number characters, wherein the page number characters include page number numbers and page number marks, and the first parameter value in the third setting item is used to set at least one of the following when the official document page number template is called: the distance between the page number number and the page number mark; the distance between the page number mark and the edge of the page block.

[0012] In some embodiments, obtaining the second parameter value corresponding to the setting object of the page number element based on the first parameter value corresponding to the page number element includes: obtaining at least one of the following items of a text box inserted in the footer as the second parameter value, wherein the text box includes the page number characters: the top margin of the text box; the left / right margin of the text box; and / or obtaining the font size of the space between the page number number and the page number mark as the second parameter value.

[0013] According to a second aspect of the present disclosure, a method for setting official document page numbers is provided, comprising: in response to receiving an instruction to insert an official document page number in a document to be processed, obtaining an official document page number template set according to any embodiment of the present disclosure; and displaying page number characters in a page of the document to be processed according to a setting item of at least one page number element in the official document page number template.

[0014] In some embodiments, displaying page number characters in the pages of the document to be processed according to the setting item includes: in response to the first parameter value in the first setting item being a first attribute value, displaying page number characters in the first page of the document to be processed; in response to the first parameter value of the first setting item being a second attribute value, not displaying page number characters in the first page of the document to be processed.

[0015] In some embodiments, the method further includes: before obtaining the official document page number template, clearing different attributes of the first page in the document to be processed.

[0016] In some embodiments, when the first parameter value in the third setting item is used to set the distance between the page number and the page number mark when the official document page number template is called, the page number characters are displayed in the page of the document to be processed according to the setting item, including: obtaining the distance information between the page number and the page number mark according to the first parameter value indicated by the third setting item; and displaying the page number and the page number mark in the page of the document to be processed according to the distance information.

[0017] In some embodiments, the setting item includes a third setting item for indicating a second parameter value, and when the second parameter value indicates the font size of the space between the page number and the page number mark, displaying the page number characters in the page of the document to be processed according to the setting item includes: setting a space of the font size indicated by the second parameter value between the page number and the page number mark, the font size being obtained in the following manner: converting the distance information between the page number and the page number mark into corresponding pounds, and determining the corresponding font size based on the pounds.

[0018] In some embodiments, when the first parameter value in the third setting item is used to set the distance between the page number mark and the edge of the page block when the official document page number template is called, the page number characters are displayed in the page of the document to be processed according to the setting item, including: inserting a text box in the footer, the text box including page number numbers and page number marks; obtaining first position information of the page number mark in the text box; obtaining second position information of the text box in the page according to the first position information and the first parameter value indicated by the third setting item; and setting the position of the text box according to the second position information.

[0019] In some embodiments, in response to the edge of the page body being the bottom edge of the page body, obtaining the first position information of the page number mark in the text box includes: obtaining the distance between the page number mark and the upper edge of the text box as the first position information; obtaining the second position information of the text box in the page according to the first position information and the parameter value indicated by the third setting item, including: obtaining the distance between the text box and the bottom edge of the page body according to the distance between the page number mark and the bottom edge of the page body and the first position information as the second position information.

[0020] In some embodiments, the setting item includes a third setting item for indicating a second parameter value. When the second parameter value indicates the top margin of the text box, displaying page number characters in the page of the document to be processed according to the setting item includes: setting the top edge of the text box to coincide with the bottom edge of the page block; and setting the distance between the top edge of the page number and the top edge of the text box according to the second parameter value indicated by the third setting item.

[0021] In some embodiments, the setting item includes a third setting item for indicating a second parameter value. When the second parameter value indicates the left / right margin of the text box, displaying page number characters in the page of the document to be processed according to the setting item includes: setting the left edge of the text box to coincide with the left edge of the page, or setting the right edge of the text box to coincide with the right edge of the page; when the left edge of the text box coincides with the left edge of the page, setting the distance between the left edge of the page number mark and the left edge of the text box according to the second parameter value indicated by the third setting item; when the right edge of the text box coincides with the right edge of the page, setting the distance between the right edge of the page number mark and the right edge of the text box according to the second parameter value indicated by the third setting item.

[0022] According to a third aspect of the present disclosure, a device for setting a document page number template is provided, comprising: a first acquisition unit, used to acquire a setting item of at least one page number element, the setting item including the page number element and a first parameter value corresponding to the page number element; a storage unit, used to store the setting item as a document page number template; and a loading unit, used to load the document page number template into a document program, so as to perform page number setting according to the setting item of the page number element when the document page number template is called.

[0023] In some embodiments, the storage unit is specifically used to: obtain a second parameter value corresponding to the setting object of the page number element based on a first parameter value corresponding to the page number element; update the setting item using the setting object corresponding to the page number element and the second parameter value corresponding to the setting object, and store the updated setting item as a document page number template.

[0024] In some embodiments, the device also includes a receiving unit for: receiving information input for setting items of each page number element in the official document page number template as a first parameter value of the page number element; and / or obtaining a pre-set default value for the setting items of each page number element in the official document page number template as the first parameter value of the page number element.

[0025] In some embodiments, the setting items of at least one page number element include a first setting item for setting the display status of the first page number, and the first parameter value in the first setting item is used to indicate whether to display page number characters on the first page of the document when the official document page number template is called.

[0026] In some embodiments, the setting items of the at least one page number element include a second setting item for setting the size of page number characters, and the first parameter value in the second setting item is used to indicate the size of the page number characters when the official document page number template is called.

[0027] In some embodiments, the setting items of at least one page number element include a third setting item for setting the position of page number characters, wherein the page number characters include page number numbers and page number marks, and the first parameter value in the third setting item is used to set at least one of the following when the official document page number template is called: the distance between the page number number and the page number mark; the distance between the page number mark and the edge of the page block.

[0028] In some embodiments, obtaining the second parameter value corresponding to the setting object of the page number element based on the first parameter value corresponding to the page number element includes: obtaining at least one of the following items of a text box inserted in the footer as the second parameter value, wherein the text box includes the page number characters: the top margin of the text box; the left / right margin of the text box; and / or obtaining the font size of the space between the page number number and the page number mark as the second parameter value.

[0029] According to a fourth aspect of the present disclosure, a device for using official document page numbers is provided, comprising: a second acquisition unit, for acquiring an official document page number template set according to any embodiment of the present disclosure in response to receiving an instruction to insert an official document page number in a document to be processed; a third acquisition unit, for acquiring a setting item of at least one page number element in the official document page number template; and a display unit, for displaying page number characters in a page of the document to be processed according to the setting item.

[0030] In some embodiments, the display unit is specifically used to: in response to the first parameter value in the first setting item being a first attribute value, display page number characters in the first page of the document to be processed; in response to the first parameter value in the first setting item being a second attribute value, not display page number characters in the first page of the document to be processed.

[0031] In some embodiments, the device further includes a clearing unit for clearing different attributes of the first page in the document to be processed before obtaining the official document page number template.

[0032] In some embodiments, when the first parameter value in the third setting item is used to set the distance between the page number and the page number mark when the official document page number template is called, the display unit is specifically used to: obtain the distance information between the page number and the page number mark according to the first parameter value indicated by the third setting item; and display the page number and the page number mark on the page of the document to be processed according to the distance information.

[0033] In some embodiments, the setting item includes a third setting item for indicating a second parameter value, and when the second parameter value indicates the font size of the space between the page number and the page number mark, displaying the page number characters in the page of the document to be processed according to the setting item includes: setting a space of the font size indicated by the second parameter value between the page number and the page number mark, the font size being obtained in the following manner: converting the distance information between the page number and the page number mark into corresponding pounds, and determining the corresponding font size based on the pounds.

[0034] In some embodiments, when the first parameter value in the third setting item is used to set the distance between the page number mark and the edge of the page block when the official document page number template is called, the display unit is specifically used to: insert a text box in the footer, the text box including page numbers and page number marks; obtain first position information of the page number mark in the text box; obtain second position information of the text box in the page according to the first position information and the first parameter value indicated by the third setting item; and set the position of the text box according to the second position information.

[0035] In some embodiments, in response to the edge of the page body being the bottom edge of the page body, obtaining the first position information of the page number mark in the text box includes: obtaining the distance between the page number mark and the upper edge of the text box as the first position information; obtaining the second position information of the text box in the page according to the first position information and the parameter value indicated by the third setting item, including: obtaining the distance between the text box and the bottom edge of the page body according to the distance between the page number mark and the bottom edge of the page body and the first position information as the second position information.

[0036] In some embodiments, the setting item includes a third setting item for indicating a second parameter value. When the second parameter value indicates the top margin of the text box, the display unit is specifically used to: set the top edge of the text box to coincide with the bottom edge of the page block; and set the distance between the top edge of the page number and the top edge of the text box according to the second parameter value indicated by the third setting item.

[0037] In some embodiments, the setting items include a third setting item for indicating a second parameter value. When the second parameter value indicates the left / right margin of the text box, the display unit is specifically used to: set the left edge of the text box to coincide with the left edge of the page body, or set the right edge of the text box to coincide with the right edge of the page body; when the left edge of the text box coincides with the left edge of the page body, set the distance between the left edge of the page number mark and the left edge of the text box according to the second parameter value indicated by the third setting item; when the right edge of the text box coincides with the right edge of the page body, set the distance between the right edge of the page number mark and the right edge of the text box according to the second parameter value indicated by the third setting item.

[0038] According to a fifth aspect of the present disclosure, an electronic device is provided, comprising a processor and a memory for storing executable instructions of the processor, wherein the instructions, when executed, implement the document page number setting method proposed in any embodiment of the present disclosure.

[0039] According to a fourth aspect of the present disclosure, a computer-readable storage medium is provided, wherein a computer program is stored in the computer-readable storage medium, and when the computer program is executed by a processor, the method for setting the page number of a document proposed in any embodiment of the present disclosure is implemented.

[0040] In the disclosed embodiment, by storing the setting items of at least one page number element to be set in an official document as an official document page number template, and loading the official document page number template into a document program, the page number element of the document to be processed is set according to the first parameter value corresponding to the page number element when the official document page number template is called, so that the display of the page number meets the requirements of the official document format, thereby quickly inserting official document page number characters that meet the requirements, avoiding multiple adjustment operations, and improving the efficiency and accuracy of official document page number setting.

[0041] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present specification. BRIEF DESCRIPTION OF THE DRAWINGS

[0042] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the specification and, together with the description, serve to explain the principles of the specification.

[0043] Figure 1 is a flow chart of a method for setting page numbers of official documents provided by at least one embodiment of the present disclosure;

[0044] Figure 2 is a schematic diagram of a document page number template in a document page number setting method proposed in at least one embodiment of the present disclosure;

[0045] Figure 3A It is a schematic diagram of the letter document layout;

[0046] Figure 3B It is a schematic diagram of the standard official document layout;

[0047] Figure 4 is a schematic diagram of a method for setting page numbers of official documents proposed in at least one embodiment of the present disclosure;

[0048] Figure 5 is a schematic diagram of another method for setting page numbers of official documents proposed in at least one embodiment of the present disclosure;

[0049] Figure 6 is a flow chart of a method for using document page numbers provided by at least one embodiment of the present disclosure;

[0050] Figure 7 is a structural schematic diagram of a document page number setting device provided by at least one embodiment of the present disclosure;

[0051] Figure 8 is a structural schematic diagram of a document page number using device provided by at least one embodiment of the present disclosure;

[0052] Fig. 9 is a structural diagram of an electronic device provided by at least one embodiment of the present disclosure. DETAILED DESCRIPTION

[0053] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present invention. Instead, they are merely examples of devices and methods consistent with some aspects of the embodiments of the present invention as detailed in the appended claims.

[0054] The terms used in the embodiments of the present invention are only for the purpose of describing specific embodiments of the present invention, and are not intended to limit the embodiments of the present invention. The singular forms of "a", "said" and "the" used in the embodiments of the present invention and the appended claims are also intended to include plural forms, unless the context clearly indicates other meanings. It should also be understood that the term "and / or" used herein refers to and includes any or all possible combinations of one or more associated listed items.

[0055] It should be understood that although the terms first, second, third, etc. may be used to describe various information in embodiments of the present invention, these information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other. For example, without departing from the scope of embodiments of the present invention, the first information may also be referred to as the second information, and similarly, the second information may also be referred to as the first information. Depending on the context, the word "if" as used herein may be interpreted as "at the time of" or "when" or "in response to determining".

[0056] Official documents are documents that conform to the official document format specified by national standards. In government agencies, official documents are often used to convey government policies and handle official business. In order to ensure the effectiveness and integrity of official documents and facilitate the review, statistics, retrieval, printing and binding of official documents, there are certain requirements for the standardization of official document page numbers. In different government agencies, official document page numbers are usually customized based on national standards to achieve a more accustomed visual effect in the unit. The common method is to insert a page number text box for editing official document page numbers in the footer of the official document, set the text wrapping property of the page number text box with the official document page number to float above the text, drag it to an approximate position, insert a rectangular shape box, and fine-tune the page number text box by the height of the rectangular shape box. Since the position of the page number text box requires the user to manually adjust it multiple times, the steps for setting the official document page number are cumbersome and inefficient, and since the adjustment accuracy is determined by the user's naked eye, the accuracy of the position of the official document page number is reduced.

[0057] In order to solve the above problems, the embodiments of the present disclosure provide a method, apparatus, device and storage medium for setting and using a document page number template to improve the efficiency and accuracy of users in setting document page numbers.

[0058] It should be noted that the document page number template setting method provided by the embodiment of the present disclosure can be applied to a server or an electronic device. In actual applications, the electronic device can be a smart phone, a tablet computer, a laptop computer, and the like.

[0059] The document page number template setting method disclosed in the present invention is described in detail below through embodiments.

[0060] Figure 1 FIG. 1 is a flowchart of a method for setting a document page number template provided by an embodiment of the present disclosure. Figure 1 As shown, the method may include steps 101-103.

[0061] In step 101, a setting item of at least one page number element is obtained.

[0062] The page number element is a page number element to be set in an official document, and the page number element may be a customized element related to the format of the page number characters, such as the display status of the first page number, the size of the page number characters, the position of the page number characters, etc. The setting item includes the name of the page number element and the parameter value corresponding to the page number element. Here, in order to distinguish it from other parameter values ​​mentioned later, the parameter value corresponding to the page number element may be referred to as the first parameter value.

[0063] Taking the display state of the page number element as the first page number as an example, the name of the page number element may be, for example, "first page number", and the corresponding first parameter value is used to indicate displaying the first page number or hiding the first page number.

[0064] In step 102, the setting items are stored as a document page number template.

[0065] In one example, an accessory file may be created in a user directory of a document program to store setting items of at least one page number element as a document page number template.

[0066] In step 103, after the official document page number template is loaded into the document program, an operation item regarding the official document page number can be added to the operation page of the document program. By operating the operation item, the official document page number template can be called and the page number can be inserted according to the official document page number template.

[0067] When it is detected that page numbers are inserted according to the official document page number template, since the first parameter values ​​corresponding to each page number element have been set in the corresponding source code when the official document page number template is used as a footer, when the footer is displayed, the page numbers can be directly inserted into the document according to the first parameter values ​​of each page number element set in the official document page number template, without the user having to adjust each page number element individually each time the page number is inserted.

[0068] In the disclosed embodiment, by storing the setting items of at least one page number element to be set in an official document as an official document page number template, and loading the official document page number template into a document program, the page number element of the document to be processed is set according to the first parameter value corresponding to the page number element when the official document page number template is called, so that the display of the page number meets the requirements of the official document format, thereby quickly inserting official document page number characters that meet the requirements, avoiding multiple adjustment operations, and improving the efficiency and accuracy of official document page number setting.

[0069] In one embodiment, the first parameter value corresponding to each page number element set in the setting item can be stored as a document page number template. When the document page number template is used, the first parameter value is converted into a second parameter value corresponding to the setting object of the page number element, and the document page number is inserted based on the second parameter value.

[0070] In another embodiment, the setting items may be stored as a document page number template in the following manner.

[0071] First, according to the first parameter value corresponding to the page number element, the second parameter value corresponding to the setting object of the page number element is obtained.

[0072] For example, in the case where page number insertion is achieved by inserting a text box in the footer, the setting object may be a text box containing page number characters, a page number digit in the page number characters, and a page number mark. Through the transformation relationship between the information of the page number element indicated by the first parameter value and the parameters of the text box, the second parameter value of the setting object corresponding to the first parameter value of the page number element may be obtained. Specifically, for example, the first parameter value of the page number element indicates the distance between the page number digit and the page number mark, the corresponding setting object may be the space between the page number digit and the page number mark, the second parameter value may be the font size of the space, and the font size of the space is the second parameter value corresponding to the first parameter value. For another example, the first parameter value of the page number element indicates the distance between the page number mark and the page center, the corresponding setting object is a text box, the second parameter value may be the top margin of the text box, and the top margin is the second parameter value corresponding to the first parameter value. For another example, the first parameter value of the page number element indicates the distance between the page number mark and the left / right edge of the page body. The corresponding setting object is the text box. The second parameter value can be the left / right margin of the text box, which is the second parameter value corresponding to the first parameter value.

[0073] Afterwards, the setting item is updated using the setting object corresponding to the page number element and the second parameter value corresponding to the setting object, and the updated setting item is stored as a document page number template.

[0074] That is, the official document page number template directly stores the format of the setting object of the page number element, and when the official document page number template is called, the format of the setting object is directly set to directly insert the official document page number based on the second parameter value in the official document page number template. This can save the time of inserting the official document page number based on the official document page number template, and also reduce the computer resources required to convert the first parameter value into the second parameter value each time the official document page number is inserted, such as memory.

[0075] In some embodiments, the first parameter value may be obtained based on information input for the setting items of each page number element in the official document page number template. For example, the first parameter value of each page number element may be input when writing program code, or it may be the first parameter value of each page number element input in the official document page number template setting window preset in the document program. When the first parameter value of the page number element is input through the official document page number template setting window, the parameter value may be selected from the set options by selection, or the first parameter value may be set by inputting a numerical value. The disclosed embodiment does not limit the specific input method of the first parameter value.

[0076] In some embodiments, the first parameter value may also be obtained based on the default values ​​pre-set for the setting items of each page number element in the official document page number template. For the setting items of each page number element in the official document page number template, a corresponding default value may be pre-set, and the default value may be used as the first parameter value. For example, the called official document page number template may have default values ​​for the setting items of each page number element. In the official document page number template set in step 101, the setting items of each page number element have default values, and by clicking the "Create" button, the default values ​​of the setting items of each page number element are accepted as the first parameter value.

[0077] Since the first page of a letter or official document does not require a page number, the first page of a document to be processed that is a letter type does not display a page number; whereas the first page of a document to be processed that is a standard official document type displays a page number. In an embodiment of the present disclosure, the setting item of the at least one page number element may include a first setting item for setting whether to display the first page number, and the first parameter value in the first setting item is used to indicate whether to display the page number character on the first page of the document to be processed when the official document page number template is called.

[0078] In one example, the first parameter value of the first setting item is a first attribute value or a second attribute value. The first attribute value is used to indicate that the page number characters are displayed in the first page of the document to be processed, and the second attribute value is used to indicate that the page number characters are not displayed in the first page of the document to be processed. In the case where the parameter value of the first setting item is set to the first attribute value, when the official document page number template is called, the page number characters are displayed in the first page of the document to be processed; conversely, in the case where the parameter value of the first setting item is set to the second attribute value, when the official document page number template is called, the page number characters are not displayed in the first page of the document to be processed. For example, the first attribute value is "yes" and the second attribute value is "no", and the parameter value can be selected from the two listed options of "yes" and "no". For another example, the first attribute value is "show" and the second attribute value is "hide".

[0079] See also Figure 2 The official document page number template shown, the setting items of the page number elements may include an item of "front page page number", and this item has two selectable parameter values, one is the first attribute value "display", and the other is the second attribute value "hide". In the case of selecting "display", the page number characters are displayed on the front page of the document to be processed; in the case of selecting "hide", the page number characters are not displayed on the front page of the document to be processed.

[0080] In one example, for some page number elements whose setting methods can be directly displayed in the template, the setting methods of these page number elements can also be directly used as templates for the user to select. By clicking on the corresponding template, the user can make the page display the page number characters according to the setting method of the page number elements corresponding to the template.

[0081] For example, for whether to display page number characters on odd pages, it can be set as Figure 3A and Figure 3B the templates shown. Selecting Figure 3A the template shown indicates that page number characters are not displayed on odd pages; selecting Figure 3B the template shown indicates that page number characters are displayed on odd pages.

[0082] In some embodiments, the setting items of the at least one page number element include a second setting item for setting the size of the page number characters. Among them, the first parameter value in the second setting item is used to set the size of the page number characters when the official document page number template is called. For example, when using the official document page number template to display page numbers, the font size of the page number digits and page number marks (such as the "one" character line) in the page number characters is set to the first parameter value of the second setting item of the official document page number template, and the page number characters are displayed on the page of the document to be processed according to the set font size.

[0083] See Figure 2 the official document page number template shown. The second setting item may include an item of "font size", and this item has multiple selectable font size parameter values. For example, in the case of selecting "三号 (Three)", the page number digits and the "one" character line in the page number characters are displayed in the font size of Three. Among the selectable font size parameter values of the "font size" item, there are also the corresponding points for each font size, and the font size of the page number characters can also be set by selecting the required points.

[0084] In some embodiments, the setting items of at least one page number element include a third setting item for indicating the position of the page number characters, wherein the page number characters include page number digits and page number marks (e.g., a "-" character line), and the first parameter value in the third setting item is used to set at least one of the following when the official document page number template is called: the distance between the page number digits and the page number mark; the distance between the page number mark and the edge of the page. That is, the third setting item can be used to set the positional relationship between the internal characters of the page number characters, and can also be used to set the position of the page number characters in the page of the document to be processed.

[0085] When the third setting item is used to set the distance between the page number and the page number mark, the distance information between the page number and the page number mark can be obtained according to the first parameter value indicated by the third setting item; and according to the distance information, the page number and the page number mark are displayed on the page of the document to be processed.

[0086] See also Figure 2 In the document page number template shown in FIG. 1 , the third setting item may include a “distance between page number digits and page number marks” item, the parameter value of which is used to set the page number digits (e.g. Figure 2 The distance between the page number "X" shown in the figure and the page number mark (the "-" line on the left and right of the "X"). In the embodiment of the present disclosure, the page number mark may include two marks on the left and right sides of the page number, and the distance between the page number and the marks on the left and right sides is equal. The parameter value of the "distance between the page number and the page number mark" item can be set by inputting a numerical value, or can be obtained by selecting from multiple numerical values ​​provided, or can be obtained according to the default value set for this item.

[0087] In the disclosed embodiment, when the official document page number template is called, the distance between the page number to be displayed and the page number mark can be determined by obtaining the first parameter value of the third setting item in the official document page number template, and the page number characters are displayed at this distance, so that the official document page number in which the distance between the page number and the page number mark meets the official document requirements can be directly displayed.

[0088] The parameter value of the item "distance between the page number and the page number mark" may be in millimeters or other units such as pounds, and the present disclosure does not impose any limitation on this.

[0089] When actually displaying, if the parameter value unit of the item "Distance between page number and page number mark" is millimeter, the unit can be converted from millimeter to pounds to obtain a space of the corresponding font size. By inserting a space of this font size between the page number and the page number mark, the document page number that meets the requirements of the official document can be displayed.

[0090] In some embodiments, when the third setting item is used to set the distance between the page number mark and the edge of the typesetting area, the page number characters can be set in the pages of the document to be processed in the following manner.

[0091] First, insert a text box in the footer. The text box includes the page number digits and the page number mark. Among them, the text box can be inserted by using the function plug-in that the document to be processed itself has.

[0092] Next, obtain the first position information of the page number mark in the text box.

[0093] In an example, the first position information of the page number mark (the "one" line) in the text box can be obtained by an API (Application Programming Interface). The first position information can include at least one of the distances between the "one" line and the upper / lower edges and left / right edges of the text box. The specific meaning of the first position information can be determined according to the content indicated by the third setting item.

[0094] Then, obtain the second position information of the text box in the page according to the first information and the first parameter value of the third setting item. That is, according to the distance between the page number mark and the edge of the typesetting area and the distance between the page number mark and the edge of the text box, obtain the distance between the text box and the edge of the typesetting area, so as to set the specific position of the text box in the page.

[0095] By setting the position of the text box according to the second position information, the position of the page number mark in the text box on the page can meet the setting requirements of official document page numbers, so that the page number characters can be quickly inserted into the required positions, improving the efficiency of page number setting.

[0096] Among them, the edge of the typesetting area includes the lower edge of the typesetting area and the left / right edges of the typesetting area.

[0097] When the edge of the typesetting area is the lower edge of the typesetting area, first obtain the distance between the page number mark and the upper edge of the text box, and obtain the distance between the text box and the lower edge of the typesetting area according to the distance between the page number mark and the lower edge of the typesetting area and the distance between the page number mark and the upper edge of the text box.

[0098] Taking Figure 4 the page number setting schematic diagram shown as an example, the third setting item can include an item of "distance from the lower edge", and the first parameter value of this item indicates the page number mark 403 (such as Figure 4The distance a between the dash line (on both sides of the page number digit "X" as shown) and the lower edge 402 of the typesetting area. In this case, the distance b between the dash line and the upper edge of the text box 401 can be first obtained by using the API, which is the first position information of the page number mark in the text box; then, the distance a between the dash line indicated by the "distance from the lower edge" parameter value and the lower edge 402 of the typesetting area is subtracted by the distance b between the dash line and the upper edge of the text box 401 obtained through the API, and the distance t between the text box 401 and the lower edge 402 of the typesetting area is obtained as the second position information, and the second position information is also the absolute value of the vertical position of the text box 401 from the lower edge 402 of the typesetting area. By setting or adjusting the position of the text box according to the second position information, the position of the page number mark 403 in the text box 401 in the vertical direction on the page can meet the setting requirements of official document page numbers, so that the page number characters can be quickly inserted into the required vertical position, improving the efficiency of page number setting.

[0099] In the case where the edge of the typesetting area is the left / right edge of the typesetting area, first obtain the distance between the page number mark and the left / right edge of the text box as the first position information; and obtain the distance between the text box and the left / right edge of the typesetting area according to the distance between the page number mark and the left / right edge of the typesetting area and the first position information.

[0100] Since the layout of official documents usually divides a page of the document to be processed into two left and right layouts, for the left layout, the edge of the typesetting area is the left edge of the typesetting area, and for the right layout, the edge of the typesetting area is the right edge of the typesetting area.

[0101] Taking Figure 4 the page number setting schematic diagram shown as an example, the third setting item may include the "distance from the left / right edge" item, and the first parameter value of this item indicates the page number mark 403 (such as Figure 4The distance c between the dash line "一" on the left and right of the page number digit "X" shown and the right edge 404 of the typesetting area. In this case, the distance d between the right dash line and the right edge of the text box 401 can be obtained by using the API first, that is, the first position information of the page number mark in the text box; then subtract the distance d between the right dash line and the right edge of the text box 401 obtained by the API from the distance c between the right dash line indicated by the "distance from the right edge" parameter value and the right edge 402 of the typesetting area, and the obtained distance m between the text box 401 and the right edge 404 of the typesetting area is used as the second position information, and the second position information is also the absolute value of the horizontal position of the text box 401 from the right edge 403 of the typesetting area. By setting or adjusting the position of the text box according to this second position information, the position of the page number mark 403 in the text box 401 in the horizontal direction on the page can meet the setting requirements of official document page numbers, so that the page number characters can be quickly inserted into the required horizontal position, improving the efficiency of page number setting.

[0102] In some embodiments, the second parameter value corresponding to the setting object of the page number element can also be obtained in the following manner according to the first parameter value corresponding to the page number element: obtain at least one of the following of the text box inserted in the footer as the second parameter value, where the text box includes the page number characters: the top margin of the text box; or, the left / right margin of the text box; and / or, obtain the font size of the space between the page number digit and the page number mark as the second parameter value.

[0103] Specifically, in the case where the edge of the typesetting area is the lower edge of the typesetting area, first insert a text box in the footer at a position where the upper edge of the text box coincides with the lower edge of the typesetting area; next, obtain the top margin of the text box as the second parameter value so that the distance between the upper edge of the page number character and the upper edge of the text box matches the second parameter value.

[0104] Take Figure 5 the shown page number setting schematic diagram as an example, insert a text box 501 in the footer and make the upper edge of the text box 501 coincide with the lower edge 502 of the typesetting area. Obtain the top margin of the text box 501 as the second parameter value, and set the distance p between the upper edge of the page number digit X and the upper edge of the text box 501 according to this second parameter value so that the display of the page number character in the vertical direction meets the requirements.

[0105] In the case where the edge of the typesetting area is the left / right edge of the typesetting area, first insert a text box in the footer at a position where the left / right edge of the text box coincides with the left / right edge of the typesetting area; next, obtain the left / right margin of the text box as the second parameter value so that the distance between the left / right edge of the page number character and the left / right edge of the text box matches the second parameter value.

[0106] Taking Figure 5 the schematic diagram of page number setting shown as an example, insert a text box 501 in the footer, and make the right edge of the text box 501 coincide with the right edge 504 of the page core. Obtain the right margin of the text box 501 as the second parameter value, and set the distance n between the right "one" line and the right edge of the text box 501 according to this second parameter value, so that the display of page number characters in the vertical direction meets the requirements.

[0107] In the case where the setting object of the page number element is the space between the page number digit and the page number mark, the font size of the space can be determined by converting the distance information between the page number digit and the page number mark into the corresponding point size, and determining the corresponding font size according to the point size. By inserting a space of this font size between the page number digit and the page number mark, the official document page number that meets the requirements of official documents can be displayed. For example, in the case where the unit of the distance information between the page number digit and the page number mark, that is, the first parameter value, is millimeters, the unit can be converted from millimeters to point size to obtain the corresponding font size of the space as the second parameter value.

[0108] The present disclosure also proposes a method for using an official document page number template, which can be applied to an electronic device. In practical applications, the electronic device can be a smart phone, a tablet computer, a notebook computer, etc.

[0109] The following will describe in detail the method for setting the official document page number template of the present disclosure through embodiments.

[0110] Figure 6 is a flow example diagram of the method for using an official document page number template provided by an embodiment of the present disclosure. As Figure 6 shown, the method may include steps 601 to 602.

[0111] In step 601, in response to receiving an instruction to insert an official document page number in a document to be processed, obtain an official document page number template set according to the method for setting an official document page number template provided in any embodiment of the present disclosure.

[0112] In step 602, display page number characters on the page of the document to be processed according to the setting items of at least one page number element in the official document page number template.

[0113] In a disclosed embodiment, when an instruction to insert a document page number into a document to be processed is received, a document page number template corresponding to the document to be processed is obtained, and the document page number template includes at least one setting item of a page number element; then, according to the setting item of at least one page number element in the document page number template, that is, according to the first parameter value corresponding to the page number element, or according to the second parameter value corresponding to the setting object of the page number element, the page number characters are displayed in the page of the document to be processed. By displaying the page number characters according to the setting items of each page number element in the preset document page number template, the document page number characters that meet the requirements can be quickly inserted, avoiding multiple adjustment operations, and improving the efficiency of document page number setting.

[0114] For the official document page number template set by the official document page number template setting method provided in the embodiment of the present disclosure, the official document page number template can be called by operating the operation item of the official document page number in the document, for example, clicking on the official document page number template pre-loaded in the menu bar, so as to insert the page number according to the official document page number template.

[0115] For the first setting item in the official document page number template, in response to the first parameter value in the first setting item being a first attribute value, page number characters are displayed in the first page of the document to be processed; in response to the first parameter value of the first setting item being a second attribute value, page number characters are not displayed in the first page of the document to be processed.

[0116] In some cases, the document to be processed may have been pre-set with the "different first page" attribute, and inserting page numbers will result in the first page not having a page number. If it is a standard official document type document, the displayed official document page number does not meet the requirements. Therefore, before obtaining the official document page number template corresponding to the document to be processed, the different first page attribute in the document to be processed can be cleared first to avoid the different first page attribute set in the document affecting the display of the page number.

[0117] For the second setting item in the official document page number template, when inserting page numbers according to the official document page number template, the page number digits in the page number characters and the font size of the page number mark (for example, the "one" line) are set as the first parameter value of the second setting item of the official document page number template, and the page number characters are displayed on the page of the document to be processed according to the set font size.

[0118] For the third setting item in the document page number template, when inserting page numbers according to the document page number template, the distance information between the page number and the page number mark can be obtained according to the first parameter value indicated by the third setting item, and the distance information between the page number mark and the edge of the page block can also be obtained according to the first parameter value indicated by the third setting item. According to the above distance information, the page number and the page number mark are displayed on the page of the document to be processed.

[0119] In the case where the setting item includes a third setting item for indicating a second parameter value, and the second parameter value indicates the font size of the space between the page number and the page number mark, the displaying of the page number characters in the page of the to-be-processed document according to the setting item includes: setting a space of the font size indicated by the second parameter value between the page number and the page number mark, the font size being obtained in the following manner: converting the distance information between the page number and the page number mark into corresponding pounds, and determining the corresponding font size according to the pounds. Specifically, in the case where the unit of the distance information is millimeter, the unit of the distance information can be converted from millimeter to pounds to obtain the corresponding font size; setting a space of the font size between the page number and the page number mark, so that the distance between the page number and the page number mark meets the requirements of standard official documents.

[0120] In some embodiments, when the third setting item is used to set the distance between the page number mark and the edge of the page block, when the page number is inserted according to the official document page number template, the page number can be displayed according to the following method.

[0121] First, a text box is inserted into the footer, wherein the text box includes the page number and the page number mark, wherein the text box can be inserted using a functional plug-in of the document to be processed.

[0122] Next, the first position information of the page number mark in the text box is obtained.

[0123] Next, the second position information of the text box in the page is obtained according to the first information and the first parameter value indicated by the third setting item. That is, according to the distance between the page number mark and the edge of the page body and the distance between the page number mark and the edge of the text box, the distance between the text box and the edge of the page body is obtained, so as to set the specific position of the text box in the page.

[0124] By setting the position of the text box according to the second position information, the position of the page number mark in the text box on the page can be made to meet the setting requirements of the document page number, so that the page number characters can be quickly inserted into the required position, improving the efficiency of page number setting.

[0125] Wherein, the page center edge includes the page center lower edge and the page center left / right edge.

[0126] In the case where the edge of the page block is the bottom edge of the page block, when the page number is inserted according to the document page number setting template, the page number can be displayed according to the following method: first, obtain the distance between the page number mark and the upper edge of the text box as the first position information; and based on the distance between the page number mark and the bottom edge of the page block and the first position information (the distance between the page number mark and the top edge of the text box), obtain the distance between the text box and the bottom edge of the page block as the second position information.

[0127] In the case where the edge of the page body is the lower edge of the page body, when inserting the page number according to the document page number setting template, the page number can also be displayed in the following manner: first, insert a text box in the footer, the text box includes the page number and the page number mark, and the upper edge of the text box coincides with the lower edge of the page body. Next, according to the second parameter value indicated by the third setting item, set the distance between the upper edge of the page number and the upper edge of the text box.

[0128] In the case where the edge of the page block is the left / right edge of the page block, when the page number is inserted according to the document page number setting template, the page number can be displayed according to the following method: first, the distance between the page number mark and the left / right edge of the text box is obtained as the first position information; and based on the distance between the page number mark and the left / right edge of the page block and the first position information (the distance between the page number mark and the upper edge of the text box), the distance between the text box and the bottom edge of the page block is obtained as the second position information.

[0129] In the case where the edge of the page block is the left / right edge of the page block, when inserting the page number according to the document page number setting template, the page number can also be displayed according to the following method: first, insert a text box in the footer, the text box includes the page number and the page number mark, and the left edge of the text box is set to coincide with the left edge of the page block, or the right edge of the text box is set to coincide with the right edge of the page block. In the case where the left edge of the text box coincides with the left edge of the page block, the distance between the left edge of the page number mark and the left edge of the text box is set according to the second parameter value indicated by the third setting item; in the case where the right edge of the text box coincides with the right edge of the page block, the distance between the right edge of the page number mark and the right edge of the text box is set according to the second parameter value indicated by the third setting item.

[0130] The disclosed embodiment also provides a document page number template setting device, such as Figure 7As shown, the device includes: a first acquisition unit 701, used to obtain a setting item of at least one page number element, the setting item including the page number element and a first parameter value corresponding to the page number element; a storage unit 702, used to store the setting item as a document page number template; a loading unit 703, used to load the document page number template into a document program, so as to perform page number settings according to the setting item of the page number element when the document page number template is called.

[0131] In some embodiments, the storage unit is specifically used to: obtain a second parameter value corresponding to the setting object of the page number element based on a first parameter value corresponding to the page number element; update the setting item using the setting object corresponding to the page number element and the second parameter value corresponding to the setting object, and store the updated setting item as a document page number template.

[0132] In some embodiments, the device also includes a receiving unit for: receiving information input for setting items of each page number element in the official document page number template as a first parameter value of the page number element; and / or obtaining a pre-set default value for the setting items of each page number element in the official document page number template as the first parameter value of the page number element.

[0133] In some embodiments, the setting items of at least one page number element include a first setting item for setting the display status of the first page number, and the first parameter value in the first setting item is used to indicate whether to display page number characters on the first page of the document to be processed when the official document page number template is called.

[0134] In some embodiments, the setting items of the at least one page number element include a second setting item for setting the size of page number characters, and the first parameter value in the second setting item is used to indicate the size of the page number characters when the official document page number template is called.

[0135] In some embodiments, the setting items of at least one page number element include a third setting item for setting the position of page number characters, wherein the page number characters include page number numbers and page number marks, and the first parameter value in the third setting item is used to set at least one of the following when the official document page number template is called: the distance between the page number number and the page number mark; the distance between the page number mark and the edge of the page block.

[0136] In some embodiments, obtaining the second parameter value corresponding to the setting object of the page number element based on the first parameter value corresponding to the page number element includes: obtaining at least one of the following items of a text box inserted in the footer as the second parameter value, wherein the text box includes the page number characters: the top margin of the text box; the left / right margin of the text box; and / or obtaining the font size of the space between the page number number and the page number mark as the second parameter value.

[0137] The disclosed embodiment also provides a document page number using device, such as Figure 8 As shown, the device includes: a second acquisition unit 801, used to obtain a document page number template set according to any embodiment of the present disclosure in response to receiving an instruction to insert a document page number in a document to be processed; a third acquisition unit 802, used to obtain a setting item of at least one page number element in the document page number template; and a display unit 803, used to display page number characters in the page of the document to be processed according to the setting item.

[0138] In some embodiments, the display unit is specifically used to: in response to the first parameter value in the first setting item being a first attribute value, display page number characters in the first page of the document to be processed; in response to the first parameter value in the first setting item being a second attribute value, not display page number characters in the first page of the document to be processed.

[0139] In some embodiments, the device further includes a clearing unit for clearing different attributes of the first page in the document to be processed before obtaining the official document page number template.

[0140] In some embodiments, when the first parameter value in the third setting item is used to set the distance between the page number and the page number mark when the official document page number template is called, the display unit is specifically used to: obtain the distance information between the page number and the page number mark according to the first parameter value indicated by the third setting item; and display the page number and the page number mark on the page of the document to be processed according to the distance information.

[0141] In some embodiments, the setting item includes a third setting item for indicating a second parameter value, and when the second parameter value indicates the font size of the space between the page number and the page number mark, displaying the page number characters in the page of the document to be processed according to the setting item includes: setting a space of the font size indicated by the second parameter value between the page number and the page number mark, the font size being obtained in the following manner: converting the distance information between the page number and the page number mark into corresponding pounds, and determining the corresponding font size based on the pounds.

[0142] In some embodiments, when the first parameter value in the third setting item is used to set the distance between the page number mark and the edge of the page block when the official document page number template is called, the display unit is specifically used to: insert a text box in the footer, the text box including page numbers and page number marks; obtain first position information of the page number mark in the text box; obtain second position information of the text box in the page according to the first position information and the first parameter value indicated by the third setting item; and set the position of the text box according to the second position information.

[0143] In some embodiments, in response to the edge of the page body being the bottom edge of the page body, obtaining the first position information of the page number mark in the text box includes: obtaining the distance between the page number mark and the upper edge of the text box as the first position information; obtaining the second position information of the text box in the page according to the first position information and the parameter value indicated by the third setting item, including: obtaining the distance between the text box and the bottom edge of the page body according to the distance between the page number mark and the bottom edge of the page body and the first position information as the second position information.

[0144] In some embodiments, the setting item includes a third setting item for indicating a second parameter value. When the second parameter value indicates the top margin of the text box, the display unit is specifically used to: set the top edge of the text box to coincide with the bottom edge of the page block; and set the distance between the top edge of the page number and the top edge of the text box according to the second parameter value indicated by the third setting item.

[0145] In some embodiments, the setting items include a third setting item for indicating a second parameter value. When the second parameter value indicates the left / right margin of the text box, the display unit is specifically used to: set the left edge of the text box to coincide with the left edge of the page body, or set the right edge of the text box to coincide with the right edge of the page body; when the left edge of the text box coincides with the left edge of the page body, set the distance between the left edge of the page number mark and the left edge of the text box according to the second parameter value indicated by the third setting item; when the right edge of the text box coincides with the right edge of the page body, set the distance between the right edge of the page number mark and the right edge of the text box according to the second parameter value indicated by the third setting item.

[0146] The present disclosure also provides an electronic device, such as Fig. 9 As shown, the device includes a memory and a processor, the memory is used to store computer-readable instructions, and the processor is used to call the computer instructions to implement the method of any embodiment of this specification.

[0147] For the device and equipment embodiments, since they basically correspond to the method embodiments, the relevant parts can refer to the partial description of the method embodiments. The device embodiments described above are merely schematic, wherein the modules described as separate components may or may not be physically separated, and the components displayed as modules may or may not be physical modules, that is, they may be located in one place, or they may be distributed on multiple network modules. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this specification. A person of ordinary skill in the art can understand and implement it without paying creative labor.

[0148] The above is a description of a specific embodiment of the present specification. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recorded in the claims can be performed in an order different from that in the embodiments and still achieve the desired results. In addition, the processes depicted in the drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.

[0149] Those skilled in the art will readily appreciate other embodiments of the specification after considering the specification and practicing the invention claimed herein. The specification is intended to cover any variations, uses or adaptations of the specification that follow the general principles of the specification and include common knowledge or customary techniques in the art that are not claimed in the specification. The specification and examples are to be considered exemplary only, and the true scope and spirit of the specification are indicated by the following claims.

[0150] It should be understood that the present description is not limited to the precise structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present description is limited only by the appended claims.

[0151] The above description is only a preferred embodiment of this specification and is not intended to limit this specification. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of this specification should be included in the scope of protection of this specification.

Claims

1. A method for setting a document page number template, characterized in that: include: Acquire at least one setting item of a page number element, wherein the setting item includes a name of the page number element and a first parameter value corresponding to the page number element; Storing the setting item as a document page number template; Loading the document page number template into the document program, so as to set the page number according to the setting items of the page number element when the document page number template is called; The storing of the setting items as a document page number template includes: According to the first parameter value corresponding to the page number element, obtaining the second parameter value corresponding to the setting object of the page number element; Using the setting object corresponding to the page number element and the second parameter value corresponding to the setting object to update the setting item, and storing the updated setting item as a document page number template; Wherein, obtaining the second parameter value corresponding to the setting object of the page number element according to the first parameter value corresponding to the page number element includes: Acquire at least one of the following items of the text box inserted in the footer as a second parameter value, wherein the text box includes the page number characters, and the page number characters include page number digits and page number marks: the top margin of the text box, the left margin of the text box, and the right margin of the text box; And / or, the font size of the space between the page number and the page number mark is obtained as the second parameter value.

2. The method according to claim 1, characterized in that The method further comprises: receiving information inputted for setting items of each page number element in the document page number template as a first parameter value of the page number element; and / or, The default values ​​pre-set for the setting items of each page number element in the document page number template are obtained as the first parameter values ​​of the page number element.

3. The method according to claim 1, characterized in that The setting items of the at least one page number element include a first setting item for setting the display status of the first page number, and the first parameter value in the first setting item is used to indicate whether to display page number characters on the first page of the document when the official document page number template is called.

4. The method according to claim 1 or 2, characterized in that: The setting items of the at least one page number element include a second setting item for setting the size of page number characters, and the first parameter value in the second setting item is used to indicate the size of the page number characters when the official document page number template is called.

5. The method according to claim 1 or 2, characterized in that: The setting items of the at least one page number element include a third setting item for setting the position of page number characters, wherein the page number characters include page number digits and page number marks, and the first parameter value in the third setting item is used to set at least one of the following when the document page number template is called: the distance between the page number and the page mark; The distance between the page number mark and the edge of the page.

6. A method for using a document page number template, characterized in that: include: In response to receiving an instruction to insert a document page number into a document to be processed, obtaining a document page number template set according to any one of claims 1 to 5; According to the setting item of at least one page number element in the official document page number template, page number characters are displayed on the page of the document to be processed.

7. The method according to claim 6, characterized in that The step of displaying page number characters on a page of the document to be processed according to the setting item includes: In response to the first parameter value in the first setting item being the first attribute value, displaying page number characters on the first page of the document to be processed; In response to the first parameter value of the first setting item being the second attribute value, page number characters are not displayed in the first page of the document to be processed.

8. The method according to claim 6 or 7, characterized in that: The method further comprises: before obtaining the document page number template, clearing different attributes of the first page in the document to be processed.

9. The method according to claim 6 or 7, characterized in that: In the case where the first parameter value in the third setting item is used to set the distance between the page number digit and the page number mark when the document page number template is called, the displaying of page number characters in the page of the document to be processed according to the setting item includes: According to the first parameter value indicated by the third setting item, obtaining distance information between the page number and the page number mark; The page number and the page number mark are displayed on the page of the document to be processed according to the distance information.

10. The method according to claim 6 or 7, characterized in that: The setting item includes a third setting item for indicating a second parameter value, and when the second parameter value indicates the font size of a space between the page number and the page number mark, displaying page number characters on the page of the to-be-processed document according to the setting item includes: A space of the font size indicated by the second parameter value is set between the page number and the page number mark, and the font size is obtained in the following manner: the distance information between the page number and the page number mark is converted into corresponding pounds, and the corresponding font size is determined according to the pounds.

11. The method according to claim 9, characterized in that In the case where the first parameter value in the third setting item is used to set the distance between the page number mark and the edge of the page block when the document page number template is called, the displaying of page number characters in the page of the document to be processed according to the setting item includes: Inserting a text box in the footer, wherein the text box includes page numbers and page number marks; Obtain the first position information of the page number mark in the text box; Obtaining second position information of the text box in the page according to the first position information and a first parameter value indicated by the third setting item; The position of the text box is set according to the second position information.

12. The method according to claim 11, characterized in that In response to the page edge being the page bottom edge, obtaining the first position information of the page number mark in the text box includes: Acquire the distance between the page number mark and the upper edge of the text box as the first position information; Obtaining second position information of the text box in the page according to the first position information and the parameter value indicated by the third setting item includes: According to the distance between the page number mark and the bottom edge of the page body and the first position information, the distance between the text box and the bottom edge of the page body is obtained as the second position information.

13. The method according to claim 6 or 7, characterized in that: The setting item includes a third setting item for indicating a second parameter value, and when the second parameter value indicates a top margin of the text box, displaying page number characters in a page of the document to be processed according to the setting item includes: The upper edge of the text box is set to overlap with the lower edge of the page; According to the second parameter value indicated by the third setting item, the distance between the upper edge of the page number and the upper edge of the text box is set.

14. The method according to claim 6 or 7, characterized in that: The setting item includes a third setting item for indicating a second parameter value, and when the second parameter value indicates a left / right margin of the text box, displaying page number characters in a page of the document to be processed according to the setting item includes: The left edge of the text box is set to coincide with the left edge of the page, or the right edge of the text box is set to coincide with the right edge of the page; In the case where the left edge of the text box coincides with the left edge of the page block, setting the distance between the left edge of the page number mark and the left edge of the text box according to the second parameter value indicated by the third setting item; When the right edge of the text box coincides with the right edge of the page block, the distance between the right edge of the page number mark and the right edge of the text box is set according to the second parameter value indicated by the third setting item.

15. A document page number template setting device, characterized in that: include: A first acquisition unit, configured to acquire a setting item of at least one page number element, wherein the setting item includes the page number element and a first parameter value corresponding to the page number element; A storage unit, used to store the setting item as a document page number template; A loading unit, used for loading the document page number template into a document program, so as to set the page number according to the setting items of the page number element when the document page number template is called; The storage unit is specifically used for: According to the first parameter value corresponding to the page number element, obtaining the second parameter value corresponding to the setting object of the page number element; Using the setting object corresponding to the page number element and the second parameter value corresponding to the setting object to update the setting item, and storing the updated setting item as a document page number template; Wherein, when the storage unit is used to obtain the second parameter value corresponding to the setting object of the page number element according to the first parameter value corresponding to the page number element, it is specifically used to: Acquire at least one of the following items of the text box inserted in the footer as a second parameter value, wherein the text box includes the page number characters, and the page number characters include page number digits and page number marks: the top margin of the text box, the left margin of the text box, and the right margin of the text box; And / or, the font size of the space between the page number and the page number mark is obtained as the second parameter value.

16. A document page number template using device, characterized in that: include: A second acquisition unit, configured to acquire a document page number template set according to any one of claims 1 to 5 in response to receiving an instruction to insert a document page number into a document to be processed; A third acquisition unit, used to acquire a setting item of at least one page number element in the document page number template; The display unit is used to display page number characters in the pages of the document to be processed according to the setting items.

17. An electronic device, characterized in that: The invention comprises a processor and a memory for storing executable instructions of the processor, wherein the instructions are executed to implement the method according to any one of claims 1 to 5 or 6 to 14.

18. A computer-readable storage medium, characterized in that: A computer program is stored thereon, wherein when the program is executed by a processor, the method according to any one of claims 1 to 5 or 6 to 16 is implemented.