하이퍼링크는 클릭하여 새 문서나 현재 문서 내의 새 섹션으로 이동할 수 있는 단어, 구 또는 이미지입니다. 하이퍼링크는 월드 와이드 웹의 백본이며 월드 와이드 웹에서 필요한 많은 기능에 사용됩니다. Java용 GroupDocs.Assembly는 소프트웨어 개발자가 문서 또는 보고서 내부에 하이퍼링크를 쉽게 동적으로 삽입할 수 있도록 도와주는 문서 자동화 및 보고서 생성 API입니다. API는 매우 안정적이며 문서 페이지에 하이퍼링크 추가, 프레젠테이션 슬라이드에 링크 추가, 스프레드시트 셀에 하이퍼링크 추가, 하이퍼링크 내용 수정, 책갈피에서 동적으로 링크 삽입, 원치 않는 삭제와 같은 하이퍼링크 관리와 관련된 여러 고급 기능을 완벽하게 지원합니다. 링크, 하이퍼링크 대신 텍스트 표시 등. PDF, HTML, Outlook 이메일, Microsoft Office Word, Excel 워크시트, PowerPoint 프레젠테이션 등과 같은 매우 일반적인 문서 유형 중 일부가 완벽하게 지원됩니다.
GroupDocs.Assembly Java API는 일반적으로 사용되는 다양한 문서 형식 내에서 하이퍼링크의 삽입 및 편집을 완벽하게 지원합니다. 아래 Java 코드 예제는 Microsoft Word 문서 내부에 하이퍼링크를 삽입하는 방법을 보여줍니다.
// 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를 사용하면 컴퓨터 프로그래머가 스프레드시트 문서 내부에 하이퍼링크를 쉽게 삽입하고 수정할 수 있습니다. 쉽게 액세스하거나 위치를 편집하거나 새 위치로 교체할 수 있습니다. 다음 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()); | |
} |
Java용 GroupDocs.Assembly를 사용하면 소프트웨어 개발자가 몇 줄의 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)
(Macro-enabled Spreadsheet)
(Excel Template)
(Excel Macro-Enabled Template)
(Excel Binary Workbook)
(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)