Skip to main content
kakyan
Participating Frequently
January 18, 2018
Question

How to add Bookmark without text moving

  • January 18, 2018
  • 2 replies
  • 829 views

When I add bookmark the text is moving. How to solve this.

Have anybody facing such issue?

Any suggestions will be highly appreciated.

This topic has been closed for replies.

2 replies

kakyan
kakyanAuthor
Participating Frequently
January 19, 2018

Here with I have copied the code for your reference

var a = myDoc.hyperlinkTextDestinations.add(bookmarkText.texts[0].insertionPoints[0]); 

 

applybookmarktoPara(bookmarkText, a, linkid)

function applybookmarktoPara(aText, a, linkid)

    {

     try{   a.name = linkid;

          var bm = myDoc.bookmarks.add(a); 

             bm.name = linkid;

                    bm.showBookmark();

        } catch(e){}

    }

robinfredericf
Participating Frequently
January 30, 2018

Hi, do you mean that the text appearance changes when you create an hyperlink? The hyperlinks formatting can be customized or disabled at will Learn how to create, manage, and edit hyperlinks in InDesign

Community Expert
January 18, 2018

Is this a scripting question?


If yes, can you show the code and a screenshot of the moving text, before running the code and after running the code.
The Bookmarks panel should be open and showing as well.

For code formatting use the "Advanced Editor" of the forum software.

Under >> you best format with Syntax Highlighting > javascript

Regards,
Uwe