CN111414111A - Page cutting method and device - Google Patents
Page cutting method and device Download PDFInfo
- Publication number
- CN111414111A CN111414111A CN201910008852.8A CN201910008852A CN111414111A CN 111414111 A CN111414111 A CN 111414111A CN 201910008852 A CN201910008852 A CN 201910008852A CN 111414111 A CN111414111 A CN 111414111A
- Authority
- CN
- China
- Prior art keywords
- page
- cut
- area
- cutting
- user
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0481—Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
- G06F3/0483—Interaction with page-structured environments, e.g. book metaphor
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0484—Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
- G06F3/04847—Interaction techniques to control parameter settings, e.g. interaction with sliders or dials
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/451—Execution arrangements for user interfaces
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Human Computer Interaction (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Software Systems (AREA)
- Editing Of Facsimile Originals (AREA)
Abstract
The embodiment of the invention discloses a page cutting method and device, and relates to the technical field of page processing. Wherein, include: after the page cutting function is started, selecting a first area to be cut in a page to be cut; under the condition that a region confirmation instruction of a user is received, cutting the page to be cut, and taking the first region to be cut as a cutting result; and under the condition that a second area to be cut selected by the user in the page to be cut is received, if the area confirmation instruction is received, cutting the page to be cut, and taking the second area to be cut as a cutting result. When the scheme provided by the embodiment of the invention is applied to page cutting, the operation steps of cutting are simplified, and the convenience and the usability of the cutting function are improved.
Description
Technical Field
The invention relates to the field of page processing, in particular to a page clipping method and device.
Background
When a user uses a PDF document, a Word document, a WPS document and other documents, the page size of the document may not meet the requirements of the user, and the document page needs to be cut. Generally, page cutting is completed by manual operation of a user. For example: after the function of cutting the page is started, a user firstly needs to press a left mouse button to drag and select a cutting frame with a proper size from a page of a document displayed by the electronic equipment, secondly, a setting panel pops up on a display interface of the electronic equipment after the user double-clicks the cutting frame or clicks an Enter key, and finally, the user clicks a confirm button or a finish button after parameters are modified on the setting panel, and the electronic equipment cuts the page according to the parameters modified by the user on the setting panel.
Although the page cutting can be achieved by applying the method, the operation is complex in the method, and the multiple steps all need manual operation of a user, so that the convenience of the page cutting process is poor, and the user experience is not high.
Disclosure of Invention
The embodiment of the invention aims to provide a method and a device for cutting a page, so as to improve the usability and convenience of cutting when cutting operation is carried out. The specific technical scheme is as follows:
in a first aspect, an embodiment of the present invention provides a page clipping method, where the method includes:
after the page cutting function is started, selecting a first area to be cut in a page to be cut;
under the condition that a region confirmation instruction of a user is received, cutting the page to be cut, and taking the first region to be cut as a cutting result;
and under the condition that a second area to be cut selected by the user in the page to be cut is received, if the area confirmation instruction is received, cutting the page to be cut, and taking the second area to be cut as a cutting result.
In an embodiment of the present invention, the selecting a first region to be cropped in a page to be cropped includes:
identifying a content area of a page to be cut to obtain an identification result;
if the content area is identified by the identification result representation, determining the content area as a first area to be cut;
and if the identification result represents that the content area is not identified, taking the whole page to be cropped as the first area to be cropped.
In an embodiment of the present invention, in a case that a second region to be cropped selected by a user in the page to be cropped is received, the method further includes:
detecting whether a page cutting function is started or not;
if so, executing the step of selecting the first area to be cut in the page to be cut.
In an embodiment of the present invention, the area confirmation instruction is:
an instruction generated by a user clicking an area determination button; or
An instruction generated by clicking a preset key by a user; or
An instruction generated by a user double-clicking the first region to be cropped or the second region to be cropped.
In an embodiment of the present invention, before receiving the area acknowledgement instruction, the method further includes:
receiving an application range setting instruction aiming at a region to be cut, wherein the region to be cut is as follows: the first area to be cut or the second area to be cut;
responding to the application range setting instruction;
the cutting of the page to be cut comprises the following steps:
cutting pages belonging to an application range in the pages to be cut, wherein the application range is as follows: the application scope setting instruction indicates the scope.
In an embodiment of the present invention, before receiving the area acknowledgement instruction, the method further includes:
receiving a page adjusting instruction;
adjusting the area to be cut according to the page adjusting instruction, wherein the area to be cut is as follows: the first area to be cut or the second area to be cut;
the cutting of the page to be cut comprises the following steps:
and cutting the page to be cut after the page adjustment.
In a second aspect, an embodiment of the present invention provides a page cropping device, where the device includes:
the first area selection module is used for selecting a first area to be cut in the page to be cut after the page cutting function is started;
the first result obtaining module is used for triggering the page cutting module to cut the page to be cut under the condition of receiving a region confirmation instruction of a user, and taking the first region to be cut as a cutting result;
the second result obtaining module is used for triggering the page cutting module to cut the page to be cut if the area confirmation instruction is received under the condition that a second area to be cut selected by a user in the page to be cut is received, and taking the second area to be cut as a cutting result;
and the page cutting module is used for cutting the page to be cut.
In an embodiment of the present invention, the first area selection module is specifically configured to identify a content area of a page to be cut after a page cutting function is started, and obtain an identification result; if the content area is identified by the identification result representation, determining the content area as a first area to be cut; and if the identification result represents that the content area is not identified, taking the whole page to be cropped as the first area to be cropped.
In an embodiment of the present invention, in a case that a second region to be cropped selected by a user in the page to be cropped is received, the method further includes: a function detection module;
the function detection module is used for detecting whether a page cutting function is started or not, and if so, the first area selection module is triggered.
In an embodiment of the present invention, the area confirmation operation instruction is:
an instruction generated by a user clicking an area determination button; or
An instruction generated by clicking a preset key by a user; or
An instruction generated by a user double-clicking the first region to be cropped or the second region to be cropped.
In one embodiment of the present invention, the apparatus further comprises:
a first instruction receiving module, configured to receive an application range setting instruction for a region to be clipped before receiving the region confirmation instruction, where the region to be clipped is: the first area to be cut or the second area to be cut;
the instruction response module is used for responding to the application range setting instruction;
the page cutting module is specifically configured to cut a page belonging to an application range in the to-be-cut page, where the application range is: the application scope setting instruction indicates the scope.
In one embodiment of the present invention, the apparatus further comprises:
the second instruction receiving module is used for receiving a page adjusting instruction before receiving the area confirmation instruction;
the page adjusting module is used for adjusting the page to be cut according to the page adjusting instruction, wherein the area to be cut is as follows: the first area to be cut or the second area to be cut;
the page cutting module is specifically used for cutting the page to be cut after the page adjustment is performed.
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 and the communication interface complete communication between the memory and the processor through the communication bus;
a memory for storing a computer program;
the processor is used for realizing the steps of the method of the embodiment of the invention when the program stored in the memory is executed.
In a fourth aspect, the embodiment of the present invention provides a computer-readable storage medium, in which a computer program is stored, and the computer program, when executed by a processor, implements the method steps described in the embodiment of the present invention.
Therefore, when the scheme provided by the embodiment of the invention is applied to page cutting, after the page cutting function is started, the first area to be cut is selected in the page to be cut. And under the condition of receiving a region confirmation instruction of a user, cutting the page to be cut, and taking the first region to be cut as a cutting result. And under the condition that a second area to be cut selected by the user in the page to be cut is received, if an area confirmation instruction is received, cutting the page to be cut, and taking the second area to be cut as a cutting result. Compared with the prior art, in the scheme provided by the embodiment of the invention, after the page cutting function is started, the area to be cut is directly selected in the page and cut according to the selected area, and only when the area to be cut selected in the page by the user is received, the area to be cut is cut according to the selection of the user.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below.
Fig. 1 is a schematic flow chart of a page trimming method according to an embodiment of the present invention;
FIG. 2 is a schematic diagram of a page range floating panel according to an embodiment of the present invention;
FIG. 3 is a schematic diagram of a floating panel for selective area adjustment according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of a page trimming apparatus according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of an electronic device for page cropping according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The embodiment of the invention provides a method and a device for page cutting, which are respectively explained in detail below.
The following first describes the implementation subject of the solution provided by the embodiment of the present invention.
The execution main body of the scheme provided by the embodiment of the invention can be an electronic device, such as a mobile phone, a tablet computer, a notebook computer, a desktop computer and the like. The execution body may also be an application program for performing document processing, for example, an application program such as WPS, Word, PDF, or the like.
Referring to fig. 1, fig. 1 is a schematic flow chart of a page trimming method according to an embodiment of the present invention, including the following steps:
The page cutting function is started, and the preset button can be detected to be pressed and started, the preset key can be detected to be pressed and started, and the preset key can also be triggered and started by other operations.
Specifically, the preset button may be a button provided for the function of page cutting in advance. The preset key may be a shortcut key set for the function of page trimming, and the shortcut key may correspond to one key on the keyboard or a combination of several keys on the keyboard.
The page to be cut refers to a page needing to be cut in the document file. The page to be cropped may only include one page or may include a plurality of pages.
Specifically, the page to be clipped may be a currently displayed page, may be all pages of the document, or may be a partial page of the document. For example, the partial pages may be odd page pages, even page pages of the document, designated page pages of the document, such as pages 1-15 of the document, and so forth.
In an embodiment of the present invention, the selecting the first area to be cropped in the page to be cropped includes:
identifying a content area of a page to be cut to obtain an identification result;
if the content area is identified by the identification result representation, determining the content area as a first area to be cut;
and if the identification result represents that the content area is not identified, taking the whole page to be cropped as the first area to be cropped.
Specifically, after the user clicks a key of the page to be cut to start the cutting function, content identification is performed on the page to be cut. If the content area of the page is identified, the content area is selected as a clipping area to be clipped; and if the content area of the page is not identified, the whole current page is selected as the clipping area to be clipped.
The content area described above can be understood as: the area of the page where the content is located. The content occupied area of each page of the document is different due to the composition form, the content space, and other factors, that is, the content area in each page may be different, for example, some pages have content in the whole page range, the content area is the whole page, some pages have content in only part of the page range, and the content area is the area of the page having content, for example, the content area is the upper half of the page.
And 102, under the condition that an area confirmation instruction of a user is received, cutting the page to be cut, and taking the first area to be cut as a cutting result.
Since the first area to be trimmed is directly selected after the page trimming function is determined to be turned on in step 101 without the user intervening, the directly selected first area to be trimmed may or may not meet the user's requirements in consideration of the accuracy of the area selection algorithm, the variety of specific requirements of the user, and other factors. In view of this, in this step, the user's region confirmation instruction triggers the page cropping operation, that is, the user confirms that the first region to be cropped is the desired cropping region before performing the page cropping operation.
In an embodiment of the present invention, the area confirmation instruction may be one of the following three instructions.
A first instruction to: an instruction generated by a user clicking on the area determination button.
In order to facilitate the user's confirmation of the selected area, a button may be provided. In addition, for convenience of description, this button is referred to as an area determination button in the embodiment of the present invention. Specifically, the area determination button may be provided in the assistant toolbar, and for this purpose, the area confirmation instruction may be an instruction generated by a user clicking the area determination button in the assistant toolbar.
The second type of instruction: and the instruction is generated by clicking the preset key by the user.
Specifically, the preset key may be an enter key or a space key on a keyboard, or may be a left key or a right key of a mouse. In addition, the preset key may be a combination key formed by combining a plurality of keys, and the like.
A third instruction: an instruction generated by double-clicking the first region to be cropped by a user.
Specifically, the double-clicking of the first area to be cut by the user may be double-clicking of the first area to be cut by the user through an operation key of a mouse, double-clicking of an area corresponding to the first area to be cut on a touch screen by a finger of the user, double-clicking of an area corresponding to the first area to be cut on the touch screen by the user using a stylus pen, and the like.
In the embodiment, various forms of area confirmation instructions are provided, so that a user can confirm the area to be cut through various operations, and the user operation is diversified.
And 103, under the condition that a second area to be cut selected by the user in the page to be cut is received, if the area confirmation instruction is received, cutting the page to be cut, and taking the second area to be cut as a cutting result.
As can be known from the description of the foregoing step 102, the first region to be trimmed directly selected by the user without intervention may not meet the requirement of the user, and therefore, in order to meet the requirement of the user, in this step, a second region to be trimmed selected by the user in the page to be trimmed may also be obtained, and then page trimming is performed according to the requirement of the user.
The second region to be cropped may be determined by a user through manual frame selection, or may be determined by inputting data, where the data may include one or more of information such as vertex coordinates of the region, width of the region, and height of the region, for example, when two coordinates are input, a rectangular region with the two coordinates as a vertex at an upper left corner and a vertex at a lower right corner may be determined as the second region to be cropped.
The area confirmation instruction received in this step may be an instruction generated by the user double-clicking the second area to be clipped, similar to the third instruction, except that the first instruction and the second instruction mentioned in the foregoing step 102 are used.
It should be noted that a specific implementation manner of double-clicking the second region to be cropped by the user is the same as the foregoing manner of double-clicking the first region to be cropped by the user, and details are not repeated here.
In an embodiment of the present invention, in the case of receiving the second to-be-cut region selected by the user in the to-be-cut page, the method further includes:
detecting whether a page cutting function is started or not;
if yes, go to step 101.
In view of the above, in the present embodiment, in the process of manually selecting the area to be clipped by the user, whether the page clipping function is turned on is detected, and it can be ensured that the manual selection area and the execution main body selection area are switched in time according to the intention of the user.
As can be seen from the above, in the solutions provided in the above embodiments, after the page trimming function is started, the area to be trimmed is directly selected in the page, and trimming is performed according to the selected area, and only when the area to be trimmed selected in the page by the user is received, trimming is performed according to the selection of the user.
In an embodiment of the present invention, before receiving the area confirmation instruction, an application range setting instruction for an area to be clipped may also be received, where the area to be clipped is: the first area to be cut or the second area to be cut;
responding to the application range setting instruction.
In this case, when the page to be cut is cut, a page belonging to an application range in the page to be cut may be cut, where the application range is: the application scope setting instruction indicates the scope.
Specifically, the application range may be a current page, a partial page of the document, or a whole page of the document.
In an embodiment of the present invention, the application range may be set in a page, such as the page shown in fig. 2. When the application range is a part of pages or all pages of the document, the application range can be further selected to be odd pages or even pages in the part of pages or all pages. Specifically, the page for setting the application range may be presented in the form of a floating panel.
In an embodiment of the present invention, after receiving the application range setting instruction, the set application range may be previewed. For example, a page within the above application range is previewed by a page turning operation.
In response to the application range setting instruction, it may be understood that each page in the application range is regarded as a page to be clipped, and an area of each page in the application range, which is the same as an area indicated by the first page to be clipped, is determined as an area to be clipped.
In this embodiment, a setting of a page application range of the trimming page is provided, and the trimming operation may be applied to a page range selected by the user, that is, when the page trimming is performed, the page trimming may be performed within a desired range according to an intention of the user.
In an embodiment of the present invention, before receiving the area confirmation instruction, a page adjustment instruction may be further received, where the area to be clipped is: the first area to be cut or the second area to be cut;
and adjusting the page to be cut according to the page adjusting instruction.
In this case, when the page to be cut is cut, the page to be cut after the page adjustment may be cut.
Specifically, the page adjusting instruction may be an instruction for adjusting a margin of a page, an instruction for scaling a page, an instruction for adjusting a font of a page, an instruction for deleting a margin of a page, an instruction for adjusting a page unit, an instruction for restricting a high ratio of a width of a page, and the like. What information the page adjustment instruction adjusts may be set in a page, which may be as shown in fig. 3. Specifically, the page for setting the information adjusted by the page adjusting instruction may be presented in the form of a floating panel.
In an embodiment of the present invention, after the page adjustment instruction is received, the adjustment effect may be previewed.
In this embodiment, a page adjustment setting for the trimming page is provided, and a user can perform detail adjustment on the selected to-be-trimmed page according to a requirement, that is, when performing page trimming, the user can perform page trimming in a desired page setting according to the intention of the user.
In one embodiment of the invention, when an operation error may occur in the page cutting process, the user wants to restore the content before cutting, therefore, the content of the page before and after cutting can be recorded each time, and convenience is provided for the user when the user wants to switch between the content of the page before and after cutting.
Corresponding to the page cutting method, the embodiment of the invention also provides a page cutting device.
Referring to fig. 4, fig. 4 is a schematic structural diagram of a page cropping device provided in an embodiment of the present invention, where the device includes:
the first area selection module 401 is configured to select a first area to be cut in a page to be cut after the page cutting function is started;
a first result obtaining module 402, configured to, when an area confirmation instruction of a user is received, trigger a page clipping module to clip the page to be clipped, where the first area to be clipped is used as a clipping result;
a second result obtaining module 403, configured to, when a second area to be trimmed selected by the user in the page to be trimmed is received, trigger the page trimming module to trim the page to be trimmed if the area confirmation instruction is received, and use the second area to be trimmed as a trimming result;
the page clipping module 404 is configured to clip the page to be clipped.
In an embodiment of the present invention, the first region selection module 401 is specifically configured to, after the page cutting function is started, identify a content region of a page to be cut, and obtain an identification result; if the content area is identified by the identification result representation, determining the content area as a first area to be cut; and if the identification result represents that the content area is not identified, taking the whole page to be cropped as the first area to be cropped.
In an embodiment of the present invention, in a case that a second region to be cropped selected by a user in the page to be cropped is received, the method further includes: a function detection module;
the function detection module is used for detecting whether a page cutting function is started or not, and if so, the first area selection module is triggered.
In an embodiment of the present invention, the area confirmation operation instruction is:
an instruction generated by a user clicking an area determination button; or
An instruction generated by clicking a preset key by a user; or
An instruction generated by a user double-clicking the first region to be cropped or the second region to be cropped.
In the embodiment, various forms of area confirmation instructions are provided, so that a user can confirm the area to be cut through various operations, and the user operation is diversified.
In one embodiment of the present invention, the apparatus further comprises:
a first instruction receiving module, configured to receive an application range setting instruction for a region to be clipped before receiving the region confirmation instruction, where the region to be clipped is: the first area to be cut or the second area to be cut;
the instruction response module is used for responding to the application range setting instruction;
the page cutting module is specifically configured to cut a page belonging to an application range in the to-be-cut page, where the application range is: the application scope setting instruction indicates the scope.
In this embodiment, a setting of a page application range of the trimming page is provided, and the trimming operation may be applied to a page range selected by the user, that is, when the page trimming is performed, the page trimming may be performed within a desired range according to an intention of the user.
In one embodiment of the present invention, the apparatus further comprises:
the second instruction receiving module is used for receiving a page adjusting instruction before receiving the area confirmation instruction;
the page adjusting module is used for adjusting the page to be cut according to the page adjusting instruction, wherein the area to be cut is as follows: the first area to be cut or the second area to be cut;
the page cutting module is specifically used for cutting the page to be cut after the page adjustment is performed.
In this embodiment, a page adjustment setting for the trimming page is provided, and a user can perform detail adjustment on the selected to-be-trimmed page according to a requirement, that is, when performing page trimming, the user can perform page trimming in a desired page setting according to the intention of the user.
According to the scheme provided by the embodiment of the invention, after the page cutting function is started, the area to be cut is directly selected in the page and is cut according to the selected area, and only when the area to be cut selected in the page by the user is received, the area is cut according to the selection of the user.
An embodiment of the present invention further provides an electronic device, as shown in fig. 5, which includes a processor 501, a communication interface 502, a memory 503 and a communication bus 504, where the processor 501, the communication interface 502 and the memory 503 complete mutual communication through the communication bus 504,
a memory 503 for storing a computer program;
the processor 501, when executing the program stored in the memory 503, implements the following steps:
after the page cutting function is started, selecting a first area to be cut in a page to be cut;
under the condition that a region confirmation instruction of a user is received, cutting the page to be cut, and taking the first region to be cut as a cutting result;
and under the condition that a second area to be cut selected by the user in the page to be cut is received, if the area confirmation instruction is received, cutting the page to be cut, and taking the second area to be cut as a cutting result.
The communication bus mentioned in the electronic device may be a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, or the like. The communication bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is shown, but this does not mean that there is only one bus or one type of bus.
The communication interface is used for communication between the electronic equipment and other equipment.
The Memory may include a Random Access Memory (RAM) or a 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 processor. The Processor may be a general-purpose Processor, including a Central Processing Unit (CPU), a Network Processor (NP), and the like; but may also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other Programmable logic device, discrete gate or transistor logic device, discrete hardware component.
As can be seen from the above, when the electronic device provided by the embodiment performs page cutting, after the page cutting function is started, the area to be cut in the page is directly selected, and the electronic device performs cutting according to the selected area, and only when the area to be cut selected in the page by the user is received, the electronic device performs cutting according to the selection of the user.
An embodiment of the present invention further provides a computer-readable storage medium, in which a computer program is stored, and when the computer program is executed by a processor, the computer program implements the following steps:
after the page cutting function is started, selecting a first area to be cut in a page to be cut;
under the condition that a region confirmation instruction of a user is received, cutting the page to be cut, and taking the first region to be cut as a cutting result;
and under the condition that a second area to be cut selected by the user in the page to be cut is received, if the area confirmation instruction is received, cutting the page to be cut, and taking the second area to be cut as a cutting result.
As can be seen from the above, after the page trimming function of the computer storage medium provided by this embodiment is started, the area to be trimmed is directly selected in the page and trimmed according to the selected area, and only when the area to be trimmed selected in the page by the user is received, trimming is performed according to the selection of the user.
It is noted that, herein, relational terms such as first and second, and the like may be 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. Also, 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 an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
All the embodiments in the present specification are described in a related manner, and the same and similar parts among the embodiments may be referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, for the apparatus, electronic device, and computer-readable storage medium embodiments, since they are substantially similar to the method embodiments, the description is relatively simple, and reference may be made to some descriptions of the method embodiments for relevant points.
The above description is only for the preferred embodiment of the present invention, and is not intended to limit the scope of the present invention. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention shall fall within the protection scope of the present invention.
Claims (10)
1. A method for page cropping, the method comprising:
after the page cutting function is started, selecting a first area to be cut in a page to be cut;
under the condition that a region confirmation instruction of a user is received, cutting the page to be cut, and taking the first region to be cut as a cutting result;
and under the condition that a second area to be cut selected by the user in the page to be cut is received, if the area confirmation instruction is received, cutting the page to be cut, and taking the second area to be cut as a cutting result.
2. The method according to claim 1, wherein selecting the first region to be cropped in the page to be cropped comprises:
identifying a content area of a page to be cut to obtain an identification result;
if the content area is identified by the identification result representation, determining the content area as a first area to be cut;
and if the identification result represents that the content area is not identified, taking the whole page to be cropped as the first area to be cropped.
3. The method according to claim 1, wherein in case of receiving a second region to be cropped selected by a user in the page to be cropped, further comprising:
detecting whether a page cutting function is started or not;
if so, executing the step of selecting the first area to be cut in the page to be cut.
4. The method of claim 1, wherein the region confirmation instruction is:
an instruction generated by a user clicking an area determination button; or
An instruction generated by clicking a preset key by a user; or
An instruction generated by a user double-clicking the first region to be cropped or the second region to be cropped.
5. The method according to any of claims 1-4, further comprising, prior to receiving the zone acknowledgement instruction:
receiving an application range setting instruction aiming at a region to be cut, wherein the region to be cut is as follows: the first area to be cut or the second area to be cut;
responding to the application range setting instruction;
the cutting of the page to be cut comprises the following steps:
cutting pages belonging to an application range in the pages to be cut, wherein the application range is as follows: the application scope setting instruction indicates the scope.
6. The method according to any of claims 1-4, further comprising, prior to receiving the zone acknowledgement instruction:
receiving a page adjusting instruction;
adjusting the area to be cut according to the page adjusting instruction, wherein the area to be cut is as follows: the first area to be cut or the second area to be cut;
the cutting of the page to be cut comprises the following steps:
and cutting the page to be cut after the page adjustment.
7. A page cropping device, characterized in that it comprises:
the first area selection module is used for selecting a first area to be cut in the page to be cut after the page cutting function is started;
the first result obtaining module is used for triggering the page cutting module to cut the page to be cut under the condition of receiving a region confirmation instruction of a user, and taking the first region to be cut as a cutting result;
the second result obtaining module is used for triggering the page cutting module to cut the page to be cut if the area confirmation instruction is received under the condition that a second area to be cut selected by a user in the page to be cut is received, and taking the second area to be cut as a cutting result;
and the page cutting module is used for cutting the page to be cut.
8. The apparatus of claim 7,
the first area selection module is specifically used for identifying a content area of a page to be cut after the page cutting function is started to obtain an identification result; if the content area is identified by the identification result representation, determining the content area as a first area to be cut; and if the identification result represents that the content area is not identified, taking the whole page to be cropped as the first area to be cropped.
9. An electronic device is characterized by comprising a processor, a communication interface, a memory and a communication bus, wherein the processor and the communication interface are used for realizing mutual communication by the memory through the communication bus;
a memory for storing a computer program;
a processor for implementing the method steps of any of claims 1-6 when executing a program stored in the memory.
10. A computer-readable storage medium, characterized in that a computer program is stored in the computer-readable storage medium, which computer program, when being executed by a processor, carries out the method steps of any one of claims 1 to 6.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910008852.8A CN111414111A (en) | 2019-01-04 | 2019-01-04 | Page cutting method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910008852.8A CN111414111A (en) | 2019-01-04 | 2019-01-04 | Page cutting method and device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN111414111A true CN111414111A (en) | 2020-07-14 |
Family
ID=71490725
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910008852.8A Pending CN111414111A (en) | 2019-01-04 | 2019-01-04 | Page cutting method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111414111A (en) |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101903861A (en) * | 2007-10-24 | 2010-12-01 | 造型逻辑有限公司 | Electronic document reader |
CN102855482A (en) * | 2012-08-16 | 2013-01-02 | 东莞宇龙通信科技有限公司 | Image processing method and device |
CN103941963A (en) * | 2014-04-29 | 2014-07-23 | 福建星网视易信息系统有限公司 | Method and device for automatically adjusting page layout |
CN105389165A (en) * | 2015-10-21 | 2016-03-09 | 广州视睿电子科技有限公司 | Document picture display method and device and terminal |
CN105528333A (en) * | 2015-12-15 | 2016-04-27 | 网易(杭州)网络有限公司 | Method and device for optimally displaying document |
CN106489156A (en) * | 2015-02-04 | 2017-03-08 | 瓦特博克有限公司 | System and method for extracting file and picture from the image for characterizing multiple documents |
CN107399169A (en) * | 2017-07-19 | 2017-11-28 | 北京小米移动软件有限公司 | The control method and device of printer |
CN108008991A (en) * | 2017-10-30 | 2018-05-08 | 努比亚技术有限公司 | A kind of image processing method, terminal and computer-readable recording medium |
-
2019
- 2019-01-04 CN CN201910008852.8A patent/CN111414111A/en active Pending
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101903861A (en) * | 2007-10-24 | 2010-12-01 | 造型逻辑有限公司 | Electronic document reader |
CN102855482A (en) * | 2012-08-16 | 2013-01-02 | 东莞宇龙通信科技有限公司 | Image processing method and device |
CN103941963A (en) * | 2014-04-29 | 2014-07-23 | 福建星网视易信息系统有限公司 | Method and device for automatically adjusting page layout |
CN106489156A (en) * | 2015-02-04 | 2017-03-08 | 瓦特博克有限公司 | System and method for extracting file and picture from the image for characterizing multiple documents |
CN105389165A (en) * | 2015-10-21 | 2016-03-09 | 广州视睿电子科技有限公司 | Document picture display method and device and terminal |
CN105528333A (en) * | 2015-12-15 | 2016-04-27 | 网易(杭州)网络有限公司 | Method and device for optimally displaying document |
CN107399169A (en) * | 2017-07-19 | 2017-11-28 | 北京小米移动软件有限公司 | The control method and device of printer |
CN108008991A (en) * | 2017-10-30 | 2018-05-08 | 努比亚技术有限公司 | A kind of image processing method, terminal and computer-readable recording medium |
Non-Patent Citations (1)
Title |
---|
冒险者OK: "PDF文件如何裁剪页面 PDF裁剪页面的方法", 《百度经验,HTTPS://JINGYAN.BAIDU.COM/ARTICLE/76A7E409E6E476FC3B6E15CB.HTML》 * |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11112902B2 (en) | Touch operation processing method and terminal device | |
CN107632895B (en) | Information sharing method and mobile terminal | |
US11360638B2 (en) | Method for processing icons and mobile terminal | |
US10489047B2 (en) | Text processing method and device | |
CN105824559B (en) | False touch recognition and processing method and electronic equipment | |
US7479948B2 (en) | Terminal and method for entering command in the terminal | |
US20150277571A1 (en) | User interface to capture a partial screen display responsive to a user gesture | |
CN105068723B (en) | Information processing method and electronic equipment | |
CN105975152B (en) | Fingerprint-based application program calling method and mobile terminal | |
CN107577401A (en) | A kind of image processing method and mobile terminal | |
CN104281360B (en) | Editing and processing device and editing and processing method | |
CN106445972B (en) | Page display method and device | |
CN110286840B (en) | Gesture zooming control method and device of touch equipment and related equipment | |
CN106648436A (en) | Text message processing method and mobile terminal | |
CN104156140A (en) | A method and device for quickly editing text using a gravity sensor | |
WO2018001264A1 (en) | Content processing method and mobile terminal | |
CN105824520A (en) | Desktop icon batch processing method and mobile terminal | |
CN106775378B (en) | Method for determining candidate words of input method and mobile terminal | |
WO2015096598A1 (en) | Page content selection method and system | |
CN107247698A (en) | A kind of method of text editing, mobile terminal and the device with store function | |
CN106933462B (en) | Operation bar arrangement method and device of mobile terminal | |
CN107203280B (en) | Punctuation input method and terminal | |
CN112417830B (en) | Document page management method and device, electronic equipment and storage medium | |
CN111414111A (en) | Page cutting method and device | |
CN110515523A (en) | Method and device for turning pages of electronic book, electronic equipment and 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 | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20200714 |