Skip to main content
Conversation Starter
July 11, 2024
Solved

Adding a hyperlink on PDF to sign

  • July 11, 2024
  • 4 replies
  • 298 views

Hi everyone

I want to add a hyperlink on a PDF to sign

I am creating the envelope via SDK using node by passing the tabs definition via params 

 

I have ran into this article https://support.docusign.com/s/articles/How-to-create-a-hyperlink-in-DocuSign?language=en_US&rsc_301

but I can not figure out a way to tell DocuSign SDK to use the custom field that I have created manually following the guide.

is there a way to add the hyperlink using DocuSign SDK or calling the rest API when creating the envelope?

 

Thanks in advance.

Best answer by Hengfeng Ge

@mlopezchina Maybe can reference this document: 

https://www.docusign.com/blog/developers/the-trenches-creating-hyperlinks-through-the-api-the-apex-toolkit

4 replies

Docusign Employee
July 16, 2024

Hello,

Thank you for posting to DocuSign's Community.

I have prepared an example so that you have an idea of ​​how to implement a hyperlink using Java, it is important to mention that this is just an example.

 

import com.docusign.esign.model.*;
import java.util.*;

Text customTab = new Text();
customTab.setTabLabel("TabLabel");
customTab.setAnchorString("AnchorString");
customTab.setAnchorXOffset("1");
customTab.setAnchorYOffset("1");
customTab.setFont("Arial");
customTab.setFontSize("Size12");
customTab.setBold(true);
customTab.setUnderline(true);

String hyperlink = "<a href=\"https://www.example.com\">Example Link</a>";
customTab.setValue(hyperlink);
customTab.setLocked(false);
customTab.setRequired("true");

Tabs tabs = new Tabs();
List<Text> textTabs = new ArrayList<>();
textTabs.add(customTab);
tabs.setTextTabs(textTabs);

Signer signer = new Signer();
signer.setEmail("recipient@example.com");
signer.setName("Recipient Name");
signer.setRecipientId("1");
signer.setTabs(tabs);

 

Regards,

 

Eric | Docusign

Conversation Starter
July 18, 2024

Hi @Eric Ruiz

I will give it a try however I’m using javascript but I can figure out how to use the same approach.

Thank you.

 

Regards.

 

Mariano Lopez

Hengfeng Ge
Hero
Hero
July 21, 2024
Welcome to the DocuSign Community! Your feedback is highly valued. If you find my response helpful, please give it a "Like" and consider marking it as the "Best Answer" to assist others with similar issues.
Conversation Starter
July 26, 2024

Many thanks @Hengfeng Ge your reference helped me a lot