This week's book giveaway is in the Programmer Certification forum.
We're giving away four copies of OCP Oracle Certified Professional Java SE 11 Programmer I Study Guide: Exam 1Z0-815 and have Jeanne Boyarsky & Scott Selikoff on-line!
See this thread for details.
Win a copy of OCP Oracle Certified Professional Java SE 11 Programmer I Study Guide: Exam 1Z0-815 this week in the Programmer Certification forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Junilu Lacar
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Knute Snortum
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Ron McLeod
  • Carey Brown
Bartenders:
  • Paweł Baczyński
  • Piet Souris
  • Vijitha Kumara

Insert and Modify Hyperlinks in Word in Java

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Adding hyperlinks to a Microsoft Word document can help readers to easily jump from the link to a different place, for example, to a place in the current document, to a different file or website, or to a new email message. This article illustrates how to inserting  hyperlinks to Word document and modify existing hyperlinks programmatically using Java.

An overview of content:
  • Insert various types of hyperlinks to a new created Word document
  • Insert hyperlinks to a specific place of an existing Word document
  • Modify hyperlinks in a Word document


  • The following examples uses Free Spire.Doc for Java library.

    Insert various types of hyperlinks to a new created Word document

    Free Spire.Doc for Java allows adding web link, email link, file link and image hyperlink to a Word document. The following example shows how to create a new Word document and add these hyperlinks into it.





    Insert hyperlinks to a specific place of an existing Word document

    We can also add hyperlinks to an existing Word document. The following example shows how to load an exsiting Word document and add hyperlink to a specific text in the document.





    Modify hyperlinks in a Word document

    The following examples shows how to update the link address and display text of a hyperlink in a Word document.




     
    Everybody! Do the Funky Monkey! Like this tiny ad!
    Java file APIs (DOC, XLS, PDF, and many more)
    https://products.aspose.com/total/java
    • Post Reply Bookmark Topic Watch Topic
    • New Topic
    Boost this thread!