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 demonstrates how to add web link, email link, file link and image hyperlink to a Word document using Free Spire.Doc for Java library . Before start with coding, you need to Download Free Spire.Doc for Java package , unzip it and import Spire.Doc.jar file from the lib folder in your project as a denpendency. Example Code import com.spire.doc.*; import com.spire.doc.documents.*; import com.spire.doc.fields.DocPicture; public class InsertHyperlink { public static void main(String[] args) { //create a Word document Document doc = new Document(); ...
A blog about Microsoft Office and PDF document development using .NET and Java.