Hyperlinking in Inkscape

Discuss SVG code, accessible via the XML Editor.
Nightwing
Posts: 1
Joined: Mon Oct 20, 2008 9:41 am

Hyperlinking in Inkscape

Postby Nightwing » Sat Dec 13, 2008 3:10 pm

Hello,

I was wondering if it is possible to hyperlink text in Inkscape so when I export my file as a PDF I can click on a single word and be taken to my desired site? I understand if I just use :tool_text: and type the web address in then in the PDF I will automatically be taken to the website when I click on the text link, but I was wondering if I could hyperlink a certain word or words, perhaps with the XML nodes?

Simarilius
Posts: 626
Joined: Wed Jun 06, 2007 2:37 am

Re: Hyperlinking in Inkscape

Postby Simarilius » Sun Dec 14, 2008 5:59 am

you can add hyperlinks to objects with right click>create link, but I believe it only works on full objects, so you cant limit it to single words in a text block.
Not sure if it gets exported properly to pdf either...

User avatar
aho
Posts: 180
Joined: Sun Nov 04, 2007 9:51 am
Contact:

Re: Hyperlinking in Inkscape

Postby aho » Sun Dec 14, 2008 8:22 am

Accordingly to the specs and the valdiator, hyperlinking indivudal pieces of text within a tspan element is absolutely valid.

However, Inkscape currently doesn't allow you to do that. Additionally, FF2 and all Webkit based browsers (e.g. Chrome) won't render those text pieces at all. (Would be ace if someone could go ahead and confirm my Webkit bug report.)

There will be probably an extension for this a few weeks down the road since I started writing something very similar and it only would need some small changes to cover the functionality you need.

User avatar
RM.
Posts: 249
Joined: Mon Jan 05, 2009 10:33 am
Location: Italy, Sardegna

Re: Hyperlinking in Inkscape

Postby RM. » Fri Nov 27, 2009 8:51 am

I was looking for that too! :( It would be great for online magazines or just pdf tutorials, try with scribus
I'm just someone who likes to create.

Logopond - CGsociety

spaventapasseri
Posts: 98
Joined: Fri Jan 28, 2011 8:50 pm

Re: Hyperlinking in Inkscape

Postby spaventapasseri » Tue Jul 19, 2011 4:39 am

Hello guys , apologize if I reopen this thread, any news for the hyperlinking feature?
italian forum
inkscapeforum.it

User avatar
brynn
Posts: 10309
Joined: Wed Sep 26, 2007 4:34 pm
Location: western USA
Contact:

Re: Hyperlinking in Inkscape

Postby brynn » Tue Jul 19, 2011 11:23 am

Hhhmmm.....well regarding the original message, if you converted your text to paths, it would convert to PDF with no trouble. And with text as paths, the OP could in fact create a link from a single word or words, as far as I understand. But I don't know if the hyperlink would survive the conversion. And I haven't tried it. Maybe you would want to do a quick test?

But if you need the text to remain text....I don't know. Does anyone know if there's a list of all Inkscape extensions? Not just those provided with the program, but all those many unique extensions, created and hosted by individual users? That would be a nice list to have, and I think I might just start one, lol!

spaventapasseri
Posts: 98
Joined: Fri Jan 28, 2011 8:50 pm

Re: Hyperlinking in Inkscape

Postby spaventapasseri » Tue Jul 19, 2011 2:34 pm

@Brynn
thanks to replied
with the svg files not problem at all but with the pdf still is not possible I guess.
I think one confirm from @suv would be better,because I`m not pretty sure but I remember this bug

https://bugs.launchpad.net/inkscape/+bug/407701
italian forum
inkscapeforum.it

~suv
Posts: 2272
Joined: Sun May 10, 2009 2:07 am

Re: Hyperlinking in Inkscape

Postby ~suv » Tue Jul 19, 2011 2:45 pm

spaventapasseri wrote:Hello guys , apologize if I reopen this thread, any news for the hyperlinking feature?

  • With regard to PDF export?
    No: PDFs exported with Inkscape (latest stable 0.48.1 and current development tree) do not include web (aka hyper-) links added in the SVG document.
  • With regard to linking an individual <tspan> instead of the text object itself?
    Not that I know of: Inkscape (up to latest stable 0.48.1 and the current development tree) doesn't have a GUI option to treat <tspan> as separate, selectable objects (you can only highlight it within the text tool context, and give it a different style).

spaventapasseri
Posts: 98
Joined: Fri Jan 28, 2011 8:50 pm

Re: Hyperlinking in Inkscape

Postby spaventapasseri » Tue Jul 19, 2011 2:53 pm

Hi @suv,
I was pretty sure about the pdf links as I read the manual and I didn`t find any mention on it.
One of our users ask to me but before to tell him something wrong I was waiting your reply.

Thanks indeed
italian forum
inkscapeforum.it

oxplot
Posts: 2
Joined: Mon Nov 21, 2011 1:16 pm

Re: Hyperlinking in Inkscape

Postby oxplot » Fri Mar 06, 2015 9:23 pm

The reason I'm resurrecting this old thread is because it ranks high on search engines and I have a solution that might help others.

I've written a very hackish python script that takes the PDF generated by Inkscape and adds clickable hyperlinks to it. It's not plug-n-play — you have to do a little manual work but it's worth it since it seems to be the only option for now.

All the instructions on what you need and how to use the script is in the comment section of the script itself.

ihocking
Posts: 2
Joined: Tue Aug 16, 2016 8:41 am

Re: Hyperlinking in Inkscape

Postby ihocking » Tue Aug 16, 2016 8:51 am

PDF with links:
Save as SVG, open in Chrome
Change margins to none
print as PDF


Return to “SVG / XML Code”