Using aspose;using aspose.pdf;using aspose.pdf.interactivefeatures.annotations;using Aspose.Pdf.InteractiveFeatures;
Aspose.pdf.document doc = new aspose.pdf.document (_pdffilepath); ImagePlacementAbsorberabs = new imageplacementabsorber ();//Find picture foreach (imageplacement imageplacement in abs. imageplacements) { ximage image = imageplacement.image;} Create a hyperlink linkannotation link = new linkannotation (Page, new aspose.pdf.rectangle ( imageplacement.rectangle.urx - 175, imageplacement.rectangle.ury - 90, imageplacement.rectangle.urx + 4, imageplacement.rectangle.ury + 3)); link. Color = aspose.pdf.color.fromrgb (System.Drawing.Color.Empty);//Create a transparent frame link. Border = new border (link); link. Border.style = borderstyle.solid;link. Border.effect = bordereffect.none;link. Border.width = 0;link. Action = new gotoremoteaction (@ "... \.. \test.pdf ", 1); //Connect to other file//link. action = new aspose.pdf.interactivefeatures.gotouriaction ("www.google.com"); //url hyperlink page. Annotations.add (link);
Aspose.pdf for C # create transparent hyperlinks