Author Topic: Embed hyperlink on text object  (Read 416 times)

July 19, 2019, 08:40:53 AM
Read 416 times

Michelle

  • Sr. Newbie

  • Offline
  • **

  • 3
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
  • 0.92.4
  • Windows 10 Proffesional

July 19, 2019, 08:58:57 AM
Reply #1

Michelle

  • Sr. Newbie

  • Offline
  • **

  • 3
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?
  • 0.92.4
  • Windows 10 Proffesional

July 19, 2019, 09:37:38 AM
Reply #2

brynn

  • Administrator

  • Offline
  • ******

  • 3,941
  • Gender
    Female

    Female
    • Inkscape Community
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?
  • Inkscape version 0.92.3
  • Windows 7 Pro, 64-bit
Inkscape Tutorials (and manuals)                      Inkscape Community Gallery                        Inkscape for Cutting Design                     



"Be ashamed to die until you have won some victory for humanity" - Horace Mann                       

July 19, 2019, 09:42:30 AM
Reply #3

brynn

  • Administrator

  • Offline
  • ******

  • 3,941
  • Gender
    Female

    Female
    • Inkscape Community
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.
  • Inkscape version 0.92.3
  • Windows 7 Pro, 64-bit
Inkscape Tutorials (and manuals)                      Inkscape Community Gallery                        Inkscape for Cutting Design                     



"Be ashamed to die until you have won some victory for humanity" - Horace Mann                       

July 19, 2019, 10:05:20 AM
Reply #4

flamingolady

  • IC Mentor

  • Offline
  • ******
  • Flamingo Lady

  • 154
  • Gender
    Female

    Female
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.

July 22, 2019, 05:33:07 AM
Reply #5

Moini

  • IC Mentor

  • Offline
  • ******

  • 1,568
    • VektorRascheln
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/