No, since a bookmark doesn’t necessary represent a physical point in a book.
Thank you for the answer! I'm trying this solution using the code found here.
But, the name check does not seem to work.
if ( bkm.name == bkmName ) return bkm;
Always returns false. I've tried a couple of things, but it seems the String compare does not work as expected. I've logged the 2 comparing strings to the console and they do match.
Any ideas what's wrong?
1 person found this helpful
A possibility: perhaps one or other string has hidden spaces. If you haven't tried this, log them in a way that lets you check this e.g.
name2=*This string *
Doh! It works.. There was a hidden char behind it.
While we are on this topic, the bookmark is linked to a page. Is it also possible to have it jump to a position on that given page. It now happens that the page is shown, but the bookmark itself is outside the scroll box.