Ein Hyperlink ist ein Wort, ein Satz oder ein Bild, auf das Sie klicken können, um zu einem neuen Dokument oder einem neuen Abschnitt innerhalb des aktuellen Dokuments zu springen. Hyperlinks sind das Rückgrat des World Wide Web und werden für viele notwendige Funktionen im World Wide Web verwendet. GroupDocs.Assembly für Java ist eine API zur Dokumentautomatisierung und Berichterstellung, die Softwareentwicklern hilft, Hyperlinks dynamisch in ihre Dokumente oder Berichte einzufügen. Die API ist sehr stabil und unterstützt vollständig mehrere erweiterte Funktionen im Zusammenhang mit der Verwaltung von Hyperlinks, wie z Links, Text statt Hyperlink anzeigen und vieles mehr. Einige sehr gängige Dokumenttypen wie PDF, HTML, Outlook-E-Mail, Microsoft Office Word, Excel-Arbeitsblätter, PowerPoint-Präsentationen usw. werden vollständig unterstützt.
GroupDocs.Assembly Java API unterstützt vollständig das Einfügen und Bearbeiten von Hyperlinks in verschiedene häufig verwendete Dokumentformate. Das folgende Java-Codebeispiel zeigt, wie Sie Hyperlinks in ein Microsoft Word-Dokument einfügen.
// 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 ermöglicht Computerprogrammierern das einfache Einfügen und Ändern von Hyperlinks in ihren Spreadsheet-Dokumenten. Sie können einfach auf den Standort zugreifen, ihn bearbeiten oder durch einen neuen ersetzen. Der folgende Java-Code zeigt, wie einfach Programmierer Hyperlinks in ihre Spreadsheets einfügen können.
// 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 macht es Programmierern leicht, ihre Aufgaben im Zusammenhang mit der Dokumentenverwaltung zu erledigen. Hier ist ein Java-Codebeispiel, das zeigt, wie einfach Softwareprogrammierer auf ihre PowerPoint-Präsentationsdokumente zugreifen und darin Hyperlinks einfügen können.
// 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 für Java erleichtert Softwareentwicklern das Hinzufügen von Hyperlinks zu ihren E-Mail-Nachrichten mit nur wenigen Zeilen Java-Code. Das folgende Beispiel zeigt, wie einfach Entwickler Hyperlinks in ihre E-Mail-Dokumente einfügen und an andere Benutzer in ihren eigenen Java-Apps senden können.
// 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 werden auf allen wichtigen Plattformen und Betriebssystemen unterstützt. Es kann Dokumente in Microsoft Word, Excel, PowerPoint, Outlook, OpenOffice und über 50 anderen Formaten erstellen. Eine vollständige Anleitung zu den Systemanforderungen finden Sie unter Systemanforderungen. Bevor Sie den folgenden Code ausführen, stellen Sie bitte sicher, dass die folgenden Voraussetzungen auf Ihrem installiert sind System:
(Portable Document Format)
(Hyper Text Markup Language)
(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)
(Macro-enabled Spreadsheet)
(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)