Hi,
this is not really a new issue, but I started it as a new thread anyway, to indicate, that it really deserves your attention; I hope that won't break some forum rules.
Like it was stated in
viewtopic.php?f=2&t=872 there is a problem with ugly boxes showing up around hyperlinks.
Thomas stated, that there ARE no borders for PDFsharp's hyperlinks and that the problem is with the readers, that display the document.
Well, that is true but not a solution. Actually, from all I have gathered, the absence of borders in hyperlinks created by PDFsharp is
exactly the source of the whole issue: without explicit border attributes all readers must somehow decide which default they should use. That was not a problem when Adobe's Reader, by far the most widely used reader, defaulted to 'no border' or 'borderwidth=0' or 'bordercolor=transparent' or what ever made the border not show up.
But that has changed: It looks now that somewhere hidden in the specs ther is a rule that calls for box-borders in absence of document-provided borders and the newer version of Abode reader do just that. Foxit does not, at the moment, but some folks call for it to adhere to the spec, too. And on the Mac the borders are there too, both on the Adobe reader and on the Apple preview.
Links created by other libraries do it right, but I'd
much rather stay with PDFsharp!!
So this is really a problem that ought to be solved here in PDFsharp and I guess simply adding the borderwidth=0 and/or bordercolor=transparent would be enough. The hyperlink-text could still be styled and useres of the library would need to change anything at all.
thanks for listening, Thomas Wulf