Spire.PDF is a professional PDF library applied to creating, writing, editing, handling and reading PDF files without any external dependencies. Get free and professional technical support for Spire.PDF for .NET, Java, Android, C++, Python.

Sun Jan 15, 2017 10:03 am

Hi

I get a big yellow popup when i mouse over a PdfTextWebLink. The content is the same, as the text on the link. I use the following code:

Code: Select all
var link = new PdfTextWebLink
            {
                Brush = PdfBrushes.Blue,
                Font = new PdfFont(PdfFontFamily.Helvetica, 13f, PdfFontStyle.Underline),
                StringFormat = PdfUtils.TopLeft,
                Text = "Search on google",
                Url = "http://ww.google.com"
            };

            link.DrawTextWebLink(page.Canvas, new PointF(50,50));


How do I get rid of this popup?

Furthermore, when i use StringFormat = PdfUtils.TopCenter, the link seems to be placed from the start of the last word in the link text, i.e. "google" in this example, but the area of which the link is clickable extends beoynd the last word equivalent to the width of the entire link text.

Thanks in advance
Søren Rokkedal

[email protected]
 
Posts: 1
Joined: Tue Nov 22, 2016 9:10 am

Mon Jan 16, 2017 3:58 am

Hi,

Thanks for your inquiry.
Sorry that I am afraid that there is no way to get rid of the popup. It should have that popup when the mouse over the text which has hyperlink.
For the TopCenter issue, could you please provide us those custom code by yourself ? That would be very helpful to investigate this issue.

Thanks,
Betsy
E-iceblue support team
User avatar

Betsy.jiang
 
Posts: 3099
Joined: Tue Sep 06, 2016 8:30 am

Tue Jan 17, 2017 7:14 am

Hi,

How is the TopCenter issue now ?
If it still exists, please provide us those custom code by yourself for further investigation.

Thanks,
Betsy
E-iceblue support team
User avatar

Betsy.jiang
 
Posts: 3099
Joined: Tue Sep 06, 2016 8:30 am

Wed Nov 18, 2020 4:14 am

I am looking for the same answer as you. Thanks

petersmith98
 
Posts: 1
Joined: Wed Nov 18, 2020 4:08 am

Wed Nov 18, 2020 6:31 am

Hello petersmith98,

Thanks for your inquiry.
You mean using our Spire.PDF to add hyperlinks, but the hyperlink position in the generated document is incorrect?
To help us better understand your issue, please provide more detailed information, such as your full test code, your input file (if any) and output file. Thanks in advance.

Sincerely,
Brian
E-iceblue support team
User avatar

Brian.Li
 
Posts: 1271
Joined: Mon Oct 19, 2020 3:04 am

Return to Spire.PDF

cron