We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Create an external hyperlink for newly created text fragment inside PDF using Aspose.PDF in C#

In the below example i m able to create open file hyperlink. But hpw do i create external hyperlink
TextFragment textFragment = new TextFragment(“This is link text”);
textFragment.getTextState().setUnderline(true);
textFragment.getTextState().setForegroundColor(Color.getBlue());
//FileHyperlink h1=new FileHyperlink(“https://google.com”);
textFragment.setHyperlink(new FileHyperlink(“multiheader2.pdf”));
cell.getParagraphs().add(textFragment);

@amitchakravarthy

Thanks for contacting support.

When you say external hyperlink, would you please elaborate a bit more about it. Would you kindly share a sample PDF document for us which contains external hyperlinks so that we can test the scenario in our environment and address it accordingly.

Sorry my bad. I meant to say GoToRemoteAction we want to create a hyperlink pointing to some other document.
i m able to create LaunchAction by below code
textFragment.setHyperlink(new FileHyperlink(“multiheader2.pdf”));
i m able to create GoToURIAction by below code
textFragment.setHyperlink(new WebHyperlink(“https://google.com”));
but i m not getting how to create GoToRemoteAction .

multiheader1.pdf (84.1 KB)

@amitchakravarthy

We have responded to your similar inquiry in other thread.