New to Telerik Document ProcessingStart a free 30-day trial

Insert Hyperlink into the RadFixedDocument

Updated on Jun 9, 2026

Environment

Product VersionProductAuthor
2021.2.507RadPdfProcessingMartin Velikov

Description

This article describes how to insert a hyperlink into the RadFixedDocument.

Solution

The following example shows how to insert a hyperlink using a Link annotation with an associated UriAction in the RadFixedDocument. The FixedContentEditor draws a block containing the text over the annotation.

Example 1: Insert a Hyperlink into RadFixedDocument

csharp

	RadFixedDocument document = new RadFixedDocument();
	RadFixedPage firstPage = document.Pages.AddPage();

	FixedContentEditor editor = new FixedContentEditor(firstPage);
	editor.Position.Translate(70, 10);

	Block block = new Block();
	block.GraphicProperties.FillColor = new RgbColor(255, 5, 99, 193);
	block.InsertText("Telerik Website");
	Size blockSize = block.Measure();
	editor.DrawBlock(block);

	UriAction uriAction = new UriAction();
	uriAction.Uri = new Uri(@"http://www.telerik.com");

	Link uriLink = firstPage.Annotations.AddLink(uriAction);
	uriLink.Rect = new Rect(70, 10, blockSize.Width, blockSize.Height);

See Also