Inkscape Community

Help Using Inkscape => Inkscape Beginners' Questions => Topic started by: Michelle on July 19, 2019, 08:40:53 AM

Title: Embed hyperlink on text object
Post by: Michelle on July 19, 2019, 08:40:53 AM
Hi there,

I have a pdf file open in inkscape. I would like to embed aour website address in a text object I have created such that when someone clicks my text they will get redirected to our website.

Could anyone please explain (to a beginner) how to do this. ?

Thanks very much
Michelle
Title: Re: Embed hyperlink on text object
Post by: Michelle on July 19, 2019, 08:58:57 AM
This works:
> Right click your object
> click Link Properties
> Past your website url into the Href field, save (in .svg format)
> Open the svg file in Chrome, print as PDF (select Margins = none and whatever other settings you want)

But surely there is a better way to go directly from setting the link in inkscape to creating a pdf which contains the link?
Title: Re: Embed hyperlink on text object
Post by: brynn on July 19, 2019, 09:37:38 AM
Welcome to the forum!

I don't actually know, but I think there's something in the manual about it.  Let's see....  Ah yes:  http://tavmjong.free.fr/INKSCAPE/MANUAL/html/Web-Links.html

If you're not familiar with making websites or HTML, you might need more detailed instructions.

Will the PDF file be on a website?  Or will it just be a file that you're maybe going to email to someone, or something like that?

Hhmm, either it just doesn't work when converting to PDF, or I need more detailed instructions myself.  My first test didn't work.  Inkscape identifies the text as a link, in Inkscape.  But when I open the PDF in Adobe Reader, it's not a link.  It's just regular text.

Hhmm, I  wonder....  Ok, that works.  If the text is going to be the URL (starts with https) when you save that as PDF (and not using the instructions in the manual - just the url text), then the text is a link, when I open it in my PDF reader.  But the text that's made with my best understanding of the manual, it's just regular text in the PDF  reader.

Hopefully someone else can help?
Title: Re: Embed hyperlink on text object
Post by: brynn on July 19, 2019, 09:42:30 AM
I posted my reply before I saw your 2nd message.  I used a little bit different routine than you.  But mine didn't work.

I typed some random text, put the URL in the href field, in the SVG file, and Inkscape identifies it as a link.  But after I save the file as PDF, and open it in a PDF reader, it's just regular text.

However, if instead of random text, I type a URL, and save that file as PDF.  When I open in the PDF reader, it does show as an active link.

Maybe someone else will know how?  Or know whether the link is supposed to convert to PDF correctly.
Title: Re: Embed hyperlink on text object
Post by: flamingolady on July 19, 2019, 10:05:20 AM
I'm yrs out from having done any html, (and it wasn't much to begin with), but what I did, was tell it in code how much room to use surrounding the hyperlink, so it's kind of a 'fake' when clicking on the object, I didn't actually link them - at least that's how I used to do it, it was an easy way anyway.  I've never used pdf for links, so clueless there.  I also can't remember the coding, put perhaps you can go to someone's website that has it, click on view the source, and just copy that part of the code, then replace your url with theirs.
Title: Re: Embed hyperlink on text object
Post by: Moini on July 22, 2019, 05:33:07 AM
The feature for links in PDFs has only recently been added to the next, not-yet-released version of Inkscape. If you want to try it out, visit https://inkscape.org/release/master/