diff --git a/acrobat-plugin/src/Imposition-02-Livret.js b/acrobat-plugin/src/Imposition-02-Livret.js index 59396b1..1c2ab6b 100755 --- a/acrobat-plugin/src/Imposition-02-Livret.js +++ b/acrobat-plugin/src/Imposition-02-Livret.js @@ -240,12 +240,14 @@ CDImp.Livret.delivretiser = function (doc) { // Point d'entree du module (appele depuis le panneau principal, Module 1) // ----------------------------------------------------------------------- CDImp.Livret.lancer = function (doc) { + app.alert("DEBUG 1: entree dans lancer"); try { doc = CDImp.Util.getDocActif(doc); } catch (e) { - app.alert("Veuillez ouvrir un document PDF avant de lancer l'imposition."); + app.alert("DEBUG: pas de doc - " + e); return; } + app.alert("DEBUG 2: doc ok, numPages=" + doc.numPages); var choix = app.alert({ cMsg: "Que souhaitez-vous faire ?\n\nOui = Creer un livret (imposition)\nNon = Delivretiser (revenir a l'ordre de lecture)", @@ -253,6 +255,7 @@ CDImp.Livret.lancer = function (doc) { nIcon: 2, nType: 3 }); + app.alert("DEBUG 3: choix=" + choix); // 4=Oui, 3=Non, 2=Annuler if (choix === 2) { return;