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.
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.
// Supported file formats: https://docs.groupdocs.com/assembly/java/supported-document-formats/ | |
String strDocumentTemplate = "/Word Templates/Dynamic Hyperlink.docx"; | |
String strDocumentReport = "/Word Reports/Dynamic Hyperlink.docx"; | |
String uriExpression = "https://www.groupdocs.com/"; | |
String displayTextExpression = "GroupDocs"; | |
try | |
{ | |
DocumentAssembler assembler = new DocumentAssembler(); | |
assembler.assembleDocument(CommonUtilities.getDataPath(strDocumentTemplate), CommonUtilities.getOutPath(strDocumentReport), | |
new DataSourceInfo(uriExpression,"uriExpression"), | |
new DataSourceInfo(displayTextExpression,"displayTextExpression")); | |
} | |
catch (Exception exp) | |
{ | |
System.out.println("Exception: " + exp.getMessage()); | |
} |
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.
// Supported file formats: https://docs.groupdocs.com/assembly/java/supported-document-formats/ | |
String strDocumentTemplate = "/Spreadsheet Templates/Dynamic Hyperlink.xlsx"; | |
String strDocumentReport = "/Spreadsheet Reports/Dynamic Hyperlink.xlsx"; | |
String uriExpression = "https://www.groupdocs.com/"; | |
String displayTextExpression = "GroupDocs"; | |
try | |
{ | |
DocumentAssembler assembler = new DocumentAssembler(); | |
assembler.assembleDocument(CommonUtilities.getDataPath(strDocumentTemplate), CommonUtilities.getOutPath(strDocumentReport), | |
new DataSourceInfo(uriExpression,"uriExpression"), | |
new DataSourceInfo(displayTextExpression,"displayTextExpression")); | |
} | |
catch (Exception exp) | |
{ | |
System.out.println("Exception: " + exp.getMessage()); | |
} |
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.
// Supported file formats: https://docs.groupdocs.com/assembly/java/supported-document-formats/ | |
String strDocumentTemplate = "/Presentation Templates/Dynamic Hyperlink.pptx"; | |
String strDocumentReport = "/Presentation Reports/Dynamic Hyperlink.pptx"; | |
String uriExpression = "https://www.groupdocs.com/"; | |
String displayTextExpression = "GroupDocs"; | |
try | |
{ | |
DocumentAssembler assembler = new DocumentAssembler(); | |
assembler.assembleDocument(CommonUtilities.getDataPath(strDocumentTemplate), CommonUtilities.getOutPath(strDocumentReport), | |
new DataSourceInfo(uriExpression,"uriExpression"), | |
new DataSourceInfo(displayTextExpression,"displayTextExpression")); | |
} | |
catch (Exception exp) | |
{ | |
System.out.println("Exception: " + exp.getMessage()); | |
} |
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.
// Supported file formats: https://docs.groupdocs.com/assembly/java/supported-document-formats/ | |
String strDocumentTemplate = "/Email Templates/Dynamic Hyperlink.msg"; | |
String strDocumentReport = "/Email Reports/Dynamic Hyperlink.msg"; | |
String uriExpression = "https://www.groupdocs.com/"; | |
String displayTextExpression = "GroupDocs"; | |
try | |
{ | |
DocumentAssembler assembler = new DocumentAssembler(); | |
assembler.assembleDocument(CommonUtilities.getDataPath(strDocumentTemplate), CommonUtilities.getOutPath(strDocumentReport), | |
new DataSourceInfo(uriExpression,"uriExpression"), | |
new DataSourceInfo(displayTextExpression,"displayTextExpression")); | |
} | |
catch (Exception exp) | |
{ | |
System.out.println("Exception: " + exp.getMessage()); | |
} |
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:
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(Portable Document Format)
(Hyper Text Markup Language)
(XML Paper Specifications)
(Tagged Image File Format)
(Web Page Archive Format)
(Text Document)
(XAML File)
(Open eBook File)
(Scalar Vector Graphics)
(PostScript File)
(Printer Command Language Document)
(XML File)
(OpenDocument Standard Format)
(OpenXPS File)
(Markdown Language)
(Microsoft PowerPoint Template Files)
(OpenDocument Standard Format)
(Microsoft Word Binary Format)
(Office 2007+ Word Document)
(Microsoft Word 2007 Marco File)
(Microsoft Word Template Files)
(Microsoft Word Template File )
(Microsoft Word 2007+ Template File)
(Rich Text Format)
(OpenDocument Text File Format)
(OpenDocument Standard Format)
(Microsoft Excel Spreadsheet (Legacy))
(Excel 97 - 2003 Template)
(Open XML Workbook)
(Excel Template)
(Excel Macro-Enabled Template)
(Excel Binary Workbook)
(OpenDocument Spreadsheet)
(Microsoft PowerPoint 97-2003)
(Open XML presentation Format)
(Macro-enabled Presentation File)
(PowerPoint Slide Show)
(PowerPoint Slide Show)
(Macro-enabled Slide Show)
(Microsoft PowerPoint Template Presentation)
(Microsoft PowerPoint Template File)
(OpenDocument Presentation Format)
(E-Mail Message)
(Apple Mail Message)
(Outlook Message Item File)