CN111832262B - Document processing method and device, electronic equipment and storage medium - Google Patents

Document processing method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN111832262B
CN111832262B CN201910248173.8A CN201910248173A CN111832262B CN 111832262 B CN111832262 B CN 111832262B CN 201910248173 A CN201910248173 A CN 201910248173A CN 111832262 B CN111832262 B CN 111832262B
Authority
CN
China
Prior art keywords
paragraph
document
current
processed
page
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201910248173.8A
Other languages
Chinese (zh)
Other versions
CN111832262A (en
Inventor
吴增谂
叶师思
袁远尧
郑晓琼
陈志宝
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Kingsoft Office Software Inc
Zhuhai Kingsoft Office Software Co Ltd
Guangzhou Kingsoft Mobile Technology Co Ltd
Original Assignee
Beijing Kingsoft Office Software Inc
Zhuhai Kingsoft Office Software Co Ltd
Guangzhou Kingsoft Mobile Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Kingsoft Office Software Inc, Zhuhai Kingsoft Office Software Co Ltd, Guangzhou Kingsoft Mobile Technology Co Ltd filed Critical Beijing Kingsoft Office Software Inc
Priority to CN201910248173.8A priority Critical patent/CN111832262B/en
Publication of CN111832262A publication Critical patent/CN111832262A/en
Application granted granted Critical
Publication of CN111832262B publication Critical patent/CN111832262B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Document Processing Apparatus (AREA)

Abstract

The embodiment of the invention provides a document processing method, a device, electronic equipment and a storage medium, wherein the method comprises the following steps: acquiring a document to be processed; traversing each paragraph of the document to be processed according to the sequence from the tail end of the document to the top end of the document, traversing one paragraph each time, and judging whether characters exist in the current paragraph; if the characters do not exist, judging whether the number of pages of the current paragraph is the same as the number of pages of the next paragraph in the document to be processed; if not, judging whether the current paragraph has page breaks; if there is no page break, a page break is inserted in the current paragraph and the next paragraph of the current paragraph is traversed. When the electronic equipment determines that the current paragraph is a blank paragraph and is not in the same page as the next paragraph in the document to be processed, the electronic equipment indicates that an nonstandard paging mode exists in the document to be processed, and at the moment, the electronic equipment can insert page breaks into the current paragraph, so that typesetting of the document to be processed is standard, and subsequent processing of the document to be processed is facilitated.

Description

Document processing method and device, electronic equipment and storage medium
Technical Field
The present invention relates to the field of document processing technologies, and in particular, to a document processing method, a device, an electronic apparatus, and a storage medium.
Background
At present, various office software is almost an indispensable part in the work and life of people, the office software comprises office documents, presentation files and the like, and people can write electronic documents, presentation files and the like by using the office software.
Commonly used office documents are usually office words and wps, and when a user composes a document, according to the layout of the document, paragraphs are required to be displayed in multiple pages. Office documents typically provide a page break button that a user can insert a page break at a desired location by clicking on the page break button to cause the contents after the page break to be displayed on the next page. Since a white paragraph is typically entered in a document by clicking the enter key in the keyboard, this operation is convenient, and some users may cause the paragraphs to be displayed in multiple pages by adding enough blank paragraphs between the paragraphs.
The operation mode is not a standard paging mode, so that typesetting of the document is not standard, and the subsequent processing of the document is influenced, for example, when a user needs to copy the document content into other application programs without a paging display function, the blank sections need to be manually deleted to enable the document content to be continuous, and obviously, the time is wasted very. Therefore, a method for converting the above-mentioned non-canonical paging mode into a canonical paging mode is needed, so that the typesetting of the document is canonical, and the subsequent processing of the document is convenient.
Disclosure of Invention
The embodiment of the invention aims to provide a document processing method, a device, electronic equipment and a storage medium, so that typesetting of a document is standard, and subsequent processing of the document is convenient. The specific technical scheme is as follows:
in a first aspect, an embodiment of the present invention provides a document processing method, where the method includes:
acquiring a document to be processed;
traversing paragraphs of the document to be processed according to the sequence from the tail end of the document to the top end of the document, and judging whether characters exist in the current paragraph or not by traversing one paragraph each time;
if the characters do not exist, judging whether the number of pages of the current paragraph is the same as the number of pages of the next paragraph of the current paragraph in the document to be processed;
if not, judging whether the current paragraph has page breaks;
if there is no page break, page break is inserted in the current paragraph and the next paragraph of the current paragraph is traversed.
Optionally, the method further comprises:
if the number of pages of the current paragraph is the same as the number of pages of the next paragraph of the current paragraph in the document to be processed, judging whether the next paragraph of the current paragraph in the document to be processed has page breaks or not;
Deleting the current paragraph and traversing the next paragraph of the current paragraph if the next paragraph has page breaks;
if the next paragraph does not have page breaks, traversing the next paragraph of the current paragraph.
Optionally, before the step of determining whether the number of pages of the current paragraph is the same as the number of pages of a subsequent paragraph of the current paragraph in the document to be processed, the method further includes:
judging whether a subsequent paragraph of the current paragraph in the document to be processed has page breaks or not;
if the next paragraph does not have page breaks, executing the step of judging whether the number of pages of the current paragraph is the same as the number of pages of the next paragraph in the document to be processed;
if the subsequent paragraph has page breaks, deleting the current paragraph and traversing the next paragraph of the current paragraph.
Optionally, if the number of pages of the current paragraph is the same as the number of pages of a subsequent paragraph of the current paragraph in the document to be processed, the method further includes:
traversing a next paragraph of the current paragraph.
Optionally, before the step of determining whether the current paragraph has page breaks in a subsequent paragraph in the document to be processed, the method further includes:
Judging whether characters exist in the next paragraph or not;
if the next paragraph does not have characters, executing the step of judging whether the next paragraph of the current paragraph in the document to be processed has page breaks;
if the next paragraph has characters, traversing the next paragraph of the current paragraph.
Optionally, if the current paragraph has page breaks, the method further comprises:
traversing a next paragraph of the current paragraph.
Optionally, the step of obtaining the document to be processed includes:
receiving a document processing request sent by a user, wherein the document processing request carries a document identifier to be processed;
and acquiring the document to be processed corresponding to the document identification to be processed.
In a second aspect, an embodiment of the present invention provides a document processing apparatus, including:
the document to be processed acquisition module is used for acquiring the document to be processed;
the first word number determining module is used for traversing paragraphs of the document to be processed according to the sequence from the tail end of the document to the top end of the document, and judging whether characters exist in the current paragraph or not by traversing one paragraph each time;
the paragraph page number determining module is used for judging whether the page number of the current paragraph is the same as the page number of the next paragraph in the document to be processed;
The first page break determining module is used for determining whether the current paragraph has page break or not if the number of pages of the current paragraph is different from the number of pages of the next paragraph of the current paragraph in the document to be processed;
and the page break inserting module is used for inserting page breaks into the current paragraph and traversing the next paragraph of the current paragraph if the page breaks do not exist.
Optionally, the apparatus further includes:
the second page break determining module is used for judging whether the next paragraph of the current paragraph in the document to be processed has page breaks or not if the page number of the current paragraph is the same as the page number of the next paragraph of the current paragraph in the document to be processed;
a first paragraph deleting module, configured to delete the current paragraph if the subsequent paragraph has page breaks, and traverse the next paragraph of the current paragraph;
and the first traversal triggering module is used for traversing the next paragraph of the current paragraph if the next paragraph does not have page breaks.
Optionally, the apparatus further includes:
a third page break determining module, configured to determine whether a subsequent paragraph of the current paragraph in the document to be processed has a page break before the determining whether the number of pages of the current paragraph is the same as the number of pages of the subsequent paragraph of the current paragraph in the document to be processed;
The page number determining triggering module is used for triggering the paragraph page number determining module if the subsequent paragraph does not have page breaks;
and a second paragraph deleting module, configured to delete the current paragraph and traverse the next paragraph of the current paragraph if the next paragraph has page breaks.
Optionally, the apparatus further includes:
and the second traversal triggering module is used for traversing the next paragraph of the current paragraph if the page number of the current paragraph is the same as the page number of the next paragraph of the current paragraph in the document to be processed.
Optionally, the apparatus further includes:
a second word number determining module, configured to determine whether a character exists in a subsequent paragraph in the document to be processed before the determining whether the subsequent paragraph has page breaks in the current paragraph;
the page break judgment triggering module is used for triggering and executing the judgment of whether the next paragraph of the current paragraph in the document to be processed has page break or not if the next paragraph does not have characters;
and a third traversal triggering module, configured to traverse the next paragraph of the current paragraph if the character exists in the next paragraph.
Optionally, the apparatus further includes:
And a fourth traversal triggering module, configured to traverse a next paragraph of the current paragraph if the current paragraph has page breaks.
Optionally, the module for obtaining the document to be processed includes:
a processing request receiving unit, configured to receive a document processing request sent by a user, where the document processing request carries a document identifier to be processed;
and the pending document acquisition unit is used for acquiring the pending document corresponding to the pending document identifier.
In a third aspect, an embodiment of the present invention provides an electronic device, including a processor, a communication interface, a memory, and a communication bus, where the processor, the communication interface, and the memory complete communication with each other through the communication bus;
a memory for storing a computer program;
and the processor is used for realizing any of the steps of the document processing method when executing the program stored in the memory.
In a fourth aspect, embodiments of the present invention provide a computer readable storage medium having a computer program stored therein, which when executed by a processor, implements any of the above-described document processing method steps.
According to the scheme provided by the embodiment of the invention, the electronic equipment can acquire the document to be processed, traverse the paragraphs of the document to be processed according to the sequence from the tail end of the document to the top end of the document, judge whether characters exist in the current paragraph or not every time, judge whether the page number of the current paragraph is the same as the page number of the next paragraph in the document to be processed if the characters do not exist in the current paragraph, judge whether the current paragraph has page breaks or not if the page numbers are different from the page numbers of the next paragraph in the document to be processed, insert the page breaks in the current paragraph if the page breaks do not exist in the current paragraph, and traverse the next paragraph of the current paragraph. When the electronic device determines that the current paragraph is a blank paragraph and is not in the same page as the next paragraph in the document to be processed, the electronic device can judge whether the current paragraph has page breaks or not, if the current paragraph does not have page breaks, the electronic device can insert page breaks into the current paragraph and process the next paragraph of the current paragraph, so that the typesetting specification of the document to be processed is convenient for the subsequent processing of the document to be processed.
Drawings
In order to more clearly illustrate the embodiments of the invention or the technical solutions in the prior art, the drawings that are required in the embodiments or the description of the prior art will be briefly described, it being obvious that the drawings in the following description are only some embodiments of the invention, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a flowchart of a document processing method according to an embodiment of the present invention;
FIG. 2 is another flowchart of a document processing method according to an embodiment of the present invention;
FIG. 3 is another flowchart of a document processing method according to an embodiment of the present invention;
FIG. 4 is a flowchart illustrating a method for determining whether a current paragraph has page breaks in a subsequent paragraph according to an embodiment of the present invention;
FIG. 5 is a schematic diagram of a document processing apparatus according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present invention, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
In order to enable typesetting of a document to be standard and facilitate subsequent processing of the document, the embodiment of the invention provides a document processing method, a document processing device, electronic equipment and a computer readable storage medium.
The following first describes a document processing method provided by an embodiment of the present invention.
The document processing method provided by the embodiment of the invention can be applied to any electronic equipment needing to process the document, for example, a computer, a mobile phone, a processor and the like, and is not particularly limited. For convenience of description, the following is abbreviated as electronic equipment.
As shown in fig. 1, a document processing method, the method comprising:
s101, acquiring a document to be processed;
s102, traversing paragraphs of the document to be processed according to the sequence from the tail end of the document to the top end of the document, traversing one paragraph each time, and judging whether characters exist in the current paragraph; if no character exists, step S103 is performed;
s103, judging whether the number of pages of the current paragraph is the same as the number of pages of the next paragraph in the document to be processed, if not, executing the step S104;
s104, judging whether the current paragraph has page breaks, if not, executing step S105;
S105, page breaks are inserted in the current paragraph, and the next paragraph of the current paragraph is traversed.
It can be seen that, in the scheme provided by the embodiment of the invention, the electronic device may obtain the document to be processed, traverse the paragraphs of the document to be processed according to the sequence from the end of the document to the top of the document, determine whether characters exist in the current paragraph, if no characters exist in the current paragraph, determine whether the number of pages of the current paragraph is the same as the number of pages of the next paragraph in the document to be processed, if not, determine whether the current paragraph has page breaks, if not, insert page breaks in the current paragraph, and traverse the next paragraph of the current paragraph. When the electronic device determines that the current paragraph is a blank paragraph and is not in the same page as the next paragraph in the document to be processed, the electronic device can judge whether the current paragraph has page breaks or not, if the current paragraph does not have page breaks, the electronic device can insert page breaks into the current paragraph and process the next paragraph of the current paragraph, so that the typesetting specification of the document to be processed is convenient for the subsequent processing of the document to be processed.
In the step S101, the electronic device may acquire a document to be processed, where the document to be processed is a document to be processed. The electronic device can acquire the locally stored document as the document to be processed, and can also acquire the document from other devices as the document to be processed, which is reasonable. In one embodiment, office software may be installed in the electronic device through which a document written by a user may be used as a document to be processed.
After the document to be processed is acquired, in order to change the non-canonical sorting manner in the document to be processed into the canonical sorting manner, the electronic device may traverse the paragraphs of the document to be processed in the order from the end of the document to the top of the document, that is, execute step S102. Since the operations such as deleting blank paragraphs may be performed during processing the document, the sequence of each paragraph in the document to be processed may be changed, so in order to ensure that the processing of the document can be performed accurately and smoothly, the electronic device may traverse each paragraph of the document to be processed in the order from the end of the document to the top of the document, so that the sequence of the paragraphs currently traversed by the electronic device is unchanged in the order from the end to the top of the document to be processed.
In the document processing method provided by the embodiment of the invention, the electronic equipment processes the nonstandard way of paging by adopting the blank paragraph, so that the electronic equipment can judge whether characters exist in the current paragraph every time the electronic equipment traverses one paragraph so as to determine whether the traversed current paragraph is the blank paragraph. If the number of words of the current paragraph does not have characters, indicating that the number of words of the current paragraph is 0, that is, the current paragraph is a blank paragraph, the electronic device may continue to execute step S103.
If the current paragraph has characters that indicate that the current paragraph is not a blank paragraph, then no processing is required and the electronic device can continue to traverse the next paragraph of the current paragraph. Wherein, since the electronic device traverses paragraphs of the document to be processed in order from the end of the document to the top of the document, a position in the document to be processed is a paragraph immediately preceding the current paragraph traversed by the electronic device.
In the case that the current paragraph is determined to be a blank paragraph, in order to determine whether the effect of the blank paragraph is paging, the electronic device may execute step S103, i.e. determine whether the number of pages of the current paragraph is the same as the number of pages of the next paragraph in the document to be processed. That is, it is determined whether the current paragraph is displayed on the same page as the next paragraph in the document to be processed, and if so, the electronic device may not process the blank paragraph or perform some other processing, such as deletion, etc.
If the number of pages of the current paragraph is different from the number of pages of the next paragraph in the document to be processed, which indicates that the blank paragraph is not on the same page as the next paragraph in the document to be processed, the electronic device may further determine whether the current paragraph has page breaks, that is, execute step S104.
If the current paragraph has page breaks, then the electronic device may continue traversing the next paragraph without processing the current paragraph, indicating that the manner in which the current paragraph is paged between the current paragraph and the next paragraph in the document to be processed is canonical. If the current paragraph does not have a page break, indicating that the paging mode between the current paragraph and the next paragraph in the document to be processed is not canonical, the electronic device may insert a page break in the current paragraph to normalize the paging mode between the current paragraph and the next paragraph in the document to be processed. Further, the electronic device can continue traversing the next paragraph of the current paragraph, processing the next paragraph.
In order to properly process blank paragraphs that are not paged in a document, as shown in fig. 2, as one implementation of an embodiment of the present invention, a document processing method provided by the embodiment of the present invention may include:
S201, acquiring a document to be processed;
s202, traversing paragraphs of the document to be processed according to the sequence from the tail end of the document to the top end of the document, traversing one paragraph each time, and judging whether characters exist in the current paragraph; if no character exists, step S203 is performed; if there is a character, step S206 is performed;
s203, judging whether the number of pages of the current paragraph is the same as the number of pages of the next paragraph in the document to be processed, if not, executing step S204; if so, step S207 is performed;
s204, judging whether the current paragraph has page breaks, if not, executing step S205; if there is a page break, step S206 is performed;
s205, inserting page breaks in the current paragraph, and executing step S206;
s206, traversing the next paragraph of the current paragraph.
Since the implementation manners of the steps S201 to S206 are the same as those of the steps S101 to S105, the description thereof will be omitted.
S207, judging whether a next paragraph of the current paragraph in the document to be processed has page breaks, if so, executing step S208; if the subsequent paragraph does not have page breaks, executing step S206;
If the number of pages of the current paragraph is the same as the number of pages of the next paragraph in the document to be processed, indicating that the two are displayed on the same page in the document to be processed, the effect of the current paragraph is not to be used for paging, and the electronic device can determine whether the next paragraph in the document to be processed has page breaks or not in order to determine whether the current paragraph can be deleted.
Since the page break inserted by the user is displayed by default in the next paragraph of the paragraphs having text contents, and the page break is inserted in the blank paragraph, if the next paragraph has page break, since the next paragraph is the paragraph processed by the electronic device before the current paragraph, which has page break likely to be inserted by the electronic device when the next paragraph is processed, it is indicated that the current paragraph is also used for paging, so the electronic device can execute step S208.
If the current paragraph does not have page breaks in the next paragraph in the document to be processed, it is indicated that the next paragraph is likely to be a paragraph with text content, or if the next paragraph is a blank paragraph, but no page breaks are inserted when the electronic device traverses it, it is indicated that the blank paragraph is likely to be added by the user as needed and not used for paging, so the electronic device may execute step S206, i.e. not process the current paragraph, but continue traversing the next paragraph.
S208, deleting the current paragraph, and executing step S206.
If the current paragraph has page breaks in the next paragraph in the document to be processed, indicating that the current paragraph is also used for paging, the electronic device may delete the current paragraph and execute step S206 to continue traversing the next paragraph.
It can be seen that, in this embodiment, if the number of pages of the current paragraph is the same as the number of pages of the next paragraph in the document to be processed, the electronic device may determine whether the next paragraph in the document to be processed has page breaks, if the next paragraph has page breaks, delete the current paragraph, and traverse the next paragraph of the current paragraph; if the next paragraph does not have page breaks, then the traversal of the next paragraph of the current paragraph continues. Therefore, the electronic equipment not only can insert page breaks into blank paragraphs for paging so as to enable the paging mode of the document to be processed to be standard, but also can delete redundant blank paragraphs for paging so as to further improve the standardization of the document to be processed.
In order to properly process blank paragraphs that are not paged in a document, as another implementation manner of the embodiment of the present invention, as shown in fig. 3, the method for processing a document provided by the embodiment of the present invention may include:
S301, acquiring a document to be processed;
s302, traversing paragraphs of the document to be processed according to the sequence from the tail end of the document to the top end of the document, traversing one paragraph each time, and judging whether characters exist in the current paragraph; if no character exists, step S303 is performed; if the character exists, step S308 is performed;
since the implementation manners of the step S301 to the step S302 are the same as the implementation manners of the step S101 to the step S102, the description thereof will not be repeated here.
S303, judging whether a next paragraph of the current paragraph in the document to be processed has page break, if the next paragraph does not have page break, executing step S304; if the subsequent paragraph has page breaks, executing step S305;
after the electronic device determines that the current paragraph has no character, i.e., the current paragraph is blank, it may be determined whether the next paragraph in the document to be processed has page break, and if the next paragraph has no page break, then step S304 needs to be continuously performed to determine whether the current paragraph is used for paging. If the next paragraph has page breaks, indicating that the current paragraph functions as a page, the electronic device may execute step S305 to delete the current paragraph.
S304, judging whether the number of pages of the current paragraph is the same as the number of pages of the next paragraph in the document to be processed, if not, executing step S306; if so, step S308 is performed;
if the electronic device determines that the number of pages of the current paragraph is different from the number of pages of the next paragraph in the document to be processed, which means that the current paragraph and the next paragraph in the document to be processed are displayed on different pages, the current paragraph is used for paging, and the electronic device may execute step S306.
If the electronic device determines that the number of pages of the current paragraph is the same as the number of pages of the next paragraph in the document to be processed, which means that the current paragraph and the next paragraph in the document to be processed are displayed on the same page, the electronic device may execute step S308 to continue traversing the next paragraph of the current paragraph.
S305, deleting the current paragraph, and executing step S308;
s306, judging whether the current paragraph has page breaks, if not, executing step S307; if there is a page break, step S308 is performed;
since the current paragraph functions as a page, the electronic device may determine whether the current paragraph has a page break to determine whether the paging mode is normal, and if the current paragraph does not have a page break, step S307 may be performed. If the current paragraph has page breaks, indicating that the paging mode is canonical, the electronic device may execute step S308 to continue traversing the next paragraph of the current paragraph.
S307, inserting page breaks in the current paragraph, and executing step S308;
since the current paragraph does not have a page break, the electronic device may insert a page break in the current paragraph in order to normalize the paging mode of the document to be processed. The electronic device may then execute step S309 to continue traversing the next paragraph of the current paragraph to process other paragraphs of the document to be processed.
S308, traversing the next paragraph of the current paragraph.
It can be seen that, in this embodiment, before determining whether the number of pages of the current paragraph is the same as the number of pages of the next paragraph in the document to be processed, the electronic device may determine whether the next paragraph in the document to be processed has page breaks, if the next paragraph does not have page breaks, determine whether the number of pages of the current paragraph is the same as the number of pages of the next paragraph in the document to be processed, and if the next paragraph has page breaks, delete the current paragraph and traverse the next paragraph of the current paragraph. Therefore, when the next paragraph in the document to be processed does not have page breaks, whether the page number of the current paragraph is the same as the page number of the next paragraph in the document to be processed is continued, and when the next paragraph in the document to be processed has page breaks, the function of the current paragraph is used for paging, so that the electronic device can delete the current paragraph and continue to traverse the next paragraph of the current paragraph without further judgment, and the document processing efficiency is improved.
In order to determine more accurately whether the currently traversed blank paragraph is used for paging, as an implementation manner of the present invention, before the step of determining whether the next paragraph in the document to be processed has paging breaks, as shown in fig. 4, the method may further include:
s401, judging whether the character exists in the next paragraph, if not, executing the step S402; if the character exists in the next paragraph, executing step S403;
although the page break inserted by the user will be displayed on the next paragraph of the paragraphs with text content by default for a paragraph with text content, in order to enable the electronic device to accurately determine whether the current paragraph is used for paging if the user manually adjusts the page break from the next paragraph of the paragraphs with text content to the paragraph with text content, the electronic device may determine whether characters exist in the next paragraph before determining whether the current paragraph has the page break in the next paragraph of the document to be processed.
If the next paragraph in the document to be processed does not have characters, indicating that the next paragraph in the document to be processed is blank, the effect of the current paragraph and the next paragraph is likely to be used for paging, the electronic device may continue to determine whether the next paragraph in the document to be processed has page breaks, i.e. execute step S402 to determine whether the current paragraph is used for paging.
S402, executing the step of judging whether the next paragraph of the current paragraph in the document to be processed has page breaks;
s403, traversing the next paragraph of the current paragraph.
If the next paragraph in the document to be processed has characters, indicating that the next paragraph in the document to be processed is not a blank paragraph, that is, has text content, then the electronic device may continue traversing the next paragraph of the current paragraph, indicating that the current paragraph is likely to be a blank paragraph that the user inserts as desired, rather than a blank paragraph for paging.
It can be seen that, in this embodiment, before determining whether the current paragraph has a page break in the next paragraph in the document to be processed, the electronic device may determine whether the next paragraph has a character, if the next paragraph does not have a character, then determine whether the next paragraph in the document to be processed has a page break, and if the next paragraph has a character, then continue to traverse the next paragraph of the current paragraph. In this way, the electronic device can continuously judge whether the current paragraph has page breaks in the next paragraph in the document to be processed under the condition that the next paragraph in the document to be processed is a blank paragraph, so that the document processing efficiency can be improved, and meanwhile, under the condition that a user manually adjusts the page breaks from the next paragraph with text content to the paragraph with text content, the electronic device can accurately determine whether the current paragraph is used for paging.
As an implementation manner of the present invention, the step of obtaining the document to be processed may include:
receiving a document processing request sent by a user; and acquiring the document to be processed corresponding to the document identification to be processed.
For convenience of user operation, the electronic device may provide a document processing user interface, for example, a document processing button may be displayed in a display screen, or a document processing menu or the like may be displayed in office software. When a user issues a document processing request through the document processing user interface, the electronic device may receive the document processing request issued by the user.
The document processing request can carry the identification of the document to be processed, so that the document to be processed can be conveniently acquired. The document to be processed is an identifier capable of uniquely identifying the document to be processed, and may be a number, a word, a symbol, or a combination of characters, for example, S1, # a, 797, etc., which is not limited herein.
When the electronic device receives the document processing request, the user needs to process the document to be processed, and the electronic device can acquire the document to be processed corresponding to the document identifier to be processed carried by the document processing request, and further, the document processing method in any embodiment is adopted for processing.
It can be seen that, in this embodiment, the electronic device may receive a document processing request sent by a user, so as to obtain a to-be-processed document corresponding to a to-be-processed document identifier carried by the document processing request. The method and the device can accurately acquire the document to be processed when the user needs to process the document, and improve user experience.
Corresponding to the above document processing method, the embodiment of the invention also provides a document processing device. The following describes a document processing apparatus provided in an embodiment of the present invention.
As shown in fig. 5, a document processing apparatus includes:
a pending document acquisition module 510 configured to acquire a pending document;
a first word number determining module 520, configured to traverse paragraphs of the document to be processed in an order from the end of the document to the top of the document, and determine whether characters exist in a current paragraph by traversing one paragraph each time;
a paragraph page number determining module 530, configured to determine whether the page number of the current paragraph is the same as the page number of a subsequent paragraph in the document to be processed, if the current paragraph does not have characters;
a first page break determining module 540, configured to determine whether the current paragraph has a page break if the number of pages of the current paragraph is different from the number of pages of a subsequent paragraph of the current paragraph in the document to be processed;
A page break inserting module 550 is configured to insert page breaks in the current paragraph and traverse a next paragraph of the current paragraph if there are no page breaks.
It can be seen that, in the scheme provided by the embodiment of the invention, the electronic device may obtain the document to be processed, traverse the paragraphs of the document to be processed according to the sequence from the end of the document to the top of the document, determine whether characters exist in the current paragraph, if no characters exist in the current paragraph, determine whether the number of pages of the current paragraph is the same as the number of pages of the next paragraph in the document to be processed, if not, determine whether the current paragraph has page breaks, if not, insert page breaks in the current paragraph, and traverse the next paragraph of the current paragraph. When the electronic device determines that the current paragraph is a blank paragraph and is not in the same page as the next paragraph in the document to be processed, the electronic device can judge whether the current paragraph has page breaks or not, if the current paragraph does not have page breaks, the electronic device can insert page breaks into the current paragraph and process the next paragraph of the current paragraph, so that the typesetting specification of the document to be processed is convenient for the subsequent processing of the document to be processed.
As an implementation manner of the embodiment of the present invention, the foregoing apparatus may further include:
a second page break determining module (not shown in fig. 5) configured to determine whether a subsequent paragraph of the current paragraph in the document to be processed has a page break if the number of pages of the current paragraph is the same as the number of pages of the subsequent paragraph of the current paragraph in the document to be processed;
a first paragraph deletion module (not shown in FIG. 5) for deleting the current paragraph and traversing a next paragraph of the current paragraph if the next paragraph has page breaks;
a first traversal triggering module (not shown in fig. 5) for traversing a next paragraph of the current paragraph if the next paragraph does not have page breaks.
As an implementation manner of the embodiment of the present invention, the foregoing apparatus may further include:
a third page break determining module (not shown in fig. 5) configured to determine whether a subsequent paragraph of the current paragraph in the document to be processed has a page break before the determining whether the number of pages of the current paragraph is the same as the number of pages of the subsequent paragraph of the current paragraph in the document to be processed;
a page number determination triggering module (not shown in fig. 5) for triggering the paragraph page number determination module 530 if the subsequent paragraph does not have page breaks;
A second paragraph deletion module (not shown in fig. 5) for deleting the current paragraph and traversing a next paragraph of the current paragraph if the next paragraph has page breaks.
As an implementation manner of the embodiment of the present invention, the foregoing apparatus may further include:
a second traversal triggering module (not shown in fig. 5) for traversing a next paragraph of the current paragraph if the current paragraph has the same number of pages as a next paragraph of the current paragraph in the document to be processed.
As an implementation manner of the embodiment of the present invention, the foregoing apparatus may further include:
a second word count determination module (not shown in fig. 5) for determining whether a character exists in a subsequent paragraph in the document to be processed before the determining whether the subsequent paragraph has page breaks in the current paragraph;
a page break judgment triggering module (not shown in fig. 5) for triggering execution of the judgment of whether a subsequent paragraph of the current paragraph in the document to be processed has page break if the subsequent paragraph does not have characters;
a third traversal triggering module (not shown in fig. 5) for traversing a next paragraph of the current paragraph if the next paragraph has characters.
As an implementation manner of the embodiment of the present invention, the foregoing apparatus may further include:
a fourth traversal triggering module (not shown in fig. 5) for traversing a next paragraph of the current paragraph if the current paragraph has page breaks.
As an implementation manner of the embodiment of the present invention, the above-mentioned document obtaining module to be processed 510 may include:
a processing request receiving unit (not shown in fig. 5) for receiving a document processing request sent by a user, wherein the document processing request carries a document identifier to be processed;
a to-be-processed document obtaining unit (not shown in fig. 5) for obtaining a to-be-processed document corresponding to the to-be-processed document identifier.
The embodiment of the present invention further provides an electronic device, as shown in fig. 6, where the electronic device may include a processor 601, a communication interface 602, a memory 603, and a communication bus 604, where the processor 601, the communication interface 602, and the memory 603 perform communication with each other through the communication bus 604,
a memory 603 for storing a computer program;
the processor 601 is configured to execute the program stored in the memory 603, and implement the following steps:
acquiring a document to be processed;
traversing paragraphs of the document to be processed according to the sequence from the tail end of the document to the top end of the document, and judging whether characters exist in the current paragraph or not by traversing one paragraph each time;
If the characters do not exist, judging whether the number of pages of the current paragraph is the same as the number of pages of the next paragraph of the current paragraph in the document to be processed;
if not, judging whether the current paragraph has page breaks;
if there is no page break, page break is inserted in the current paragraph and the next paragraph of the current paragraph is traversed.
It can be seen that, in the scheme provided by the embodiment of the invention, the electronic device may obtain the document to be processed, traverse the paragraphs of the document to be processed according to the sequence from the end of the document to the top of the document, determine whether characters exist in the current paragraph, if no characters exist in the current paragraph, determine whether the number of pages of the current paragraph is the same as the number of pages of the next paragraph in the document to be processed, if not, determine whether the current paragraph has page breaks, if not, insert page breaks in the current paragraph, and traverse the next paragraph of the current paragraph. When the electronic device determines that the current paragraph is a blank paragraph and is not in the same page as the next paragraph in the document to be processed, the electronic device can judge whether the current paragraph has page breaks or not, if the current paragraph does not have page breaks, the electronic device can insert page breaks into the current paragraph and process the next paragraph of the current paragraph, so that the typesetting specification of the document to be processed is convenient for the subsequent processing of the document to be processed.
The communication bus mentioned above for the electronic devices may be a peripheral component interconnect standard (Peripheral Component Interconnect, PCI) bus or an extended industry standard architecture (Extended Industry Standard Architecture, EISA) bus, etc. The communication bus may be classified as an address bus, a data bus, a control bus, or the like. For ease of illustration, the figures are shown with only one bold line, but not with only one bus or one type of bus.
The communication interface is used for communication between the electronic device and other devices.
The Memory may include random access Memory (Random Access Memory, RAM) or may include Non-Volatile Memory (NVM), such as at least one disk Memory. Optionally, the memory may also be at least one memory device located remotely from the aforementioned processor.
The processor may be a general-purpose processor, including a central processing unit (Central Processing Unit, CPU), a network processor (Network Processor, NP), etc.; but also digital signal processors (Digital Signal Processing, DSP), application specific integrated circuits (Application Specific Integrated Circuit, ASIC), field programmable gate arrays (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.
Wherein if the number of pages of the current paragraph is the same as the number of pages of a subsequent paragraph of the current paragraph in the document to be processed, the method may further include:
judging whether a subsequent paragraph of the current paragraph in the document to be processed has page breaks or not;
deleting the current paragraph if the subsequent paragraph has page breaks, and traversing the next paragraph of the current paragraph;
if the next paragraph does not have page breaks, traversing the next paragraph of the current paragraph.
Before the step of determining whether the number of pages of the current paragraph is the same as the number of pages of a subsequent paragraph of the current paragraph in the document to be processed, the method may further include:
judging whether a subsequent paragraph of the current paragraph in the document to be processed has page breaks or not;
if the next paragraph does not have page breaks, executing the step of judging whether the number of pages of the current paragraph is the same as the number of pages of the next paragraph in the document to be processed;
if the subsequent paragraph has page breaks, deleting the current paragraph and traversing the next paragraph of the current paragraph.
Wherein if the number of pages of the current paragraph is the same as the number of pages of a subsequent paragraph of the current paragraph in the document to be processed, the method may further include:
traversing a next paragraph of the current paragraph.
Wherein, before the step of determining whether the current paragraph has page breaks in the subsequent paragraph in the document to be processed, the method may further include:
judging whether characters exist in the next paragraph or not;
if the next paragraph does not have characters, executing the step of judging whether the next paragraph of the current paragraph in the document to be processed has page breaks;
if the next paragraph has characters, traversing the next paragraph of the current paragraph.
Wherein, if the current paragraph has page breaks, the method may further comprise:
traversing a next paragraph of the current paragraph.
The step of obtaining the document to be processed may include:
receiving a document processing request sent by a user, wherein the document processing request carries a document identifier to be processed;
and acquiring the document to be processed corresponding to the document identification to be processed.
The embodiment of the invention also provides a computer readable storage medium, wherein the computer readable storage medium stores a computer program, and the computer program realizes the following steps when being executed by a processor:
Acquiring a document to be processed;
traversing paragraphs of the document to be processed according to the sequence from the tail end of the document to the top end of the document, and judging whether characters exist in the current paragraph or not by traversing one paragraph each time;
if the characters do not exist, judging whether the number of pages of the current paragraph is the same as the number of pages of the next paragraph of the current paragraph in the document to be processed;
if not, judging whether the current paragraph has page breaks;
if there is no page break, page break is inserted in the current paragraph and the next paragraph of the current paragraph is traversed.
It can be seen that, in the solution provided in the embodiment of the present invention, when the computer program is executed by the processor, the document to be processed may be obtained, and according to the order from the end of the document to the top of the document, one paragraph is traversed, whether the current paragraph has characters is determined, if no characters exist, whether the number of pages of the current paragraph is the same as the number of pages of the current paragraph located in the next paragraph in the document to be processed is determined, if not, whether the current paragraph has page breaks is determined, if not, page breaks are inserted in the current paragraph, and the next paragraph of the current paragraph is traversed. When the electronic device determines that the current paragraph is a blank paragraph and is not in the same page as the next paragraph in the document to be processed, the electronic device can judge whether the current paragraph has page breaks or not, if the current paragraph does not have page breaks, the electronic device can insert page breaks into the current paragraph and process the next paragraph of the current paragraph, so that the typesetting specification of the document to be processed is convenient for the subsequent processing of the document to be processed.
Wherein if the number of pages of the current paragraph is the same as the number of pages of a subsequent paragraph of the current paragraph in the document to be processed, the method may further include:
judging whether a subsequent paragraph of the current paragraph in the document to be processed has page breaks or not;
deleting the current paragraph if the subsequent paragraph has page breaks, and traversing the next paragraph of the current paragraph;
if the next paragraph does not have page breaks, traversing the next paragraph of the current paragraph.
Before the step of determining whether the number of pages of the current paragraph is the same as the number of pages of a subsequent paragraph of the current paragraph in the document to be processed, the method may further include:
judging whether a subsequent paragraph of the current paragraph in the document to be processed has page breaks or not;
if the next paragraph does not have page breaks, executing the step of judging whether the number of pages of the current paragraph is the same as the number of pages of the next paragraph in the document to be processed;
if the subsequent paragraph has page breaks, deleting the current paragraph and traversing the next paragraph of the current paragraph.
Wherein if the number of pages of the current paragraph is the same as the number of pages of a subsequent paragraph of the current paragraph in the document to be processed, the method may further include:
traversing a next paragraph of the current paragraph.
Wherein, before the step of determining whether the current paragraph has page breaks in the subsequent paragraph in the document to be processed, the method may further include:
judging whether characters exist in the next paragraph or not;
if the next paragraph does not have characters, executing the step of judging whether the next paragraph of the current paragraph in the document to be processed has page breaks;
if the next paragraph has characters, traversing the next paragraph of the current paragraph.
Wherein, if the current paragraph has page breaks, the method may further comprise:
traversing a next paragraph of the current paragraph.
The step of obtaining the document to be processed may include:
receiving a document processing request sent by a user, wherein the document processing request carries a document identifier to be processed;
and acquiring the document to be processed corresponding to the document identification to be processed.
It should be noted that, with respect to the apparatus, electronic device, and computer-readable storage medium embodiments described above, since they are substantially similar to the method embodiments, the description is relatively simple, and reference should be made to the description of the method embodiments for relevant points.
It is further noted that relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Moreover, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
In this specification, each embodiment is described in a related manner, and identical and similar parts of each embodiment are all referred to each other, and each embodiment mainly describes differences from other embodiments.
The foregoing description is only of the preferred embodiments of the present invention and is not intended to limit the scope of the present invention. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention are included in the protection scope of the present invention.

Claims (16)

1. A document processing method, the method comprising:
acquiring a document to be processed;
traversing paragraphs of the document to be processed according to the sequence from the tail end of the document to the top end of the document, and judging whether characters exist in the current paragraph or not by traversing one paragraph each time;
if the characters do not exist, judging whether the number of pages of the current paragraph is the same as the number of pages of the next paragraph of the current paragraph in the document to be processed;
if not, judging whether the current paragraph has page breaks;
if there is no page break, page break is inserted in the current paragraph and the next paragraph of the current paragraph is traversed.
2. The method of claim 1, wherein the method further comprises:
if the number of pages of the current paragraph is the same as the number of pages of the next paragraph of the current paragraph in the document to be processed, judging whether the next paragraph of the current paragraph in the document to be processed has page breaks or not;
deleting the current paragraph and traversing the next paragraph of the current paragraph if the next paragraph has page breaks;
if the next paragraph does not have page breaks, traversing the next paragraph of the current paragraph.
3. The method of claim 1, wherein prior to the step of determining whether the number of pages of the current paragraph is the same as the number of pages of a subsequent paragraph of the current paragraph in the document to be processed, the method further comprises:
judging whether a subsequent paragraph of the current paragraph in the document to be processed has page breaks or not;
if the next paragraph does not have page breaks, executing the step of judging whether the number of pages of the current paragraph is the same as the number of pages of the next paragraph in the document to be processed;
if the subsequent paragraph has page breaks, deleting the current paragraph and traversing the next paragraph of the current paragraph.
4. The method of claim 3, wherein if the number of pages of the current paragraph is the same as the number of pages of a subsequent paragraph of the current paragraph in the document to be processed, the method further comprises:
traversing a next paragraph of the current paragraph.
5. A method according to claim 2 or 3, wherein prior to the step of determining whether the current paragraph has page breaks in a subsequent paragraph in the document to be processed, the method further comprises:
Judging whether characters exist in the next paragraph or not;
if the next paragraph does not have characters, executing the step of judging whether the next paragraph of the current paragraph in the document to be processed has page breaks;
if the next paragraph has characters, traversing the next paragraph of the current paragraph.
6. The method of any of claims 1-4, wherein if the current paragraph has page breaks, the method further comprises:
traversing a next paragraph of the current paragraph.
7. The method of any of claims 1-4, wherein the step of obtaining the document to be processed comprises:
receiving a document processing request sent by a user, wherein the document processing request carries a document identifier to be processed;
and acquiring the document to be processed corresponding to the document identification to be processed.
8. A document processing apparatus, the apparatus comprising:
the document to be processed acquisition module is used for acquiring the document to be processed;
the first word number determining module is used for traversing paragraphs of the document to be processed according to the sequence from the tail end of the document to the top end of the document, and judging whether characters exist in the current paragraph or not by traversing one paragraph each time;
The paragraph page number determining module is used for judging whether the page number of the current paragraph is the same as the page number of the next paragraph in the document to be processed;
the first page break determining module is used for determining whether the current paragraph has page break or not if the number of pages of the current paragraph is different from the number of pages of the next paragraph of the current paragraph in the document to be processed;
and the page break inserting module is used for inserting page breaks into the current paragraph and traversing the next paragraph of the current paragraph if the page breaks do not exist.
9. The apparatus of claim 8, wherein the apparatus further comprises:
the second page break determining module is used for judging whether the next paragraph of the current paragraph in the document to be processed has page breaks or not if the page number of the current paragraph is the same as the page number of the next paragraph of the current paragraph in the document to be processed;
a first paragraph deleting module, configured to delete the current paragraph if the subsequent paragraph has page breaks, and traverse the next paragraph of the current paragraph;
And the first traversal triggering module is used for traversing the next paragraph of the current paragraph if the next paragraph does not have page breaks.
10. The apparatus of claim 8, wherein the apparatus further comprises:
a third page break determining module, configured to determine whether a subsequent paragraph of the current paragraph in the document to be processed has a page break before the determining whether the number of pages of the current paragraph is the same as the number of pages of the subsequent paragraph of the current paragraph in the document to be processed;
the page number determining triggering module is used for triggering the paragraph page number determining module if the subsequent paragraph does not have page breaks;
and a second paragraph deleting module, configured to delete the current paragraph and traverse the next paragraph of the current paragraph if the next paragraph has page breaks.
11. The apparatus of claim 10, wherein the apparatus further comprises:
and the second traversal triggering module is used for traversing the next paragraph of the current paragraph if the page number of the current paragraph is the same as the page number of the next paragraph of the current paragraph in the document to be processed.
12. The apparatus according to claim 9 or 10, wherein the apparatus further comprises:
A second word number determining module, configured to determine whether a character exists in a subsequent paragraph in the document to be processed before the determining whether the subsequent paragraph has page breaks in the current paragraph;
the page break judgment triggering module is used for triggering and executing the judgment of whether the next paragraph of the current paragraph in the document to be processed has page break or not if the next paragraph does not have characters;
and a third traversal triggering module, configured to traverse the next paragraph of the current paragraph if the character exists in the next paragraph.
13. The apparatus according to any one of claims 8-11, wherein the apparatus further comprises:
and a fourth traversal triggering module, configured to traverse a next paragraph of the current paragraph if the current paragraph has page breaks.
14. The apparatus of any of claims 8-11, wherein the pending document acquisition module comprises:
a processing request receiving unit, configured to receive a document processing request sent by a user, where the document processing request carries a document identifier to be processed;
and the pending document acquisition unit is used for acquiring the pending document corresponding to the pending document identifier.
15. The electronic equipment is characterized by comprising a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory are communicated with each other through the communication bus;
a memory for storing a computer program;
a processor for implementing the method of any of claims 1-7 when executing a program stored on a memory.
16. A computer readable storage medium, characterized in that the computer readable storage medium has stored therein a computer program which, when executed by a processor, implements the method of any of claims 1-7.
CN201910248173.8A 2019-03-29 2019-03-29 Document processing method and device, electronic equipment and storage medium Active CN111832262B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910248173.8A CN111832262B (en) 2019-03-29 2019-03-29 Document processing method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910248173.8A CN111832262B (en) 2019-03-29 2019-03-29 Document processing method and device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN111832262A CN111832262A (en) 2020-10-27
CN111832262B true CN111832262B (en) 2023-06-20

Family

ID=72914259

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910248173.8A Active CN111832262B (en) 2019-03-29 2019-03-29 Document processing method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN111832262B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US3618032A (en) * 1968-12-09 1971-11-02 Ibm Automatic data composing, editing and formatting system
JP2007004583A (en) * 2005-06-24 2007-01-11 Rococo:Kk Automatic composition system
CN102479215A (en) * 2010-11-30 2012-05-30 汉王科技股份有限公司 Automatic file exporting method and electronic reading device
CN102681980A (en) * 2011-03-17 2012-09-19 珠海全志科技股份有限公司 Typesetting processing method and device based on original document
CN104424160A (en) * 2013-09-11 2015-03-18 北大方正集团有限公司 Processing system and processing method for document skip
CN108681531A (en) * 2018-05-09 2018-10-19 天津字节跳动科技有限公司 The control method and device of document input

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102346782A (en) * 2011-10-25 2012-02-08 中兴通讯股份有限公司 Method and device for displaying pictures on browser of user terminal as required
US10318614B2 (en) * 2015-07-01 2019-06-11 Tnq Books And Journals Private Limited Transformation of marked-up content into a file format that enables automated browser based pagination

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US3618032A (en) * 1968-12-09 1971-11-02 Ibm Automatic data composing, editing and formatting system
JP2007004583A (en) * 2005-06-24 2007-01-11 Rococo:Kk Automatic composition system
CN102479215A (en) * 2010-11-30 2012-05-30 汉王科技股份有限公司 Automatic file exporting method and electronic reading device
CN102681980A (en) * 2011-03-17 2012-09-19 珠海全志科技股份有限公司 Typesetting processing method and device based on original document
CN104424160A (en) * 2013-09-11 2015-03-18 北大方正集团有限公司 Processing system and processing method for document skip
CN108681531A (en) * 2018-05-09 2018-10-19 天津字节跳动科技有限公司 The control method and device of document input

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
Word 2007让文档页面守点规矩;姚文连;;电脑爱好者(13);全文 *

Also Published As

Publication number Publication date
CN111832262A (en) 2020-10-27

Similar Documents

Publication Publication Date Title
CN111414727B (en) Editing method and device for PDF document header footer and electronic equipment
CN109902269A (en) A kind of document display method, device, electronic equipment and readable storage medium storing program for executing
CN111832262B (en) Document processing method and device, electronic equipment and storage medium
CN111695414B (en) Document processing method and device, electronic equipment and computer readable storage medium
CN111553130A (en) Chapter title style conversion method and device, electronic equipment and storage medium
CN109977423B (en) Method and device for processing word, electronic equipment and readable storage medium
CN109992759B (en) Table object editing method and device, electronic equipment and storage medium
US10254959B2 (en) Method of inputting a character into a text string using a sliding touch gesture, and electronic device therefor
CN111507067A (en) Acquisition method for displaying formula picture, and method and device for transferring formula picture
CN112416500B (en) Information processing method and electronic equipment
CN110728113A (en) Information screening method and device of electronic forms and terminal equipment
CN111832270B (en) Method and device for displaying line numbers and column labels of tables in non-table document and electronic equipment
CN113656718A (en) Theme switching method and device
CN112784526A (en) Document page adjusting method and device
CN111428210B (en) Method and device for editing watermark and electronic equipment
CN112783400B (en) Document content selection method and device, electronic equipment and storage medium
CN111666733B (en) Method and device for processing cells in document
CN112395829B (en) Method and device for adding Chinese numbers to documents and electronic equipment
CN112784542B (en) Document editing method and device
CN111666020A (en) Method and device for switching document pages, electronic equipment and storage medium
CN111078647B (en) Method and device for creating uncompressed file and testing magnetic disk and electronic equipment
EP3971697A1 (en) Document display method and device
CN110543623B (en) PDF document display method and device
CN109597497B (en) Information prediction method, device and equipment
CN109902277B (en) Document editing method and device, electronic equipment and readable storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant