Adding Hyperlinks to your Scribus PDF document: Difference between revisions

From Scribus Wiki
Jump to navigation Jump to search
No edit summary
 
No edit summary
Line 7: Line 7:
* From the Type pull-down menu, choose JavaScript.
* From the Type pull-down menu, choose JavaScript.
* To the right of the Script box, click Edit.
* To the right of the Script box, click Edit.
* Enter the following: <tt>app.launchURL("http://www.scribus.net/", true);</tt>
* Enter the following: <tt>app.launchURL("<span class="plainlinks">http://www.scribus.net/</span>", true);</tt></span>
* Click File/Save and Exit.
* Click File/Save and Exit.
* Click OK.
* Click OK.

Revision as of 05:57, 2 December 2006

  • Open your Scribus document.
  • Click the "OK" button for "Insert PDF fields".
  • Make a box to surround the text and/or graphics from which you want to create a hyperlink.
  • Double click this box, which opens the Field Properties dialogue box.
  • In the Appearance tab, choose "None" for colour of the border (unless you really want a border added).
  • Click on the Action tab.
  • From the Type pull-down menu, choose JavaScript.
  • To the right of the Script box, click Edit.
  • Enter the following: app.launchURL("http://www.scribus.net/", true);
  • Click File/Save and Exit.
  • Click OK.
  • Save your .sla document and export it to PDF format.

If you now open that PDF version in a browser, you will find those text (and/or graphics) areas linkable. The "true" parameter in the JavaScript is important so a new frame (window or tab) is opened for the link. This way your PDF document remains open and available in its original frame.

References: