Donnez vie à vos documents numériques !
 

Répondre à : Menu création signet. – RÉSOLU

abracadabraPDF Forums PDF – Général Menu création signet. – RÉSOLU Répondre à : Menu création signet. – RÉSOLU

#52533
bebarth
Maître des clés

Impeccable !!! Merci Stubiana  :soleil:

voici mon script final au cas ou cela intéresse quelqu’un.

function myBookmarkContactUs()
  {
  this.bookmarkRoot.createChild(“Dernière page”, “”, this.bookmarkRoot.children.length);
  var i = this.bookmarkRoot.children.length
  var bkm = this.bookmarkRoot.children[i-1];
  bkm.style = 1;
  bkm.color = color.black;
  bkm.setAction(“this.pageNum = numPages”);
      }
app.addMenuItem({ cName: “Contact Us”, cParent: “Edit”, cEnable: “event.rc = event.target != null”, cExec: “myBookmarkContactUs()”});