I’m currently testing Aspose.Pdf capabilities for new project.
I need to create internal link over some text in existing pdf file. I’m finding proper TextFragment I need to create link over. I’m taking rectangle of that fragment then I’m passing it to PdfContentEditor.CreateLocalLink. The problem is that rectangle returned by TextFragment is Aspose.Pdf.Rectangle (good) but CreateLocalLink takes as parameter System.Drawing.Rectangle (bad, double vs int) and this way rect coordinates are rounded, leading in some cases to text strike-through by link border.
Is there any other way to create link with proper positioning information?
Second question, is there a way to create link without visible border? Passing Color.Transparent has same effect as Color.White.