ハイパーリンクは、クリックして新しいドキュメントまたは現在のドキュメント内の新しいセクションにジャンプできる単語、フレーズ、または画像です。 ハイパーリンクはワールドワイドWebのバックボーンであり、WorldWideWebで必要な多くの機能に使用されます。 GroupDocs.Assembly for Javaは、ドキュメントの自動化およびレポート生成APIであり、ソフトウェア開発者がドキュメントまたはレポート内にハイパーリンクを動的に挿入するのに役立ちます。 APIは非常に安定しており、ドキュメントページへのハイパーリンクの追加、プレゼンテーションスライドへのリンクの追加、スプレッドシートセルへのハイパーリンクの追加、ハイパーリンクコンテンツの変更、ブックマークからのリンクの動的挿入、不要な削除など、ハイパーリンク管理に関連するいくつかの高度な機能を完全にサポートします。 リンク、ハイパーリンクの代わりにテキストを表示するなど。 PDF、HTML、Outlook電子メール、Microsoft Office Word、Excelワークシート、PowerPointプレゼンテーションなど、非常に一般的なドキュメントタイプの一部が完全にサポートされています。
GroupDocs.Assembly Java APIは、一般的に使用されるさまざまなドキュメント形式内でのハイパーリンクの挿入と編集を完全にサポートしています。 以下のJavaコード例は、MicrosoftWordドキュメント内にハイパーリンクを挿入する方法を示しています。
// 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を使用すると、コンピュータープログラマーは、Spreadsheetドキュメント内にハイパーリンクを簡単に挿入および変更できます。 彼らは簡単にアクセスしたり、その場所を編集したり、新しい場所に置き換えたりすることができます。 次のJavaコードは、プログラマーがスプレッドシート内にハイパーリンクを簡単に追加できることを示しています。
// 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を使用すると、プログラマーはドキュメント管理関連のタスクを簡単に処理できます。 これは、ソフトウェアプログラマーがPowerPointプレゼンテーションドキュメントに簡単にアクセスしてハイパーリンクを追加できることを示すJavaコードの例です。
// 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を使用すると、ソフトウェア開発者は数行のJavaコードで電子メールメッセージにハイパーリンクを簡単に追加できます。 次の例は、開発者が自分の電子メールドキュメント内にハイパーリンクを挿入し、自分のJavaアプリ内で他のユーザーに送信する方法を示しています。
// 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 APIは、すべての主要なプラットフォームとオペレーティングシステムでサポートされています。 Microsoft Word、Excel、PowerPoint、Outlook、OpenOffice、その他50以上の形式でドキュメントを生成できます。 完全なシステム要件ガイドについては、システム要件 にアクセスしてください。以下のコードを実行する前に、次の前提条件がインストールされていることを確認してください。 システム:
(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)