Hi Mark,
Thanks for using our products.
Kindly use the below code for adding hyperlink in a table cell using Aspose.Pdf.Generator. Resultant PDF document is attached for your reference.
[C#]
//Create a section in the pdf document<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />
Aspose.Pdf.Generator.Pdf pdfConv = new Aspose.Pdf.Generator.Pdf();
//Create a section in the pdf document
Aspose.Pdf.Generator.Section sec1 = pdfConv.Sections.Add();
//Instantiate a table object
Aspose.Pdf.Generator.Table tab1 = new Aspose.Pdf.Generator.Table();
//Add the table in paragraphs collection of the desired section
sec1.Paragraphs.Add(tab1);
//Set default cell border using BorderInfo object
tab1.DefaultCellBorder = new Aspose.Pdf.Generator.BorderInfo((int)Aspose.Pdf.Generator.BorderSide.All, 0.1F);
//Set with column widths of the table
tab1.ColumnWidths = "100 100 120";
//Create text paragraph with the reference of a section
Aspose.Pdf.Generator.Text text1 = new Aspose.Pdf.Generator.Text();
//Create a text segment
Aspose.Pdf.Generator.Segment segment1 = new Aspose.Pdf.Generator.Segment();
//Add a text segment in the text paragraph
segment1 = text1.Segments.Add("this is a local link");
//Set the text in the text segment to be underlined
segment1.TextInfo.IsUnderline = true;
//Set the link type of the text segment to Local
segment1.Hyperlink.LinkType = Aspose.Pdf.Generator.HyperlinkType.Local;
//Assign the id of the desired paragraph as a target id for the text segment
segment1.Hyperlink.TargetID = "product1";
//Create a text paragraph to be linked with the text segment
Aspose.Pdf.Generator.Text text3 = new Aspose.Pdf.Generator.Text(sec1, "product 1 info ...");
//Add the text paragraph to paragraphs collection of the section
sec1.Paragraphs.Add(text3);
//Set this paragraph to be the first so that it can be displayed in a separate
//page in the document
text3.IsFirstParagraph = true;
//Set the id of this text paragraph to "product1"
text3.ID = "product1";
//Create rows in the table and then cells in the rows
Aspose.Pdf.Generator.Row row1 = tab1.Rows.Add();
row1.Cells.Add("Sample text in cell");
// Add the cell which holds the image
Aspose.Pdf.Generator.Cell cell2 = row1.Cells.Add();
//Add the image to the table cell
cell2.Paragraphs.Add(text1);
// save the Pdf file
pdfConv.Save(@"d:\pdffiles\Hyperlink_in_Cell.pdf");
Please feel free to contact support in case you need any further assistance.
Thanks & Regards,