usingAspose;usingAspose.Pdf;usingAspose.Pdf.InteractiveFeatures.Annotations;usingAspose.Pdf.InteractiveFeatures;......

Aspose.Pdf.Documentdoc=newAspose.Pdf.Document(_pdfFilePath);ImagePlacementAbsorberabs=newImagePlacementAbsorber();//查找图片foreach(ImagePlacementp_w_picpathPlacementinabs.ImagePlacements){XImagep_w_picpath=p_w_picpathPlacement.Image;}//创建超链接LinkAnnotationlink=newLinkAnnotation(page,newAspose.Pdf.Rectangle(p_w_picpathPlacement.Rectangle.URX-175,p_w_picpathPlacement.Rectangle.URY-90,p_w_picpathPlacement.Rectangle.URX+4,p_w_picpathPlacement.Rectangle.URY+3));link.Color=Aspose.Pdf.Color.FromRgb(System.Drawing.Color.Empty);//创建透明外框link.Border=newBorder(link);link.Border.Style=BorderStyle.Solid;link.Border.Effect=BorderEffect.None;link.Border.Width=0;link.Action=newGoToRemoteAction(@"..\..\test.pdf",1);//连接到其他文件//link.Action=newAspose.Pdf.InteractiveFeatures.GoToURIAction("www.google.com");//网址超链接page.Annotations.Add(link);