CN109614251B - Method, device, computer equipment and storage medium for pasting pages across documents - Google Patents

Method, device, computer equipment and storage medium for pasting pages across documents Download PDF

Info

Publication number
CN109614251B
CN109614251B CN201811486910.XA CN201811486910A CN109614251B CN 109614251 B CN109614251 B CN 109614251B CN 201811486910 A CN201811486910 A CN 201811486910A CN 109614251 B CN109614251 B CN 109614251B
Authority
CN
China
Prior art keywords
page
document
copied
pasted
dragged
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
CN201811486910.XA
Other languages
Chinese (zh)
Other versions
CN109614251A (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.)
Wondershare Technology Co ltd
Original Assignee
Wondershare 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 Wondershare Technology Co ltd filed Critical Wondershare Technology Co ltd
Priority to CN201811486910.XA priority Critical patent/CN109614251B/en
Publication of CN109614251A publication Critical patent/CN109614251A/en
Application granted granted Critical
Publication of CN109614251B publication Critical patent/CN109614251B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements 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/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • G06F9/543User-generated data transfer, e.g. clipboards, dynamic data exchange [DDE], object linking and embedding [OLE]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/166Editing, e.g. inserting or deleting

Abstract

The invention discloses a method, a device, equipment and a storage medium for pasting pages across documents, wherein the method comprises the following steps: if the selected page is detected to exist, identifying whether an action of dragging the selected page exists or not; the selected page is used as a page to be copied; if the action of dragging the page to be copied exists, detecting whether the page to be copied is dragged to a preset position of a document to be pasted or not according to a preset rule; if the page to be copied is dragged to a preset position of the document to be pasted, opening the document to be pasted; and pasting the page to be copied into the document to be pasted. By implementing the method and the device, the problems of excessively complex and troublesome operation flow of pasting pages between different documents, low smoothness caused by excessively complex and troublesome operation, poor user experience effect and the like in the prior art can be solved, and the method and the device can effectively improve the efficiency of pasting the documents across users and the user experience.

Description

Method, device, computer equipment and storage medium for pasting pages across documents
Technical Field
The present invention relates to the field of file processing technologies, and in particular, to a method, an apparatus, a computer device, and a storage medium for pasting pages across documents.
Background
The PDF file format has a cross-platform characteristic, can support multiple platforms, for example, can support information publishing and publishing of multimedia integration, and particularly provides support for network information publishing. PDF has many other electronic document formats that are not comparable to one another for the purpose of running PDF on a variety of platforms. For example, PDF file formats may encapsulate text, fonts, formats, colors, and graphic images independent of device and resolution, etc. in one file. The format file can also contain electronic information such as hypertext links, sound, dynamic images and the like, and can also support special files, and the integration level and the safety reliability of the format file are high. For an ordinary reader, the electronic book manufactured by using the PDF has the texture and reading effect of a paper version book, the original appearance of the original book can be realistically displayed, the display size can be randomly adjusted, and a personalized reading mode is provided for the reader. And a PDF font embedding system, which can transmit the fonts along with the files, so that users can have the same reading experience at different equipment terminals (such as PC, mobile terminal, electronic book reader, etc.).
Thus, for PDF editing class software, in addition to providing an excellent reading experience to the user, there is a need for a better editing experience to the user. We have found that users often need to copy one or more pages from one PDF document into another PDF document when using PDFs on a daily basis, which is a relatively common user requirement. However, when the user performs the operation of copying and pasting the page across the document, the conventional operation is to select the page to be copied in the current document, copy the corresponding menu by using a shortcut key to copy or clicking a right mouse button, manually switch to another document, and finally copy and paste the page by using the shortcut key or clicking the mouse button.
The whole operation process of the cross-document copy-paste page is complicated and troublesome, and the operation efficiency is low, so in order to improve the efficiency and the user experience effect of the cross-document copy-paste page, a method for helping a user to more simply perform the cross-document copy-paste page is needed.
Disclosure of Invention
The embodiment of the invention provides a method, a device, computer equipment and a storage medium for pasting pages across documents, which can effectively improve the efficiency and the user experience of pasting pages across documents.
In a first aspect, an embodiment of the present invention provides a method for pasting pages across documents, including:
if the selected page is detected to exist, identifying whether an action of dragging the selected page exists or not; the selected page is used as a page to be copied;
if the action of dragging the page to be copied exists, detecting whether the page to be copied is dragged to a preset position of a document to be pasted or not according to a preset rule;
if the page to be copied is dragged to a preset position of the document to be pasted, opening the document to be pasted; and
and pasting the page to be copied into the document to be pasted.
In a second aspect, an embodiment of the present invention further provides an apparatus for pasting pages across documents, including:
the action recognition unit is used for recognizing whether an action of dragging the selected page exists or not if the selected page is detected to exist; the selected page is used as a page to be copied;
the position detection unit is used for detecting whether the page to be copied is dragged to a preset position of the document to be pasted according to a preset rule if the action of dragging the page to be copied exists;
the document opening unit is used for opening the document to be pasted if the page to be copied is dragged to a preset position of the document to be pasted; and
and the page pasting unit is used for pasting the page to be copied into the document to be pasted.
In a third aspect, an embodiment of the present invention further provides a computer device, where the computer device includes a memory and a processor, where the memory stores a computer program, and the processor implements the method of the first aspect when executing the computer program.
In a fourth aspect, embodiments of the present invention also provide a computer readable storage medium storing a computer program comprising program instructions which, when executed by a processor, implement the method of the first aspect described above.
The embodiment of the invention provides a method, a device, computer equipment and a storage medium for pasting pages across documents. The embodiment of the invention can effectively solve the problems of excessively complex and troublesome operation flow of pasting pages between different documents in the prior art, and solves the problems of low smoothness, poor user experience effect and the like caused by excessively complex and troublesome operation. By implementing the embodiment of the invention, a user can directly complete the operation of copying and pasting the page across the document only by performing a simple dragging action; the operation of copying and pasting the page across the document can be completed without a plurality of steps like the traditional copying and pasting page across the document, so that the efficiency of pasting the page across the document by a user can be effectively improved, and the user experience effect is greatly improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for the description of the embodiments will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a schematic flow chart of a method for pasting pages across documents according to an embodiment of the present invention;
FIG. 2 is a schematic sub-flowchart of a method for pasting pages across documents according to an embodiment of the present invention;
FIG. 3 is another schematic flow chart of a method for pasting pages across documents according to an embodiment of the present invention;
FIG. 4 is another schematic flow chart of a method for pasting pages across documents according to an embodiment of the present invention;
FIG. 5 is another schematic flow chart of a method for pasting pages across documents according to an embodiment of the present invention;
FIG. 6 is a schematic block diagram of an apparatus for pasting pages across documents provided by an embodiment of the present invention;
FIG. 7 is a schematic block diagram of a first position detection subunit of an apparatus for pasting pages across documents provided by an embodiment of the present invention;
FIG. 8 is a schematic block diagram of a second position detection subunit of an apparatus for pasting pages across documents provided by an embodiment of the present invention;
FIG. 9 is a schematic block diagram of a document judging unit of a device for pasting pages across documents according to an embodiment of the present invention;
FIG. 10 is a schematic block diagram of a page pasting unit of an apparatus for pasting pages across documents according to an embodiment of the present invention; and
fig. 11 is a schematic block diagram of a computer 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 fully with reference to the accompanying drawings, in which it is evident that the embodiments described are some, but not all embodiments of the invention. 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.
It should be understood that the terms "comprises" and "comprising," when used in this specification and the appended claims, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
It is also to be understood that the terminology used in the description of the invention herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. As used in this specification and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.
It should be further understood that the term "and/or" as used in the present specification and the appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes such combinations.
Referring to fig. 1, a schematic flow chart of a method for pasting pages across documents according to an embodiment of the present invention is provided. The method for pasting the page across the document can be operated in a terminal or a server, wherein the terminal can be electronic equipment such as a smart phone, a tablet computer, a notebook computer, a desktop computer, a personal digital assistant and the like. The server may be an independent server or a server cluster formed by a plurality of servers. Specifically, the method for pasting pages across documents is applied to PDF editing software, wherein the PDF editing software can be configured in a terminal or a server, and the documents are PDF documents. As shown in fig. 1, the method may include steps S101 to S104.
S101, if the selected page is detected to exist, identifying whether an action of dragging the selected page exists or not; and taking the selected page as a page to be copied.
Specifically, the action of dragging the selected page includes an action of dragging the selected page by long-pressing by a mouse and an action of dragging the selected page by long-pressing by touching. Therefore, in this step, it is necessary to identify whether there is an action of clicking the mouse to drag the selected page for a long time or whether there is an action of clicking the mouse to drag the selected page for a long time; and taking the selected page as a page to be copied. In an embodiment, before step S101 is performed, that is, before identifying whether there is an action of dragging the selected page, it is required to detect whether there is a selected page in the document, and if it is detected that there is a selected page, a next step may be performed, that is, automatically identifying whether there is an action of dragging the selected page, where the document is a PDF document.
S102, if there is an action of dragging the page to be copied, detecting whether the page to be copied is dragged to a preset position of the document to be pasted according to a preset rule.
If the action of dragging the page to be copied is identified, whether the page to be copied is dragged to a preset position of the document to be pasted needs to be further detected according to a preset rule, specifically, whether an original document corresponding to the page to be copied and a document where the action of dragging the page to be copied is currently located are different documents needs to be judged according to the preset rule, if the document is the different documents, it is indicated that the document is the document to be pasted, whether the action of dragging the page to be copied is currently located at the preset position of the document to be pasted needs to be further judged, and the preset position comprises an icon of the document to be pasted and a tag page of the document to be pasted.
Therefore, in an embodiment, the preset position is an icon of the document to be pasted, and the step of detecting whether the page to be copied is dragged to the preset position of the document to be pasted according to the preset rule includes: and detecting whether the page to be copied is dragged to the icon of the document to be pasted according to a preset rule. Specifically, the detecting whether the page to be copied is dragged to the icon of the document to be pasted according to the preset rule includes an icon detection method. The icon detection method is shown in fig. 2, i.e., step S102 includes sub-steps S102a to S102c. S102a, judging whether the document dragged to the page to be copied is a document to be pasted or not; s102b, if the document to which the page to be copied is dragged is a document to be pasted, judging whether the page to be copied is dragged to an icon of the document to be pasted; s102c, if the page to be copied is dragged to the icon of the document to be pasted, judging that the page to be copied is dragged to the preset position of the document to be pasted. And the to-be-copied page can be directly and automatically opened by identifying that the to-be-copied page is dragged to the icon of the to-be-pasted document, so that the to-be-copied page can be directly dragged into the to-be-pasted document without opening the to-be-pasted document in advance, the purpose of automatically pasting and copying the page between different documents by utilizing the dragging action can be realized, and the page comprises a plurality of pages. Therefore, the implementation of the embodiment is beneficial to the operation smoothness of the whole cross-document copy and paste page and greatly improves the experience effect of the user.
In another embodiment, the preset position is a tab page of the document to be pasted, and the step of detecting whether the page to be copied is dragged to the preset position of the document to be pasted according to a preset rule includes: and detecting whether the page to be copied is dragged to a label page of the document to be pasted according to a preset rule. Specifically, the detecting whether the page to be copied is dragged to the tab page of the document to be pasted according to the preset rule includes a tab page detection method. The tag page detection method, as shown in fig. 3, i.e., step S102 includes sub-steps S102a, S102d, and S102e. S102a, judging whether the document dragged to the page to be copied is a document to be pasted or not; s102d, if the document to which the page to be copied is dragged is the document to be pasted, judging whether the page to be copied is dragged to a tag page of the document to be pasted; s102e, if the page to be copied is dragged to the label page of the document to be pasted, judging that the page to be copied is dragged to the preset position of the document to be pasted. And the page to be copied can be directly jumped to the page of the document to be pasted by identifying that the page to be copied is dragged to the tag page of the document to be pasted, so that the page to be copied is conveniently and directly dragged into the document to be pasted, the purpose of realizing automatic page pasting and copying by utilizing the dragging action among different documents can be realized, and the page comprises a plurality of pages. When the current position of the action of dragging the page to be copied is the label page of the document to be pasted, the document to be pasted is indicated to be opened, and at the moment, the user only needs to jump into the page of the document to be pasted. Therefore, the implementation of the embodiment is beneficial to the operation smoothness of the whole cross-document copy and paste page and greatly improves the experience effect of the user.
In an embodiment, the determining whether the document to which the page to be copied is dragged is a document to be pasted includes a document determining method. The document judging method, as shown in fig. 4, i.e., step S102a includes sub-steps S102a1 to S102a5. S102a1, acquiring a page index of the page to be copied and the number of the document corresponding to the page to be copied, wherein the number of the document corresponding to the page to be copied is used as a first number; s102a2, acquiring the number of the document to which the page to be copied is dragged, wherein the number of the document to which the page to be copied is dragged is used as a second number; s102a3, comparing whether the first number and the second number are the same number; s102a4, if the numbers are not the same, judging that the document to which the page to be copied is dragged is the document to be pasted; and S102a5, if the numbers are the same, judging that the document where the action of dragging the page to be copied is currently located is the original corresponding document.
Specifically, in step S102a1, after the page to be copied is selected, the page index number of the page to be copied and the number of the document corresponding to the page to be copied are directly obtained, where each PDF document has a unique corresponding number, and the number of the document corresponding to the page to be copied is taken as the first number.
Specifically, in step S102a2, when the action of dragging the page to be copied is located at a corresponding position of a document, the number of the document where the action of dragging the page to be copied is currently located is obtained, where the number of the document where the action of dragging the page to be copied is currently located is taken as the second number. For example, if the action is located on a tab page of a document, the number of the document may be directly obtained, or if the action is located on a page of a document, the number of the document may be directly obtained, and the corresponding position of the document is not specifically limited.
Specifically, in step S102a3, each PDF document has a unique corresponding number, and when the number of the original document corresponding to the page to be copied is inconsistent with the number of the document where the action of dragging the page to be copied is currently located, it indicates that the document corresponding to the original document is not the same document where the action of dragging the page to be copied is currently located, and it indicates that the action of dragging the page to be copied performs a function of copying and pasting pages across documents.
And S103, if the page to be copied is dragged to a preset position of the document to be pasted, opening the document to be pasted.
Specifically, as shown in step S102, when the page to be copied is dragged to the preset position of the document to be pasted, the document to be pasted is directly opened or directly jumped into the document to be pasted to open the document to be pasted, so that the page to be copied is dragged into the document to be pasted.
S104, pasting the page to be copied into the document to be pasted.
In an embodiment, the pasting the page to be copied into the document to be pasted includes a page pasting method. The page pasting method, as shown in fig. 5, i.e., step S102 includes sub-steps S104a to S104c. S104a, detecting whether the dragging action of the page to be copied is finished in real time; s104b, if the fact that the dragging action of the page to be copied is finished is detected, acquiring the position where the page to be copied is currently dragged into the document to be pasted so as to determine the pasting area of the page to be copied; and S104c, automatically pasting the page to be copied to the pasting area.
Specifically, before the to-be-copied page is directly pasted into the to-be-pasted document, whether the dragging action of the to-be-copied page is finished is required to be detected in real time, if so, the current position of the to-be-copied page to be dragged into the to-be-pasted document is obtained to determine the pasting area of the to-be-copied page, and when the pasting area of the to-be-copied page is determined, the to-be-copied page can be directly and automatically pasted on the pasting area.
In the embodiment, the operation of copying and pasting the page between different documents can be directly completed by identifying and detecting the action of dragging the page, and the operation of copying and pasting the page across the document can be completed without a plurality of steps like the operation of copying and pasting the page across the document in the prior art. The embodiment of the invention can effectively solve the problems of excessively complex and troublesome operation flow of pasting pages between different documents in the prior art, solves the problems of low smoothness, poor user experience effect and the like caused by excessively complex and troublesome operation, can effectively improve the efficiency of pasting the documents by users, and greatly improves the user experience effect.
Referring to FIG. 6, a schematic block diagram of an apparatus 100 for pasting pages across documents according to an embodiment of the present invention is shown. As shown in FIG. 6, the apparatus 100 for pasting pages across documents corresponds to the method for pasting pages across documents shown in FIG. 1. The device 100 for pasting the page across the document includes a unit for executing the method for pasting the page across the document, and the device 100 for pasting the page across the document can be configured in a terminal or a server, wherein the terminal can be an electronic device such as a smart phone, a tablet computer, a notebook computer, a desktop computer, a personal digital assistant and the like; the server may be an independent server or a server cluster formed by a plurality of servers. Specifically, the device 100 for pasting pages across documents may be configured in PDF editing software, which may be configured in a terminal or a server, where the documents are PDF documents. Referring to fig. 6, the apparatus 100 for pasting pages across documents includes an action recognition unit 101, a position detection unit 102, a document opening unit 103, and a page pasting unit 104.
The action recognition unit 101 is configured to recognize whether an action of dragging the selected page exists if the selected page is detected to exist; and taking the selected page as a page to be copied.
Specifically, in one embodiment, the action recognition unit 101 is configured to recognize whether there is an action of dragging the selected page, and before further need to detect whether there is a selected page in the document, if yes, automatically recognize whether there is an action of dragging the selected page; the document is a PDF document, and the action of dragging the selected page comprises the action of dragging the selected page by long-pressing a mouse and the action of dragging the selected page by long-pressing a touch.
The position detecting unit 102 is configured to detect, if there is an action of dragging the page to be copied, whether the page to be copied is dragged to a preset position of the document to be pasted according to a preset rule.
In one embodiment, as shown in fig. 7, the position detection unit 102 includes a first position detection subunit 1021 and a second position detection subunit 1022. The first position detecting subunit 1021 includes a document judging unit 102a, an icon judging unit 102b, and a first judging unit 102c. The document judging unit 102a is configured to judge whether the document to which the page to be copied is dragged is a document to be pasted; the icon judging unit 102b judges whether the page to be copied is dragged to an icon of the document to be pasted if the document to be copied is the document to be pasted; the first determining unit 102c is configured to determine that the page to be copied is dragged to a preset position of the document to be pasted if the page to be copied is dragged to the icon of the document to be pasted.
In another embodiment, as shown in fig. 8, the second position detection subunit 1022 includes a document determination unit 102a, a tab page determination unit 102d, and a second determination unit 102e. The document judging unit 102a is configured to judge whether the document to which the page to be copied is dragged is a document to be pasted; a tag page judging unit 102d, configured to judge whether the page to be copied is dragged to a tag page of the document to be pasted if the document to which the page to be copied is dragged is the document to be pasted; and the second determining unit 102e is configured to determine that the page to be copied is dragged to a preset position of the document to be pasted if the page to be copied is dragged to the tab page of the document to be pasted.
In one embodiment, as shown in fig. 9, the document judging unit 102a includes a first number acquiring unit 102a1, a second number acquiring unit 102a2, a comparing unit 102a3, a first judging subunit 102a4, and a second judging subunit 102a5. The first number obtaining unit 102a1 is configured to obtain a page index of the page to be copied and a number of a document corresponding to the page to be copied, where the number of the document corresponding to the page to be copied is taken as a first number; a second number obtaining unit 102a2, configured to obtain a number of a document where the action of dragging the page to be copied is currently located, where the number of the document where the action of dragging the page to be copied is currently located is taken as a second number; a comparing unit 102a3, configured to compare whether the first number and the second number are the same number; the first determining subunit 102a4 is configured to determine that the document in which the action of dragging the page to be copied is currently located is a document to be pasted if the actions are not the same number; the second determining subunit 102a5 is configured to determine, if the numbers are the same, that the document in which the action of dragging the page to be copied is currently located is the original corresponding document.
The document opening unit 103 is configured to open the document to be pasted if the page to be copied is dragged to a preset position of the document to be pasted.
The page pasting unit 104 is configured to paste the page to be copied into the document to be pasted.
In an embodiment, as shown in fig. 10, the page pasting unit 104 includes an action detecting unit 104a, a position acquiring unit 104b, and a page pasting subunit 104c. The action detecting unit 104a is configured to detect in real time whether the action of dragging the page to be copied is ended; the position obtaining unit 104b obtains a position of the page to be copied, which is currently dragged into the document to be pasted, so as to determine a pasting area of the page to be copied if the action of dragging the page to be copied is detected to be ended; and the page pasting subunit 104c is configured to automatically paste the page to be copied onto the pasting area.
It should be noted that, as those skilled in the art can clearly understand, the specific implementation process and effects of the above device 100 for pasting pages across documents and each unit may refer to the corresponding descriptions in the foregoing method embodiments, and for convenience and brevity of description, the description is omitted here.
The system described above may be implemented in the form of a computer program which is executable on a computer device as shown in fig. 11.
Referring to fig. 11, a schematic block diagram of a computer device according to an embodiment of the present invention is shown. The computer device 600 may be a terminal or a server, where the terminal may be an electronic device such as a smart phone, a tablet computer, a notebook computer, a desktop computer, and a personal digital assistant. The server may be an independent server or a server cluster formed by a plurality of servers.
With reference to FIG. 11, the computer device 600 includes a processor 602, memory and a network interface 605 connected by a system bus 601, wherein the memory may include a non-volatile storage medium 603 and an internal memory 604.
The non-volatile storage medium 603 may store an operating system 6031 and a computer program 6032. The computer program 6032 includes program instructions that, when executed, cause the processor 602 to perform a method of pasting pages across documents.
The processor 602 is used to provide computing and control capabilities to support the operation of the overall computer device 600.
The internal memory 604 provides an environment for the execution of a computer program 6032 in the non-volatile storage medium 603, which computer program 6032, when executed by the processor 602, causes the processor 602 to perform a method of pasting pages across documents.
The network interface 605 is used for network communication with other devices. Those skilled in the art will appreciate that the architecture shown in fig. 11 is merely a block diagram of a portion of the architecture relevant to the present application and is not limiting of the computer device 600 to which the present application applies, and that a particular computer device 600 may include more or fewer components than shown, or may combine some of the components, or have a different arrangement of components.
Wherein the processor 602 is configured to execute a computer program 6032 stored in a memory to implement the steps of: if the selected page is detected to exist, identifying whether an action of dragging the selected page exists or not; the selected page is used as a page to be copied; if the action of dragging the page to be copied exists, detecting whether the page to be copied is dragged to a preset position of a document to be pasted or not according to a preset rule; if the page to be copied is dragged to a preset position of the document to be pasted, opening the document to be pasted; and pasting the page to be copied into the document to be pasted.
In an embodiment, the preset position includes a document icon, and when implementing the step of detecting whether the page to be copied is dragged to the preset position of the document to be pasted according to the preset rule, the processor 602 specifically implements the following steps: judging whether the document dragged to the page to be copied is a document to be pasted or not; if the document to which the page to be copied is dragged is the document to be pasted, judging whether the page to be copied is dragged to an icon of the document to be pasted; and if the page to be copied is dragged to the icon of the document to be pasted, judging that the page to be copied is dragged to the preset position of the document to be pasted.
In an embodiment, the preset position includes a document tag page, and when implementing the step of detecting whether the page to be copied is dragged to the preset position of the document to be pasted according to the preset rule, the processor 602 specifically implements the following steps: judging whether the document dragged to the page to be copied is a document to be pasted or not; if the document to which the page to be copied is dragged is the document to be pasted, judging whether the page to be copied is dragged to a tag page of the document to be pasted; if the page to be copied is dragged to the label page of the document to be pasted, judging that the page to be copied is dragged to the preset position of the document to be pasted; and the step of opening the document to be pasted comprises the following steps: and automatically jumping to the page of the document to be pasted.
In one embodiment, when the step of determining whether the document dragged by the page to be copied is a document to be pasted is implemented by the processor 602, the following steps are specifically implemented: acquiring a page index of the page to be copied and the number of the document corresponding to the page to be copied, wherein the number of the document corresponding to the page to be copied is used as a first number; acquiring the number of the document to which the page to be copied is dragged, wherein the number of the document to which the page to be copied is dragged is used as a second number; comparing whether the first number and the second number are the same number; and if the numbers are not the same, judging that the document to which the page to be copied is dragged is the document to be pasted.
In one embodiment, when implementing the step of pasting the page to be copied into the document to be pasted, the processor 602 specifically implements the following steps: detecting whether the dragging action of the page to be copied is finished or not in real time; if the fact that the action that the page to be copied is dragged is detected to be ended, acquiring the position where the page to be copied is currently dragged into the document to be pasted to determine the pasting area of the page to be copied; and automatically pasting the page to be copied onto the pasting area.
It should be appreciated that in embodiments of the present invention, the processor 602 may be a central processing unit (Central Processing Unit, CPU), the processor 602 may also be other general purpose processors, digital signal processors (Digital Signal Processor, DSP), application specific integrated circuits (Application Specific Integrated Circuit, ASIC), off-the-shelf Programmable gate arrays (FPGAs) or other Programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, or the like. Wherein the general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
Those skilled in the art will appreciate that all or part of the flow in a method embodying the above described embodiments may be accomplished by computer programs instructing the relevant hardware. The computer program comprises program instructions, and the computer program can be stored in a storage medium, wherein the storage medium is a storage medium. The program instructions are executed by at least one processor in the computer system to implement the flow steps of the embodiments of the method described above.
Accordingly, the present invention also provides a computer-readable storage medium. The computer readable storage medium stores a computer program, wherein the computer program includes program instructions. The program instructions, when executed by a processor, cause the processor to perform the method of pasting pages across documents as described above.
The storage medium may be a U-disk, a removable hard disk, a Read-Only Memory (ROM), a magnetic disk, or an optical disk, etc. which may store the program code.
Those of ordinary skill in the art will appreciate that the elements and algorithm steps described in connection with the embodiments disclosed herein may be embodied in electronic hardware, in computer software, or in a combination of the two, and that the elements and steps of the examples have been generally described in terms of function in the foregoing description to clearly illustrate the interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
In the several embodiments provided by the present invention, it should be understood that the disclosed systems and methods may be implemented in other ways. For example, the system embodiments described above are merely illustrative. For example, the division of each unit is only one logic function division, and there may be another division manner in actual implementation. For example, multiple units or components may be combined or may be integrated into another system, or some features may be omitted, or not performed.
The steps in the method of the embodiment of the invention can be sequentially adjusted, combined and deleted according to actual needs. The units in the system of the embodiment of the invention can be combined, divided and deleted according to actual needs. In addition, each functional unit in the embodiments of the present invention may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit.
The integrated unit may be stored in a storage medium if implemented in the form of a software functional unit and sold or used as a stand-alone product. Based on such understanding, the technical solution of the present invention is essentially or a part contributing to the prior art, or all or part of the technical solution may be embodied in the form of a software product stored in a storage medium, comprising several instructions for causing a computer device (which may be a personal computer, a terminal, a network device, etc.) to perform all or part of the steps of the method according to the embodiments of the present invention.
While the invention has been described with reference to certain preferred embodiments, it will be understood by those skilled in the art that various changes and substitutions of equivalents may be made and equivalents will be apparent to those skilled in the art without departing from the scope of the invention. Therefore, the protection scope of the invention is subject to the protection scope of the claims.

Claims (9)

1. A method for pasting pages across documents, comprising:
if the selected page is detected to exist, identifying whether an action of dragging the selected page exists or not; the selected page is used as a page to be copied;
if the action of dragging the page to be copied exists, detecting whether the page to be copied is dragged to a preset position of a document to be pasted or not according to a preset rule;
if the page to be copied is dragged to a preset position of the document to be pasted, opening the document to be pasted;
detecting whether the dragging action of the page to be copied is finished or not in real time;
if the fact that the action that the page to be copied is dragged is detected to be ended, acquiring the position where the page to be copied is currently dragged into the document to be pasted to determine the pasting area of the page to be copied; and
and automatically pasting the page to be copied to the pasting area.
2. The method of pasting pages across documents as claimed in claim 1, wherein said preset locations comprise document icons;
the detecting whether the page to be copied is dragged to a preset position of the document to be pasted according to a preset rule comprises:
judging whether the document dragged to the page to be copied is a document to be pasted or not;
if the document to which the page to be copied is dragged is the document to be pasted, judging whether the page to be copied is dragged to an icon of the document to be pasted; and
and if the page to be copied is dragged to the icon of the document to be pasted, judging that the page to be copied is dragged to the preset position of the document to be pasted.
3. The method of pasting pages across documents as claimed in claim 1, wherein said preset locations comprise document tab pages;
the detecting whether the page to be copied is dragged to a preset position of the document to be pasted according to a preset rule comprises:
judging whether the document dragged to the page to be copied is a document to be pasted or not;
if the document to which the page to be copied is dragged is the document to be pasted, judging whether the page to be copied is dragged to a tag page of the document to be pasted;
if the page to be copied is dragged to the label page of the document to be pasted, judging that the page to be copied is dragged to the preset position of the document to be pasted; and
the step of opening the document to be pasted comprises the following steps:
and automatically jumping to the page of the document to be pasted.
4. A method for pasting pages across documents according to claim 2 or 3, wherein said determining whether the document to which the page to be copied is dragged is a document to be pasted comprises:
acquiring a page index of the page to be copied and the number of the document corresponding to the page to be copied, wherein the number of the document corresponding to the page to be copied is used as a first number;
acquiring the number of the document to which the page to be copied is dragged, wherein the number of the document to which the page to be copied is dragged is used as a second number;
comparing whether the first number and the second number are the same number; and
if the numbers are not the same, judging that the document to which the page to be copied is dragged is the document to be pasted.
5. The method of pasting pages across documents as claimed in claim 1, wherein said document is a PDF document.
6. An apparatus for pasting pages across documents, comprising:
the action recognition unit is used for recognizing whether an action of dragging the selected page exists or not if the selected page is detected to exist; the selected page is used as a page to be copied;
the position detection unit is used for detecting whether the page to be copied is dragged to a preset position of the document to be pasted according to a preset rule if the action of dragging the page to be copied exists;
the document opening unit is used for opening the document to be pasted if the page to be copied is dragged to a preset position of the document to be pasted;
the action detection unit is used for detecting whether the action of dragging the page to be copied is finished or not in real time;
the position acquisition unit is used for acquiring the current position of the page to be copied, which is dragged to the document to be pasted, so as to determine the pasting area of the page to be copied if the action of dragging the page to be copied is detected to be ended; and
and the page pasting subunit is used for automatically pasting the page to be copied to the pasting area.
7. The apparatus for pasting pages across documents as claimed in claim 6, wherein said preset location comprises a document icon; the position detection unit includes a first position detection subunit including:
the document judging unit is used for judging whether the document dragged to the page to be copied is a document to be pasted or not;
the icon judging unit is used for judging whether the page to be copied is dragged to the icon of the document to be pasted or not if the document to be copied is the document to be pasted; and
and the first judging unit is used for judging that the page to be copied is dragged to the preset position of the document to be pasted if the page to be copied is dragged to the icon of the document to be pasted.
8. A computer device comprising a memory having a computer program stored thereon and a processor that when executing the computer program implements the method of pasting pages across documents according to any of claims 1-5.
9. A computer readable storage medium storing a computer program which when executed by a processor performs the method of pasting pages across documents as claimed in any one of claims 1 to 5.
CN201811486910.XA 2018-12-06 2018-12-06 Method, device, computer equipment and storage medium for pasting pages across documents Active CN109614251B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811486910.XA CN109614251B (en) 2018-12-06 2018-12-06 Method, device, computer equipment and storage medium for pasting pages across documents

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811486910.XA CN109614251B (en) 2018-12-06 2018-12-06 Method, device, computer equipment and storage medium for pasting pages across documents

Publications (2)

Publication Number Publication Date
CN109614251A CN109614251A (en) 2019-04-12
CN109614251B true CN109614251B (en) 2023-05-26

Family

ID=66006080

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811486910.XA Active CN109614251B (en) 2018-12-06 2018-12-06 Method, device, computer equipment and storage medium for pasting pages across documents

Country Status (1)

Country Link
CN (1) CN109614251B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110188178A (en) * 2019-05-30 2019-08-30 深圳龙图腾创新设计有限公司 Across the document information lookup method of one kind, device, computer equipment and storage medium
CN112131842B (en) * 2020-08-27 2022-02-08 云动时代科技股份有限公司 Document design method and system

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5983245A (en) * 1996-12-27 1999-11-09 Apple Computer, Inc. Method and apparatus for implementing universal resource locator menus
US6879988B2 (en) * 2000-03-09 2005-04-12 Pkware System and method for manipulating and managing computer archive files
CN101694650A (en) * 2009-10-10 2010-04-14 宇龙计算机通信科技(深圳)有限公司 Method, device and mobile terminal for copying and pasting data
KR20140019678A (en) * 2012-08-07 2014-02-17 삼성전자주식회사 Method and apparatus for creating graphic user interface objects
CN104035682A (en) * 2013-03-06 2014-09-10 宏碁股份有限公司 Method for embedding selected contents into file
KR102113272B1 (en) * 2013-03-11 2020-06-02 삼성전자주식회사 Method and apparatus for copy and paste in electronic device
CN104915330A (en) * 2015-06-30 2015-09-16 北京北信源软件股份有限公司 Clipboard-based nonmagnetic disk data pasting method
CN107943825A (en) * 2017-10-19 2018-04-20 阿里巴巴集团控股有限公司 Data processing method, device and the electronic equipment of page access
CN107992371A (en) * 2017-11-30 2018-05-04 努比亚技术有限公司 Replicate method of attaching, device and computer-readable recording medium

Also Published As

Publication number Publication date
CN109614251A (en) 2019-04-12

Similar Documents

Publication Publication Date Title
AU2019205973B2 (en) Responsive resize
CN101952821B (en) Editing a document using a transitory editing surface
US10175852B2 (en) Information processing methods and electronic devices for classifying applications
CN104424402B (en) It is a kind of for detecting the method and device of pirate application program
CN111639287A (en) Page processing method and device, terminal equipment and readable storage medium
US20160342449A1 (en) Data exchange across multiple computing devices through a proactive intelligent clipboard
US9483858B2 (en) Text resizing within an embedded image
US20150169519A1 (en) Electronic reading device and method for extracting and saving text information thereof, and storage medium
US20130335335A1 (en) Method and apparatus for gesture based copying of attributes
US10761804B2 (en) Method for detecting usage of a screen reader and system thereof
CN109614251B (en) Method, device, computer equipment and storage medium for pasting pages across documents
WO2014026510A1 (en) Webpage content browsing method, device and browser
US8799255B2 (en) Button-activated contextual search
CN105867820A (en) Text editing method and device for touch screen
CN111800492A (en) Method and device for marking characters in web page, computer equipment and storage medium
CN104462232A (en) Data storage method and device
CN103279275B (en) Analyze method and the portable electric device of document content
CN108415890A (en) Method, terminal device and the computer readable storage medium of top set Cell display
CN110096200B (en) Text processing method and device, storage medium and electronic equipment
US9645798B1 (en) Using program code to generate help information, and using help information to generate program code
CN109656704B (en) Information processing method and information processing device
US20170010805A1 (en) Character Input Method and Electronic Device
CN107077272B (en) Hit testing to determine enabling direct manipulation in response to user action
CN111142735B (en) Software page creating method and device, terminal equipment and storage medium
CN114995674A (en) Edge false touch detection method, electronic device and computer 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