sumatrapdf icon indicating copy to clipboard operation
sumatrapdf copied to clipboard

colorful links

Open ikp123 opened this issue 2 years ago • 8 comments

Sumatra is great, but it doesn't highlight links (within the document) like other pdf readers do. xodo: image Sumatra: image

Is it possible to give this as an option?

ikp123 avatar Sep 02 '22 14:09 ikp123

External links are highlighted in blue when switched on for that session

image

GitHubRulesOK avatar Sep 02 '22 15:09 GitHubRulesOK

How do you switch it on? Also, this is not an external link, it's an internal link (it leads to a point in the file).

ikp123 avatar Sep 02 '22 15:09 ikp123

Pre-release (I think it was showing in 3.2 also) internal links should look the same I set this one to page 2 but there is no tooltip to confirm where internals go to image image

GitHubRulesOK avatar Sep 02 '22 15:09 GitHubRulesOK

OK, but I don't have this "Debug" in the main menu image

ikp123 avatar Sep 02 '22 15:09 ikp123

AFAIK 3.2 had it shown in the official release (oversight ?) but not in 3.3/3.4 ? so latest pre-release is the best option

GitHubRulesOK avatar Sep 02 '22 15:09 GitHubRulesOK

Yes, I think that's right. I have version 3.4.6, and I do remember that Sumatra used to have this feature by default.

ikp123 avatar Sep 02 '22 15:09 ikp123

its classed "experimental" not matured :-) so in the debug features but 3.2 included some

GitHubRulesOK avatar Sep 02 '22 15:09 GitHubRulesOK

And hence my request :) Sumatra is great (it is the only pdf reader on Windows that I know of that updates the presentation when the file changes automatically; Adobe reader doesn't even allow to change the file if it's open), but this feature is really missing from the latest versions.

ikp123 avatar Sep 02 '22 15:09 ikp123

@kjk several PDF viewers allow 2 colour link outlines, one usually for internal gotos and one usually for externals URL could HighlightLinks be a settings.txt option on /off (true false) or at least one colour used such as current ? #00ffff (default) or better yet be changeable for both types?

GitHubRulesOK avatar Oct 20 '23 11:10 GitHubRulesOK

Yeah, we already have code to show links in debug mode. I'll expose it via command / setting.

kjk avatar Oct 20 '23 12:10 kjk

added ShowLinks advanced setting and Toggle Show Links for command palette (Ctrl + K)

Will be in next pre-release within next 24 hrs

kjk avatar Oct 26 '23 20:10 kjk

@kjk Hello, the default color of highlight links is blue. Can I customize the color?

saxyx avatar Jun 27 '24 09:06 saxyx

There's no way to change the color (other than compiling the application from sources)

kjk avatar Jun 27 '24 11:06 kjk

@kjk Thank you for your reply. I noticed that in SumatraPDF-settings.txt I can customize the color of some objects, such as the color of MainWindowBackground, could you please add a new feature so that the user can specify the color of highlight links in SumatraPDF-settings.txt?

saxyx avatar Jun 28 '24 04:06 saxyx