- Ce sujet est vide.
- Sujet
-
Bonjour,
J’ai appliqué ce script que j’ai découvert ici. Juste un problème. Mon signet est introuvable. Pourtant dans mon PDF le signet est bien indiqué Chapter 1, etc. Je précise que j’ai un document avec plusieurs pages. :Euuuh:
Qui pour m’aider ?var cDest = app.popUpMenu([« Part 1 », « Chapter 1 », « Chapter 2 », « Chapter 3 », « Chapter 4 »], [« Part 2 », « Chapter 5 », « Chapter 6 », « Chapter 7 », « Chapter 8 », « Chapter 9 », « Chapter 10 », « Chapter 11 », « Chapter 12 », « Chapter 13 », « Chapter 14 »], [« Part 3 », « Chapter 15 », « Chapter 16 », « Chapter 17 », « Chapter 18 », « Chapter 19 », « Chapter 20 », « Chapter 21 », « Chapter 22 », « Chapter 23 »], [« Part 4 », « Chapter 24 », « Chapter 25 », « Chapter 26 », « Chapter 27 », « Chapter 28 », « Chapter 29 », « Chapter 30 », « Chapter 31 », « Chapter 32 », « Chapter 33 », « Chapter 34 »]);
//this.gotoNamedDest(cDest);
//fonction de recherche des signets
function searchBookmarks(bkm, nLevel, bkmName)
{
//recherche de premier niveau
if ( bkm.name == bkmName ) return bkm;
//recherche aux niveaux secondaires par imbrication
if (bkm.children != null)
{
for ( i = 0; i {
bkMark = searchBookmarks(
bkm.children, nLevel + 1, bkmName);
if ( bkMark != null ) break;
}
return bkMark;
}
return null;
}//programme principal…
if ( cDest != null )
{
bkm = searchBookmarks(this.bookmarkRoot, 0, cDest );
if ( bkm != null ) bkm.execute();
else app.alert(« Signet introuvable »,1);
}
- Vous devez être connecté pour répondre à ce sujet.