Hi Team,
I am using following code Page page = document.Pages[1];
TextFragmentAbsorber ta = new TextFragmentAbsorber(“Appendix \r\n13-18”);
ta.TextSearchOptions = new TextSearchOptions(page.Rect);
ta.Visit(page);
Aspose.Pdf.Text.TextFragmentCollection TextFrgmtColl = ta.TextFragments;
if (ta.TextFragments.Count > 0)
{
foreach (Aspose.Pdf.Text.TextFragment tf in TextFrgmtColl)
{
LinkAnnotation link1 = new LinkAnnotation(tf.Page, tf.Rectangle);
link1.Action = new GoToRemoteAction(file, 1);
(link1.Action as GoToRemoteAction).NewWindow = ExtendedBoolean.True;
// Add link annotation to annotations collection of first page of PDF file
tf.Page.Annotations.Add(link1);
}
}
And the input file is Appendix_Main.pdf (175.1 KB)
i want create single link for appendix 13-18 which are in different lines not for whole paragraph(means for total two lines)
please help me
your regards,
babu.k