Add Hyperlinks to Office Documents & Emails via Java API

GroupDocs.Assembly Java API allows software professionals to programmatically add hyperlinks to email messages & Office Documents like PDF DOC, DOCX, RTF, XLSX, CSV, PPTX, MSG & more.


Download Free Trial

How to Use Java API to Add Hyperlinks to Office & Emails Documents?

A hyperlink is a word, phrase, or image that you can click on to jump to a new document or a new section within the current document. Hyperlinks are the backbone worldwide web and are used for many necessary functions on the World Wide Web. GroupDocs.Assembly for Java is a document automation and reports generation API that helps software developers to dynamically insert hyperlinks inside their documents or reports ease. The API is very stable and fully supports several advanced features related to hyperlinks management, such as add hyperlinks to a document page, links addition to a presentation slide, adding hyperlinks to spreadsheet cells, modifying hyperlinks content, dynamically inserting links from bookmarks, delete unwanted links, show text instead of hyperlink, and many more. Some of very common documents types like PDF, HTML, Outlook email, Microsoft Office Word, Excel worksheets, PowerPoint presentations etc. are fully supported.

Insert Hyperlinks to Word Processing Documents via Java

GroupDocs.Assembly Java API fully supports the insertion and editing of hyperlinks inside various commonly used documents formats. The below Java code example shows how to insert hyperlinks inside a Microsoft Word document.

Insert Hyperlinks in XLSM Document via Java

  • Setting up source and destination documents
  • Set Uri Expression as well as display text Expression
  • Create an instance of DocumentAssembler class
  • Call AssembleDocument method to assemble document. It supports
    • Stream to read a template document.
    • Stream to write the resultant document.
    • Additional options for document loading and saving.
    • Information on data source objects.


Add Hyperlinks in Spreadsheets via Java

GroupDocs.Assembly Java API allows computer programmers to insert and modify hyperlinks inside their Spreadsheet documents with ease. They can easily access, edit its location or replace it with a new one. The following Java code demonstrates how easily programmers can add hyperlinks inside their Spreadsheets.

How to Insert Hyperlinks to XLSM File

  • Setting up source and destination Spreadsheet files
  • Set Uri Expression as well as display text Expression
  • Create an instance of DocumentAssembler class
  • Call AssembleDocument method to assemble document. It supports
    • Stream to read a template document.
    • Stream to write the resultant document.
    • Additional options for document loading and saving.
    • Information on data source objects.


Insert Hyperlinks to PowerPoint Presentation via Java

GroupDocs.Assembly Java API makes it easy for programmers to handle their documents management related tasks. Here is a Java code example that shows how easily software programmers can access their PowerPoint Presentation documents and add hyperlinks inside it.

How to Insert Hyperlinks in Presentations

  • Setting up source and destination presentation files
  • Set Uri and display text Expressions
  • Create an instance of DocumentAssembler class
  • Call AssembleDocument method to assemble document. It supports
    • Stream to read a template document.
    • Stream to write the resultant document.
    • Additional options for document loading and saving.
    • Information on data source objects.


Use Java API to Add Hyperlinks in Emails

GroupDocs.Assembly for Java makes it easy for software developers to add hyperlinks to their email messages with just a couple of lines of Java code. The following example demonstrates how easily can developers insert hyperlinks inside their email documents and send to other users inside their own Java apps.

how to Add Hyperlinks to Emails

  • Setting up source and destination Spreadsheet files
  • Set Uri and display text Expressions
  • Create an instance of DocumentAssembler class
  • Call AssembleDocument method to assemble document. It supports
    • Stream to read a template document.
    • Stream to write the resultant document.
    • Additional options for document loading and saving.
    • Information on data source objects.


System Requirements

GroupDocs.Assembly Java APIs are supported on all major platforms and operating systems. It can generate documents in Microsoft Word, Excel, PowerPoint, Outlook, OpenOffice & 50+ other formats. For complete system requirements guide, please visit system requirements Before executing the code below, please make sure that you have the following prerequisites installled on your system:

  • Operating Systems: Microsoft Windows, Linux, MacOS
  • Java Versions Support: J2SE 7.0 (1.7), J2SE 8.0 (1.8) or above
  • Get the latest version of GroupDocs.Assembly Java APIs from Maven

Why Use GroupDocs.Assembly

  • Create custom documents from templates.
  • Dynamically attach email attachments.
  • No additional software is required to create and automate documents.
  • Generates an output document based on the data source.
  • Dynamically insert out document content in report
  • Apply formula during spreadsheet assembly.
  • Provides support for Multiple data formats
  • Sequential data operations support.


What is XLSM File Format?

Files with XLSM extension is a type of Spreadsheet files that support Macros. From application point of view, a Macro is set of instructions that are used for automating processes. A macro is used to record the steps that are performed repeatedly and facilitates performing the actions by running the macro again. Macros are programmed with Microsoft’s Visual Basic for Applications (VBA) from within the Excel Workbook using the Visual Basic Editor and can be run/debug directly from there.

Read More

Popular Report Generation Options

Generate PDF Files

(Portable Document Format)

Generate HTML Files

(Hyper Text Markup Language)

Generate XPS Files

(XML Paper Specifications)

Generate TIFF Files

(Tagged Image File Format)

Generate MHTML Files

(Web Page Archive Format)

Generate TXT Files

(Text Document)

Generate EPUB Files

(Open eBook File)

Generate SVG Files

(Scalar Vector Graphics)

Generate PS Files

(PostScript File)

Generate PCL Files

(Printer Command Language Document)

Generate OTT Files

(OpenDocument Standard Format)

Generate OXPS Files

(OpenXPS File)

Generate MD Files

(Markdown Language)

Generate POT Files

(Microsoft PowerPoint Template Files)

Generate OTP Files

(OpenDocument Standard Format)

Generate DOC Files

(Microsoft Word Binary Format)

Generate DOCX Files

(Office 2007+ Word Document)

Generate DOCM Files

(Microsoft Word 2007 Marco File)

Generate DOT Files

(Microsoft Word Template Files)

Generate DOTX Files

(Microsoft Word Template File )

Generate DOTM Files

(Microsoft Word 2007+ Template File)

Generate RTF Files

(Rich Text Format)

Generate ODT Files

(OpenDocument Text File Format)

Generate OTT Files

(OpenDocument Standard Format)

Generate XLS Files

(Microsoft Excel Spreadsheet (Legacy))

Generate XLT Files

(Excel 97 - 2003 Template)

Generate XLSX Files

(Open XML Workbook)

Generate XLTX Files

(Excel Template)

Generate XLTM Files

(Excel Macro-Enabled Template)

Generate XLSB Files

(Excel Binary Workbook)

Generate ODS Files

(OpenDocument Spreadsheet)

Generate PPT Files

(Microsoft PowerPoint 97-2003)

Generate PPTX Files

(Open XML presentation Format)

Generate PPTM Files

(Macro-enabled Presentation File)

Generate PPS Files

(PowerPoint Slide Show)

Generate PPSX Files

(PowerPoint Slide Show)

Generate PPSM Files

(Macro-enabled Slide Show)

Generate POTX Files

(Microsoft PowerPoint Template Presentation)

Generate POTM Files

(Microsoft PowerPoint Template File)

Generate ODP Files

(OpenDocument Presentation Format)

Generate EML Files

(E-Mail Message)

Generate EMLX Files

(Apple Mail Message)

Generate MSG Files

(Outlook Message Item File)

Back to top
 English