CN111914517A - Document hyperlink creating method and device, electronic equipment and readable storage medium - Google Patents

Document hyperlink creating method and device, electronic equipment and readable storage medium Download PDF

Info

Publication number
CN111914517A
CN111914517A CN202010569490.2A CN202010569490A CN111914517A CN 111914517 A CN111914517 A CN 111914517A CN 202010569490 A CN202010569490 A CN 202010569490A CN 111914517 A CN111914517 A CN 111914517A
Authority
CN
China
Prior art keywords
document
hyperlink
area
created
information
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
Application number
CN202010569490.2A
Other languages
Chinese (zh)
Inventor
孙立英
付晓红
李安
张冬
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Haijinger Pharmaceutical Technology Co ltd
Original Assignee
Beijing Haijinger Pharmaceutical Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Haijinger Pharmaceutical Technology Co ltd filed Critical Beijing Haijinger Pharmaceutical Technology Co ltd
Priority to CN202010569490.2A priority Critical patent/CN111914517A/en
Publication of CN111914517A publication Critical patent/CN111914517A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/12Use of codes for handling textual entities
    • G06F40/134Hyperlinking
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/955Retrieval from the web using information identifiers, e.g. uniform resource locators [URL]
    • G06F16/9558Details of hyperlinks; Management of linked annotations
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/166Editing, e.g. inserting or deleting

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Computational Linguistics (AREA)
  • General Health & Medical Sciences (AREA)
  • Health & Medical Sciences (AREA)
  • Artificial Intelligence (AREA)
  • Databases & Information Systems (AREA)
  • Data Mining & Analysis (AREA)
  • Document Processing Apparatus (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention relates to a method, a device, electronic equipment and a readable storage medium for creating a document hyperlink, wherein the method comprises the following steps: acquiring first path information of a first document and area information of a hyperlink area to be created in the first document; acquiring second path information of a second document and target information of a target text in the second document; and creating a hyperlink in the first document according to the first path information, the area information, the second path information and the target information. The method and the device can enable the hyperlink in the first document to be accurately positioned at any position in any page in the second document.

Description

Document hyperlink creating method and device, electronic equipment and readable storage medium
Technical Field
The invention relates to the technical field of document processing, in particular to a document hyperlink creating method and device, electronic equipment and a readable storage medium.
Background
In the existing process of writing a document, if a first document needs to be referred to a second document, a hyperlink is usually created in the first document to link to the second document. However, the prior art is not practical if a sentence in a first document needs to be referenced to a particular location on a page in a second document. This can cause inconvenience to the reader.
Disclosure of Invention
The embodiment of the invention provides a document hyperlink creating method and device, electronic equipment and a readable storage medium, and aims to solve the problem that in the prior art, a certain sentence in a first document cannot refer to the content of a specific position of a certain page in a second document in a hyperlink mode.
In a first aspect of the present invention, there is provided a document hyperlink creation method, including: acquiring first path information of a first document and area information of a hyperlink area to be created in the first document; acquiring second path information of a second document and target information of a target text in the second document, wherein the target information comprises a second page number of the target text in the second document and a second coordinate of a target position where the target text is located in a page corresponding to the second page number; creating a hyperlink in the first document according to the first path information, the area information, the second path information and the target information.
By adopting the technical scheme, the hyperlink in the first document can be accurately positioned to any position in any page in the second document.
The present invention may further be configured in a preferred example, that the area information includes a first page number of the to-be-created hyperlink area in the first document, a first coordinate of the to-be-created hyperlink area in a page corresponding to the first page number, and an area range of the to-be-created hyperlink area in a page corresponding to the first page number.
The present invention may further be configured in a preferred example, that the area of the hyperlink to be created is a rectangular area.
In a preferred example, the obtaining of the area range of the to-be-created hyperlink area in the page corresponding to the first page code may further include: establishing a first coordinate system by taking a first preset position as a coordinate origin in a page corresponding to the first page code; and determining a first coordinate of the hyperlink area to be created in the first coordinate system, and acquiring the width and the height of the hyperlink to be created.
In a preferred example of the present invention, the obtaining a second coordinate of the target position of the target text in the page corresponding to the second page number may further include: establishing a second coordinate system by taking a second preset position as a coordinate origin in the page corresponding to the second page number; and determining a second coordinate of the target position where the target text is located in the second coordinate system.
The present invention in a preferred example may be further configured such that, after creating a hyperlink in the first document, further comprising: and saving the first document.
In a second aspect of the present disclosure, there is provided a document hyperlink creation apparatus including: the first information acquisition module is used for acquiring first path information of a first document and area information of a hyperlink area to be created in the first document; the second information acquisition module is used for acquiring second path information of a second document and target information of a target text in the second document; and the hyperlink creating module is used for creating a hyperlink in the first document according to the first path information, the area information, the second path information and the target information.
The present invention may further be configured in a preferred example, that the area information includes a first page number of the to-be-created hyperlink area in the first document, a first coordinate of the to-be-created hyperlink area in a page corresponding to the first page number, and an area range of the to-be-created hyperlink area in a page corresponding to the first page number.
The present invention may further be configured in a preferred example, that the area of the hyperlink to be created is a rectangular area.
In a preferred example of the present invention, the first information obtaining module is specifically configured to establish a first coordinate system with a first preset position as a coordinate origin in a page corresponding to the first page code; and determining a first coordinate of the hyperlink area to be created in the first coordinate system, and acquiring the width and the height of the hyperlink area to be created.
In a preferred example of the present invention, the second information obtaining module is specifically configured to establish a second coordinate system with a second preset position as a coordinate origin in a page corresponding to the second page number; and determining a second coordinate of the target position where the target text is located in the second coordinate system.
The present invention in a preferred example may be further configured to further include: and the document storage module is used for storing the first document.
In a third aspect of the invention, there is provided an electronic device comprising a memory and a processor, the memory having stored thereon a computer program that can be loaded by the processor and that performs the method according to any of the first aspects.
In a fourth aspect of the invention, there is provided a computer readable storage medium storing a computer program capable of being loaded by a processor and performing the method according to any one of the first aspect.
In the document hyperlink creation method, apparatus, electronic device and readable storage medium provided by the embodiments of the present invention, first, by acquiring the first path information of the first document and the area information of the hyperlink area to be created in the first document, simultaneously acquiring second path information of a second document and target information of a target text in the second document, wherein the target information comprises a second page number of the target text in the second document and a second coordinate of the target text in a page corresponding to the second page number, then, creating a hyperlink in the first document according to the first path information, the area information, the second path information and the target information, so that the hyperlink area to be created in the first document can refer to a target text at a specific position of a page in the second document, thereby enabling hyperlinks in the first document to be accurately positioned at any location within any page within the second document.
Drawings
FIG. 1 is a flow chart illustrating a method for creating a document hyperlink according to an embodiment of the present invention.
FIG. 2 is a diagram illustrating a method for creating a document hyperlink according to a first embodiment of the present invention.
FIG. 3 is a diagram illustrating a document hyperlink creation method according to a second embodiment of the present invention.
FIG. 4 is a diagram illustrating a document hyperlink creation method according to a third embodiment of the present invention.
FIG. 5 is a diagram illustrating a document hyperlink creation method according to a fourth embodiment of the present invention.
FIG. 6 is a diagram illustrating a method for creating a document hyperlink according to a fifth embodiment of the present invention.
FIG. 7 is a diagram illustrating a document hyperlink creation method according to a sixth embodiment of the present invention.
FIG. 8 is a block diagram of an apparatus for creating a document hyperlink according to an embodiment of the present invention.
Fig. 9 shows a schematic structural diagram of a terminal device or a server suitable for implementing the embodiments of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, 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 some, but not all, embodiments of the present invention. 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.
In addition, the term "and/or" herein is only one kind of association relationship describing an associated object, and means that there may be three kinds of relationships, for example, a and/or B, which may mean: a exists alone, A and B exist simultaneously, and B exists alone. In addition, the character "/" herein generally indicates that the former and latter related objects are in an "or" relationship, unless otherwise specified.
The embodiment of the invention can be applied to creating the hyperlink which can be accurately positioned to any position of any page in the target document in the document compiling process. For example, a hyperlink is created in a region of the source document that can link to a particular location on a particular page of the target document.
In the embodiment of the present invention, the source document may be, for example, a PDF document, a Word document, a WPS document, and the like, and the target document may also be a PDF document, a Word document, a WPS document, and the like. It should be noted that the types of the source document and the target document may be the same or different.
In embodiments of the present invention, hyperlinks refer to connections that point from a source document to a target. The target can be the text of a specific position on a certain page of the target document, or can be the picture in a certain page of the target document. The object used to create the hyperlink in the source document may be a piece of text or a picture. And after the browser clicks the linked text or picture, the target document is opened and the text or the picture in the corresponding position of the corresponding page is displayed.
The following describes the document hyperlink creating method in detail, taking the object of creating the hyperlink as a certain segment of characters in the source document and the target as the text in a certain position of a certain page of the target document as an example.
FIG. 1 is a flow chart illustrating a method for creating a document hyperlink according to an embodiment of the present invention. As shown in fig. 1, the method comprises the steps of:
step 101, obtaining first path information of a first document and area information of a hyperlink area to be created in the first document.
In the present embodiment, the first document is a source document. The first path information of the first document is the saving position of the source document. In an example, the saving location of the source document may be determined by looking at the "location" in the "attributes" of the source document. In another example, the saving location of the source document may be determined by a keyword search.
The area information comprises a first page number of the hyperlink area to be created in the first document, a first coordinate of the hyperlink area to be created in a page corresponding to the first page number and an area range of the hyperlink area to be created in the page corresponding to the first page number.
In some embodiments, to determine the first page number of the hyperlink area to be created in the first document, the first document may be traversed to find the page number of the page of the text in the hyperlink area to be created in the first document, and the page number of the page of the text in the first document may also be located through keyword search, so that the page number of the page of the text in the first document can be determined, and the page number is used as the first page number of the hyperlink area to be created in the first document.
In some embodiments, to ensure that the text within the hyperlink section to be created can be completely surrounded by the hyperlink section to be created, the hyperlink section to be created may be rectangular. Of course, the area of the hyperlink to be created may be not only a rectangle, but also a rounded rectangle, an ellipse, etc., as long as it can be ensured that the area can completely surround the text of the hyperlink to be created and does not surround other text.
In some embodiments, taking the area to be created as a rectangular area as an example, a first coordinate system may be established in a page corresponding to a first page code in the first document with a preset position as an origin of coordinates, a first coordinate of the rectangular area is determined in the first coordinate system, and a width and a height of the rectangular area are obtained.
The first coordinate of the rectangular region may be represented by a coordinate of any point on any one of four sides of the rectangular region. For example, a first coordinate system may be established with the lower left corner of the page as the origin of coordinates (0, 0) in the page corresponding to the first page in the first document, the coordinates (X1, Y1) of the vertex of the lower left corner of the rectangular region as the first coordinates of the rectangular region, and the Width and Height of the rectangular region are determined in the first coordinate system, so that the position (X1, Y1, Width, Height) of the rectangular region in the page corresponding to the first page in the first document can be determined.
It should be noted that, not only may a coordinate system be established with the lower left corner of the page corresponding to the first page code in the first document as the origin of coordinates, but also a coordinate system may be established with any position in the page corresponding to the first page code in the first document as the origin of coordinates, which may be set by a person skilled in the art, and is not limited herein.
And 102, acquiring second path information of the second document and target information of a target text in the second document.
In the present embodiment, the second document is a target document. The second path information of the second document is the saving position of the target document. The saving position of the target document is obtained in the same manner as the saving position of the source document, and the details are not described here.
The target information comprises a second page number of the target text in the second document and a second coordinate of the target position of the target text in the page corresponding to the second page number.
In some embodiments, to determine the second page number of the target text in the second document, the second document may be traversed to find the page number of the page where the target text is located in the second document, the page where the target text is located may also be located by keyword search, and the page where the target text is located may also be located by means of a bookmark navigation view and a page jump coordination, so that the page number of the page where the target text is located in the second document may be determined, and the page number is used as the second page number of the target text in the second document.
In some embodiments, in order to determine a second coordinate of the target position of the target text in the page corresponding to the second page number, a second coordinate system may be established in the page corresponding to the second page number with the second preset position as the origin of coordinates; and determining a second coordinate of the target position where the target text is located in a second coordinate system.
For example, a second coordinate system may be established with the lower left corner of the page as the origin of coordinates (0, 0) in the page corresponding to the second page number in the second document, and the coordinates (X2, Y2) of the vertex of the lower left corner of the target position where the target text is located may be used as the second coordinates of the target position, so that the second coordinates (X2, Y2) of the target position where the target text is located in the page corresponding to the second page number may be determined.
Similarly, the coordinate system may be established not only with the lower left corner of the page corresponding to the second page number in the second document as the coordinate origin, but also with any position in the page corresponding to the second page number in the second document as the coordinate origin, which may be set by a person skilled in the art, and is not limited herein.
In other embodiments, when a plurality of hyperlinks need to be created in the first document, and a corresponding plurality of second documents are needed at this time, the second path information of the second documents, that is, the storage locations of the plurality of target documents, may be obtained in batch, respectively. And respectively acquiring a second page number in each second document and a second coordinate of the target position of the target text in the page corresponding to the second page number.
It should be noted that when creating a plurality of hyperlinks, a plurality of second documents need to be processed in batch, and the processing manner of the second documents is the same as that of a single second document, and is not described herein again.
Step 103, creating a hyperlink in the first document according to the first path information, the area information, the second path information and the target information.
That is to say, a hyperlink is created in the first document according to the first path information of the first document, the first page number of the hyperlink area to be created in the first document, the first coordinate of the hyperlink area to be created in the page corresponding to the first page number, the area range of the hyperlink area to be created in the page corresponding to the first page number, and the second path information of the second document, the second page number of the target text in the second document, and the second coordinate of the target position of the target text in the page corresponding to the second page number.
According to the embodiment of the disclosure, the hyperlink is created in the first document according to the first path information, the area information, the second path information and the target information, so that the target text of a specific position of a certain page in the second document can be referred to by the area to be created of the hyperlink in the first document, and the hyperlink in the first document can be accurately positioned to any position in any page in the second document.
In some embodiments, the method further comprises the steps of: the first document is saved.
In a specific example, referring to fig. 2-7, the rectangular area in fig. 2 (i.e., the rectangular area outside the text "technical service organization") is the hyperlink that has been created. When creating a hyperlink in the eCTD system, for example, a rectangular area is drawn in the PDF document, where the text recorded therein is "policy requirement", then clicking the hyperlink to select and create the hyperlink from a pull-down menu of the hyperlink, popping up a dialog window of setting the hyperlink, the 'line width' and 'line color', 'target position', 'zoom mode' and 'open mode' of the rectangular region can be set in the dialog window, for example, selecting "target location" to jump to other files and clicking the "ok" button, a target file selection dialog window pops up, and clicking a 'confirm' button after the target file is selected, opening the target file, selecting any position in any page in the target file to create the hyperlink, and clicking a 'set position' button after the selection is finished, so that the creation of the hyperlink is finished. And clicking the text 'policy requirement' after the hyperlink is created, opening the target file, directly displaying the page where the 'envelope element' linked by the hyperlink is located, and displaying the position of the 'envelope element' in the first line of the opened page.
In the above embodiment, only the hyperlink object to be created is taken as a PDF document, and the target is taken as a PDF document for example. However, for the cases that the hyperlink object to be created is a text, the target is a picture, the hyperlink object to be created is a picture, the target is a text, the hyperlink object to be created is a picture, the target is a picture, and the like, the implementation principle is the same as that of the above embodiment, and details are not repeated here.
It is noted that while for simplicity of explanation, the foregoing method embodiments have been described as a series of acts or combination of acts, it will be appreciated by those skilled in the art that the present disclosure is not limited by the order of acts, as some steps may, in accordance with the present disclosure, occur in other orders and concurrently. Further, those skilled in the art should also appreciate that the embodiments described in the specification are exemplary embodiments and that acts and modules referred to are not necessarily required by the disclosure.
The above is a description of embodiments of the method, and the embodiments of the apparatus are further described below.
FIG. 8 is a block diagram of an apparatus for creating a document hyperlink according to an embodiment of the present invention. As shown in fig. 2, the apparatus includes:
the first information obtaining module 801 is configured to obtain first path information of a first document and area information of a hyperlink area to be created in the first document.
The second information obtaining module 802 is configured to obtain second path information of a second document and target information of a target text in the second document.
A hyperlink creating module 803, configured to create a hyperlink in the first document according to the first path information, the area information, the second path information, and the target information.
In some embodiments, the region information includes a first page number of the hyperlink region to be created in the first document and a region range of the hyperlink region to be created in a page corresponding to the first page number.
In some embodiments, the first information obtaining module 801 is specifically configured to establish a first coordinate system with a first preset position as a coordinate origin in a page corresponding to the first page code; and determining a first coordinate of a hyperlink area to be created in a first coordinate system, and acquiring the width and height of the hyperlink to be created.
In some embodiments, the second information obtaining module 802 is specifically configured to establish a second coordinate system with a second preset position as the origin of coordinates in a page corresponding to the second page number; second coordinates of the target text are determined in a second coordinate system.
In some embodiments, the apparatus further comprises a document saving module to save the first document.
It can be clearly understood by those skilled in the art that, for convenience and brevity of description, the specific working process of the described module may refer to the corresponding process in the foregoing method embodiment, and is not described herein again.
Fig. 9 shows a schematic structural diagram of a terminal device or a server suitable for implementing the embodiments of the present application.
As shown in fig. 9, the terminal device or the server includes a Central Processing Unit (CPU)901 which can execute various appropriate actions and processes in accordance with a program stored in a Read Only Memory (ROM)902 or a program loaded from a storage section 908 into a Random Access Memory (RAM) 903. In the RAM 903, various programs and data necessary for system operation are also stored. The CPU 901, ROM 902, and RAM 903 are connected to each other via a bus 904. An input/output (I/O) interface 905 is also connected to bus 904.
The following components are connected to the I/O interface 905: an input portion 906 including a keyboard, a mouse, and the like; an output section 907 including components such as a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), and the like, and a speaker; a storage portion 908 including a hard disk and the like; and a communication section 909 including a network interface card such as a LAN card, a modem, or the like. The communication section 909 performs communication processing via a network such as the internet. The drive 910 is also connected to the I/O interface 905 as necessary. A removable medium 911 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like is mounted on the drive 910 as necessary, so that a computer program read out therefrom is mounted into the storage section 908 as necessary.
In particular, according to an embodiment of the present disclosure, the process described above with reference to the flowchart fig. 1 may be implemented as a computer software program. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a machine-readable medium, the computer program comprising program code for performing the method illustrated in the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network through the communication section 909, and/or installed from the removable medium 911. The above-described functions defined in the system of the present application are executed when the computer program is executed by a Central Processing Unit (CPU) 901.
It should be noted that the computer readable media shown in the present disclosure may be computer readable signal media or computer readable storage media or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present disclosure, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In contrast, in the present disclosure, a computer-readable signal medium may include a propagated data signal with computer-readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, fiber optic cable, RF, etc., or any suitable combination of the foregoing.
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units or modules described in the embodiments of the present application may be implemented by software or hardware. The described units or modules may also be provided in a processor, and may be described as: a processor includes a first information acquisition module, a second information acquisition module, and a hyperlink creation module. Where the names of these units or modules do not constitute a limitation to the units or modules themselves in some cases, for example, the first information acquisition module may also be described as "a module for acquiring first path information of a first document and area information of a hyperlink area to be created in the first document".
As another aspect, the present application also provides a computer-readable storage medium, which may be included in the electronic device described in the above embodiments; or may be separate and not incorporated into the electronic device. The computer-readable storage medium stores one or more programs which, when executed by one or more processors, perform the document hyperlink creation methods described herein.
The above description is only a preferred embodiment of the application and is illustrative of the principles of the technology employed. It will be appreciated by those skilled in the art that the scope of the disclosure herein is not limited to the particular combination of features described above, but also encompasses other arrangements formed by any combination of the above features or their equivalents without departing from the spirit of the disclosure. For example, the above features may be replaced with (but not limited to) features having similar functions disclosed in the present application.

Claims (14)

1. A method for creating a document hyperlink, comprising:
acquiring first path information of a first document and area information of a hyperlink area to be created in the first document;
acquiring second path information of a second document and target information of a target text in the second document, wherein the target information comprises a second page number of the target text in the second document and a second coordinate of a target position where the target text is located in a page corresponding to the second page number;
creating a hyperlink in the first document according to the first path information, the area information, the second path information and the target information.
2. The method according to claim 1, wherein the region information comprises a first page number of the hyperlink area to be created in the first document, a first coordinate of the hyperlink area to be created in a page corresponding to the first page number, and a region range of the hyperlink area to be created in a page corresponding to the first page number.
3. The method of claim 2, wherein the area of the hyperlink to be created is a rectangular area.
4. The method according to claim 3, wherein obtaining the area range of the hyperlink area to be created in the page corresponding to the first page comprises:
establishing a first coordinate system by taking a first preset position as a coordinate origin in a page corresponding to the first page code;
and determining a first coordinate of the hyperlink area to be created in the first coordinate system, and acquiring the width and the height of the hyperlink area to be created.
5. The method according to claim 1, wherein obtaining a second coordinate of the target position of the target text in the page corresponding to the second page number comprises:
establishing a second coordinate system by taking a second preset position as a coordinate origin in the page corresponding to the second page number;
and determining a second coordinate of the target position where the target text is located in the second coordinate system.
6. The method of claim 1, after creating a hyperlink in the first document, further comprising:
and saving the first document.
7. A document hyperlink creation apparatus, comprising:
the first information acquisition module is used for acquiring first path information of a first document and area information of a hyperlink area to be created in the first document;
the second information acquisition module is used for acquiring second path information of a second document and target information of a target text in the second document;
and the hyperlink creating module is used for creating a hyperlink in the first document according to the first path information, the area information, the second path information and the target information.
8. The apparatus according to claim 7, wherein the region information comprises a first page number of the to-be-created hyperlink region in the first document, a first coordinate of the to-be-created hyperlink region in a page corresponding to the first page number, and a region range of the to-be-created hyperlink region in a page corresponding to the first page number.
9. The apparatus of claim 8, wherein the hyperlink section to be created is a rectangular section.
10. The apparatus according to claim 9, wherein the first information obtaining module is specifically configured to,
establishing a first coordinate system by taking a first preset position as a coordinate origin in a page corresponding to the first page code;
and determining a first coordinate of the hyperlink area to be created in the first coordinate system, and acquiring the width and the height of the hyperlink area to be created.
11. The apparatus according to claim 7, wherein the second information obtaining module is specifically configured to,
establishing a second coordinate system by taking a second preset position as a coordinate origin in the page corresponding to the second page number;
and determining a second coordinate of the target position where the target text is located in the second coordinate system.
12. The apparatus of claim 7, further comprising:
and the document storage module is used for storing the first document.
13. An electronic device comprising a memory and a processor, the memory having stored thereon a computer program that can be loaded by the processor and that executes the method according to any of claims 1 to 6.
14. A computer-readable storage medium, in which a computer program is stored which can be loaded by a processor and which executes the method of any one of claims 1 to 6.
CN202010569490.2A 2020-06-20 2020-06-20 Document hyperlink creating method and device, electronic equipment and readable storage medium Pending CN111914517A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010569490.2A CN111914517A (en) 2020-06-20 2020-06-20 Document hyperlink creating method and device, electronic equipment and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010569490.2A CN111914517A (en) 2020-06-20 2020-06-20 Document hyperlink creating method and device, electronic equipment and readable storage medium

Publications (1)

Publication Number Publication Date
CN111914517A true CN111914517A (en) 2020-11-10

Family

ID=73238134

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010569490.2A Pending CN111914517A (en) 2020-06-20 2020-06-20 Document hyperlink creating method and device, electronic equipment and readable storage medium

Country Status (1)

Country Link
CN (1) CN111914517A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112632920A (en) * 2020-11-16 2021-04-09 腾讯科技(深圳)有限公司 Link processing method, link processing device, terminal equipment and storage medium
CN113343636A (en) * 2021-06-02 2021-09-03 北京百度网讯科技有限公司 Method and device for setting width of marking line, electronic equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1659550A (en) * 2002-04-19 2005-08-24 电脑联合想象公司 System and method for navigating search results
CN102902661A (en) * 2012-10-24 2013-01-30 广东欧珀移动通信有限公司 Method for realizing hyperlinks of electronic books
CN104317828A (en) * 2014-10-09 2015-01-28 深圳码隆科技有限公司 Search method for electronic commerce product in picture
US20170161238A1 (en) * 2015-12-04 2017-06-08 Gary Fang Emojis for redirecting user to desired websites
CN108572942A (en) * 2018-04-20 2018-09-25 北京深度智耀科技有限公司 A kind of method and apparatus creating hyperlink

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1659550A (en) * 2002-04-19 2005-08-24 电脑联合想象公司 System and method for navigating search results
CN102902661A (en) * 2012-10-24 2013-01-30 广东欧珀移动通信有限公司 Method for realizing hyperlinks of electronic books
CN104317828A (en) * 2014-10-09 2015-01-28 深圳码隆科技有限公司 Search method for electronic commerce product in picture
US20170161238A1 (en) * 2015-12-04 2017-06-08 Gary Fang Emojis for redirecting user to desired websites
CN108572942A (en) * 2018-04-20 2018-09-25 北京深度智耀科技有限公司 A kind of method and apparatus creating hyperlink

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
小眼赫: "word2007如何使用超链接引用另一文档的某一位置", 《 HTTPS://WENKU.BAIDU.COM/VIEW/E3DB4E3DBCD126FFF7050B76.HTML》 *

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112632920A (en) * 2020-11-16 2021-04-09 腾讯科技(深圳)有限公司 Link processing method, link processing device, terminal equipment and storage medium
CN112632920B (en) * 2020-11-16 2021-11-23 腾讯科技(深圳)有限公司 Link processing method, link processing device, terminal equipment and storage medium
CN113343636A (en) * 2021-06-02 2021-09-03 北京百度网讯科技有限公司 Method and device for setting width of marking line, electronic equipment and storage medium
CN113343636B (en) * 2021-06-02 2023-11-03 北京百度网讯科技有限公司 Method and device for setting marking line width, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
CN110020329B (en) Method, device and system for generating webpage
CN111143505B (en) Document processing method, device, medium and electronic equipment
CN109445901B (en) Method and device for drawing vector graphics tool in cross-file format
US9792267B2 (en) Simplifying identification of potential non-visibility of user interface components when responsive web pages are rendered by disparate devices
US11521406B2 (en) Information processing apparatus, information processing system, and non-transitory computer readable medium storing program
CN109582317B (en) Method and apparatus for debugging hosted applications
CN110874172B (en) Method, device, medium and electronic equipment for amplifying APP interface
CN111914517A (en) Document hyperlink creating method and device, electronic equipment and readable storage medium
CN111294395A (en) Terminal page transmission method, device, medium and electronic equipment
US20060059247A1 (en) Automatic simultaneous entry of values in multiple web page fields
CN115578486A (en) Image generation method and device, electronic equipment and storage medium
CN114330240A (en) PDF document analysis method and device, computer equipment and storage medium
CN112508005B (en) Method, apparatus, device and storage medium for processing image
CN107329981B (en) Page detection method and device
CN112445394B (en) Screenshot method and screenshot device
EP3564833A1 (en) Method and device for identifying main picture in web page
CN111581098A (en) Interface data transfer storage method, device, server and storage medium
CN110647327A (en) Method and device for dynamic control of user interface based on card
CN113254932B (en) Application risk detection method and device, electronic equipment and medium
CN115344718A (en) Cross-region document content identification method, device, equipment, medium and program product
CN112947984B (en) Application program development method and device
CN113448578A (en) Page data processing method, processing system, electronic device and readable storage medium
CN109190097B (en) Method and apparatus for outputting information
CN112861504A (en) Text interaction method, device, equipment, storage medium and program product
CN113761415A (en) Page display method and device

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

Application publication date: 20201110

RJ01 Rejection of invention patent application after publication